• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdeutils
  • Sitemap
  • Contact Us
 

klaptopdaemon

daemon_state.h

Go to the documentation of this file.
00001 #ifndef __DAEMON_STATE_H
00002 #define __DAEMON_STATE_H 1
00003 /*
00004  * daemon_state.h
00005  * Copyright (C) 1999, 2003 Paul Campbell <paul@taniwha.com>
00006  *
00007  * This file contains the saved config state for the laptop daemon
00008  *
00009  *  This program is free software; you can redistribute it and/or modify
00010  *  it under the terms of the GNU General Public License as published by
00011  *  the Free Software Foundation; either version 2 of the License, or
00012  *  (at your option) any later version.
00013  *
00014  *  This program is distributed in the hope that it will be useful,
00015  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  *  GNU General Public License for more details.
00018  *
00019  *  You should have received a copy of the GNU General Public License
00020  *  along with this program; if not, write to the Free Software
00021  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
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     //  power out actions
00053     //
00054 
00055     int power_wait[2];      // how close to the end when we trigger the action
00056     int power_action[2];    // what to do when this action is triggered
00057     int power_brightness[2];    // which brightness level to switch to
00058     bool    power_brightness_enabled[2];    // and whether to switch
00059     QString power_performance[2];   // which performance level to switch to
00060     bool    power_performance_enabled[2];   // and whether to switch
00061     QString power_throttle[2];  // which throttling level to switch to
00062     bool    power_throttle_enabled[2];  // and whether to switch
00063     bool    lav_enabled[2];     // check LAV first
00064     float   lav_val[2];     // don't act if higher than this
00065 
00066     //
00067     //  power out warnings
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;           // how often to pol
00090 
00091     
00092 
00093     bool    enabled;
00094     bool    notifyMeWhenFull;
00095     bool    useBlankSaver;
00096 
00097 
00098     int have_time;
00099 
00100     // sony jog-bar support
00101     
00102     bool sony_enablescrollbar;  // enable jog bar support
00103     bool sony_middleemulation;  // press on jog bar emulates mouse middle button
00104 
00105     // brightness 
00106     
00107     bool bright_pon;        // auto set brightness when powered
00108     int  bright_son;        // value to set
00109     bool bright_poff;       // auto set brightness when on battery
00110     int  bright_soff;       // value to set
00111 
00112     // performance
00113     
00114     bool performance_pon, performance_poff;
00115     QString performance_val_on, performance_val_off;
00116 
00117     // throttle
00118     
00119     bool throttle_pon, throttle_poff;
00120     QString throttle_val_on, throttle_val_off;
00121 
00122     // button triggered stuff
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

klaptopdaemon

Skip menu "klaptopdaemon"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

kdeutils

Skip menu "kdeutils"
  • ark
  • kcalc
  • kcharselect
  • kdelirc
  • kdessh
  • kdf
  • kfloppy
  • kgpg
  • kjots
  • klaptopdaemon
  • kmilo
  • ksim
  • ktimer
  • kwallet
  • superkaramba
Generated for kdeutils by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal