klaptopdaemon
daemon_state.h
Go to the documentation of this file.00001 #ifndef __DAEMON_STATE_H
00002 #define __DAEMON_STATE_H 1
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #include <QDir>
00026 #include <unistd.h>
00027 #include <time.h>
00028 #include <qmovie.h>
00029 #include <q3ptrlist.h>
00030 #include <qfileinfo.h>
00031 #include <qimage.h>
00032 #include <kdelibs_export.h>
00033
00034 class KDE_EXPORT daemon_state
00035 {
00036 public:
00037 daemon_state();
00038 ~daemon_state();
00039 void load();
00040 bool need_to_run();
00041
00042 bool exists;
00043 bool has_brightness;
00044 bool has_performance;
00045 bool has_throttle;
00046
00047 QString noBatteryIcon;
00048 QString chargeIcon;
00049 QString noChargeIcon;
00050
00051
00052
00053
00054
00055 int power_wait[2];
00056 int power_action[2];
00057 int power_brightness[2];
00058 bool power_brightness_enabled[2];
00059 QString power_performance[2];
00060 bool power_performance_enabled[2];
00061 QString power_throttle[2];
00062 bool power_throttle_enabled[2];
00063 bool lav_enabled[2];
00064 float lav_val[2];
00065
00066
00067
00068
00069
00070 bool systemBeep[2];
00071 bool logout[2];
00072 bool shutdown[2];
00073 bool runCommand[2];
00074 QString runCommandPath[2];
00075 bool playSound[2];
00076 QString playSoundPath[2];
00077 bool notify[2];
00078 bool do_suspend[2];
00079 bool do_hibernate[2];
00080 bool do_standby[2];
00081 bool do_brightness[2];
00082 int val_brightness[2];
00083 bool do_performance[2];
00084 QString val_performance[2];
00085 bool do_throttle[2];
00086 QString val_throttle[2];
00087 bool time_based_action_low, time_based_action_critical;
00088 int low[4];
00089 int poll;
00090
00091
00092
00093 bool enabled;
00094 bool notifyMeWhenFull;
00095 bool useBlankSaver;
00096
00097
00098 int have_time;
00099
00100
00101
00102 bool sony_enablescrollbar;
00103 bool sony_middleemulation;
00104
00105
00106
00107 bool bright_pon;
00108 int bright_son;
00109 bool bright_poff;
00110 int bright_soff;
00111
00112
00113
00114 bool performance_pon, performance_poff;
00115 QString performance_val_on, performance_val_off;
00116
00117
00118
00119 bool throttle_pon, throttle_poff;
00120 QString throttle_val_on, throttle_val_off;
00121
00122
00123 int button_lid;
00124 int button_power;
00125 bool button_lid_bright_enabled;
00126 bool button_power_bright_enabled;
00127 int button_lid_bright_val;
00128 int button_power_bright_val;
00129 bool button_lid_performance_enabled;
00130 bool button_power_performance_enabled;
00131 QString button_lid_performance_val;
00132 QString button_power_performance_val;
00133 bool button_lid_throttle_enabled;
00134 bool button_power_throttle_enabled;
00135 QString button_lid_throttle_val;
00136 QString button_power_throttle_val;
00137 bool enable_lid_button;
00138 bool enable_power_button;
00139
00140 };
00141 #endif