Warning, /frameworks/kconfig/autotests/kconfig_compiler/test1.h.ref is written in an unsupported language. File is not indexed.

0001 // This file is generated by kconfig_compiler_kf6 from test1.kcfg.
0002 // All changes you do to this file will be lost.
0003 #ifndef TEST1_H
0004 #define TEST1_H
0005 
0006 #include <kconfigskeleton.h>
0007 #include <QCoreApplication>
0008 #include <QDebug>
0009 
0010 #include <qdir.h>
0011 
0012 class Test1 : public KConfigSkeleton
0013 {
0014   public:
0015     class EnumListOption
0016     {
0017       public:
0018       enum type { One, Two, Three, COUNT };
0019     };
0020 
0021     Test1( const QString & transport, const QString & folder, QObject *parent = nullptr );
0022     ~Test1() override;
0023 
0024     /**
0025       Set One option
0026     */
0027     void setOneOption( bool v )
0028     {
0029       if (!isOneOptionImmutable())
0030         mOneOption = v;
0031     }
0032 
0033     /**
0034       Get One option
0035     */
0036     bool oneOption() const
0037     {
0038       return mOneOption;
0039     }
0040 
0041     /**
0042       Is One option Immutable
0043     */
0044     bool isOneOptionImmutable() const
0045     {
0046       return isImmutable( QStringLiteral( "OneOption" ) );
0047     }
0048 
0049     /**
0050       Set Another option
0051     */
0052     void setAnotherOption( int v )
0053     {
0054       if (!isAnotherOptionImmutable())
0055         mAnotherOption = v;
0056     }
0057 
0058     /**
0059       Get Another option
0060     */
0061     int anotherOption() const
0062     {
0063       return mAnotherOption;
0064     }
0065 
0066     /**
0067       Is Another option Immutable
0068     */
0069     bool isAnotherOptionImmutable() const
0070     {
0071       return isImmutable( QStringLiteral( "AnotherOption" ) );
0072     }
0073 
0074     /**
0075       Set This is some funky option
0076     */
0077     void setListOption( int v )
0078     {
0079       if (!isListOptionImmutable())
0080         mListOption = v;
0081     }
0082 
0083     /**
0084       Get This is some funky option
0085     */
0086     int listOption() const
0087     {
0088       return mListOption;
0089     }
0090 
0091     /**
0092       Is This is some funky option Immutable
0093     */
0094     bool isListOptionImmutable() const
0095     {
0096       return isImmutable( QStringLiteral( "ListOption" ) );
0097     }
0098 
0099     /**
0100       Set This is a string
0101     */
0102     void setMyString( const QString & v )
0103     {
0104       if (!isMyStringImmutable())
0105         mMyString = v;
0106     }
0107 
0108     /**
0109       Get This is a string
0110     */
0111     QString myString() const
0112     {
0113       return mMyString;
0114     }
0115 
0116     /**
0117       Is This is a string Immutable
0118     */
0119     bool isMyStringImmutable() const
0120     {
0121       return isImmutable( QStringLiteral( "MyString" ) );
0122     }
0123 
0124     /**
0125       Set This is a path
0126     */
0127     void setMyPath( const QString & v )
0128     {
0129       if (!isMyPathImmutable())
0130         mMyPath = v;
0131     }
0132 
0133     /**
0134       Get This is a path
0135     */
0136     QString myPath() const
0137     {
0138       return mMyPath;
0139     }
0140 
0141     /**
0142       Is This is a path Immutable
0143     */
0144     bool isMyPathImmutable() const
0145     {
0146       return isImmutable( QStringLiteral( "MyPath" ) );
0147     }
0148 
0149     /**
0150       Set Another option
0151     */
0152     void setAnotherOption2( int v )
0153     {
0154       if (!isAnotherOption2Immutable())
0155         mAnotherOption2 = v;
0156     }
0157 
0158     /**
0159       Get Another option
0160     */
0161     int anotherOption2() const
0162     {
0163       return mAnotherOption2;
0164     }
0165 
0166     /**
0167       Is Another option Immutable
0168     */
0169     bool isAnotherOption2Immutable() const
0170     {
0171       return isImmutable( QStringLiteral( "AnotherOption2" ) );
0172     }
0173 
0174     /**
0175       Set MyStringList
0176     */
0177     void setMyStringList( const QStringList & v )
0178     {
0179       if (!isMyStringListImmutable())
0180         mMyStringList = v;
0181     }
0182 
0183     /**
0184       Get MyStringList
0185     */
0186     QStringList myStringList() const
0187     {
0188       return mMyStringList;
0189     }
0190 
0191     /**
0192       Is MyStringList Immutable
0193     */
0194     bool isMyStringListImmutable() const
0195     {
0196       return isImmutable( QStringLiteral( "MyStringList" ) );
0197     }
0198 
0199     /**
0200       Set MyStringListHidden
0201     */
0202     void setMyStringListHidden( const QStringList & v )
0203     {
0204       if (!isMyStringListHiddenImmutable())
0205         mMyStringListHidden = v;
0206     }
0207 
0208     /**
0209       Get MyStringListHidden
0210     */
0211     QStringList myStringListHidden() const
0212     {
0213       return mMyStringListHidden;
0214     }
0215 
0216     /**
0217       Is MyStringListHidden Immutable
0218     */
0219     bool isMyStringListHiddenImmutable() const
0220     {
0221       return isImmutable( QStringLiteral( "MyStringListHidden" ) );
0222     }
0223 
0224     /**
0225       Set List Number
0226     */
0227     void setMyNumber( int v )
0228     {
0229       if (!isMyNumberImmutable())
0230         mMyNumber = v;
0231     }
0232 
0233     /**
0234       Get List Number
0235     */
0236     int myNumber() const
0237     {
0238       return mMyNumber;
0239     }
0240 
0241     /**
0242       Is List Number Immutable
0243     */
0244     bool isMyNumberImmutable() const
0245     {
0246       return isImmutable( QStringLiteral( "MyNumber" ) );
0247     }
0248 
0249   protected:
0250     QString mParamtransport;
0251     QString mParamfolder;
0252 
0253     // General-$(folder)
0254     bool mOneOption;
0255     int mAnotherOption;
0256     int mListOption;
0257 
0258     // MyOptions
0259     QString mMyString;
0260     QString mMyPath;
0261     int mAnotherOption2;
0262     QStringList mMyStringList;
0263     QStringList mMyStringListHidden;
0264     int mMyNumber;
0265 
0266   private:
0267 };
0268 
0269 #endif
0270