1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
3
* Copyright (C) 2009 Richard Hughes <richard@hughsie.com>
5
* Licensed under the GNU General Public License Version 2
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 2 of the License, or
10
* (at your option) any later version.
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22
#ifndef __UP_WAKEUPS_H
23
#define __UP_WAKEUPS_H
25
#include <glib-object.h>
26
#include <dbus/dbus-glib.h>
30
#define UP_TYPE_WAKEUPS (up_wakeups_get_type ())
31
#define UP_WAKEUPS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), UP_TYPE_WAKEUPS, UpWakeups))
32
#define UP_WAKEUPS_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), UP_TYPE_WAKEUPS, UpWakeupsClass))
33
#define UP_IS_WAKEUPS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), UP_TYPE_WAKEUPS))
34
#define UP_IS_WAKEUPS_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), UP_TYPE_WAKEUPS))
35
#define UP_WAKEUPS_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), UP_TYPE_WAKEUPS, UpWakeupsClass))
37
typedef struct UpWakeupsPrivate UpWakeupsPrivate;
42
UpWakeupsPrivate *priv;
47
GObjectClass parent_class;
48
void (* total_changed) (UpWakeups *wakeups,
50
void (* data_changed) (UpWakeups *wakeups);
53
UpWakeups *up_wakeups_new (void);
54
void up_wakeups_test (gpointer user_data);
56
GType up_wakeups_get_type (void);
57
gboolean up_wakeups_get_total (UpWakeups *wakeups,
60
gboolean up_wakeups_get_data (UpWakeups *wakeups,
66
#endif /* __UP_WAKEUPS_H */