~ubuntu-branches/ubuntu/precise/xfce4-power-manager/precise

« back to all changes in this revision

Viewing changes to src/xfpm-engine.h

  • Committer: Bazaar Package Importer
  • Author(s): Lionel Le Folgoc
  • Date: 2010-12-09 18:28:34 UTC
  • mto: This revision was merged to the branch mainline in revision 19.
  • Revision ID: james.westby@ubuntu.com-20101209182834-tjz13qcewqlq19eu
Tags: upstream-1.0.1
ImportĀ upstreamĀ versionĀ 1.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * * Copyright (C) 2008-2009 Ali <aliov@xfce.org>
3
 
 *
4
 
 * Licensed under the GNU General Public License Version 2
5
 
 *
6
 
 * This program is free software; you can redistribute it and/or modify
7
 
 * it under the terms of the GNU General Public License as published by
8
 
 * the Free Software Foundation; either version 2 of the License, or
9
 
 * (at your option) any later version.
10
 
 *
11
 
 * This program is distributed in the hope that it will be useful,
12
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 
 * GNU General Public License for more details.
15
 
 *
16
 
 * You should have received a copy of the GNU General Public License
17
 
 * along with this program; if not, write to the Free Software
18
 
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
19
 
 */
20
 
 
21
 
#ifndef __XFPM_ENGINE_H
22
 
#define __XFPM_ENGINE_H
23
 
 
24
 
#include <glib-object.h>
25
 
 
26
 
G_BEGIN_DECLS
27
 
 
28
 
#define XFPM_TYPE_ENGINE        (xfpm_engine_get_type () )
29
 
#define XFPM_ENGINE(o)          (G_TYPE_CHECK_INSTANCE_CAST((o), XFPM_TYPE_ENGINE, XfpmEngine))
30
 
#define XFPM_IS_ENGINE(o)       (G_TYPE_CHECK_INSTANCE_TYPE((o), XFPM_TYPE_ENGINE))
31
 
 
32
 
typedef struct XfpmEnginePrivate XfpmEnginePrivate;
33
 
 
34
 
typedef struct
35
 
{
36
 
    GObject               parent;
37
 
    XfpmEnginePrivate    *priv;
38
 
    
39
 
} XfpmEngine;
40
 
 
41
 
typedef struct
42
 
{
43
 
    GObjectClass          parent_class;
44
 
    
45
 
    void                  (*on_battery_changed)         (XfpmEngine *engine,
46
 
                                                         gboolean    on_battery);
47
 
    
48
 
    void                  (*low_battery_changed)        (XfpmEngine *engine,
49
 
                                                         gboolean    low_battery);
50
 
                                                         
51
 
} XfpmEngineClass;
52
 
 
53
 
GType                     xfpm_engine_get_type          (void) G_GNUC_CONST;
54
 
XfpmEngine               *xfpm_engine_new               (void);
55
 
 
56
 
void                      xfpm_engine_get_info          (XfpmEngine *engine,
57
 
                                                         GHashTable *hash);
58
 
                                                                                                               
59
 
void                     xfpm_engine_reload_hal_objects (XfpmEngine *engine);
60
 
G_END_DECLS
61
 
 
62
 
#endif /* __XFPM_ENGINE_H */