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

0001 // This file is generated by kconfig_compiler_kf5 from test_signal.kcfg.
0002 // All changes you do to this file will be lost.
0003 #ifndef TESTSIGNAL_H
0004 #define TESTSIGNAL_H
0005 
0006 #include <kconfigskeleton.h>
0007 #include <QCoreApplication>
0008 #include <QDebug>
0009 #include <QSet>
0010 
0011 class TestSignal : public KConfigSkeleton
0012 {
0013   Q_OBJECT
0014   public:
0015 
0016     static TestSignal *self();
0017     ~TestSignal() override;
0018 
0019     /**
0020       Set Current emoticon theme.
0021     */
0022     static
0023     void setEmoticonTheme( const QString & v )
0024     {
0025       if (v != self()->mEmoticonTheme && !self()->isEmoticonThemeImmutable()) {
0026         self()->mEmoticonTheme = v;
0027         self()->mSettingsChanged.insert(signalEmoticonSettingsChanged);
0028       }
0029     }
0030 
0031     /**
0032       Get Current emoticon theme.
0033     */
0034     static
0035     QString emoticonTheme()
0036     {
0037       return self()->mEmoticonTheme;
0038     }
0039 
0040     /**
0041       Is Current emoticon theme. Immutable
0042     */
0043     static
0044     bool isEmoticonThemeImmutable()
0045     {
0046       return self()->isImmutable( QStringLiteral( "emoticonTheme" ) );
0047     }
0048 
0049     /**
0050       Set Enable emoticon support in Kopete.
0051     */
0052     static
0053     void setUseEmoticon( bool v )
0054     {
0055       if (v != self()->mUseEmoticon && !self()->isUseEmoticonImmutable()) {
0056         self()->mUseEmoticon = v;
0057         self()->mSettingsChanged.insert(signalEmoticonSettingsChanged);
0058       }
0059     }
0060 
0061     /**
0062       Get Enable emoticon support in Kopete.
0063     */
0064     static
0065     bool useEmoticon()
0066     {
0067       return self()->mUseEmoticon;
0068     }
0069 
0070     /**
0071       Is Enable emoticon support in Kopete. Immutable
0072     */
0073     static
0074     bool isUseEmoticonImmutable()
0075     {
0076       return self()->isImmutable( QStringLiteral( "useEmoticon" ) );
0077     }
0078 
0079     /**
0080       Set Use strict mode in emoticon parsing.
0081     */
0082     static
0083     void setEmoticonRequireSpace( bool v )
0084     {
0085       if (v != self()->mEmoticonRequireSpace && !self()->isEmoticonRequireSpaceImmutable()) {
0086         self()->mEmoticonRequireSpace = v;
0087         self()->mSettingsChanged.insert(signalEmoticonSettingsChanged);
0088       }
0089     }
0090 
0091     /**
0092       Get Use strict mode in emoticon parsing.
0093     */
0094     static
0095     bool emoticonRequireSpace()
0096     {
0097       return self()->mEmoticonRequireSpace;
0098     }
0099 
0100     /**
0101       Is Use strict mode in emoticon parsing. Immutable
0102     */
0103     static
0104     bool isEmoticonRequireSpaceImmutable()
0105     {
0106       return self()->isImmutable( QStringLiteral( "emoticonRequireSpace" ) );
0107     }
0108 
0109     /**
0110       Set Absolute path to a directory containing a Adium/Kopete chat window style.
0111     */
0112     static
0113     void setStylePath( const QString & v )
0114     {
0115       if (v != self()->mStylePath && !self()->isStylePathImmutable()) {
0116         self()->mStylePath = v;
0117         self()->mSettingsChanged.insert(signalStyleChanged);
0118       }
0119     }
0120 
0121     /**
0122       Get Absolute path to a directory containing a Adium/Kopete chat window style.
0123     */
0124     static
0125     QString stylePath()
0126     {
0127       return self()->mStylePath;
0128     }
0129 
0130     /**
0131       Is Absolute path to a directory containing a Adium/Kopete chat window style. Immutable
0132     */
0133     static
0134     bool isStylePathImmutable()
0135     {
0136       return self()->isImmutable( QStringLiteral( "stylePath" ) );
0137     }
0138 
0139     /**
0140       Set Relative path to a CSS variant for the current style.
0141     */
0142     static
0143     void setStyleCSSVariant( const QString & v )
0144     {
0145       if (!self()->isStyleCSSVariantImmutable())
0146         self()->mStyleCSSVariant = v;
0147     }
0148 
0149     /**
0150       Get Relative path to a CSS variant for the current style.
0151     */
0152     static
0153     QString styleCSSVariant()
0154     {
0155       return self()->mStyleCSSVariant;
0156     }
0157 
0158     /**
0159       Is Relative path to a CSS variant for the current style. Immutable
0160     */
0161     static
0162     bool isStyleCSSVariantImmutable()
0163     {
0164       return self()->isImmutable( QStringLiteral( "StyleCSSVariant" ) );
0165     }
0166 
0167 
0168     enum {
0169       signalEmoticonSettingsChanged = 1,
0170       signalStyleChanged = 2
0171     };
0172 
0173   Q_SIGNALS:
0174     void emoticonSettingsChanged();
0175 
0176     /**
0177       Tell when a complete style change.
0178     */
0179     void styleChanged(const QString & stylePath, const QString & StyleCSSVariant);
0180 
0181   private:
0182     void itemChanged(quint64 signalFlag);
0183 
0184   protected:
0185     TestSignal();
0186     friend class TestSignalHelper;
0187 
0188     bool usrSave() override;
0189 
0190     // Appearance
0191     QString mEmoticonTheme;
0192     bool mUseEmoticon;
0193     bool mEmoticonRequireSpace;
0194     QString mStylePath;
0195     QString mStyleCSSVariant;
0196 
0197   private:
0198     QSet<quint64> mSettingsChanged;
0199 };
0200 
0201 #endif
0202