~ubuntu-branches/ubuntu/saucy/ubuntuone-client/saucy-proposed

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Rodney Dawes
  • Date: 2013-07-11 15:11:07 UTC
  • mfrom: (1.1.83)
  • Revision ID: package-import@ubuntu.com-20130711151107-6tbv4n9er446e2yy
Tags: 13.07-0ubuntu1
* New upstream release.
  - Remove libsyncdaemon and convert to pure python project.
* debian/control:
  - Update dependencies for changes.
  - Drop libsyncdaemon packages. (LP: #1196684)
* debian/rules:
  - Convert to pure dh and update for build system changes.
* debian/tests:
  - Add autopkgtest configuration.

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-2012 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
 
 * 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
24
 
 * including the two.
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.
32
 
 *
33
 
 */
34
 
 
35
 
#ifndef __SYNCDAEMON_SHARE_INFO_H__
36
 
#define __SYNCDAEMON_SHARE_INFO_H__
37
 
 
38
 
#include <glib-object.h>
39
 
 
40
 
G_BEGIN_DECLS
41
 
 
42
 
#define SYNCDAEMON_TYPE_SHARE_INFO                (syncdaemon_share_info_get_type ())
43
 
#define SYNCDAEMON_SHARE_INFO(obj)                (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNCDAEMON_TYPE_SHARE_INFO, SyncdaemonShareInfo))
44
 
#define SYNCDAEMON_IS_SHARE_INFO(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNCDAEMON_TYPE_SHARE_INFO))
45
 
#define SYNCDAEMON_SHARE_INFO_CLASS(klass)        (G_TYPE_CHECK_CLASS_CAST ((klass), SYNCDAEMON_TYPE_SHARE_INFO, SyncdaemonShareInfoClass))
46
 
#define SYNCDAEMON_IS_SHARE_INFO_CLASS(klass)     (G_TYPE_CHECK_CLASS_TYPE ((klass), SYNCDAEMON_TYPE_SHARE_INFO))
47
 
#define SYNCDAEMON_SHARE_INFO_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), SYNCDAEMON_TYPE_SHARE_INFO, SyncdaemonShareInfoClass))
48
 
 
49
 
typedef struct _SyncdaemonShareInfoPrivate SyncdaemonShareInfoPrivate;
50
 
 
51
 
typedef struct {
52
 
        GObject parent;
53
 
        SyncdaemonShareInfoPrivate *priv;
54
 
} SyncdaemonShareInfo;
55
 
 
56
 
typedef struct {
57
 
        GObjectClass parent_class;
58
 
} SyncdaemonShareInfoClass;
59
 
 
60
 
typedef enum {
61
 
        SYNCDAEMON_SHARE_INFO_TYPE_UNKNOWN,
62
 
        SYNCDAEMON_SHARE_INFO_TYPE_SHARED,
63
 
        SYNCDAEMON_SHARE_INFO_TYPE_SHARE
64
 
} SyncdaemonShareInfoType;
65
 
 
66
 
GType                syncdaemon_share_info_get_type (void);
67
 
SyncdaemonShareInfo *syncdaemon_share_info_new (void);
68
 
SyncdaemonShareInfo *syncdaemon_share_info_new_from_hash_table (GHashTable *hash);
69
 
 
70
 
const gchar         *syncdaemon_share_info_get_name (SyncdaemonShareInfo *sinfo);
71
 
void                 syncdaemon_share_info_set_name (SyncdaemonShareInfo *sinfo, const gchar *name);
72
 
SyncdaemonShareInfoType syncdaemon_share_info_get_share_type (SyncdaemonShareInfo *sinfo);
73
 
void                 syncdaemon_share_info_set_share_type (SyncdaemonShareInfo *sinfo, SyncdaemonShareInfoType type);
74
 
const gchar         *syncdaemon_share_info_get_path (SyncdaemonShareInfo *sinfo);
75
 
void                 syncdaemon_share_info_set_path (SyncdaemonShareInfo *sinfo, const gchar *path);
76
 
const gchar         *syncdaemon_share_info_get_username (SyncdaemonShareInfo *sinfo);
77
 
void                 syncdaemon_share_info_set_username (SyncdaemonShareInfo *sinfo, const gchar *username);
78
 
const gchar         *syncdaemon_share_info_get_user_visible_name (SyncdaemonShareInfo *sinfo);
79
 
void                 syncdaemon_share_info_set_user_visible_name (SyncdaemonShareInfo *sinfo, const gchar *user_visible_name);
80
 
const gchar         *syncdaemon_share_info_get_node_id (SyncdaemonShareInfo *sinfo);
81
 
void                 syncdaemon_share_info_set_node_id (SyncdaemonShareInfo *sinfo, const gchar *node_id);
82
 
const gchar         *syncdaemon_share_info_get_volume_id (SyncdaemonShareInfo *sinfo);
83
 
void                 syncdaemon_share_info_set_volume_id (SyncdaemonShareInfo *sinfo, const gchar *volume_id);
84
 
gboolean             syncdaemon_share_info_get_accepted (SyncdaemonShareInfo *sinfo);
85
 
void                 syncdaemon_share_info_set_accepted (SyncdaemonShareInfo *sinfo, gboolean accepted);
86
 
gboolean             syncdaemon_share_info_get_allow_modifications (SyncdaemonShareInfo *sinfo);
87
 
void                 syncdaemon_share_info_set_allow_modifications (SyncdaemonShareInfo *sinfo, gboolean allow_modifications);
88
 
 
89
 
G_END_DECLS
90
 
 
91
 
#endif