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

0001 // This file is generated by kconfig_compiler_kf5 from test7.kcfg.
0002 // All changes you do to this file will be lost.
0003 #ifndef TEST7_H
0004 #define TEST7_H
0005 
0006 #include <kconfigskeleton.h>
0007 #include <QCoreApplication>
0008 #include <QDebug>
0009 
0010 class Test7 : public KConfigSkeleton
0011 {
0012   public:
0013 
0014     Test7( int Number );
0015     ~Test7() override;
0016 
0017     /**
0018       Set Block colors.
0019     */
0020     void setColor( const QColor & v )
0021     {
0022       if (!isColorImmutable())
0023         mColor = v;
0024     }
0025 
0026     /**
0027       Get Block colors.
0028     */
0029     QColor color() const
0030     {
0031       return mColor;
0032     }
0033 
0034     /**
0035       Is Block colors. Immutable
0036     */
0037     bool isColorImmutable() const
0038     {
0039       return isImmutable( QStringLiteral( "Color" ) );
0040     }
0041 
0042     /**
0043       Set foo bar
0044     */
0045     void setFooBar( const QString & v )
0046     {
0047       if (!isFooBarImmutable())
0048         mFooBar = v;
0049     }
0050 
0051     /**
0052       Get foo bar
0053     */
0054     QString fooBar() const
0055     {
0056       return mFooBar;
0057     }
0058 
0059     /**
0060       Is foo bar Immutable
0061     */
0062     bool isFooBarImmutable() const
0063     {
0064       return isImmutable( QStringLiteral( "FooBar" ) );
0065     }
0066 
0067     /**
0068       Set Age
0069     */
0070     void setAge( int v )
0071     {
0072       if (v < 8)
0073       {
0074         qDebug() << "setAge: value " << v << " is less than the minimum value of 8";
0075         v = 8;
0076       }
0077 
0078       if (v > 88)
0079       {
0080         qDebug() << "setAge: value " << v << " is greater than the maximum value of 88";
0081         v = 88;
0082       }
0083 
0084       if (!isAgeImmutable())
0085         mAge = v;
0086     }
0087 
0088     /**
0089       Get Age
0090     */
0091     int age() const
0092     {
0093       return mAge;
0094     }
0095 
0096     /**
0097       Is Age Immutable
0098     */
0099     bool isAgeImmutable() const
0100     {
0101       return isImmutable( QStringLiteral( "Age" ) );
0102     }
0103 
0104   protected:
0105     int mParamNumber;
0106 
0107     // Foo
0108     QColor mColor;
0109 
0110     // Bar$(Number)
0111     QString mFooBar;
0112     int mAge;
0113 
0114   private:
0115 };
0116 
0117 #endif
0118