00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef COMMANDLIST_H
00019 #define COMMANDLIST_H
00020
00021 #include <qptrlist.h>
00022 #include "configelem.h"
00023 #include "commandentry.h"
00024
00028 class CommandEntry;
00029 class ConfigElem;
00030
00031 class CommandList : public QPtrList<CommandEntry>
00032 {
00033 public:
00034 CommandList ();
00035 virtual ~CommandList();
00036 void setCombo (QComboBox* combo, int nIndex);
00037 CommandList& operator = (CommandList& right);
00038 bool exec (unsigned int id, ConfigElem* pelem, const char* header, const char* body);
00039 bool exec (unsigned int pos, ConfigElem* pelem);
00040 void readOptions (KConfig* config);
00041 void saveOptions (KConfig* config);
00042 protected:
00043 virtual int compareItems (QCollection::Item item1, QCollection::Item item2);
00044 virtual QCollection::Item newItem (QCollection::Item d);
00045 };
00046
00047 #endif