commandset.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
#ifndef COMMANDSET_H
00025
#define COMMANDSET_H
00026
00027
#include <qlistview.h>
00028
00029
class ATCommand;
00030
class ATParameter;
00031
class QDomElement;
00032
class QDomDocument;
00033
00037 class CommandSet {
00038
public:
00039
CommandSet();
00040 ~
CommandSet();
00041
00042
void addCommand(
ATCommand *);
00043
void deleteCommand(
ATCommand *);
00044
00045
bool loadFile(
const QString &);
00046
bool saveFile(
const QString &);
00047
00048
void clear();
00049
00050 QPtrList<ATCommand> *commandList() {
return &mList; }
00051
00052
protected:
00053
void loadCommand(
ATCommand *,QDomElement *c);
00054
void saveCommand(
ATCommand *,QDomDocument *doc,QDomElement *parent);
00055
void saveParameter(ATParameter *p, QDomDocument *doc,QDomElement *parent);
00056
00057
private:
00058 QPtrList<ATCommand> mList;
00059 };
00060
00061
#endif
This file is part of the documentation for kandy Library Version 3.2.2.