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 <ntqptrlist.h>
00022 #include "configelem.h"
00023 #include "commandentry.h"
00024
00028 class CommandEntry;
00029 class ConfigElem;
00030
00031 class CommandList : public TQPtrList<CommandEntry>
00032 {
00033 public:
00034 CommandList ();
00035 virtual ~CommandList();
00036 void setCombo (TQComboBox* 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 (TDEConfig* config);
00041 void saveOptions (TDEConfig* config);
00042 protected:
00043 virtual int compareItems (TQPtrCollection::Item item1, TQPtrCollection::Item item2);
00044 virtual TQPtrCollection::Item newItem (TQPtrCollection::Item d);
00045 };
00046
00047 #endif