mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 10:52:49 +00:00
152 lines
3.2 KiB
Text
152 lines
3.2 KiB
Text
// 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 <kdebug.h>
|
|
|
|
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 void usrWriteConfig();
|
|
|
|
// Appearance
|
|
QString mEmoticonTheme;
|
|
bool mUseEmoticon;
|
|
bool mEmoticonRequireSpace;
|
|
QString mStylePath;
|
|
QString mStyleCSSVariant;
|
|
|
|
private:
|
|
uint mSettingsChanged;
|
|
};
|
|
|
|
#endif
|
|
|