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

« back to all changes in this revision

Viewing changes to libsyncdaemon/syncdaemon-folders-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_FOLDERS_INTERFACE_H__
 
23
#define __SYNCDAEMON_FOLDERS_INTERFACE_H__
 
24
 
 
25
#include "syncdaemon-daemon.h"
 
26
#include "syncdaemon-interface.h"
 
27
 
 
28
G_BEGIN_DECLS
 
29
 
 
30
#define SYNCDAEMON_TYPE_FOLDERS_INTERFACE                (syncdaemon_folders_interface_get_type ())
 
31
#define SYNCDAEMON_FOLDERS_INTERFACE(obj)                (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNCDAEMON_TYPE_FOLDERS_INTERFACE, SyncdaemonFoldersInterface))
 
32
#define SYNCDAEMON_IS_FOLDERS_INTERFACE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNCDAEMON_TYPE_FOLDERS_INTERFACE))
 
33
#define SYNCDAEMON_FOLDERS_INTERFACE_CLASS(klass)        (G_TYPE_CHECK_CLASS_CAST ((klass), SYNCDAEMON_TYPE_FOLDERS_INTERFACE, SyncdaemonFoldersInterfaceClass))
 
34
#define SYNCDAEMON_IS_FOLDERS_INTERFACE_CLASS(klass)     (G_TYPE_CHECK_CLASS_TYPE ((klass), SYNCDAEMON_TYPE_FOLDERS_INTERFACE))
 
35
#define SYNCDAEMON_FOLDERS_INTERFACE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), SYNCDAEMON_TYPE_FOLDERS_INTERFACE, SyncdaemonFoldersInterfaceClass))
 
36
 
 
37
typedef struct _SyncdaemonFoldersInterfacePrivate SyncdaemonFoldersInterfacePrivate;
 
38
 
 
39
typedef struct {
 
40
        SyncdaemonInterface parent;
 
41
        SyncdaemonFoldersInterfacePrivate *priv;
 
42
} SyncdaemonFoldersInterface;
 
43
 
 
44
typedef struct {
 
45
        SyncdaemonInterfaceClass parent_class;
 
46
} SyncdaemonFoldersInterfaceClass;
 
47
 
 
48
GType                       syncdaemon_folders_interface_get_type (void);
 
49
 
 
50
SyncdaemonFoldersInterface *syncdaemon_folders_interface_new (SyncdaemonDaemon *daemon);
 
51
 
 
52
void                        syncdaemon_folders_interface_create (SyncdaemonFoldersInterface *interface, const gchar *path);
 
53
void                        syncdaemon_folders_interface_delete (SyncdaemonFoldersInterface *interface, const gchar *folder_id);
 
54
GSList                     *syncdaemon_folders_interface_get_folders (SyncdaemonFoldersInterface *interface);
 
55
GHashTable                 *syncdaemon_folders_interface_get_info (SyncdaemonFoldersInterface *interface, const gchar *path);
 
56
void                        syncdaemon_folders_interface_refresh_volumes (SyncdaemonFoldersInterface *interface);
 
57
void                        syncdaemon_folders_interface_subscribe (SyncdaemonFoldersInterface *interface, const gchar *folder_id);
 
58
void                        syncdaemon_folders_interface_unsubscribe (SyncdaemonFoldersInterface *interface, const gchar *folder_id);
 
59
 
 
60
G_END_DECLS
 
61
 
 
62
#endif