~ubuntu-branches/ubuntu/karmic/libtinymail/karmic

« back to all changes in this revision

Viewing changes to libtinymailui-gtk/tny-gtk-attach-list-model.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2007-10-12 11:21:12 UTC
  • Revision ID: james.westby@ubuntu.com-20071012112112-fod9fs7yrooxjr7i
Tags: upstream-0.0.2
ImportĀ upstreamĀ versionĀ 0.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef TNY_GTK_ATTACH_LIST_MODEL_H
 
2
#define TNY_GTK_ATTACH_LIST_MODEL_H
 
3
 
 
4
/* libtinymailui-gtk - The Tiny Mail UI library for Gtk+
 
5
 * Copyright (C) 2006-2007 Philip Van Hoof <pvanhoof@gnome.org>
 
6
 *
 
7
 * This library is free software; you can redistribute it and/or
 
8
 * modify it under the terms of the GNU Lesser General Public
 
9
 * License as published by the Free Software Foundation; either
 
10
 * version 2 of the License, or (at your option) any later version.
 
11
 *
 
12
 * This library is distributed in the hope that it will be useful,
 
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
15
 * Lesser General Public License for more details.
 
16
 *
 
17
 * You should have received a copy of the GNU Lesser General Public
 
18
 * License along with self library; if not, write to the
 
19
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
20
 * Boston, MA 02111-1307, USA.
 
21
 */
 
22
 
 
23
#include <glib.h>
 
24
#include <gtk/gtk.h>
 
25
#include <tny-account.h>
 
26
 
 
27
G_BEGIN_DECLS
 
28
 
 
29
#define TNY_TYPE_GTK_ATTACH_LIST_MODEL             (tny_gtk_attach_list_model_get_type ())
 
30
#define TNY_GTK_ATTACH_LIST_MODEL(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), TNY_TYPE_GTK_ATTACH_LIST_MODEL, TnyGtkAttachListModel))
 
31
#define TNY_GTK_ATTACH_LIST_MODEL_CLASS(vtable)    (G_TYPE_CHECK_CLASS_CAST ((vtable), TNY_TYPE_GTK_ATTACH_LIST_MODEL, TnyGtkAttachListModelClass))
 
32
#define TNY_IS_GTK_ATTACH_LIST_MODEL(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TNY_TYPE_GTK_ATTACH_LIST_MODEL))
 
33
#define TNY_IS_GTK_ATTACH_LIST_MODEL_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), TNY_TYPE_GTK_ATTACH_LIST_MODEL))
 
34
#define TNY_GTK_ATTACH_LIST_MODEL_GET_CLASS(inst)  (G_TYPE_INSTANCE_GET_INTERFACE ((inst), TNY_TYPE_GTK_ATTACH_LIST_MODEL, TnyGtkAttachListModelClass))
 
35
 
 
36
typedef struct _TnyGtkAttachListModel TnyGtkAttachListModel;
 
37
typedef struct _TnyGtkAttachListModelClass TnyGtkAttachListModelClass;
 
38
typedef enum _TnyGtkAttachListModelColumn TnyGtkAttachListModelColumn;
 
39
 
 
40
 
 
41
#define TNY_TYPE_GTK_ATTACH_LIST_MODEL_COLUMN (tny_gtk_attach_list_model_column_get_type())
 
42
 
 
43
 
 
44
enum _TnyGtkAttachListModelColumn
 
45
{
 
46
        TNY_GTK_ATTACH_LIST_MODEL_PIXBUF_COLUMN,
 
47
        TNY_GTK_ATTACH_LIST_MODEL_FILENAME_COLUMN,
 
48
        TNY_GTK_ATTACH_LIST_MODEL_INSTANCE_COLUMN,
 
49
        TNY_GTK_ATTACH_LIST_MODEL_N_COLUMNS
 
50
};
 
51
 
 
52
struct _TnyGtkAttachListModel
 
53
{
 
54
        GtkListStore parent;
 
55
        GList *first;
 
56
        GMutex *iterator_lock;
 
57
};
 
58
 
 
59
struct _TnyGtkAttachListModelClass
 
60
{
 
61
        GtkListStoreClass parent_class;
 
62
};
 
63
 
 
64
 
 
65
GType tny_gtk_attach_list_model_get_type (void);
 
66
GType tny_gtk_attach_list_model_column_get_type (void);
 
67
GtkTreeModel* tny_gtk_attach_list_model_new (void);
 
68
 
 
69
G_END_DECLS
 
70
 
 
71
#endif