X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/515a581d0dcf9f73d50d470ab3ff1715052fe0e1..4f2511d706e5274a34e1521e11c1b95fed735b42:/include/wx/power.h diff --git a/include/wx/power.h b/include/wx/power.h index b9ae9efc95..f1a23b9fe2 100644 --- a/include/wx/power.h +++ b/include/wx/power.h @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////////// -// Name: wx/include/wx/power.h +// Name: wx/power.h // Purpose: functions and classes for system power management // Author: Vadim Zeitlin // Modified by: @@ -66,14 +66,14 @@ public: private: bool m_veto; + + DECLARE_ABSTRACT_CLASS(wxPowerEvent) }; -BEGIN_DECLARE_EVENT_TYPES() - DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_BASE, wxEVT_POWER_SUSPENDING, 406) - DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_BASE, wxEVT_POWER_SUSPENDED, 407) - DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_BASE, wxEVT_POWER_SUSPEND_CANCEL, 408) - DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_BASE, wxEVT_POWER_RESUME, 444) -END_DECLARE_EVENT_TYPES() +extern WXDLLIMPEXP_BASE const wxEventType wxEVT_POWER_SUSPENDING; +extern WXDLLIMPEXP_BASE const wxEventType wxEVT_POWER_SUSPENDED; +extern WXDLLIMPEXP_BASE const wxEventType wxEVT_POWER_SUSPEND_CANCEL; +extern WXDLLIMPEXP_BASE const wxEventType wxEVT_POWER_RESUME; typedef void (wxEvtHandler::*wxPowerEventFunction)(wxPowerEvent&); @@ -105,4 +105,3 @@ WXDLLIMPEXP_BASE wxPowerType wxGetPowerType(); WXDLLIMPEXP_BASE wxBatteryState wxGetBatteryState(); #endif // _WX_POWER_H_ -