root/trunk/src/tmut-shell-window.h

Revision 73 (checked in by pvanhoof, 10 months ago)

2008-01-28 Philip Van Hoof <pvanhoof@gnome.org>

        • Adapted TMut to the latest Tinymail API changes in trunk.
Line 
1 #ifndef TMUT_SHELL_WINDOW_H
2 #define TMUT_SHELL_WINDOW_H
3
4 /* TMut
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., 51 Franklin Street, Fifth Floor,
20  * Boston, MA 02110-1301, USA.
21  */
22
23 #include <gtk/gtk.h>
24 #include <glib-object.h>
25
26 #include <tmut-shared.h>
27 #include <tmut-shell-child.h>
28
29 G_BEGIN_DECLS
30
31 #define TMUT_TYPE_SHELL_WINDOW             (tmut_shell_window_get_type ())
32 #define TMUT_SHELL_WINDOW(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), TMUT_TYPE_SHELL_WINDOW, TMutShellWindow))
33 #define TMUT_SHELL_WINDOW_CLASS(vtable)    (G_TYPE_CHECK_CLASS_CAST ((vtable), TMUT_TYPE_SHELL_WINDOW, TMutShellWindowClass))
34 #define TMUT_IS_SHELL_WINDOW(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TMUT_TYPE_SHELL_WINDOW))
35 #define TMUT_IS_SHELL_WINDOW_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), TMUT_TYPE_SHELL_WINDOW))
36 #define TMUT_SHELL_WINDOW_GET_CLASS(inst)  (G_TYPE_INSTANCE_GET_CLASS ((inst), TMUT_TYPE_SHELL_WINDOW, TMutShellWindowClass))
37
38
39 #ifndef TMUT_SHARED_H
40 typedef struct _TMutShellWindow TMutShellWindow;
41 typedef struct _TMutShellWindowClass TMutShellWindowClass;
42 #endif
43
44 struct _TMutShellWindow
45 {
46         GtkWindow parent;
47 };
48
49 struct _TMutShellWindowClass
50 {
51         GtkWindowClass parent_class;
52
53         /* virtuals */
54
55         void (*set_child) (TMutShellWindow *self, TMutShellChild *child, const gchar *instruction);
56         void (*back) (TMutShellWindow *self);
57         GtkProgress* (*get_progress) (TMutShellWindow *self);
58
59         /* If you set this one to NULL, it wont ever be called for and you'll
60          * get an empty-everything. Note, though, that you do need to implement
61          * tmut_shell_window_set_child and tmut_shell_window_get_progress
62          * somehow. Overriding this, and it's up to you! */
63
64         void (*instantiate) (TMutShellWindow *self);
65
66 };
67
68 GType tmut_shell_window_get_type (void);
69 TMutShellWindow* tmut_shell_window_new (void);
70
71 void tmut_shell_window_back (TMutShellWindow *self);
72 void tmut_shell_window_set_child (TMutShellWindow *self, TMutShellChild *child, const gchar *instruction);
73 GtkProgress* tmut_shell_window_get_progress (TMutShellWindow *self);
74
75 G_END_DECLS
76
77 #endif
Note: See TracBrowser for help on using the browser.