prefs.h

Go to the documentation of this file.
00001 // This file is generated by kconfig_compiler from kwin4.kcfg.
00002 // All changes you do to this file will be lost.
00003 #ifndef PREFS_H
00004 #define PREFS_H
00005 
00006 #include <kconfigskeleton.h>
00007 #include <kdebug.h>
00008 
00009 class Prefs : public KConfigSkeleton
00010 {
00011   public:
00012 
00013     static Prefs *self();
00014     ~Prefs();
00015 
00016 
00020     static
00021     int port()
00022     {
00023       return self()->mPort;
00024     }
00025 
00026 
00030     static
00031     QString gamename()
00032     {
00033       return self()->mGamename;
00034     }
00035 
00036 
00040     static
00041     QString host()
00042     {
00043       return self()->mHost;
00044     }
00045 
00046 
00050     static
00051     int level()
00052     {
00053       return self()->mLevel;
00054     }
00055 
00056 
00060     static
00061     QString name1()
00062     {
00063       return self()->mName1;
00064     }
00065 
00066 
00070     static
00071     QString name2()
00072     {
00073       return self()->mName2;
00074     }
00075 
00076 
00080     static
00081     int input1()
00082     {
00083       return self()->mInput1;
00084     }
00085 
00086 
00090     static
00091     int input2()
00092     {
00093       return self()->mInput2;
00094     }
00095 
00096 
00100     static
00101     int colour1()
00102     {
00103       return self()->mColour1;
00104     }
00105 
00106     static
00107     void writeConfig()
00108     {
00109       static_cast<KConfigSkeleton*>(self())->writeConfig();
00110     }
00111   protected:
00112     Prefs();
00113     static Prefs *mSelf;
00114 
00115 
00116     // Parameter
00117     int mPort;
00118     QString mGamename;
00119     QString mHost;
00120     int mLevel;
00121     QString mName1;
00122     QString mName2;
00123     int mInput1;
00124     int mInput2;
00125     int mColour1;
00126 
00127   private:
00128 };
00129 
00130 #endif
00131 

Generated on Sun Mar 4 10:56:43 2007 for KWin4 by  doxygen 1.4.6