2
* * Copyright (C) 2009 Ali <aliov@xfce.org>
4
* Licensed under the GNU General Public License Version 2
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.
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.
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
21
#ifndef __XFPM_BUTTON_HAL_H
22
#define __XFPM_BUTTON_HAL_H
24
#include <glib-object.h>
26
#include "xfpm-enum-glib.h"
30
#define XFPM_TYPE_BUTTON_HAL (xfpm_button_hal_get_type () )
31
#define XFPM_BUTTON_HAL(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), XFPM_TYPE_BUTTON_HAL, XfpmButtonHal))
32
#define XFPM_IS_BUTTON_HAL(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), XFPM_TYPE_BUTTON_HAL))
34
typedef struct XfpmButtonHalPrivate XfpmButtonHalPrivate;
39
XfpmButtonHalPrivate *priv;
45
GObjectClass parent_class;
47
void (*hal_button_pressed) (XfpmButtonHal *button,
50
void (*lid_event) (XfpmButtonHal *button,
55
GType xfpm_button_hal_get_type (void) G_GNUC_CONST;
57
XfpmButtonHal *xfpm_button_hal_get (void);
59
void xfpm_button_hal_get_keys (XfpmButtonHal *button,
63
guint8 xfpm_button_hal_get_mapped_keys (XfpmButtonHal *button) G_GNUC_PURE;
67
#endif /* __XFPM_BUTTON_HAL_H */