knotesglobalconfig.h
00001
00002
00003 #ifndef KNOTESGLOBALCONFIG_H
00004 #define KNOTESGLOBALCONFIG_H
00005
00006 #include <knoteconfig.h>
00007
00008 #include <kconfigskeleton.h>
00009
00010 class KNotesGlobalConfig : public KNoteConfig
00011 {
00012 public:
00013
00014 static KNotesGlobalConfig *self();
00015 ~KNotesGlobalConfig();
00016
00020 static
00021 void setMailAction( const QString & v )
00022 {
00023 if (!self()->isImmutable( QString::fromLatin1( "MailAction" ) ))
00024 self()->mMailAction = v;
00025 }
00026
00030 static
00031 QString mailAction()
00032 {
00033 return self()->mMailAction;
00034 }
00035
00039 static
00040 void setReceiveNotes( bool v )
00041 {
00042 if (!self()->isImmutable( QString::fromLatin1( "ReceiveNotes" ) ))
00043 self()->mReceiveNotes = v;
00044 }
00045
00049 static
00050 bool receiveNotes()
00051 {
00052 return self()->mReceiveNotes;
00053 }
00054
00058 static
00059 void setPort( uint v )
00060 {
00061 if (!self()->isImmutable( QString::fromLatin1( "Port" ) ))
00062 self()->mPort = v;
00063 }
00064
00068 static
00069 uint port()
00070 {
00071 return self()->mPort;
00072 }
00073
00077 static
00078 void setSenderID( const QString & v )
00079 {
00080 if (!self()->isImmutable( QString::fromLatin1( "SenderID" ) ))
00081 self()->mSenderID = v;
00082 }
00083
00087 static
00088 QString senderID()
00089 {
00090 return self()->mSenderID;
00091 }
00092
00096 static
00097 void setKnownHosts( const QStringList & v )
00098 {
00099 if (!self()->isImmutable( QString::fromLatin1( "KnownHosts" ) ))
00100 self()->mKnownHosts = v;
00101 }
00102
00106 static
00107 QStringList knownHosts()
00108 {
00109 return self()->mKnownHosts;
00110 }
00111
00112 static
00113 void writeConfig()
00114 {
00115 static_cast<KConfigSkeleton*>(self())->writeConfig();
00116 }
00117 protected:
00118 KNotesGlobalConfig();
00119 static KNotesGlobalConfig *mSelf;
00120
00121
00122
00123 QString mMailAction;
00124
00125
00126 bool mReceiveNotes;
00127 uint mPort;
00128 QString mSenderID;
00129 QStringList mKnownHosts;
00130
00131 private:
00132 };
00133
00134 #endif
This file is part of the documentation for knotes Library Version 3.3.2.