Remove tests
[pkg-perl] / deb-src / libwx-perl / libwx-perl-0.96 / XS / Power.xsp
1 #############################################################################
2 ## Name:        XS/Power.xsp
3 ## Purpose:     XS++ for power-related events/functions
4 ## Author:      Mattia Barbon
5 ## Modified by:
6 ## Created:     30/07/2006
7 ## RCS-ID:      $Id: Power.xsp 2079 2007-07-08 21:18:04Z mbarbon $
8 ## Copyright:   (c) 2006 Mattia Barbon
9 ## Licence:     This program is free software; you can redistribute it and/or
10 ##              modify it under the same terms as Perl itself
11 #############################################################################
12
13 %module{Wx};
14
15 %typemap{wxPowerType}{simple};
16 %typemap{wxBatteryState}{simple};
17
18 %{
19 #if WXPERL_W_VERSION_GE( 2, 7, 0 )
20
21 #include <wx/power.h>
22
23 #ifdef wxHAS_POWER_EVENTS
24 %}
25
26 %name{Wx::PowerEvent} class wxPowerEvent
27 {
28     void Veto();
29     bool IsVetoed();
30 };
31
32 %{
33 #endif
34 %}
35
36 %name{Wx::GetPowerType} wxPowerType wxGetPowerType();
37 %name{Wx::GetBatteryState} wxBatteryState wxGetBatteryState();
38
39 %{
40 #endif
41 %}