]> git.saurik.com Git - wxWidgets.git/blobdiff - interface/wx/power.h
Move code removing "-psn_xxx" command line arguments to common code.
[wxWidgets.git] / interface / wx / power.h
index fd488ed12ea214c280e16549b2b2a0400b1fda0f..1b20ce1de48d05ad7a915399a3d1d63e4abe5e7e 100644 (file)
@@ -2,10 +2,26 @@
 // Name:        power.h
 // Purpose:     interface of wxPowerEvent
 // Author:      wxWidgets team
-// RCS-ID:      $Id$
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
+enum wxPowerType
+{
+    wxPOWER_SOCKET,
+    wxPOWER_BATTERY,
+    wxPOWER_UNKNOWN
+};
+
+enum wxBatteryState
+{
+    wxBATTERY_NORMAL_STATE,    // system is fully usable
+    wxBATTERY_LOW_STATE,       // start to worry
+    wxBATTERY_CRITICAL_STATE,  // save quickly
+    wxBATTERY_SHUTDOWN_STATE,  // too late
+    wxBATTERY_UNKNOWN_STATE
+};
+
+
 /**
     @class wxPowerEvent
 
 class wxPowerEvent : public wxEvent
 {
 public:
+    wxPowerEvent();
+    wxPowerEvent(wxEventType evtType);
+    
     /**
         Call this to prevent suspend from taking place in @c wxEVT_POWER_SUSPENDING
         handler (it is ignored for all the others).
     */
     void Veto();
+
+    /**
+       Returns whether Veto has been called.
+    */
+    bool IsVetoed() const;
 };
 
+wxEventType wxEVT_POWER_SUSPENDING;
+wxEventType wxEVT_POWER_SUSPENDED;
+wxEventType wxEVT_POWER_SUSPEND_CANCEL;
+wxEventType wxEVT_POWER_RESUME;
+
+