knotes

knotesglobalconfig.h

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, Fancy, 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     static
00176     void writeConfig()
00177     {
00178       static_cast<KConfigSkeleton*>(self())->writeConfig();
00179     }
00180   protected:
00181     KNotesGlobalConfig();
00182     static KNotesGlobalConfig *mSelf;
00183 
00184 
00185     // Actions
00186     QString mMailAction;
00187 
00188     // Alarms
00189     uint mCheckInterval;
00190     QDateTime mAlarmsLastChecked;
00191 
00192     // Network
00193     bool mReceiveNotes;
00194     uint mPort;
00195     QString mSenderID;
00196     QStringList mKnownHosts;
00197 
00198     // Style
00199     int mStyle;
00200 
00201   private:
00202 };
00203 
00204 #endif
00205 
KDE Home | KDE Accessibility Home | Description of Access Keys