commandlist.h

00001 /***************************************************************************
00002                           commandlist.h  -  description
00003                              -------------------
00004     begin                : Wed Oct 31 2001
00005     copyright            : (C) 2001 by Eggert Ehmke
00006     email                : eggert.ehmke@berlin.de
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef COMMANDLIST_H
00019 #define COMMANDLIST_H
00020 
00021 #include <tqptrlist.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

Generated on Wed May 16 21:15:18 2007 for kshowmail by  doxygen 1.5.0