00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef CUPSDCOMMENT_H
00021 #define CUPSDCOMMENT_H
00022
00023 #include <tqstringlist.h>
00024 #include <tqdict.h>
00025
00026 class TQFile;
00027
00028 class Comment
00029 {
00030 public:
00031 bool load(TQFile* f);
00032 TQString toolTip();
00033 TQString comment();
00034 TQString key();
00035 private:
00036 TQString comment_;
00037 TQString example_;
00038 TQString key_;
00039 };
00040
00041 class CupsdComment
00042 {
00043 public:
00044 TQString operator[] (const TQString& key);
00045 TQString comment(const TQString& key);
00046 TQString toolTip(const TQString& key);
00047
00048 private:
00049 bool loadComments();
00050
00051 private:
00052 TQDict<Comment> comments_;
00053 };
00054
00055 #endif