diff options
Diffstat (limited to 'autotests/kconfig_compiler/test_signal.h.ref')
-rw-r--r-- | autotests/kconfig_compiler/test_signal.h.ref | 153 |
1 files changed, 153 insertions, 0 deletions
diff --git a/autotests/kconfig_compiler/test_signal.h.ref b/autotests/kconfig_compiler/test_signal.h.ref new file mode 100644 index 00000000..801ff926 --- /dev/null +++ b/autotests/kconfig_compiler/test_signal.h.ref @@ -0,0 +1,153 @@ +// This file is generated by kconfig_compiler from test_signal.kcfg. +// All changes you do to this file will be lost. +#ifndef TESTSIGNAL_H +#define TESTSIGNAL_H + +#include <kconfigskeleton.h> +#include <QCoreApplication> +#include <QDebug> + +class TestSignal : public KConfigSkeleton +{ + Q_OBJECT + public: + + enum { + signalEmoticonSettingsChanged = 0x1, + signalStyleChanged = 0x2 + }; + + static TestSignal *self(); + ~TestSignal(); + + /** + Set Current emoticon theme. + */ + static + void setEmoticonTheme( const QString & v ) + { + if (!self()->isImmutable( QString::fromLatin1( "emoticonTheme" ) )) { + self()->mEmoticonTheme = v; + self()->mSettingsChanged |= signalEmoticonSettingsChanged; + } + } + + /** + Get Current emoticon theme. + */ + static + QString emoticonTheme() + { + return self()->mEmoticonTheme; + } + + /** + Set Enable emoticon support in Kopete. + */ + static + void setUseEmoticon( bool v ) + { + if (!self()->isImmutable( QString::fromLatin1( "useEmoticon" ) )) { + self()->mUseEmoticon = v; + self()->mSettingsChanged |= signalEmoticonSettingsChanged; + } + } + + /** + Get Enable emoticon support in Kopete. + */ + static + bool useEmoticon() + { + return self()->mUseEmoticon; + } + + /** + Set Use strict mode in emoticon parsing. + */ + static + void setEmoticonRequireSpace( bool v ) + { + if (!self()->isImmutable( QString::fromLatin1( "emoticonRequireSpace" ) )) { + self()->mEmoticonRequireSpace = v; + self()->mSettingsChanged |= signalEmoticonSettingsChanged; + } + } + + /** + Get Use strict mode in emoticon parsing. + */ + static + bool emoticonRequireSpace() + { + return self()->mEmoticonRequireSpace; + } + + /** + Set Absolute path to a directory containing a Adium/Kopete chat window style. + */ + static + void setStylePath( const QString & v ) + { + if (!self()->isImmutable( QString::fromLatin1( "stylePath" ) )) { + self()->mStylePath = v; + self()->mSettingsChanged |= signalStyleChanged; + } + } + + /** + Get Absolute path to a directory containing a Adium/Kopete chat window style. + */ + static + QString stylePath() + { + return self()->mStylePath; + } + + /** + Set Relative path to a CSS variant for the current style. + */ + static + void setStyleCSSVariant( const QString & v ) + { + if (!self()->isImmutable( QString::fromLatin1( "StyleCSSVariant" ) )) + self()->mStyleCSSVariant = v; + } + + /** + Get Relative path to a CSS variant for the current style. + */ + static + QString styleCSSVariant() + { + return self()->mStyleCSSVariant; + } + + + Q_SIGNALS: + void emoticonSettingsChanged(); + + /** + Tell when a complete style change. + */ + void styleChanged(const QString & stylePath, const QString & StyleCSSVariant); + + protected: + TestSignal(); + friend class TestSignalHelper; + + virtual bool usrWriteConfig(); + + // Appearance + QString mEmoticonTheme; + bool mUseEmoticon; + bool mEmoticonRequireSpace; + QString mStylePath; + QString mStyleCSSVariant; + + private: + uint mSettingsChanged; +}; + +#endif + |