// This file is generated by kconfig_compiler_kf6 from test_signal.kcfg. // All changes you do to this file will be lost. #ifndef TESTSIGNAL_H #define TESTSIGNAL_H #include #include #include #include class TestSignal : public KConfigSkeleton { Q_OBJECT public: static TestSignal *self(); ~TestSignal() override; /** Set Current emoticon theme. */ static void setEmoticonTheme( const QString & v ) { if (v != self()->mEmoticonTheme && !self()->isEmoticonThemeImmutable()) { self()->mEmoticonTheme = v; self()->mSettingsChanged.insert(signalEmoticonSettingsChanged); } } /** Get Current emoticon theme. */ static QString emoticonTheme() { return self()->mEmoticonTheme; } /** Is Current emoticon theme. Immutable */ static bool isEmoticonThemeImmutable() { return self()->isImmutable( QStringLiteral( "emoticonTheme" ) ); } /** Set Enable emoticon support in Kopete. */ static void setUseEmoticon( bool v ) { if (v != self()->mUseEmoticon && !self()->isUseEmoticonImmutable()) { self()->mUseEmoticon = v; self()->mSettingsChanged.insert(signalEmoticonSettingsChanged); } } /** Get Enable emoticon support in Kopete. */ static bool useEmoticon() { return self()->mUseEmoticon; } /** Is Enable emoticon support in Kopete. Immutable */ static bool isUseEmoticonImmutable() { return self()->isImmutable( QStringLiteral( "useEmoticon" ) ); } /** Set Use strict mode in emoticon parsing. */ static void setEmoticonRequireSpace( bool v ) { if (v != self()->mEmoticonRequireSpace && !self()->isEmoticonRequireSpaceImmutable()) { self()->mEmoticonRequireSpace = v; self()->mSettingsChanged.insert(signalEmoticonSettingsChanged); } } /** Get Use strict mode in emoticon parsing. */ static bool emoticonRequireSpace() { return self()->mEmoticonRequireSpace; } /** Is Use strict mode in emoticon parsing. Immutable */ static bool isEmoticonRequireSpaceImmutable() { return self()->isImmutable( QStringLiteral( "emoticonRequireSpace" ) ); } /** Set Absolute path to a directory containing a Adium/Kopete chat window style. */ static void setStylePath( const QString & v ) { if (v != self()->mStylePath && !self()->isStylePathImmutable()) { self()->mStylePath = v; self()->mSettingsChanged.insert(signalStyleChanged); } } /** Get Absolute path to a directory containing a Adium/Kopete chat window style. */ static QString stylePath() { return self()->mStylePath; } /** Is Absolute path to a directory containing a Adium/Kopete chat window style. Immutable */ static bool isStylePathImmutable() { return self()->isImmutable( QStringLiteral( "stylePath" ) ); } /** Set Relative path to a CSS variant for the current style. */ static void setStyleCSSVariant( const QString & v ) { if (!self()->isStyleCSSVariantImmutable()) self()->mStyleCSSVariant = v; } /** Get Relative path to a CSS variant for the current style. */ static QString styleCSSVariant() { return self()->mStyleCSSVariant; } /** Is Relative path to a CSS variant for the current style. Immutable */ static bool isStyleCSSVariantImmutable() { return self()->isImmutable( QStringLiteral( "StyleCSSVariant" ) ); } enum { signalEmoticonSettingsChanged = 1, signalStyleChanged = 2 }; Q_SIGNALS: void emoticonSettingsChanged(); /** Tell when a complete style change. */ void styleChanged(const QString & stylePath, const QString & StyleCSSVariant); private: void itemChanged(quint64 signalFlag); protected: TestSignal(); friend class TestSignalHelper; bool usrSave() override; // Appearance QString mEmoticonTheme; bool mUseEmoticon; bool mEmoticonRequireSpace; QString mStylePath; QString mStyleCSSVariant; private: QSet mSettingsChanged; }; #endif