knotes
knotesglobalconfig.h
Go to the documentation of this file.00001 // This file is generated by kconfig_compiler from knotesglobalconfig.kcfg. 00002 // All changes you do to this file will be lost. 00003 #ifndef KNOTESGLOBALCONFIG_H 00004 #define KNOTESGLOBALCONFIG_H 00005 00006 #include <knoteconfig.h> 00007 00008 #include <kconfigskeleton.h> 00009 #include <kdebug.h> 00010 00011 class KNotesGlobalConfig : public KNoteConfig 00012 { 00013 public: 00014 class EnumStyle 00015 { 00016 public: 00017 enum type { Plain, COUNT }; 00018 }; 00019 00020 static KNotesGlobalConfig *self(); 00021 ~KNotesGlobalConfig(); 00022 00026 static 00027 void setMailAction( const QString & v ) 00028 { 00029 if (!self()->isImmutable( QString::fromLatin1 ( "MailAction" ) )) 00030 self()->mMailAction = v; 00031 } 00032 00036 static 00037 QString mailAction() 00038 { 00039 return self()->mMailAction; 00040 } 00041 00045 static 00046 void setCheckInterval( uint v ) 00047 { 00048 if (!self()->isImmutable( QString::fromLatin1 ( "CheckInterval" ) )) 00049 self()->mCheckInterval = v; 00050 } 00051 00055 static 00056 uint checkInterval() 00057 { 00058 return self()->mCheckInterval; 00059 } 00060 00064 static 00065 void setAlarmsLastChecked( const QDateTime & v ) 00066 { 00067 if (!self()->isImmutable( QString::fromLatin1 ( "AlarmsLastChecked" ) )) 00068 self()->mAlarmsLastChecked = v; 00069 } 00070 00074 static 00075 QDateTime alarmsLastChecked() 00076 { 00077 return self()->mAlarmsLastChecked; 00078 } 00079 00083 static 00084 void setReceiveNotes( bool v ) 00085 { 00086 if (!self()->isImmutable( QString::fromLatin1 ( "ReceiveNotes" ) )) 00087 self()->mReceiveNotes = v; 00088 } 00089 00093 static 00094 bool receiveNotes() 00095 { 00096 return self()->mReceiveNotes; 00097 } 00098 00102 static 00103 void setPort( uint v ) 00104 { 00105 if (!self()->isImmutable( QString::fromLatin1 ( "Port" ) )) 00106 self()->mPort = v; 00107 } 00108 00112 static 00113 uint port() 00114 { 00115 return self()->mPort; 00116 } 00117 00121 static 00122 void setSenderID( const QString & v ) 00123 { 00124 if (!self()->isImmutable( QString::fromLatin1 ( "SenderID" ) )) 00125 self()->mSenderID = v; 00126 } 00127 00131 static 00132 QString senderID() 00133 { 00134 return self()->mSenderID; 00135 } 00136 00140 static 00141 void setKnownHosts( const QStringList & v ) 00142 { 00143 if (!self()->isImmutable( QString::fromLatin1 ( "KnownHosts" ) )) 00144 self()->mKnownHosts = v; 00145 } 00146 00150 static 00151 QStringList knownHosts() 00152 { 00153 return self()->mKnownHosts; 00154 } 00155 00159 static 00160 void setStyle( int v ) 00161 { 00162 if (!self()->isImmutable( QString::fromLatin1 ( "Style" ) )) 00163 self()->mStyle = v; 00164 } 00165 00169 static 00170 int style() 00171 { 00172 return self()->mStyle; 00173 } 00174 00175 protected: 00176 KNotesGlobalConfig(); 00177 friend class KNotesGlobalConfigHelper; 00178 00179 00180 // Actions 00181 QString mMailAction; 00182 00183 // Alarms 00184 uint mCheckInterval; 00185 QDateTime mAlarmsLastChecked; 00186 00187 // Network 00188 bool mReceiveNotes; 00189 uint mPort; 00190 QString mSenderID; 00191 QStringList mKnownHosts; 00192 00193 // Style 00194 int mStyle; 00195 00196 private: 00197 }; 00198 00199 #endif 00200
KDE 4.2 API Reference