summaryrefslogtreecommitdiffstats
path: root/src/preferences.h
blob: 7966ccc0abe2a3edf7c7f8f40e59005e8a86c6c2 (plain)
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
// This file is generated by kconfig_compiler from preferences.kcfg.
// All changes you do to this file will be lost.
#ifndef PREFERENCES_H
#define PREFERENCES_H

#include <kconfigskeleton.h>
#include <kdebug.h>

class Preferences : public KConfigSkeleton
{
  public:

    static Preferences *self();
    ~Preferences();

    /**
      Set program to adjust lcd brightness
    */
    static
    void setProgram( const QString & v )
    {
      if (!self()->isImmutable( QString::fromLatin1( "Program" ) ))
        self()->mProgram = v;
    }

    /**
      Get program to adjust lcd brightness
    */
    static
    QString program()
    {
      return self()->mProgram;
    }

    /**
      Set argument to set the brighness
    */
    static
    void setSetArgument( const QString & v )
    {
      if (!self()->isImmutable( QString::fromLatin1( "SetArgument" ) ))
        self()->mSetArgument = v;
    }

    /**
      Get argument to set the brighness
    */
    static
    QString setArgument()
    {
      return self()->mSetArgument;
    }

    /**
      Set argument to get the brighness
    */
    static
    void setGetArgument( const QString & v )
    {
      if (!self()->isImmutable( QString::fromLatin1( "GetArgument" ) ))
        self()->mGetArgument = v;
    }

    /**
      Get argument to get the brighness
    */
    static
    QString getArgument()
    {
      return self()->mGetArgument;
    }

    /**
      Set minimum value for brightness
    */
    static
    void setMinValue( const QString & v )
    {
      if (!self()->isImmutable( QString::fromLatin1( "MinValue" ) ))
        self()->mMinValue = v;
    }

    /**
      Get minimum value for brightness
    */
    static
    QString minValue()
    {
      return self()->mMinValue;
    }

    /**
      Set maximum value for brightness
    */
    static
    void setMaxValue( const QString & v )
    {
      if (!self()->isImmutable( QString::fromLatin1( "MaxValue" ) ))
        self()->mMaxValue = v;
    }

    /**
      Get maximum value for brightness
    */
    static
    QString maxValue()
    {
      return self()->mMaxValue;
    }

    /**
      Set step to increment
    */
    static
    void setStep( const QString & v )
    {
      if (!self()->isImmutable( QString::fromLatin1( "Step" ) ))
        self()->mStep = v;
    }

    /**
      Get step to increment
    */
    static
    QString step()
    {
      return self()->mStep;
    }

    /**
      Set save the current value
    */
    static
    void setSaveCurrent( bool v )
    {
      if (!self()->isImmutable( QString::fromLatin1( "SaveCurrent" ) ))
        self()->mSaveCurrent = v;
    }

    /**
      Get save the current value
    */
    static
    bool saveCurrent()
    {
      return self()->mSaveCurrent;
    }

    /**
      Set the current brightness value
    */
    static
    void setCurrentValue( const QString & v )
    {
      if (!self()->isImmutable( QString::fromLatin1( "CurrentValue" ) ))
        self()->mCurrentValue = v;
    }

    /**
      Get the current brightness value
    */
    static
    QString currentValue()
    {
      return self()->mCurrentValue;
    }

    static
    void writeConfig()
    {
      static_cast<KConfigSkeleton*>(self())->writeConfig();
    }
  protected:
    Preferences();
    static Preferences *mSelf;


    // general
    QString mProgram;
    QString mSetArgument;
    QString mGetArgument;
    QString mMinValue;
    QString mMaxValue;
    QString mStep;
    bool mSaveCurrent;
    QString mCurrentValue;

  private:
};

#endif