1
/* vi:set et ai sw=2 sts=2 ts=2: */
3
* Copyright (c) 2009 Jannis Pohlmann <jannis@xfce.org>
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License as
7
* published by the Free Software Foundation; either version 2 of
8
* the License, or (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public
16
* License along with this program; if not, write to the Free
17
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18
* Boston, MA 02110-1301, USA.
21
#ifndef __TUMBLER_CACHE_SERVICE_H__
22
#define __TUMBLER_CACHE_SERVICE_H__
24
#include <glib-object.h>
26
#include <dbus/dbus-glib.h>
30
#define TUMBLER_TYPE_CACHE_SERVICE (tumbler_cache_service_get_type ())
31
#define TUMBLER_CACHE_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TUMBLER_TYPE_CACHE_SERVICE, TumblerCacheService))
32
#define TUMBLER_CACHE_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TUMBLER_TYPE_CACHE_SERVICE, TumblerCacheServiceClass))
33
#define TUMBLER_IS_CACHE_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TUMBLER_TYPE_CACHE_SERVICE))
34
#define TUMBLER_IS_CACHE_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TUMBLER_TYPE_CACHE_SERVICE)
35
#define TUMBLER_CACHE_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TUMBLER_TYPE_CACHE_SERVICE, TumblerCacheServiceClass))
37
typedef struct _TumblerCacheServiceClass TumblerCacheServiceClass;
38
typedef struct _TumblerCacheService TumblerCacheService;
40
GType tumbler_cache_service_get_type (void) G_GNUC_CONST;
42
TumblerCacheService *tumbler_cache_service_new (DBusGConnection *connection) G_GNUC_MALLOC G_GNUC_WARN_UNUSED_RESULT;
43
gboolean tumbler_cache_service_start (TumblerCacheService *service,
45
void tumbler_cache_service_move (TumblerCacheService *service,
46
const GStrv from_uris,
48
DBusGMethodInvocation *context);
49
void tumbler_cache_service_copy (TumblerCacheService *service,
50
const GStrv from_uris,
52
DBusGMethodInvocation *context);
53
void tumbler_cache_service_delete (TumblerCacheService *service,
55
DBusGMethodInvocation *context);
56
void tumbler_cache_service_cleanup (TumblerCacheService *service,
57
const gchar *uri_prefix,
59
DBusGMethodInvocation *context);
64
#endif /* !__TUMBLER_CACHE_SERVICE_H__ */