cupsdcomment.h
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 <qstringlist.h>
00024 #include <qptrlist.h>
00025
00026 #define HEADER_COMM 0
00027 #define SERVERNAME_COMM 1
00028 #define SERVERADMIN_COMM 2
00029 #define ACCESSLOG_COMM 3
00030 #define DATADIR_COMM 4
00031 #define DEFAULTCHARSET_COMM 5
00032 #define DEFAULTLANG_COMM 6
00033 #define DOCUMENTROOT_COMM 7
00034 #define ERRORLOG_COMM 8
00035 #define FONTPATH_COMM 9
00036 #define LOGLEVEL_COMM 10
00037 #define MAXLOGSIZE_COMM 11
00038 #define PAGELOG_COMM 12
00039 #define PRESERVEJOBHIST_COMM 13
00040 #define PRESERVEJOBFILE_COMM 14
00041 #define PRINTCAP_COMM 15
00042 #define REQUESTROOT_COMM 16
00043 #define REMOTEROOT_COMM 17
00044 #define SERVERBIN_COMM 18
00045 #define SERVERROOT_COMM 19
00046 #define USER_COMM 20
00047 #define GROUP_COMM 21
00048 #define RIPCACHE_COMM 22
00049 #define TEMPDIR_COMM 23
00050 #define FILTERLIMIT_COMM 24
00051 #define PORT_COMM 25
00052 #define HOSTNAMELOOKUPS_COMM 26
00053 #define KEEPALIVE_COMM 27
00054 #define KEEPALIVETIMEOUT_COMM 28
00055 #define MAXCLIENTS_COMM 29
00056 #define MAXREQUESTSIZE_COMM 30
00057 #define TIMEOUT_COMM 31
00058 #define BROWSING_COMM 32
00059 #define BROWSESHORTNAMES_COMM 33
00060 #define BROWSEADDRESS_COMM 34
00061 #define BROWSEALLOWDENY_COMM 35
00062 #define BROWSEINTERVAL_COMM 36
00063 #define BROWSEORDER_COMM 37
00064 #define BROWSEPOLL_COMM 38
00065 #define BROWSEPORT_COMM 39
00066 #define BROWSERELAY_COMM 40
00067 #define BROWSETIMEOUT_COMM 41
00068 #define IMPLICITCLASSES_COMM 42
00069 #define SYSTEMGROUP_COMM 43
00070 #define SERVERCERTIFICATE_COMM 44
00071 #define SERVERKEY_COMM 45
00072 #define LOCATIONSCOMPLETE_COMM 46
00073 #define LOCAUTHTYPE_COMM 47
00074 #define LOCAUTHCLASS_COMM 48
00075 #define LOCAUTHGROUPNAME_COMM 49
00076 #define LOCAUTHORDER_COMM 50
00077 #define LOCAUTHALLOW_COMM 51
00078 #define LOCAUTHDENY_COMM 52
00079 #define LOCENCRYPTION_COMM 53
00080 #define LOCATIONS_COMM 54
00081 #define AUTOPURGEJOBS_COMM 55
00082 #define BROWSEPROTOCOLS_COMM 56
00083 #define CLASSIFICATION_COMM 57
00084 #define CLASSIFYOVERRIDE_COMM 58
00085 #define HIDEIMPLICITMEMBERS_COMM 59
00086 #define IMPLICITANYCLASSES_COMM 60
00087 #define MAXJOBS_COMM 61
00088
00089 #define LAST_COMM 61
00090
00091 class QFile;
00092
00093 class Comment
00094 {
00095 public:
00096 bool load(QFile* f);
00097 QString toolTip();
00098 QString comment();
00099 private:
00100 QString comment_;
00101 QString example_;
00102 };
00103
00104 class CupsdComment
00105 {
00106 public:
00107 QString operator[] (unsigned int index);
00108 QString comment(uint index);
00109 QString toolTip(uint index);
00110
00111 private:
00112 bool loadComments();
00113
00114 private:
00115 QPtrList<Comment> comments_;
00116 };
00117
00118 #endif
This file is part of the documentation for kdeprint Library Version 3.2.0.