aboutsummaryrefslogtreecommitdiff
path: root/autotests/kconfig_compiler/test3.h.ref
blob: ed449fdfccb9ae27af3192f79a44fde8f4387e90 (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
// This file is generated by kconfig_compiler_kf5 from test3.kcfg.
// All changes you do to this file will be lost.
#ifndef TESTNAMESPACE_TEST3_H
#define TESTNAMESPACE_TEST3_H

#include <qglobal.h>
#include <kconfigskeleton.h>
#include <QCoreApplication>
#include <QDebug>

namespace TestNameSpace {

class Test3 : public KConfigSkeleton
{
  public:

    Test3( );
    ~Test3() override;

    /**
      Set Enable automatic saving of calendar
    */
    void setAutoSave( bool v )
    {
      if (!isAutoSaveImmutable())
        mAutoSave = v;
    }

    /**
      Get Enable automatic saving of calendar
    */
    bool autoSave() const
    {
      return mAutoSave;
    }

    /**
      Is Enable automatic saving of calendar Immutable
    */
    bool isAutoSaveImmutable() const
    {
      return isImmutable( QStringLiteral( "AutoSave" ) );
    }

    /**
      Get Item object corresponding to AutoSave()
    */
    ItemBool *autoSaveItem()
    {
      return mAutoSaveItem;
    }

    /**
      Set Blubb
    */
    void setBlubb( int v )
    {
      if (!isBlubbImmutable())
        mBlubb = v;
    }

    /**
      Get Blubb
    */
    int blubb() const
    {
      return mBlubb;
    }

    /**
      Is Blubb Immutable
    */
    bool isBlubbImmutable() const
    {
      return isImmutable( QStringLiteral( "Blubb" ) );
    }

    /**
      Get Item object corresponding to Blubb()
    */
    ItemInt *blubbItem()
    {
      return mBlubbItem;
    }

    /**
      Set BlahBlah
    */
    void setBlahBlah( const QString & v )
    {
      if (!isBlahBlahImmutable())
        mBlahBlah = v;
    }

    /**
      Get BlahBlah
    */
    QString blahBlah() const
    {
      return mBlahBlah;
    }

    /**
      Is BlahBlah Immutable
    */
    bool isBlahBlahImmutable() const
    {
      return isImmutable( QStringLiteral( "BlahBlah" ) );
    }

    /**
      Get Item object corresponding to BlahBlah()
    */
    ItemString *blahBlahItem()
    {
      return mBlahBlahItem;
    }

    /**
      Set MyPassword
    */
    void setMyPassword( const QString & v )
    {
      if (!isMyPasswordImmutable())
        mMyPassword = v;
    }

    /**
      Get MyPassword
    */
    QString myPassword() const
    {
      return mMyPassword;
    }

    /**
      Is MyPassword Immutable
    */
    bool isMyPasswordImmutable() const
    {
      return isImmutable( QStringLiteral( "MyPassword" ) );
    }

    /**
      Get Item object corresponding to MyPassword()
    */
    ItemPassword *myPasswordItem()
    {
      return mMyPasswordItem;
    }

  protected:

    // General
    bool mAutoSave;

    // Blah
    int mBlubb;
    QString mBlahBlah;
    QString mMyPassword;

  private:
    ItemBool *mAutoSaveItem;
    ItemInt *mBlubbItem;
    ItemString *mBlahBlahItem;
    ItemPassword *mMyPasswordItem;
};

}

#endif