]> git.saurik.com Git - wxWidgets.git/blob - src/common/powercmn.cpp
Remove all lines containing cvs/svn "$Id$" keyword.
[wxWidgets.git] / src / common / powercmn.cpp
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: src/common/powercmn.cpp
3 // Purpose: power event types and stubs for power functions
4 // Author: Vadim Zeitlin
5 // Modified by:
6 // Created: 2006-05-27
7 // Copyright: (c) 2006 Vadim Zeitlin <vadim@wxwindows.org>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
10
11 // ============================================================================
12 // declarations
13 // ============================================================================
14
15 // ----------------------------------------------------------------------------
16 // headers
17 // ----------------------------------------------------------------------------
18
19 // for compilers that support precompilation, includes "wx.h".
20 #include "wx/wxprec.h"
21
22 #ifdef __BORLANDC__
23 #pragma hdrstop
24 #endif
25
26 #ifndef WX_PRECOMP
27 #endif //WX_PRECOMP
28
29 #include "wx/power.h"
30
31 // ============================================================================
32 // implementation
33 // ============================================================================
34
35 #ifdef wxHAS_POWER_EVENTS
36 wxDEFINE_EVENT( wxEVT_POWER_SUSPENDING, wxPowerEvent );
37 wxDEFINE_EVENT( wxEVT_POWER_SUSPENDED, wxPowerEvent );
38 wxDEFINE_EVENT( wxEVT_POWER_SUSPEND_CANCEL, wxPowerEvent );
39 wxDEFINE_EVENT( wxEVT_POWER_RESUME, wxPowerEvent );
40
41 IMPLEMENT_DYNAMIC_CLASS(wxPowerEvent, wxEvent)
42 #endif
43
44 // provide stubs for the systems not implementing these functions
45 #if !defined(__WINDOWS__)
46
47 wxPowerType wxGetPowerType()
48 {
49 return wxPOWER_UNKNOWN;
50 }
51
52 wxBatteryState wxGetBatteryState()
53 {
54 return wxBATTERY_UNKNOWN_STATE;
55 }
56
57 #endif // systems without power management functions
58