root/trunk/libtinymailui/tny-mime-part-saver.h

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_MIME_PART_SAVER_H
2 #define TNY_MIME_PART_SAVER_H
3
4 /* libtinymailui - The Tiny Mail UI library
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 <glib.h>
24 #include <glib-object.h>
25
26 #include <tny-mime-part.h>
27 #include <tny-mime-part-save-strategy.h>
28
29 G_BEGIN_DECLS
30
31 #define TNY_TYPE_MIME_PART_SAVER             (tny_mime_part_saver_get_type ())
32 #define TNY_MIME_PART_SAVER(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), TNY_TYPE_MIME_PART_SAVER, TnyMimePartSaver))
33 #define TNY_IS_MIME_PART_SAVER(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TNY_TYPE_MIME_PART_SAVER))
34 #define TNY_MIME_PART_SAVER_GET_IFACE(inst)  (G_TYPE_INSTANCE_GET_INTERFACE ((inst), TNY_TYPE_MIME_PART_SAVER, TnyMimePartSaverIface))
35
36 typedef struct _TnyMimePartSaver TnyMimePartSaver;
37 typedef struct _TnyMimePartSaverIface TnyMimePartSaverIface;
38
39 struct _TnyMimePartSaverIface
40 {
41         GTypeInterface parent;
42
43         TnyMimePartSaveStrategy* (*get_save_strategy) (TnyMimePartSaver *self);
44         void (*set_save_strategy) (TnyMimePartSaver *self, TnyMimePartSaveStrategy *strategy);
45         void (*save) (TnyMimePartSaver *self, TnyMimePart *part);       
46 };
47
48 GType tny_mime_part_saver_get_type(void);
49
50 TnyMimePartSaveStrategy* tny_mime_part_saver_get_save_strategy (TnyMimePartSaver *self);
51 void tny_mime_part_saver_set_save_strategy (TnyMimePartSaver *self, TnyMimePartSaveStrategy *strategy);
52 void tny_mime_part_saver_save (TnyMimePartSaver *self, TnyMimePart *part);
53
54
55 G_END_DECLS
56
57 #endif
Note: See TracBrowser for help on using the browser.