kontact Library API Documentation

prefs.h

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 <kconfigskeleton.h>
00007 
00008 namespace Kontact {
00009 
00010 class Prefs : public KConfigSkeleton
00011 {
00012   public:
00013     enum { SidePaneBars, SidePaneIcons };
00014 
00015     static Prefs *self();
00016     ~Prefs();
00017 
00021     static
00022     void setActivePlugin( const QString & v )
00023     {
00024       if (!self()->isImmutable( QString::fromLatin1( "ActivePlugin" ) ))
00025         self()->mActivePlugin = v;
00026     }
00027 
00031     static
00032     QString activePlugin()
00033     {
00034       return self()->mActivePlugin;
00035     }
00036 
00040     ItemString *activePluginItem()
00041     {
00042       return mActivePluginItem;
00043     }
00044 
00048     static
00049     void setSidePaneSplitter( const QValueList<int> & v )
00050     {
00051       if (!self()->isImmutable( QString::fromLatin1( "SidePaneSplitter" ) ))
00052         self()->mSidePaneSplitter = v;
00053     }
00054 
00058     static
00059     QValueList<int> sidePaneSplitter()
00060     {
00061       return self()->mSidePaneSplitter;
00062     }
00063 
00067     ItemIntList *sidePaneSplitterItem()
00068     {
00069       return mSidePaneSplitterItem;
00070     }
00071 
00075     static
00076     void setSidePaneType( int v )
00077     {
00078       if (!self()->isImmutable( QString::fromLatin1( "SidePaneType" ) ))
00079         self()->mSidePaneType = v;
00080     }
00081 
00085     static
00086     int sidePaneType()
00087     {
00088       return self()->mSidePaneType;
00089     }
00090 
00094     ItemEnum *sidePaneTypeItem()
00095     {
00096       return mSidePaneTypeItem;
00097     }
00098 
00099     static
00100     void writeConfig()
00101     {
00102       static_cast<KConfigSkeleton*>(self())->writeConfig();
00103     }
00104   protected:
00105     Prefs();
00106     static Prefs *mSelf;
00107 
00108   public:
00109 
00110     // View
00111     QString mActivePlugin;
00112     QValueList<int> mSidePaneSplitter;
00113     int mSidePaneType;
00114 
00115   private:
00116     ItemString *mActivePluginItem;
00117     ItemIntList *mSidePaneSplitterItem;
00118     ItemEnum *mSidePaneTypeItem;
00119 };
00120 
00121 }
00122 
00123 #endif
KDE Logo
This file is part of the documentation for kontact Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 22:46:48 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003