KLcdDimmer – applet to adjust LCD brightness
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

preferences.h 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. // This file is generated by tdeconfig_compiler from preferences.kcfg.
  2. // All changes you do to this file will be lost.
  3. #ifndef PREFERENCES_H
  4. #define PREFERENCES_H
  5. #include <tdeconfigskeleton.h>
  6. #include <kdebug.h>
  7. class Preferences : public TDEConfigSkeleton
  8. {
  9. public:
  10. static Preferences *self();
  11. ~Preferences();
  12. /**
  13. Set program to adjust lcd brightness
  14. */
  15. static
  16. void setProgram( const TQString & v )
  17. {
  18. if (!self()->isImmutable( TQString::fromLatin1( "Program" ) ))
  19. self()->mProgram = v;
  20. }
  21. /**
  22. Get program to adjust lcd brightness
  23. */
  24. static
  25. TQString program()
  26. {
  27. return self()->mProgram;
  28. }
  29. /**
  30. Set argument to set the brighness
  31. */
  32. static
  33. void setSetArgument( const TQString & v )
  34. {
  35. if (!self()->isImmutable( TQString::fromLatin1( "SetArgument" ) ))
  36. self()->mSetArgument = v;
  37. }
  38. /**
  39. Get argument to set the brighness
  40. */
  41. static
  42. TQString setArgument()
  43. {
  44. return self()->mSetArgument;
  45. }
  46. /**
  47. Set argument to get the brighness
  48. */
  49. static
  50. void setGetArgument( const TQString & v )
  51. {
  52. if (!self()->isImmutable( TQString::fromLatin1( "GetArgument" ) ))
  53. self()->mGetArgument = v;
  54. }
  55. /**
  56. Get argument to get the brighness
  57. */
  58. static
  59. TQString getArgument()
  60. {
  61. return self()->mGetArgument;
  62. }
  63. /**
  64. Set minimum value for brightness
  65. */
  66. static
  67. void setMinValue( const TQString & v )
  68. {
  69. if (!self()->isImmutable( TQString::fromLatin1( "MinValue" ) ))
  70. self()->mMinValue = v;
  71. }
  72. /**
  73. Get minimum value for brightness
  74. */
  75. static
  76. TQString minValue()
  77. {
  78. return self()->mMinValue;
  79. }
  80. /**
  81. Set maximum value for brightness
  82. */
  83. static
  84. void setMaxValue( const TQString & v )
  85. {
  86. if (!self()->isImmutable( TQString::fromLatin1( "MaxValue" ) ))
  87. self()->mMaxValue = v;
  88. }
  89. /**
  90. Get maximum value for brightness
  91. */
  92. static
  93. TQString maxValue()
  94. {
  95. return self()->mMaxValue;
  96. }
  97. /**
  98. Set step to increment
  99. */
  100. static
  101. void setStep( const TQString & v )
  102. {
  103. if (!self()->isImmutable( TQString::fromLatin1( "Step" ) ))
  104. self()->mStep = v;
  105. }
  106. /**
  107. Get step to increment
  108. */
  109. static
  110. TQString step()
  111. {
  112. return self()->mStep;
  113. }
  114. /**
  115. Set save the current value
  116. */
  117. static
  118. void setSaveCurrent( bool v )
  119. {
  120. if (!self()->isImmutable( TQString::fromLatin1( "SaveCurrent" ) ))
  121. self()->mSaveCurrent = v;
  122. }
  123. /**
  124. Get save the current value
  125. */
  126. static
  127. bool saveCurrent()
  128. {
  129. return self()->mSaveCurrent;
  130. }
  131. /**
  132. Set the current brightness value
  133. */
  134. static
  135. void setCurrentValue( const TQString & v )
  136. {
  137. if (!self()->isImmutable( TQString::fromLatin1( "CurrentValue" ) ))
  138. self()->mCurrentValue = v;
  139. }
  140. /**
  141. Get the current brightness value
  142. */
  143. static
  144. TQString currentValue()
  145. {
  146. return self()->mCurrentValue;
  147. }
  148. static
  149. void writeConfig()
  150. {
  151. static_cast<TDEConfigSkeleton*>(self())->writeConfig();
  152. }
  153. protected:
  154. Preferences();
  155. static Preferences *mSelf;
  156. // general
  157. TQString mProgram;
  158. TQString mSetArgument;
  159. TQString mGetArgument;
  160. TQString mMinValue;
  161. TQString mMaxValue;
  162. TQString mStep;
  163. bool mSaveCurrent;
  164. TQString mCurrentValue;
  165. private:
  166. };
  167. #endif