Interface fixes for Phoenix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71491 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2012-05-19 06:21:25 +00:00
parent a58eecd6d1
commit 2de2a46833

View File

@@ -61,10 +61,24 @@ enum wxBatteryState
class wxPowerEvent : public wxEvent class wxPowerEvent : public wxEvent
{ {
public: public:
wxPowerEvent();
wxPowerEvent(wxEventType evtType);
/** /**
Call this to prevent suspend from taking place in @c wxEVT_POWER_SUSPENDING Call this to prevent suspend from taking place in @c wxEVT_POWER_SUSPENDING
handler (it is ignored for all the others). handler (it is ignored for all the others).
*/ */
void Veto(); 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;