diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-05-15 21:17:58 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-05-20 01:07:22 +0800 |
commit | f9ffe647231a7ba2bd5347d92d560b6a57fee786 (patch) | |
tree | 6c1245d91a399647fc25521bc1f38cf564210979 /em-format/e-mail-part-image.h | |
parent | 0b4e7ec091c8bbe65dc2f2afd7da78b04da7c274 (diff) | |
download | gsoc2013-evolution-f9ffe647231a7ba2bd5347d92d560b6a57fee786.tar gsoc2013-evolution-f9ffe647231a7ba2bd5347d92d560b6a57fee786.tar.gz gsoc2013-evolution-f9ffe647231a7ba2bd5347d92d560b6a57fee786.tar.bz2 gsoc2013-evolution-f9ffe647231a7ba2bd5347d92d560b6a57fee786.tar.lz gsoc2013-evolution-f9ffe647231a7ba2bd5347d92d560b6a57fee786.tar.xz gsoc2013-evolution-f9ffe647231a7ba2bd5347d92d560b6a57fee786.tar.zst gsoc2013-evolution-f9ffe647231a7ba2bd5347d92d560b6a57fee786.zip |
Convert EMailPart to a GObject.
EMailPart is reference-counted, subclassed, and allows a custom
finalize function. There's no excuse for it not to use GObject.
Diffstat (limited to 'em-format/e-mail-part-image.h')
-rw-r--r-- | em-format/e-mail-part-image.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/em-format/e-mail-part-image.h b/em-format/e-mail-part-image.h new file mode 100644 index 0000000000..0c3e7f437d --- /dev/null +++ b/em-format/e-mail-part-image.h @@ -0,0 +1,65 @@ +/* + * e-mail-part-image.h + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with the program; if not, see <http://www.gnu.org/licenses/> + * + */ + +#ifndef E_MAIL_PART_IMAGE_H +#define E_MAIL_PART_IMAGE_H + +#include <em-format/e-mail-part.h> + +/* Standard GObject macros */ +#define E_TYPE_MAIL_PART_IMAGE \ + (e_mail_part_image_get_type ()) +#define E_MAIL_PART_IMAGE(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST \ + ((obj), E_TYPE_MAIL_PART_IMAGE, EMailPartImage)) +#define E_MAIL_PART_IMAGE_CLASS(cls) \ + (G_TYPE_CHECK_CLASS_CAST \ + ((cls), E_TYPE_MAIL_PART_IMAGE, EMailPartImageClass)) +#define E_IS_MAIL_PART_IMAGE(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE \ + ((obj), E_TYPE_MAIL_PART_IMAGE)) +#define E_IS_MAIL_PART_IMAGE_CLASS(cls) \ + (G_TYPE_CHECK_CLASS_TYPE \ + ((cls), E_TYPE_MAIL_PART_IMAGE)) +#define E_MAIL_PART_IMAGE_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS \ + ((obj), E_TYPE_MAIL_PART_IMAGE, EMailPartImageClass)) + +G_BEGIN_DECLS + +typedef struct _EMailPartImage EMailPartImage; +typedef struct _EMailPartImageClass EMailPartImageClass; +typedef struct _EMailPartImagePrivate EMailPartImagePrivate; + +struct _EMailPartImage { + EMailPart parent; + EMailPartImagePrivate *priv; +}; + +struct _EMailPartImageClass { + EMailPartClass parent_class; +}; + +GType e_mail_part_image_get_type (void) G_GNUC_CONST; +EMailPart * e_mail_part_image_new (CamelMimePart *mime_part, + const gchar *id); + +G_END_DECLS + +#endif /* E_MAIL_PART_IMAGE_H */ + |