kandy Library API Documentation

commandset.h

00001 // $Id: commandset.h,v 1.2 2001/09/14 06:57:29 mlaurent Exp $
00002 
00003 #ifndef COMMANDSET_H
00004 #define COMMANDSET_H
00005 
00006 #include <qlistview.h>
00007 
00008 class ATCommand;
00009 class ATParameter;
00010 class QDomElement;
00011 class QDomDocument;
00012 
00016 class CommandSet {
00017   public:
00018     CommandSet();
00019     ~CommandSet();
00020     
00021     void addCommand(ATCommand *);
00022     void deleteCommand(ATCommand *);
00023     
00024     bool loadFile(const QString &);
00025     bool saveFile(const QString &);
00026     
00027     void clear();
00028     
00029     QPtrList<ATCommand> *commandList() { return &mList; }
00030     
00031   protected:
00032     void loadCommand(ATCommand *,QDomElement *c);
00033     void saveCommand(ATCommand *,QDomDocument *doc,QDomElement *parent);
00034     void saveParameter(ATParameter *p, QDomDocument *doc,QDomElement *parent);
00035   
00036   private:
00037     QPtrList<ATCommand> mList;
00038 };
00039 
00040 #endif
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sun Feb 15 11:40:32 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001