4
* Authors: Rodrigo Moya <rodrigo.moya@canonical.com>
6
* Copyright 2010-2012 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/>.
20
* In addition, as a special exception, the copyright holders give
21
* permission to link the code of portions of this program with the
22
* OpenSSL library under certain conditions as described in each
23
* individual source file, and distribute linked combinations
25
* You must obey the GNU General Public License in all respects
26
* for all of the code used other than OpenSSL. If you modify
27
* file(s) with this exception, you may extend this exception to your
28
* version of the file(s), but you are not obligated to do so. If you
29
* do not wish to do so, delete this exception statement from your
30
* version. If you delete this exception statement from all source
31
* files in the program, then also delete it here.
35
#ifndef __SYNCDAEMON_TRANSFER_INFO_H__
36
#define __SYNCDAEMON_TRANSFER_INFO_H__
38
#include <glib-object.h>
42
#define SYNCDAEMON_TYPE_TRANSFER_INFO (syncdaemon_transfer_info_get_type ())
43
#define SYNCDAEMON_TRANSFER_INFO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNCDAEMON_TYPE_TRANSFER_INFO, SyncdaemonTransferInfo))
44
#define SYNCDAEMON_IS_TRANSFER_INFO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNCDAEMON_TYPE_TRANSFER_INFO))
45
#define SYNCDAEMON_TRANSFER_INFO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SYNCDAEMON_TYPE_TRANSFER_INFO, SyncdaemonTransferInfoClass))
46
#define SYNCDAEMON_IS_TRANSFER_INFO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SYNCDAEMON_TYPE_TRANSFER_INFO))
47
#define SYNCDAEMON_TRANSFER_INFO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SYNCDAEMON_TYPE_TRANSFER_INFO, SyncdaemonTransferInfoClass))
49
typedef struct _SyncdaemonTransferInfoPrivate SyncdaemonTransferInfoPrivate;
53
SyncdaemonTransferInfoPrivate *priv;
54
} SyncdaemonTransferInfo;
57
GObjectClass parent_class;
58
} SyncdaemonTransferInfoClass;
60
GType syncdaemon_transfer_info_get_type (void);
62
SyncdaemonTransferInfo *syncdaemon_transfer_info_new (const gchar *path);
63
SyncdaemonTransferInfo *syncdaemon_transfer_info_new_from_hash_table (GHashTable *hash);
65
const gchar *syncdaemon_transfer_info_get_path (SyncdaemonTransferInfo *tinfo);
66
void syncdaemon_transfer_info_set_path (SyncdaemonTransferInfo *tinfo, const gchar *path);
67
const gchar *syncdaemon_transfer_info_get_share_id (SyncdaemonTransferInfo *tinfo);
68
void syncdaemon_transfer_info_set_share_id (SyncdaemonTransferInfo *tinfo, const gchar *share_id);
69
const gchar *syncdaemon_transfer_info_get_node_id (SyncdaemonTransferInfo *tinfo);
70
void syncdaemon_transfer_info_set_node_id (SyncdaemonTransferInfo *tinfo, const gchar *node_id);
71
glong syncdaemon_transfer_info_get_bytes_transferred (SyncdaemonTransferInfo *tinfo);
72
void syncdaemon_transfer_info_set_bytes_transferred (SyncdaemonTransferInfo *tinfo, glong bytes);
73
glong syncdaemon_transfer_info_get_total_size (SyncdaemonTransferInfo *tinfo);
74
void syncdaemon_transfer_info_set_total_size (SyncdaemonTransferInfo *tinfo, glong bytes);