~ubuntu-branches/ubuntu/oneiric/ubuntuone-client/oneiric

« back to all changes in this revision

Viewing changes to libsyncdaemon/syncdaemon-transfer-info.h

  • Committer: Bazaar Package Importer
  • Author(s): Rodrigo Moya
  • Date: 2010-06-23 23:08:15 UTC
  • mto: This revision was merged to the branch mainline in revision 34.
  • Revision ID: james.westby@ubuntu.com-20100623230815-4m3ugh10u9x9xzw5
Tags: upstream-1.3.2
ImportĀ upstreamĀ versionĀ 1.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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_TRANSFER_INFO_H__
 
23
#define __SYNCDAEMON_TRANSFER_INFO_H__
 
24
 
 
25
#include <glib-object.h>
 
26
 
 
27
G_BEGIN_DECLS
 
28
 
 
29
#define SYNCDAEMON_TYPE_TRANSFER_INFO                (syncdaemon_transfer_info_get_type ())
 
30
#define SYNCDAEMON_TRANSFER_INFO(obj)                (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNCDAEMON_TYPE_TRANSFER_INFO, SyncdaemonTransferInfo))
 
31
#define SYNCDAEMON_IS_TRANSFER_INFO(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNCDAEMON_TYPE_TRANSFER_INFO))
 
32
#define SYNCDAEMON_TRANSFER_INFO_CLASS(klass)        (G_TYPE_CHECK_CLASS_CAST ((klass), SYNCDAEMON_TYPE_TRANSFER_INFO, SyncdaemonTransferInfoClass))
 
33
#define SYNCDAEMON_IS_TRANSFER_INFO_CLASS(klass)     (G_TYPE_CHECK_CLASS_TYPE ((klass), SYNCDAEMON_TYPE_TRANSFER_INFO))
 
34
#define SYNCDAEMON_TRANSFER_INFO_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), SYNCDAEMON_TYPE_TRANSFER_INFO, SyncdaemonTransferInfoClass))
 
35
 
 
36
typedef struct _SyncdaemonTransferInfoPrivate SyncdaemonTransferInfoPrivate;
 
37
 
 
38
typedef struct {
 
39
        GObject parent;
 
40
        SyncdaemonTransferInfoPrivate *priv;
 
41
} SyncdaemonTransferInfo;
 
42
 
 
43
typedef struct {
 
44
        GObjectClass parent_class;
 
45
} SyncdaemonTransferInfoClass;
 
46
 
 
47
GType                   syncdaemon_transfer_info_get_type (void);
 
48
 
 
49
SyncdaemonTransferInfo *syncdaemon_transfer_info_new (const gchar *path);
 
50
SyncdaemonTransferInfo *syncdaemon_transfer_info_new_from_hash_table (GHashTable *hash);
 
51
 
 
52
const gchar *syncdaemon_transfer_info_get_path (SyncdaemonTransferInfo *tinfo);
 
53
void         syncdaemon_transfer_info_set_path (SyncdaemonTransferInfo *tinfo, const gchar *path);
 
54
const gchar *syncdaemon_transfer_info_get_share_id (SyncdaemonTransferInfo *tinfo);
 
55
void         syncdaemon_transfer_info_set_share_id (SyncdaemonTransferInfo *tinfo, const gchar *share_id);
 
56
const gchar *syncdaemon_transfer_info_get_node_id (SyncdaemonTransferInfo *tinfo);
 
57
void         syncdaemon_transfer_info_set_node_id (SyncdaemonTransferInfo *tinfo, const gchar *node_id);
 
58
glong        syncdaemon_transfer_info_get_bytes_transferred (SyncdaemonTransferInfo *tinfo);
 
59
void         syncdaemon_transfer_info_set_bytes_transferred (SyncdaemonTransferInfo *tinfo, glong bytes);
 
60
glong        syncdaemon_transfer_info_get_total_size (SyncdaemonTransferInfo *tinfo);
 
61
void         syncdaemon_transfer_info_set_total_size (SyncdaemonTransferInfo *tinfo, glong bytes);
 
62
 
 
63
G_END_DECLS
 
64
 
 
65
#endif