1/* GTK - The GIMP Toolkit
2 * gtktrashmonitor.h: Monitor the trash:/// folder to see if there is trash or not
3 * Copyright (C) 2011 Suse
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU Lesser General Public License as
7 * published by the Free Software Foundation; either version 2.1 of the
8 * 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 Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with this program; if not, see <http://www.gnu.org/licenses/>.
17 *
18 * Authors: Federico Mena Quintero <federico@gnome.org>
19 */
20
21#ifndef __GTK_TRASH_MONITOR_H__
22#define __GTK_TRASH_MONITOR_H__
23
24#include <gio/gio.h>
25
26G_BEGIN_DECLS
27
28#define GTK_TYPE_TRASH_MONITOR (_gtk_trash_monitor_get_type ())
29#define GTK_TRASH_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TRASH_MONITOR, GtkTrashMonitor))
30#define GTK_TRASH_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TRASH_MONITOR, GtkTrashMonitorClass))
31#define GTK_IS_TRASH_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TRASH_MONITOR))
32#define GTK_IS_TRASH_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TRASH_MONITOR))
33#define GTK_TRASH_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TRASH_MONITOR, GtkTrashMonitorClass))
34
35typedef struct _GtkTrashMonitor GtkTrashMonitor;
36typedef struct _GtkTrashMonitorClass GtkTrashMonitorClass;
37
38GType _gtk_trash_monitor_get_type (void);
39GtkTrashMonitor *_gtk_trash_monitor_get (void);
40
41GIcon *_gtk_trash_monitor_get_icon (GtkTrashMonitor *monitor);
42
43gboolean _gtk_trash_monitor_get_has_trash (GtkTrashMonitor *monitor);
44
45G_END_DECLS
46
47#endif /* __GTK_TRASH_MONITOR_H__ */
48

source code of gtk/gtk/gtktrashmonitor.h