KDEPrint
cupsdcomment.h
Go to the documentation of this file.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 <QtCore/QStringList>
00024 #include <QtCore/QHash>
00025
00026 class QFile;
00027
00028 #ifdef __GNUC__
00029 #warning rename class or remove from global namespace
00030 #endif
00031 class Comment
00032 {
00033 public:
00034 bool load(QFile* f);
00035 QString toolTip() const;
00036 QString comment() const;
00037 QString key() const;
00038 private:
00039 QString comment_;
00040 QString example_;
00041 QString key_;
00042 };
00043
00044 #ifdef __GNUC__
00045 #warning rename class or remove from global namespace
00046 #endif
00047 class CupsdComment
00048 {
00049 public:
00050 QString operator[](const QString& key);
00051 QString comment(const QString& key);
00052 QString toolTip(const QString& key);
00053 ~CupsdComment();
00054
00055 private:
00056 bool loadComments();
00057
00058 private:
00059 QHash<QString, Comment*> comments_;
00060 };
00061
00062 #endif