Main Page | Modules | Namespace List | Class Hierarchy | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

power.h

Go to the documentation of this file.
00001 /******************************************************************************
00002  * Copyright (c) 2006 PalmSource, Inc (an ACCESS company). All rights reserved.
00003  *****************************************************************************/
00011 #ifndef ALP_POWER_H_
00012 #define ALP_POWER_H_ 1
00013 
00014 #ifdef __cplusplus
00015 extern "C" {
00016 #endif
00017 
00024 #include <hiker/sysclass.h>
00025 #include <glib.h>
00026 #include <time.h>
00027 
00028 // declare this here, to prevent everyone who uses the file from needing GTK
00029 struct _GtkWindow;
00030 
00031 
00036 #define ALP_STATUS_POWER_INVALID_PARAM  (ALP_CLASS_POWER | 0x00010000)  
00037 #define ALP_STATUS_POWER_NO_FREE_RAM    (ALP_CLASS_POWER | 0x00020000)  
00038 #define ALP_STATUS_POWER_NO_MISER               (ALP_CLASS_POWER | 0x00030000)  
00039 #define ALP_STATUS_POWER_NOT_ALLOWED    (ALP_CLASS_POWER | 0x00040000)  
00040 #define ALP_STATUS_POWER_TIME_PASSED    (ALP_CLASS_POWER | 0x00050000)  
00041 #define ALP_STATUS_POWER_NO_WAKEUP              (ALP_CLASS_POWER | 0x00060000)  
00042 
00043 
00044 
00055 #define ALP_POWER_PRIMARY_LCD           "_primary-lcd"  
00056 #define ALP_POWER_PRIMARY_KEYBOARD      "_primary-key"  
00057 #define ALP_POWER_ALL_PRIMARY           "_all-primary"  
00058 #define ALP_POWER_AUTO_OFF                      "_auto-off"             
00059 #define ALP_POWER_ALL_TIMEOUTS          "_all-timeouts" 
00060 
00061 
00062 
00063 
00072 typedef enum {
00073                 ALP_POWER_FULL_WAKE_STATE,      
00074                 ALP_POWER_SEMI_WAKE_STATE,      
00075                 ALP_POWER_SLEEP_STATE,          
00076 } AlpPowerWakeState;
00077 
00078 
00080 typedef gboolean (*AlpPowerWakeupCallback)(gpointer data);
00081 
00082 
00083 
00088 #ifdef __cplusplus
00089 }       // extern "C"
00090 #endif 
00091 
00092 
00093 
00094 #endif  /* ALP_POWER_H_ */
00095 
00096 

Generated on Sat Dec 16 20:29:47 2006 for hiker-0.9 by  doxygen 1.4.4