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
4
Copyright (C) 2007, Stefan Walter
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.
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.
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.
21
Author: Stef Walter <stef@memberwebs.com>
24
#ifndef __GKR_LOCATION_WATCH_H__
25
#define __GKR_LOCATION_WATCH_H__
27
#include <glib-object.h>
29
#include "gkr-location.h"
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))
40
typedef struct _GkrLocationWatch GkrLocationWatch;
41
typedef struct _GkrLocationWatchClass GkrLocationWatchClass;
43
struct _GkrLocationWatch {
45
GkrLocationManager *manager;
48
struct _GkrLocationWatchClass {
49
GObjectClass parent_class;
51
void (*location_added) (GkrLocationManager *locmgr, GQuark location);
52
void (*location_changed) (GkrLocationManager *locmgr, GQuark location);
53
void (*location_removed) (GkrLocationManager *locmgr, GQuark location);
56
GType gkr_location_watch_get_type (void) G_GNUC_CONST;
58
GkrLocationWatch* gkr_location_watch_new (GkrLocationManager *locmgr,
61
const gchar *include_pattern,
62
const gchar *exclude_pattern);
64
void gkr_location_watch_refresh (GkrLocationWatch *watch,
69
#endif /* __GKR_LOCATION_WATCH_H__ */