2
* arch-tag: Header for Rhythmbox file monitoring object
4
* Copyright (C) 2002 Jorn Baayen <jorn@nl.linux.org>
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
11
* This program 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
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22
#ifndef __RB_FILE_MONITOR_H
23
#define __RB_FILE_MONITOR_H
25
#include <glib-object.h>
31
#define RB_TYPE_FILE_MONITOR (rb_file_monitor_get_type ())
32
#define RB_FILE_MONITOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), RB_TYPE_FILE_MONITOR, RBFileMonitor))
33
#define RB_FILE_MONITOR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), RB_TYPE_FILE_MONITOR, RBFileMonitorClass))
34
#define RB_IS_FILE_MONITOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), RB_TYPE_FILE_MONITOR))
35
#define RB_IS_FILE_MONITOR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_FILE_MONITOR))
36
#define RB_FILE_MONITOR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), RB_TYPE_FILE_MONITOR, RBFileMonitorClass))
38
typedef struct RBFileMonitorPrivate RBFileMonitorPrivate;
44
RBFileMonitorPrivate *priv;
51
void (*file_changed) (RBFileMonitor *monitor, const char *uri);
52
void (*file_removed) (RBFileMonitor *monitor, const char *uri);
55
GType rb_file_monitor_get_type (void);
57
RBFileMonitor *rb_file_monitor_new (void);
59
RBFileMonitor *rb_file_monitor_get (void);
61
void rb_file_monitor_add (RBFileMonitor *monitor,
63
void rb_file_monitor_remove (RBFileMonitor *monitor,
68
#endif /* __RB_FILE_MONITOR_H */