4
* Authors: Rodrigo Moya <rodrigo.moya@canonical.com>
6
* Copyright 2010 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/>.
22
#ifndef __SYNCDAEMON_FOLDERS_INTERFACE_H__
23
#define __SYNCDAEMON_FOLDERS_INTERFACE_H__
25
#include "syncdaemon-daemon.h"
26
#include "syncdaemon-interface.h"
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))
37
typedef struct _SyncdaemonFoldersInterfacePrivate SyncdaemonFoldersInterfacePrivate;
40
SyncdaemonInterface parent;
41
SyncdaemonFoldersInterfacePrivate *priv;
42
} SyncdaemonFoldersInterface;
45
SyncdaemonInterfaceClass parent_class;
46
} SyncdaemonFoldersInterfaceClass;
48
GType syncdaemon_folders_interface_get_type (void);
50
SyncdaemonFoldersInterface *syncdaemon_folders_interface_new (SyncdaemonDaemon *daemon);
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);