diff options
Diffstat (limited to 'src/preferences.h')
-rw-r--r-- | src/preferences.h | 192 |
1 files changed, 192 insertions, 0 deletions
diff --git a/src/preferences.h b/src/preferences.h new file mode 100644 index 0000000..7966ccc --- /dev/null +++ b/src/preferences.h @@ -0,0 +1,192 @@ +// This file is generated by kconfig_compiler from preferences.kcfg. +// All changes you do to this file will be lost. +#ifndef PREFERENCES_H +#define PREFERENCES_H + +#include <kconfigskeleton.h> +#include <kdebug.h> + +class Preferences : public KConfigSkeleton +{ + public: + + static Preferences *self(); + ~Preferences(); + + /** + Set program to adjust lcd brightness + */ + static + void setProgram( const QString & v ) + { + if (!self()->isImmutable( QString::fromLatin1( "Program" ) )) + self()->mProgram = v; + } + + /** + Get program to adjust lcd brightness + */ + static + QString program() + { + return self()->mProgram; + } + + /** + Set argument to set the brighness + */ + static + void setSetArgument( const QString & v ) + { + if (!self()->isImmutable( QString::fromLatin1( "SetArgument" ) )) + self()->mSetArgument = v; + } + + /** + Get argument to set the brighness + */ + static + QString setArgument() + { + return self()->mSetArgument; + } + + /** + Set argument to get the brighness + */ + static + void setGetArgument( const QString & v ) + { + if (!self()->isImmutable( QString::fromLatin1( "GetArgument" ) )) + self()->mGetArgument = v; + } + + /** + Get argument to get the brighness + */ + static + QString getArgument() + { + return self()->mGetArgument; + } + + /** + Set minimum value for brightness + */ + static + void setMinValue( const QString & v ) + { + if (!self()->isImmutable( QString::fromLatin1( "MinValue" ) )) + self()->mMinValue = v; + } + + /** + Get minimum value for brightness + */ + static + QString minValue() + { + return self()->mMinValue; + } + + /** + Set maximum value for brightness + */ + static + void setMaxValue( const QString & v ) + { + if (!self()->isImmutable( QString::fromLatin1( "MaxValue" ) )) + self()->mMaxValue = v; + } + + /** + Get maximum value for brightness + */ + static + QString maxValue() + { + return self()->mMaxValue; + } + + /** + Set step to increment + */ + static + void setStep( const QString & v ) + { + if (!self()->isImmutable( QString::fromLatin1( "Step" ) )) + self()->mStep = v; + } + + /** + Get step to increment + */ + static + QString step() + { + return self()->mStep; + } + + /** + Set save the current value + */ + static + void setSaveCurrent( bool v ) + { + if (!self()->isImmutable( QString::fromLatin1( "SaveCurrent" ) )) + self()->mSaveCurrent = v; + } + + /** + Get save the current value + */ + static + bool saveCurrent() + { + return self()->mSaveCurrent; + } + + /** + Set the current brightness value + */ + static + void setCurrentValue( const QString & v ) + { + if (!self()->isImmutable( QString::fromLatin1( "CurrentValue" ) )) + self()->mCurrentValue = v; + } + + /** + Get the current brightness value + */ + static + QString currentValue() + { + return self()->mCurrentValue; + } + + static + void writeConfig() + { + static_cast<KConfigSkeleton*>(self())->writeConfig(); + } + protected: + Preferences(); + static Preferences *mSelf; + + + // general + QString mProgram; + QString mSetArgument; + QString mGetArgument; + QString mMinValue; + QString mMaxValue; + QString mStep; + bool mSaveCurrent; + QString mCurrentValue; + + private: +}; + +#endif + |