Source: whatsup/ModuleInfo.h


Annotated List
Files
Globals
Hierarchy
Index
/***************************************************************************
                          ModuleInfo.h  -  description
                             -------------------
    begin                : Don Jun 6 2002
    copyright            : (C) 2002 by Andreas Pillath
    email                : pillath@gmx.net
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/
#ifndef _ModuleInfo_h_
#define _ModuleInfo_h_

#include 

#define MODULEINFO_KEYS 3

class ModuleInfo {
  public:

     enum SORTKEY
   	 {
		    SORTBY_NAME = 0,
    		SORTBY_SIZE,
		    SORTBY_USES
     };

     ModuleInfo(QString name,int size,int uses,QString referrers);

     QString getName() { return _name;};
     int getSize() {return _size;};
     int getUses() {return _uses;};
     QString getReferrers() {return _referrers;};

     int getNumOfSortKeys();
     QString* getKeyNames();
     int compareWith(ModuleInfo* mi,int byKey);

  private:
     QString _name;
     int _size;
     int _uses;
     QString _referrers;
     QString* keyNames;
};

#endif

Generated by: andreas on linux on Sat Jun 15 19:28:49 2002, using kdoc 2.0a53.