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

0001 // This file is generated by kconfig_compiler_kf5 from test13.kcfg.
0002 // All changes you do to this file will be lost.
0003 #ifndef TEST13_H
0004 #define TEST13_H
0005 
0006 #include <qglobal.h>
0007 #include <kconfigskeleton.h>
0008 #include <QCoreApplication>
0009 #include <QDebug>
0010 
0011 class Test13 : public KConfigSkeleton
0012 {
0013   Q_OBJECT
0014   public:
0015 
0016     Test13( );
0017     ~Test13() override;
0018 
0019     Q_PROPERTY(QUrl picturesDir READ picturesDir CONSTANT)
0020     Q_PROPERTY(bool isPicturesDirImmutable READ isPicturesDirImmutable CONSTANT)
0021     /**
0022       Get picturesDir
0023     */
0024     QUrl picturesDir() const
0025     {
0026       return mPicturesDir;
0027     }
0028 
0029     /**
0030       Is picturesDir Immutable
0031     */
0032     bool isPicturesDirImmutable() const
0033     {
0034       return isImmutable( QStringLiteral( "picturesDir" ) );
0035     }
0036 
0037     /**
0038       Set brightness
0039     */
0040     void setBrightness( double v )
0041     {
0042       if (v != mBrightness && !isBrightnessImmutable()) {
0043         mBrightness = v;
0044         Q_EMIT brightnessChanged();
0045       }
0046     }
0047 
0048     Q_PROPERTY(double brightness READ brightness WRITE setBrightness NOTIFY brightnessChanged)
0049     Q_PROPERTY(bool isBrightnessImmutable READ isBrightnessImmutable CONSTANT)
0050     /**
0051       Get brightness
0052     */
0053     double brightness() const
0054     {
0055       return mBrightness;
0056     }
0057 
0058     /**
0059       Is brightness Immutable
0060     */
0061     bool isBrightnessImmutable() const
0062     {
0063       return isImmutable( QStringLiteral( "brightness" ) );
0064     }
0065 
0066     Q_PROPERTY(bool startsWithUppercase READ startsWithUppercase CONSTANT)
0067     Q_PROPERTY(bool isStartsWithUppercaseImmutable READ isStartsWithUppercaseImmutable CONSTANT)
0068     /**
0069       Get StartsWithUppercase
0070     */
0071     bool startsWithUppercase() const
0072     {
0073       return mStartsWithUppercase;
0074     }
0075 
0076     /**
0077       Is StartsWithUppercase Immutable
0078     */
0079     bool isStartsWithUppercaseImmutable() const
0080     {
0081       return isImmutable( QStringLiteral( "StartsWithUppercase" ) );
0082     }
0083 
0084 
0085     enum {
0086       signalBrightnessChanged = 1
0087     };
0088 
0089   Q_SIGNALS:
0090     void brightnessChanged();
0091 
0092   private:
0093     void itemChanged(quint64 signalFlag);
0094 
0095   protected:
0096 
0097     // kamoso
0098     QUrl mPicturesDir;
0099     double mBrightness;
0100     bool mStartsWithUppercase;
0101 
0102   private:
0103 };
0104 
0105 #endif
0106