~noskcaj/ubuntu/trusty/tumbler/0.1.30

« back to all changes in this revision

Viewing changes to tumblerd/tumbler-cache-service.h

  • Committer: Bazaar Package Importer
  • Author(s): Lionel Le Folgoc
  • Date: 2010-11-07 16:34:58 UTC
  • Revision ID: james.westby@ubuntu.com-20101107163458-skwfq34vnuavipne
Tags: upstream-0.1.4
ImportĀ upstreamĀ versionĀ 0.1.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* vi:set et ai sw=2 sts=2 ts=2: */
 
2
/*-
 
3
 * Copyright (c) 2009 Jannis Pohlmann <jannis@xfce.org>
 
4
 *
 
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.
 
9
 *
 
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.
 
14
 *
 
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.
 
19
 */
 
20
 
 
21
#ifndef __TUMBLER_CACHE_SERVICE_H__
 
22
#define __TUMBLER_CACHE_SERVICE_H__
 
23
 
 
24
#include <glib-object.h>
 
25
 
 
26
#include <dbus/dbus-glib.h>
 
27
 
 
28
G_BEGIN_DECLS;
 
29
 
 
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))
 
36
 
 
37
typedef struct _TumblerCacheServiceClass TumblerCacheServiceClass;
 
38
typedef struct _TumblerCacheService      TumblerCacheService;
 
39
 
 
40
GType                tumbler_cache_service_get_type   (void) G_GNUC_CONST;
 
41
 
 
42
TumblerCacheService *tumbler_cache_service_new     (DBusGConnection       *connection) G_GNUC_MALLOC G_GNUC_WARN_UNUSED_RESULT;
 
43
gboolean             tumbler_cache_service_start   (TumblerCacheService   *service,
 
44
                                                    GError               **error);
 
45
void                 tumbler_cache_service_move    (TumblerCacheService   *service,
 
46
                                                    const GStrv            from_uris,
 
47
                                                    const GStrv            to_uris,
 
48
                                                    DBusGMethodInvocation *context);
 
49
void                 tumbler_cache_service_copy    (TumblerCacheService   *service,
 
50
                                                    const GStrv            from_uris,
 
51
                                                    const GStrv            to_uris,
 
52
                                                    DBusGMethodInvocation *context);
 
53
void                 tumbler_cache_service_delete  (TumblerCacheService   *service,
 
54
                                                    const GStrv            uris,
 
55
                                                    DBusGMethodInvocation *context);
 
56
void                 tumbler_cache_service_cleanup (TumblerCacheService   *service,
 
57
                                                    const gchar           *uri_prefix,
 
58
                                                    guint32                since,
 
59
                                                    DBusGMethodInvocation *context);
 
60
 
 
61
 
 
62
G_END_DECLS;
 
63
 
 
64
#endif /* !__TUMBLER_CACHE_SERVICE_H__ */