]> git.saurik.com Git - wxWidgets.git/blame - src/common/powercmn.cpp
Somehow, setting a tint color makes gauge work :/.
[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
355debca
VZ
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
9b11752c
VZ
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 );
391e226e 40
d0960f6d 41 IMPLEMENT_DYNAMIC_CLASS(wxPowerEvent, wxEvent)
355debca
VZ
42#endif
43
44// provide stubs for the systems not implementing these functions
d98a58c5 45#if !defined(__WINDOWS__)
355debca
VZ
46
47wxPowerType wxGetPowerType()
48{
49 return wxPOWER_UNKNOWN;
50}
51
52wxBatteryState wxGetBatteryState()
53{
54 return wxBATTERY_UNKNOWN_STATE;
55}
56
57#endif // systems without power management functions
58