From 29b50d195f91ee5131805a0ca9fe45ab77655c8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Wed, 21 Aug 2013 21:26:05 +0200 Subject: Initial import of klcddimmer 0.3 --- src/preferences.h | 192 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 192 insertions(+) create mode 100644 src/preferences.h (limited to 'src/preferences.h') 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 +#include + +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(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 + -- cgit v1.2.1