This keyword is not expanded by Git which means it's not replaced with the correct revision value in the releases made using git-based scripts and it's confusing to have lines with unexpanded "$Id$" in the released files. As expanding them with Git is not that simple (it could be done with git archive and export-subst attribute) and there are not many benefits in having them in the first place, just remove all these lines. If nothing else, this will make an eventual transition to Git simpler. Closes #14487. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
59 lines
1.7 KiB
C++
59 lines
1.7 KiB
C++
///////////////////////////////////////////////////////////////////////////////
|
|
// Name: src/common/powercmn.cpp
|
|
// Purpose: power event types and stubs for power functions
|
|
// Author: Vadim Zeitlin
|
|
// Modified by:
|
|
// Created: 2006-05-27
|
|
// Copyright: (c) 2006 Vadim Zeitlin <vadim@wxwindows.org>
|
|
// Licence: wxWindows licence
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// ============================================================================
|
|
// declarations
|
|
// ============================================================================
|
|
|
|
// ----------------------------------------------------------------------------
|
|
// headers
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// for compilers that support precompilation, includes "wx.h".
|
|
#include "wx/wxprec.h"
|
|
|
|
#ifdef __BORLANDC__
|
|
#pragma hdrstop
|
|
#endif
|
|
|
|
#ifndef WX_PRECOMP
|
|
#endif //WX_PRECOMP
|
|
|
|
#include "wx/power.h"
|
|
|
|
// ============================================================================
|
|
// implementation
|
|
// ============================================================================
|
|
|
|
#ifdef wxHAS_POWER_EVENTS
|
|
wxDEFINE_EVENT( wxEVT_POWER_SUSPENDING, wxPowerEvent );
|
|
wxDEFINE_EVENT( wxEVT_POWER_SUSPENDED, wxPowerEvent );
|
|
wxDEFINE_EVENT( wxEVT_POWER_SUSPEND_CANCEL, wxPowerEvent );
|
|
wxDEFINE_EVENT( wxEVT_POWER_RESUME, wxPowerEvent );
|
|
|
|
IMPLEMENT_DYNAMIC_CLASS(wxPowerEvent, wxEvent)
|
|
#endif
|
|
|
|
// provide stubs for the systems not implementing these functions
|
|
#if !defined(__WINDOWS__)
|
|
|
|
wxPowerType wxGetPowerType()
|
|
{
|
|
return wxPOWER_UNKNOWN;
|
|
}
|
|
|
|
wxBatteryState wxGetBatteryState()
|
|
{
|
|
return wxBATTERY_UNKNOWN_STATE;
|
|
}
|
|
|
|
#endif // systems without power management functions
|
|
|