| 1 |
#ifndef TNY_GTK_MSG_WINDOW_H |
|---|
| 2 |
#define TNY_GTK_MSG_WINDOW_H |
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
#include <gtk/gtk.h> |
|---|
| 24 |
#include <glib-object.h> |
|---|
| 25 |
#include <tny-shared.h> |
|---|
| 26 |
|
|---|
| 27 |
#include <tny-msg-view.h> |
|---|
| 28 |
#include <tny-msg-window.h> |
|---|
| 29 |
#include <tny-header.h> |
|---|
| 30 |
#include <tny-msg.h> |
|---|
| 31 |
#include <tny-stream.h> |
|---|
| 32 |
#include <tny-mime-part.h> |
|---|
| 33 |
|
|---|
| 34 |
G_BEGIN_DECLS |
|---|
| 35 |
|
|---|
| 36 |
#define TNY_TYPE_GTK_MSG_WINDOW (tny_gtk_msg_window_get_type ()) |
|---|
| 37 |
#define TNY_GTK_MSG_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TNY_TYPE_GTK_MSG_WINDOW, TnyGtkMsgWindow)) |
|---|
| 38 |
#define TNY_GTK_MSG_WINDOW_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), TNY_TYPE_GTK_MSG_WINDOW, TnyGtkMsgWindowClass)) |
|---|
| 39 |
#define TNY_IS_GTK_MSG_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TNY_TYPE_GTK_MSG_WINDOW)) |
|---|
| 40 |
#define TNY_IS_GTK_MSG_WINDOW_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), TNY_TYPE_GTK_MSG_WINDOW)) |
|---|
| 41 |
#define TNY_GTK_MSG_WINDOW_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), TNY_TYPE_GTK_MSG_WINDOW, TnyGtkMsgWindowClass)) |
|---|
| 42 |
|
|---|
| 43 |
typedef struct _TnyGtkMsgWindow TnyGtkMsgWindow; |
|---|
| 44 |
typedef struct _TnyGtkMsgWindowClass TnyGtkMsgWindowClass; |
|---|
| 45 |
|
|---|
| 46 |
struct _TnyGtkMsgWindow |
|---|
| 47 |
{ |
|---|
| 48 |
GtkWindow parent; |
|---|
| 49 |
|
|---|
| 50 |
}; |
|---|
| 51 |
|
|---|
| 52 |
struct _TnyGtkMsgWindowClass |
|---|
| 53 |
{ |
|---|
| 54 |
GtkWindowClass parent_class; |
|---|
| 55 |
|
|---|
| 56 |
|
|---|
| 57 |
TnyMsg* (*get_msg) (TnyMsgView *self); |
|---|
| 58 |
void (*set_msg) (TnyMsgView *self, TnyMsg *msg); |
|---|
| 59 |
void (*set_unavailable) (TnyMsgView *self); |
|---|
| 60 |
void (*clear) (TnyMsgView *self); |
|---|
| 61 |
TnyMimePartView* (*create_mime_part_view_for) (TnyMsgView *self, TnyMimePart *part); |
|---|
| 62 |
TnyMsgView* (*create_new_inline_viewer) (TnyMsgView *self); |
|---|
| 63 |
TnyMimePart* (*get_part) (TnyMimePartView *self); |
|---|
| 64 |
void (*set_part) (TnyMimePartView *self, TnyMimePart *part); |
|---|
| 65 |
}; |
|---|
| 66 |
|
|---|
| 67 |
GType tny_gtk_msg_window_get_type (void); |
|---|
| 68 |
TnyMsgWindow* tny_gtk_msg_window_new (TnyMsgView *msgview); |
|---|
| 69 |
void tny_gtk_msg_window_set_view (TnyGtkMsgWindow *self, TnyMsgView *view); |
|---|
| 70 |
|
|---|
| 71 |
G_END_DECLS |
|---|
| 72 |
|
|---|
| 73 |
#endif |
|---|