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_STATUS_INFO_H__
23
#define __SYNCDAEMON_STATUS_INFO_H__
25
#include <glib-object.h>
29
#define SYNCDAEMON_TYPE_STATUS_INFO (syncdaemon_status_info_get_type ())
30
#define SYNCDAEMON_STATUS_INFO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNCDAEMON_TYPE_STATUS_INFO, SyncdaemonStatusInfo))
31
#define SYNCDAEMON_IS_STATUS_INFO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNCDAEMON_TYPE_STATUS_INFO))
32
#define SYNCDAEMON_STATUS_INFO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SYNCDAEMON_TYPE_STATUS_INFO, SyncdaemonStatusInfoClass))
33
#define SYNCDAEMON_IS_STATUS_INFO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SYNCDAEMON_TYPE_STATUS_INFO))
34
#define SYNCDAEMON_STATUS_INFO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SYNCDAEMON_TYPE_STATUS_INFO, SyncdaemonStatusInfoClass))
36
typedef struct _SyncdaemonStatusInfoPrivate SyncdaemonStatusInfoPrivate;
40
SyncdaemonStatusInfoPrivate *priv;
41
} SyncdaemonStatusInfo;
44
GObjectClass parent_class;
45
} SyncdaemonStatusInfoClass;
47
GType syncdaemon_status_info_get_type (void);
49
SyncdaemonStatusInfo *syncdaemon_status_info_new (void);
50
SyncdaemonStatusInfo *syncdaemon_status_info_new_from_hash_table (GHashTable *hash);
52
gboolean syncdaemon_status_info_get_connected (SyncdaemonStatusInfo *sinfo);
53
void syncdaemon_status_info_set_connected (SyncdaemonStatusInfo *sinfo, gboolean connected);
54
const gchar *syncdaemon_status_info_get_description (SyncdaemonStatusInfo *sinfo);
55
void syncdaemon_status_info_set_description (SyncdaemonStatusInfo *sinfo, const gchar *description);
56
const gchar *syncdaemon_status_info_get_name (SyncdaemonStatusInfo *sinfo);
57
void syncdaemon_status_info_set_name (SyncdaemonStatusInfo *sinfo, const gchar *name);
58
gboolean syncdaemon_status_info_get_online (SyncdaemonStatusInfo *sinfo);
59
void syncdaemon_status_info_set_online (SyncdaemonStatusInfo *sinfo, gboolean connected);
60
const gchar *syncdaemon_status_info_get_queues (SyncdaemonStatusInfo *sinfo);
61
void syncdaemon_status_info_set_queues (SyncdaemonStatusInfo *sinfo, const gchar *queues);