1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
// This file is generated by tdeconfig_compiler from preferences.kcfg.
// All changes you do to this file will be lost.
#include "preferences.h"
#include <kstaticdeleter.h>
Preferences *Preferences::mSelf = 0;
static KStaticDeleter<Preferences> staticPreferencesDeleter;
Preferences *Preferences::self()
{
if ( !mSelf ) {
staticPreferencesDeleter.setObject( mSelf, new Preferences() );
mSelf->readConfig();
}
return mSelf;
}
Preferences::Preferences( )
: TDEConfigSkeleton( TQString::fromLatin1( "klcddimmerrc" ) )
{
mSelf = this;
setCurrentGroup( TQString::fromLatin1( "general" ) );
TDEConfigSkeleton::ItemString *itemProgram;
itemProgram = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "Program" ), mProgram, TQString::fromLatin1( "smartdimmer" ) );
addItem( itemProgram, TQString::fromLatin1( "Program" ) );
TDEConfigSkeleton::ItemString *itemSetArgument;
itemSetArgument = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "SetArgument" ), mSetArgument, TQString::fromLatin1( "-s" ) );
addItem( itemSetArgument, TQString::fromLatin1( "SetArgument" ) );
TDEConfigSkeleton::ItemString *itemGetArgument;
itemGetArgument = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "GetArgument" ), mGetArgument, TQString::fromLatin1( "-g" ) );
addItem( itemGetArgument, TQString::fromLatin1( "GetArgument" ) );
TDEConfigSkeleton::ItemString *itemMinValue;
itemMinValue = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "MinValue" ), mMinValue, TQString::fromLatin1( "1" ) );
addItem( itemMinValue, TQString::fromLatin1( "MinValue" ) );
TDEConfigSkeleton::ItemString *itemMaxValue;
itemMaxValue = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "MaxValue" ), mMaxValue, TQString::fromLatin1( "21" ) );
addItem( itemMaxValue, TQString::fromLatin1( "MaxValue" ) );
TDEConfigSkeleton::ItemString *itemStep;
itemStep = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "Step" ), mStep, TQString::fromLatin1( "1" ) );
addItem( itemStep, TQString::fromLatin1( "Step" ) );
TDEConfigSkeleton::ItemBool *itemSaveCurrent;
itemSaveCurrent = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "SaveCurrent" ), mSaveCurrent, false );
addItem( itemSaveCurrent, TQString::fromLatin1( "SaveCurrent" ) );
TDEConfigSkeleton::ItemString *itemCurrentValue;
itemCurrentValue = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "CurrentValue" ), mCurrentValue );
addItem( itemCurrentValue, TQString::fromLatin1( "CurrentValue" ) );
}
Preferences::~Preferences()
{
if ( mSelf == this )
staticPreferencesDeleter.setObject( mSelf, 0, false );
}
|