summaryrefslogtreecommitdiffstats
path: root/src/preferences.h
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-08-21 21:26:05 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-08-21 21:26:05 +0200
commit29b50d195f91ee5131805a0ca9fe45ab77655c8a (patch)
tree2ccda3f73a19fa8f03e6c02f9113728e5aad1d44 /src/preferences.h
downloadklcddimmer-29b50d195f91ee5131805a0ca9fe45ab77655c8a.tar.gz
klcddimmer-29b50d195f91ee5131805a0ca9fe45ab77655c8a.zip
Initial import of klcddimmer 0.3
Diffstat (limited to 'src/preferences.h')
-rw-r--r--src/preferences.h192
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
+