Blame src/nautilus-trash-monitor.h

Packit a189e0
Packit a189e0
/* 
Packit a189e0
   nautilus-trash-monitor.h: Nautilus trash state watcher.
Packit a189e0
 
Packit a189e0
   Copyright (C) 2000 Eazel, Inc.
Packit a189e0
  
Packit a189e0
   This program is free software; you can redistribute it and/or
Packit a189e0
   modify it under the terms of the GNU General Public License as
Packit a189e0
   published by the Free Software Foundation; either version 2 of the
Packit a189e0
   License, or (at your option) any later version.
Packit a189e0
  
Packit a189e0
   This program is distributed in the hope that it will be useful,
Packit a189e0
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit a189e0
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit a189e0
   General Public License for more details.
Packit a189e0
  
Packit a189e0
   You should have received a copy of the GNU General Public
Packit a189e0
   License along with this program; if not, see <http://www.gnu.org/licenses/>.
Packit a189e0
  
Packit a189e0
   Author: Pavel Cisler <pavel@eazel.com>
Packit a189e0
*/
Packit a189e0
Packit a189e0
#ifndef NAUTILUS_TRASH_MONITOR_H
Packit a189e0
#define NAUTILUS_TRASH_MONITOR_H
Packit a189e0
Packit a189e0
#include <gtk/gtk.h>
Packit a189e0
#include <gio/gio.h>
Packit a189e0
Packit a189e0
typedef struct NautilusTrashMonitor NautilusTrashMonitor;
Packit a189e0
typedef struct NautilusTrashMonitorClass NautilusTrashMonitorClass;
Packit a189e0
typedef struct NautilusTrashMonitorDetails NautilusTrashMonitorDetails;
Packit a189e0
Packit a189e0
#define NAUTILUS_TYPE_TRASH_MONITOR nautilus_trash_monitor_get_type()
Packit a189e0
#define NAUTILUS_TRASH_MONITOR(obj) \
Packit a189e0
  (G_TYPE_CHECK_INSTANCE_CAST ((obj), NAUTILUS_TYPE_TRASH_MONITOR, NautilusTrashMonitor))
Packit a189e0
#define NAUTILUS_TRASH_MONITOR_CLASS(klass) \
Packit a189e0
  (G_TYPE_CHECK_CLASS_CAST ((klass), NAUTILUS_TYPE_TRASH_MONITOR, NautilusTrashMonitorClass))
Packit a189e0
#define NAUTILUS_IS_TRASH_MONITOR(obj) \
Packit a189e0
  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NAUTILUS_TYPE_TRASH_MONITOR))
Packit a189e0
#define NAUTILUS_IS_TRASH_MONITOR_CLASS(klass) \
Packit a189e0
  (G_TYPE_CHECK_CLASS_TYPE ((klass), NAUTILUS_TYPE_TRASH_MONITOR))
Packit a189e0
#define NAUTILUS_TRASH_MONITOR_GET_CLASS(obj) \
Packit a189e0
  (G_TYPE_INSTANCE_GET_CLASS ((obj), NAUTILUS_TYPE_TRASH_MONITOR, NautilusTrashMonitorClass))
Packit a189e0
Packit a189e0
struct NautilusTrashMonitor {
Packit a189e0
	GObject object;
Packit a189e0
	NautilusTrashMonitorDetails *details;
Packit a189e0
};
Packit a189e0
Packit a189e0
struct NautilusTrashMonitorClass {
Packit a189e0
	GObjectClass parent_class;
Packit a189e0
Packit a189e0
	void (* trash_state_changed)		(NautilusTrashMonitor 	*trash_monitor,
Packit a189e0
				      		 gboolean 		 new_state);
Packit a189e0
};
Packit a189e0
Packit a189e0
GType			nautilus_trash_monitor_get_type				(void);
Packit a189e0
Packit a189e0
NautilusTrashMonitor   *nautilus_trash_monitor_get 				(void);
Packit a189e0
gboolean		nautilus_trash_monitor_is_empty 			(void);
Packit a189e0
GIcon                  *nautilus_trash_monitor_get_icon                         (void);
Packit a189e0
Packit a189e0
#endif