]> git.saurik.com Git - wxWidgets.git/blame - src/common/powercmn.cpp
remove unnecessary include of wx/cairo.h
[wxWidgets.git] / src / common / powercmn.cpp
CommitLineData
355debca
VZ
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// RCS-ID: $Id$
8// Copyright: (c) 2006 Vadim Zeitlin <vadim@wxwindows.org>
9// Licence: wxWindows licence
10///////////////////////////////////////////////////////////////////////////////
11
12// ============================================================================
13// declarations
14// ============================================================================
15
16// ----------------------------------------------------------------------------
17// headers
18// ----------------------------------------------------------------------------
19
20// for compilers that support precompilation, includes "wx.h".
21#include "wx/wxprec.h"
22
23#ifdef __BORLANDC__
24 #pragma hdrstop
25#endif
26
27#ifndef WX_PRECOMP
28#endif //WX_PRECOMP
29
30#include "wx/power.h"
31
32// ============================================================================
33// implementation
34// ============================================================================
35
36#ifdef wxHAS_POWER_EVENTS
9b11752c
VZ
37 wxDEFINE_EVENT( wxEVT_POWER_SUSPENDING, wxPowerEvent );
38 wxDEFINE_EVENT( wxEVT_POWER_SUSPENDED, wxPowerEvent );
39 wxDEFINE_EVENT( wxEVT_POWER_SUSPEND_CANCEL, wxPowerEvent );
40 wxDEFINE_EVENT( wxEVT_POWER_RESUME, wxPowerEvent );
391e226e 41
d0960f6d 42 IMPLEMENT_DYNAMIC_CLASS(wxPowerEvent, wxEvent)
355debca
VZ
43#endif
44
45// provide stubs for the systems not implementing these functions
d98a58c5 46#if !defined(__WINDOWS__)
355debca
VZ
47
48wxPowerType wxGetPowerType()
49{
50 return wxPOWER_UNKNOWN;
51}
52
53wxBatteryState wxGetBatteryState()
54{
55 return wxBATTERY_UNKNOWN_STATE;
56}
57
58#endif // systems without power management functions
59