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

« back to all changes in this revision

Viewing changes to libsyncdaemon/syncdaemon-publicfiles-interface.h

  • Committer: Bazaar Package Importer
  • Author(s): Rodney Dawes
  • Date: 2010-06-08 17:31:18 UTC
  • mto: This revision was merged to the branch mainline in revision 31.
  • Revision ID: james.westby@ubuntu.com-20100608173118-o8s897ll11rtne99
Tags: upstream-1.3.0
ImportĀ upstreamĀ versionĀ 1.3.0

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_PUBLICFILES_INTERFACE_H__
 
23
#define __SYNCDAEMON_PUBLICFILES_INTERFACE_H__
 
24
 
 
25
#include "syncdaemon-daemon.h"
 
26
#include "syncdaemon-interface.h"
 
27
 
 
28
G_BEGIN_DECLS
 
29
 
 
30
#define SYNCDAEMON_TYPE_PUBLICFILES_INTERFACE                (syncdaemon_publicfiles_interface_get_type ())
 
31
#define SYNCDAEMON_PUBLICFILES_INTERFACE(obj)                (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNCDAEMON_TYPE_PUBLICFILES_INTERFACE, SyncdaemonPublicfilesInterface))
 
32
#define SYNCDAEMON_IS_PUBLICFILES_INTERFACE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNCDAEMON_TYPE_PUBLICFILES_INTERFACE))
 
33
#define SYNCDAEMON_PUBLICFILES_INTERFACE_CLASS(klass)        (G_TYPE_CHECK_CLASS_CAST ((klass), SYNCDAEMON_TYPE_PUBLICFILES_INTERFACE, SyncdaemonPublicfilesInterfaceClass))
 
34
#define SYNCDAEMON_IS_PUBLICFILES_INTERFACE_CLASS(klass)     (G_TYPE_CHECK_CLASS_TYPE ((klass), SYNCDAEMON_TYPE_PUBLICFILES_INTERFACE))
 
35
#define SYNCDAEMON_PUBLICFILES_INTERFACE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), SYNCDAEMON_TYPE_PUBLICFILES_INTERFACE, SyncdaemonPublicfilesInterfaceClass))
 
36
 
 
37
typedef struct _SyncdaemonPublicfilesInterfacePrivate SyncdaemonPublicfilesInterfacePrivate;
 
38
 
 
39
typedef struct {
 
40
        SyncdaemonInterface parent;
 
41
        SyncdaemonPublicfilesInterfacePrivate *priv;
 
42
} SyncdaemonPublicfilesInterface;
 
43
 
 
44
typedef struct {
 
45
        SyncdaemonInterfaceClass parent_class;
 
46
} SyncdaemonPublicfilesInterfaceClass;
 
47
 
 
48
GType                           syncdaemon_publicfiles_interface_get_type (void);
 
49
 
 
50
SyncdaemonPublicfilesInterface *syncdaemon_publicfiles_interface_new (SyncdaemonDaemon *daemon);
 
51
 
 
52
void                            syncdaemon_publicfiles_interface_change_public_access (SyncdaemonPublicfilesInterface *interface,
 
53
                                                                                       const gchar *share_id,
 
54
                                                                                       const gchar *node_id,
 
55
                                                                                       gboolean is_public);
 
56
void                            syncdaemon_publicfiles_interface_get_public_files (SyncdaemonPublicfilesInterface *interface);
 
57
 
 
58
G_END_DECLS
 
59
 
 
60
#endif