]>
git.saurik.com Git - wxWidgets.git/blob - interface/power.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxPowerEvent
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
13 The power events are generated when the system power state changes, e.g. the
14 system is suspended, hibernated, plugged into or unplugged from the wall socket
17 Notice that currently only suspend and resume events are generated and only
18 under MS Windows platform. To avoid the need to change the code using this
19 event later when these events are implemented on the other platforms please use
20 the test @c ifdef wxHAS_POWER_EVENTS instead of directly testing for
21 the platform in your code: this symbol will be defined for all platforms
22 supporting the power events.
27 @see wxGetPowerType(), wxGetBatteryState()
29 class wxPowerEvent
: public wxEvent
33 Call this to prevent suspend from taking place in
34 @c wxEVT_POWER_SUSPENDING handler (it is ignored for all the others).