X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/05b0355af838c4407bf977923d82f07abc098d91..9d94efd8b0385f1afd70f71c8242a28d61527a68:/interface/wx/power.h diff --git a/interface/wx/power.h b/interface/wx/power.h index da34f5c416..1b20ce1de4 100644 --- a/interface/wx/power.h +++ b/interface/wx/power.h @@ -2,7 +2,6 @@ // Name: power.h // Purpose: interface of wxPowerEvent // Author: wxWidgets team -// RCS-ID: $Id$ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -61,10 +60,24 @@ enum wxBatteryState 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; + +