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

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