2
Copyright (C) 2008 Christian Dywan <christian@twotoasts.de>
4
This library is free software; you can redistribute it and/or
5
modify it under the terms of the GNU Lesser General Public
6
License as published by the Free Software Foundation; either
7
version 2.1 of the License, or (at your option) any later version.
9
See the file COPYING for the full license text.
12
#ifndef __MIDORI_TRASH_H__
13
#define __MIDORI_TRASH_H__
15
#include <katze/katze.h>
19
#define MIDORI_TYPE_TRASH \
20
(midori_trash_get_type ())
21
#define MIDORI_TRASH(obj) \
22
(G_TYPE_CHECK_INSTANCE_CAST ((obj), MIDORI_TYPE_TRASH, MidoriTrash))
23
#define MIDORI_TRASH_CLASS(klass) \
24
(G_TYPE_CHECK_CLASS_CAST ((klass), MIDORI_TYPE_TRASH, MidoriTrashClass))
25
#define MIDORI_IS_TRASH(obj) \
26
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), MIDORI_TYPE_TRASH))
27
#define MIDORI_IS_TRASH_CLASS(klass) \
28
(G_TYPE_CHECK_CLASS_TYPE ((klass), MIDORI_TYPE_TRASH))
29
#define MIDORI_TRASH_GET_CLASS(obj) \
30
(G_TYPE_INSTANCE_GET_CLASS ((obj), MIDORI_TYPE_TRASH, MidoriTrashClass))
32
typedef struct _MidoriTrash MidoriTrash;
33
typedef struct _MidoriTrashPrivate MidoriTrashPrivate;
34
typedef struct _MidoriTrashClass MidoriTrashClass;
38
GObject parent_instance;
40
MidoriTrashPrivate* priv;
43
struct _MidoriTrashClass
45
GObjectClass parent_class;
49
(*inserted) (MidoriTrash* trash,
52
(*removed) (MidoriTrash* trash,
57
midori_trash_get_type (void);
60
midori_trash_new (guint limit);
63
midori_trash_is_empty (MidoriTrash* trash);
66
midori_trash_get_n_items (MidoriTrash* trash);
69
midori_trash_get_nth_xbel_item (MidoriTrash* trash,
73
midori_trash_prepend_xbel_item (MidoriTrash* trash,
74
KatzeXbelItem* xbel_item);
77
midori_trash_remove_nth_item (MidoriTrash* trash,
81
midori_trash_empty (MidoriTrash* trash);
85
#endif /* __MIDORI_TRASH_H__ */