~ubuntu-branches/ubuntu/natty/gnome-keyring/natty

« back to all changes in this revision

Viewing changes to daemon/util/gkr-location-watch.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-02-16 19:00:06 UTC
  • mfrom: (1.1.58 upstream)
  • Revision ID: james.westby@ubuntu.com-20100216190006-cqpnic4zxlkmmi0o
Tags: 2.29.90git20100218-0ubuntu1
Updated to a git snapshot version

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2
 
/* gkr-location-watch.h - Watch for changes in all base locations
3
 
 
4
 
   Copyright (C) 2007, Stefan Walter
5
 
 
6
 
   The Gnome Keyring Library is free software; you can redistribute it and/or
7
 
   modify it under the terms of the GNU Library General Public License as
8
 
   published by the Free Software Foundation; either version 2 of the
9
 
   License, or (at your option) any later version.
10
 
 
11
 
   The Gnome Keyring Library is distributed in the hope that it will be useful,
12
 
   but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14
 
   Library General Public License for more details.
15
 
 
16
 
   You should have received a copy of the GNU Library General Public
17
 
   License along with the Gnome Library; see the file COPYING.LIB.  If not,
18
 
   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19
 
   Boston, MA 02111-1307, USA.
20
 
 
21
 
   Author: Stef Walter <stef@memberwebs.com>
22
 
*/
23
 
 
24
 
#ifndef __GKR_LOCATION_WATCH_H__
25
 
#define __GKR_LOCATION_WATCH_H__
26
 
 
27
 
#include <glib-object.h>
28
 
 
29
 
#include "gkr-location.h"
30
 
 
31
 
G_BEGIN_DECLS
32
 
 
33
 
#define GKR_TYPE_LOCATION_WATCH             (gkr_location_watch_get_type ())
34
 
#define GKR_LOCATION_WATCH(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), GKR_TYPE_LOCATION_WATCH, GkrLocationWatch))
35
 
#define GKR_LOCATION_WATCH_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass), GKR_TYPE_LOCATION_WATCH, GObject))
36
 
#define GKR_IS_LOCATION_WATCH(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GKR_TYPE_LOCATION_WATCH))
37
 
#define GKR_IS_LOCATION_WATCH_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), GKR_TYPE_LOCATION_WATCH))
38
 
#define GKR_LOCATION_WATCH_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), GKR_TYPE_LOCATION_WATCH, GkrLocationWatchClass))
39
 
 
40
 
typedef struct _GkrLocationWatch GkrLocationWatch;
41
 
typedef struct _GkrLocationWatchClass GkrLocationWatchClass;
42
 
 
43
 
struct _GkrLocationWatch {
44
 
        GObject parent;
45
 
        GkrLocationManager *manager;
46
 
};
47
 
 
48
 
struct _GkrLocationWatchClass {
49
 
        GObjectClass parent_class;
50
 
 
51
 
        void (*location_added) (GkrLocationManager *locmgr, GQuark location);
52
 
        void (*location_changed) (GkrLocationManager *locmgr, GQuark location);
53
 
        void (*location_removed) (GkrLocationManager *locmgr, GQuark location);
54
 
};
55
 
 
56
 
GType                    gkr_location_watch_get_type             (void) G_GNUC_CONST;
57
 
 
58
 
GkrLocationWatch*        gkr_location_watch_new                  (GkrLocationManager *locmgr,
59
 
                                                                  GQuark only_volume, 
60
 
                                                                  const gchar *subdir,
61
 
                                                                  const gchar *include_pattern,
62
 
                                                                  const gchar *exclude_pattern);
63
 
 
64
 
void                     gkr_location_watch_refresh              (GkrLocationWatch *watch, 
65
 
                                                                  gboolean force_all);
66
 
 
67
 
G_END_DECLS
68
 
 
69
 
#endif /* __GKR_LOCATION_WATCH_H__ */
70