~chipaca/ubuntuone-client/u1sdtool-imports-tools-too

531.1.8 by Rodrigo Moya
Added SyncdaemonStatusInterface class
1
/*
2
 * Syncdaemon API
3
 *
4
 * Authors: Rodrigo Moya <rodrigo.moya@canonical.com>
5
 *
6
 * Copyright 2010 Canonical Ltd.
7
 *
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.
11
 *
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.
16
 *
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/>.
19
 *
20
 */
21
22
#ifndef __SYNCDAEMON_STATUS_INTERFACE_H__
23
#define __SYNCDAEMON_STATUS_INTERFACE_H__
24
25
#include "syncdaemon-daemon.h"
26
#include "syncdaemon-interface.h"
543.2.1 by Rodrigo Moya
Added SyncdaemonTransferInfo class to wrap hash table for transfers
27
#include "syncdaemon-transfer-info.h"
531.1.8 by Rodrigo Moya
Added SyncdaemonStatusInterface class
28
29
G_BEGIN_DECLS
30
31
#define SYNCDAEMON_TYPE_STATUS_INTERFACE                (syncdaemon_status_interface_get_type ())
32
#define SYNCDAEMON_STATUS_INTERFACE(obj)                (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNCDAEMON_TYPE_STATUS_INTERFACE, SyncdaemonStatusInterface))
33
#define SYNCDAEMON_IS_STATUS_INTERFACE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNCDAEMON_TYPE_STATUS_INTERFACE))
34
#define SYNCDAEMON_STATUS_INTERFACE_CLASS(klass)        (G_TYPE_CHECK_CLASS_CAST ((klass), SYNCDAEMON_TYPE_STATUS_INTERFACE, SyncdaemonStatusInterfaceClass))
35
#define SYNCDAEMON_IS_STATUS_INTERFACE_CLASS(klass)     (G_TYPE_CHECK_CLASS_TYPE ((klass), SYNCDAEMON_TYPE_STATUS_INTERFACE))
36
#define SYNCDAEMON_STATUS_INTERFACE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), SYNCDAEMON_TYPE_STATUS_INTERFACE, SyncdaemonStatusInterfaceClass))
37
38
typedef struct _SyncdaemonStatusInterfacePrivate SyncdaemonStatusInterfacePrivate;
39
40
typedef struct {
41
	SyncdaemonInterface parent;
42
	SyncdaemonStatusInterfacePrivate *priv;
43
} SyncdaemonStatusInterface;
44
45
typedef struct {
46
	SyncdaemonInterfaceClass parent_class;
47
} SyncdaemonStatusInterfaceClass;
48
49
GType                      syncdaemon_status_interface_get_type (void);
50
51
SyncdaemonStatusInterface *syncdaemon_status_interface_new (SyncdaemonDaemon *daemon);
554.4.1 by Rodrigo Moya
Use SyncdaemonStatusInterface from the Nautilus plugin
52
SyncdaemonStatusInfo      *syncdaemon_status_interface_get_current_status (SyncdaemonStatusInterface *interface);
543.2.1 by Rodrigo Moya
Added SyncdaemonTransferInfo class to wrap hash table for transfers
53
GSList                    *syncdaemon_status_interface_get_current_downloads (SyncdaemonStatusInterface *interface);
54
GSList                    *syncdaemon_status_interface_get_current_uploads (SyncdaemonStatusInterface *interface);
531.1.8 by Rodrigo Moya
Added SyncdaemonStatusInterface class
55
56
G_END_DECLS
57
58
#endif