///////////////////////////////////////////////////////////////////////////////
-// Name: wx/include/wx/power.h
+// Name: wx/power.h
// Purpose: functions and classes for system power management
// Author: Vadim Zeitlin
// Modified by:
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)
-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&);
WXDLLIMPEXP_BASE wxBatteryState wxGetBatteryState();
#endif // _WX_POWER_H_
-