~midori/midori/cmake-make-dist

« back to all changes in this revision

Viewing changes to src/midori-trash.h

  • Committer: Christian Dywan
  • Date: 2008-06-01 21:47:27 UTC
  • Revision ID: git-v1:b511f12b9b4b063610161f2229b94a24a86be0fc
Rename folder 'src' to 'midori'

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 Copyright (C) 2008 Christian Dywan <christian@twotoasts.de>
3
 
 
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.
8
 
 
9
 
 See the file COPYING for the full license text.
10
 
*/
11
 
 
12
 
#ifndef __MIDORI_TRASH_H__
13
 
#define __MIDORI_TRASH_H__
14
 
 
15
 
#include <katze/katze.h>
16
 
 
17
 
G_BEGIN_DECLS
18
 
 
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))
31
 
 
32
 
typedef struct _MidoriTrash                MidoriTrash;
33
 
typedef struct _MidoriTrashPrivate         MidoriTrashPrivate;
34
 
typedef struct _MidoriTrashClass           MidoriTrashClass;
35
 
 
36
 
struct _MidoriTrash
37
 
{
38
 
    GObject parent_instance;
39
 
 
40
 
    MidoriTrashPrivate* priv;
41
 
};
42
 
 
43
 
struct _MidoriTrashClass
44
 
{
45
 
    GObjectClass parent_class;
46
 
 
47
 
    /* Signals */
48
 
    void
49
 
    (*inserted)               (MidoriTrash* trash,
50
 
                               guint        n);
51
 
    void
52
 
    (*removed)                (MidoriTrash* trash,
53
 
                               guint        n);
54
 
};
55
 
 
56
 
GType
57
 
midori_trash_get_type               (void);
58
 
 
59
 
MidoriTrash*
60
 
midori_trash_new                    (guint limit);
61
 
 
62
 
gboolean
63
 
midori_trash_is_empty               (MidoriTrash*   trash);
64
 
 
65
 
guint
66
 
midori_trash_get_n_items            (MidoriTrash* trash);
67
 
 
68
 
KatzeXbelItem*
69
 
midori_trash_get_nth_xbel_item      (MidoriTrash* trash,
70
 
                                     guint        n);
71
 
 
72
 
void
73
 
midori_trash_prepend_xbel_item      (MidoriTrash*   trash,
74
 
                                     KatzeXbelItem* xbel_item);
75
 
 
76
 
void
77
 
midori_trash_remove_nth_item        (MidoriTrash*   trash,
78
 
                                     guint          n);
79
 
 
80
 
void
81
 
midori_trash_empty                  (MidoriTrash*   trash);
82
 
 
83
 
G_END_DECLS
84
 
 
85
 
#endif /* __MIDORI_TRASH_H__ */