• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

kontact

prefs.h

Go to the documentation of this file.
00001 // This file is generated by kconfig_compiler from kontact.kcfg.
00002 // All changes you do to this file will be lost.
00003 #ifndef KONTACT_PREFS_H
00004 #define KONTACT_PREFS_H
00005 
00006 #include <kontact_export.h>
00007 
00008 #include <kconfigskeleton.h>
00009 #include <kdebug.h>
00010 
00011 namespace Kontact {
00012 
00013 class KONTACT_EXPORT Prefs : public KConfigSkeleton
00014 {
00015   public:
00016 
00017     static Prefs *self();
00018     ~Prefs();
00019 
00023     static
00024     void setActivePlugin( const QString & v )
00025     {
00026       if (!self()->isImmutable( QString::fromLatin1 ( "ActivePlugin" ) ))
00027         self()->mActivePlugin = v;
00028     }
00029 
00033     static
00034     QString activePlugin()
00035     {
00036       return self()->mActivePlugin;
00037     }
00038 
00042     ItemString *activePluginItem()
00043     {
00044       return mActivePluginItem;
00045     }
00046 
00050     static
00051     void setForceStartupPlugin( bool v )
00052     {
00053       if (!self()->isImmutable( QString::fromLatin1 ( "ForceStartupPlugin" ) ))
00054         self()->mForceStartupPlugin = v;
00055     }
00056 
00060     static
00061     bool forceStartupPlugin()
00062     {
00063       return self()->mForceStartupPlugin;
00064     }
00065 
00069     ItemBool *forceStartupPluginItem()
00070     {
00071       return mForceStartupPluginItem;
00072     }
00073 
00077     static
00078     void setForcedStartupPlugin( const QString & v )
00079     {
00080       if (!self()->isImmutable( QString::fromLatin1 ( "ForcedStartupPlugin" ) ))
00081         self()->mForcedStartupPlugin = v;
00082     }
00083 
00087     static
00088     QString forcedStartupPlugin()
00089     {
00090       return self()->mForcedStartupPlugin;
00091     }
00092 
00096     ItemString *forcedStartupPluginItem()
00097     {
00098       return mForcedStartupPluginItem;
00099     }
00100 
00104     static
00105     void setSidePaneSplitter( const QList<int> & v )
00106     {
00107       if (!self()->isImmutable( QString::fromLatin1 ( "SidePaneSplitter" ) ))
00108         self()->mSidePaneSplitter = v;
00109     }
00110 
00114     static
00115     QList<int> sidePaneSplitter()
00116     {
00117       return self()->mSidePaneSplitter;
00118     }
00119 
00123     ItemIntList *sidePaneSplitterItem()
00124     {
00125       return mSidePaneSplitterItem;
00126     }
00127 
00131     static
00132     void setSidePaneIconSize( int v )
00133     {
00134       if (!self()->isImmutable( QString::fromLatin1 ( "SidePaneIconSize" ) ))
00135         self()->mSidePaneIconSize = v;
00136     }
00137 
00141     static
00142     int sidePaneIconSize()
00143     {
00144       return self()->mSidePaneIconSize;
00145     }
00146 
00150     ItemInt *sidePaneIconSizeItem()
00151     {
00152       return mSidePaneIconSizeItem;
00153     }
00154 
00158     static
00159     void setSidePaneShowIcons( bool v )
00160     {
00161       if (!self()->isImmutable( QString::fromLatin1 ( "SidePaneShowIcons" ) ))
00162         self()->mSidePaneShowIcons = v;
00163     }
00164 
00168     static
00169     bool sidePaneShowIcons()
00170     {
00171       return self()->mSidePaneShowIcons;
00172     }
00173 
00177     ItemBool *sidePaneShowIconsItem()
00178     {
00179       return mSidePaneShowIconsItem;
00180     }
00181 
00185     static
00186     void setSidePaneShowText( bool v )
00187     {
00188       if (!self()->isImmutable( QString::fromLatin1 ( "SidePaneShowText" ) ))
00189         self()->mSidePaneShowText = v;
00190     }
00191 
00195     static
00196     bool sidePaneShowText()
00197     {
00198       return self()->mSidePaneShowText;
00199     }
00200 
00204     ItemBool *sidePaneShowTextItem()
00205     {
00206       return mSidePaneShowTextItem;
00207     }
00208 
00212     static
00213     void setLastVersionSeen( const QString & v )
00214     {
00215       if (!self()->isImmutable( QString::fromLatin1 ( "LastVersionSeen" ) ))
00216         self()->mLastVersionSeen = v;
00217     }
00218 
00222     static
00223     QString lastVersionSeen()
00224     {
00225       return self()->mLastVersionSeen;
00226     }
00227 
00231     ItemString *lastVersionSeenItem()
00232     {
00233       return mLastVersionSeenItem;
00234     }
00235 
00236   protected:
00237     Prefs();
00238     friend class PrefsHelper;
00239 
00240   public:
00241 
00242     // View
00243     QString mActivePlugin;
00244     bool mForceStartupPlugin;
00245     QString mForcedStartupPlugin;
00246     QList<int> mSidePaneSplitter;
00247     int mSidePaneIconSize;
00248     bool mSidePaneShowIcons;
00249     bool mSidePaneShowText;
00250     QString mLastVersionSeen;
00251 
00252   private:
00253     ItemString *mActivePluginItem;
00254     ItemBool *mForceStartupPluginItem;
00255     ItemString *mForcedStartupPluginItem;
00256     ItemIntList *mSidePaneSplitterItem;
00257     ItemInt *mSidePaneIconSizeItem;
00258     ItemBool *mSidePaneShowIconsItem;
00259     ItemBool *mSidePaneShowTextItem;
00260     ItemString *mLastVersionSeenItem;
00261 };
00262 
00263 }
00264 
00265 #endif
00266 

kontact

Skip menu "kontact"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal