X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/355debca0650f70aa8ed4803b2ebc45541e03d9f..50ccc908dc4e6376de91edd7f74018898fd690b1:/include/wx/power.h diff --git a/include/wx/power.h b/include/wx/power.h index e70fb6c215..ccd64e8247 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,13 +66,15 @@ public: private: bool m_veto; + + DECLARE_ABSTRACT_CLASS(wxPowerEvent) }; BEGIN_DECLARE_EVENT_TYPES() - DECLARE_EVENT_TYPE(wxEVT_POWER_SUSPENDING, 406) - DECLARE_EVENT_TYPE(wxEVT_POWER_SUSPENDED, 407) - DECLARE_EVENT_TYPE(wxEVT_POWER_SUSPEND_CANCEL, 408) - DECLARE_EVENT_TYPE(wxEVT_POWER_RESUME, 444) + 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() typedef void (wxEvtHandler::*wxPowerEventFunction)(wxPowerEvent&); @@ -105,4 +107,3 @@ WXDLLIMPEXP_BASE wxPowerType wxGetPowerType(); WXDLLIMPEXP_BASE wxBatteryState wxGetBatteryState(); #endif // _WX_POWER_H_ -