|
Revision 3304
(checked in by pvanhoof, 10 months ago)
|
2008-01-28 Philip Van Hoof <pvanhoof@gnome.org>
- Removed the _func from all the interfaces and virtual function
pointers in the classes. This should not be an ABI but is an API
change.
- This was a major API change
|
| Line | |
|---|
| 1 |
#ifndef TNY_MSG_VIEW_H |
|---|
| 2 |
#define TNY_MSG_VIEW_H |
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
#include <glib.h> |
|---|
| 24 |
#include <glib-object.h> |
|---|
| 25 |
#include <tny-shared.h> |
|---|
| 26 |
|
|---|
| 27 |
#include <tny-mime-part-view.h> |
|---|
| 28 |
|
|---|
| 29 |
G_BEGIN_DECLS |
|---|
| 30 |
|
|---|
| 31 |
#define TNY_TYPE_MSG_VIEW (tny_msg_view_get_type ()) |
|---|
| 32 |
#define TNY_MSG_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TNY_TYPE_MSG_VIEW, TnyMsgView)) |
|---|
| 33 |
#define TNY_IS_MSG_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TNY_TYPE_MSG_VIEW)) |
|---|
| 34 |
#define TNY_MSG_VIEW_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), TNY_TYPE_MSG_VIEW, TnyMsgViewIface)) |
|---|
| 35 |
|
|---|
| 36 |
typedef struct _TnyMsgView TnyMsgView; |
|---|
| 37 |
typedef struct _TnyMsgViewIface TnyMsgViewIface; |
|---|
| 38 |
|
|---|
| 39 |
|
|---|
| 40 |
struct _TnyMsgViewIface |
|---|
| 41 |
{ |
|---|
| 42 |
GTypeInterface parent; |
|---|
| 43 |
|
|---|
| 44 |
TnyMsg* (*get_msg) (TnyMsgView *self); |
|---|
| 45 |
void (*set_msg) (TnyMsgView *self, TnyMsg *msg); |
|---|
| 46 |
void (*set_unavailable) (TnyMsgView *self); |
|---|
| 47 |
void (*clear) (TnyMsgView *self); |
|---|
| 48 |
TnyMimePartView* (*create_mime_part_view_for) (TnyMsgView *self, TnyMimePart *part); |
|---|
| 49 |
TnyMsgView* (*create_new_inline_viewer) (TnyMsgView *self); |
|---|
| 50 |
}; |
|---|
| 51 |
|
|---|
| 52 |
GType tny_msg_view_get_type (void); |
|---|
| 53 |
|
|---|
| 54 |
TnyMsg* tny_msg_view_get_msg (TnyMsgView *self); |
|---|
| 55 |
void tny_msg_view_set_msg (TnyMsgView *self, TnyMsg *msg); |
|---|
| 56 |
void tny_msg_view_clear (TnyMsgView *self); |
|---|
| 57 |
void tny_msg_view_set_unavailable (TnyMsgView *self); |
|---|
| 58 |
TnyMimePartView* tny_msg_view_create_mime_part_view_for (TnyMsgView *self, TnyMimePart *part); |
|---|
| 59 |
TnyMsgView* tny_msg_view_create_new_inline_viewer (TnyMsgView *self); |
|---|
| 60 |
|
|---|
| 61 |
G_END_DECLS |
|---|
| 62 |
|
|---|
| 63 |
#endif |
|---|