4
* Authors: Rodrigo Moya <rodrigo.moya@canonical.com>
6
* Copyright 2010 Canonical Ltd.
8
* This program is free software: you can redistribute it and/or modify it
9
* under the terms of the GNU General Public License version 3, as published
10
* by the Free Software Foundation.
12
* This program is distributed in the hope that it will be useful, but
13
* WITHOUT ANY WARRANTY; without even the implied warranties of
14
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
15
* PURPOSE. See the GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License along
18
* with this program. If not, see <http://www.gnu.org/licenses/>.
22
#ifndef __SYNCDAEMON_EVENTS_INTERFACE_H__
23
#define __SYNCDAEMON_EVENTS_INTERFACE_H__
25
#include "syncdaemon-daemon.h"
26
#include "syncdaemon-interface.h"
30
#define SYNCDAEMON_TYPE_EVENTS_INTERFACE (syncdaemon_events_interface_get_type ())
31
#define SYNCDAEMON_EVENTS_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNCDAEMON_TYPE_EVENTS_INTERFACE, SyncdaemonEventsInterface))
32
#define SYNCDAEMON_IS_EVENTS_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNCDAEMON_TYPE_EVENTS_INTERFACE))
33
#define SYNCDAEMON_EVENTS_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SYNCDAEMON_TYPE_EVENTS_INTERFACE, SyncdaemonEventsInterfaceClass))
34
#define SYNCDAEMON_IS_EVENTS_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SYNCDAEMON_TYPE_EVENTS_INTERFACE))
35
#define SYNCDAEMON_EVENTS_INTERFACE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SYNCDAEMON_TYPE_EVENTS_INTERFACE, SyncdaemonEventsInterfaceClass))
37
typedef struct _SyncdaemonEventsInterfacePrivate SyncdaemonEventsInterfacePrivate;
40
SyncdaemonInterface parent;
41
SyncdaemonEventsInterfacePrivate *priv;
42
} SyncdaemonEventsInterface;
45
SyncdaemonInterfaceClass parent_class;
46
} SyncdaemonEventsInterfaceClass;
48
GType syncdaemon_events_interface_get_type (void);
50
SyncdaemonEventsInterface *syncdaemon_events_interface_new (SyncdaemonDaemon *daemon);
52
void syncdaemon_events_interface_push_event (SyncdaemonEventsInterface *interface,
53
const gchar *event_name,