aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-format-hook.h
diff options
context:
space:
mode:
authorDan Vrátil <dvratil@redhat.com>2012-06-06 21:27:19 +0800
committerDan Vrátil <dvratil@redhat.com>2012-06-06 21:27:19 +0800
commit5b8340563c271fb684a88c6e5bb6dd3bfb629058 (patch)
treec1c7d606fb4ce9fd2fe459a9226bfb9125423991 /mail/em-format-hook.h
parent26a4f24188fd89dbabaff192bec9c54af8fe5a80 (diff)
downloadgsoc2013-evolution-5b8340563c271fb684a88c6e5bb6dd3bfb629058.tar.gz
gsoc2013-evolution-5b8340563c271fb684a88c6e5bb6dd3bfb629058.tar.zst
gsoc2013-evolution-5b8340563c271fb684a88c6e5bb6dd3bfb629058.zip
Mail formatter rewrite
All mail-parsing and formatting code has been moved to em-format. Parsing is handeled by EMailParser class, formatting by EMailFormatter. Both classes have registry which hold extensions - simple classes that do actual parsing and formatting. Each supported mime-type has it's own parser and formatter extension class.
Diffstat (limited to 'mail/em-format-hook.h')
-rw-r--r--mail/em-format-hook.h90
1 files changed, 0 insertions, 90 deletions
diff --git a/mail/em-format-hook.h b/mail/em-format-hook.h
deleted file mode 100644
index 09076c2f48..0000000000
--- a/mail/em-format-hook.h
+++ /dev/null
@@ -1,90 +0,0 @@
-/*
- *
- * 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/>
- *
- *
- * Authors:
- * Michel Zucchi <notzed@ximian.com>
- *
- * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
- *
- */
-
-#ifndef __EM_FORMAT_HOOK_H__
-#define __EM_FORMAT_HOOK_H__
-
-#include <e-util/e-plugin.h>
-#include <em-format/em-format.h>
-
-G_BEGIN_DECLS
-
-typedef struct _EMFormatHookItem EMFormatHookItem;
-typedef struct _EMFormatHookGroup EMFormatHookGroup;
-typedef struct _EMFormatHook EMFormatHook;
-typedef struct _EMFormatHookClass EMFormatHookClass;
-
-typedef struct _EMFormatHookTarget EMFormatHookTarget;
-
-typedef void (*EMFormatHookFunc)(struct _EPlugin *plugin, EMFormatHookTarget *data);
-
-struct _EMFormatHookTarget {
- struct _EMFormat *format;
- CamelMimePart *part;
- GString *part_id;
- EMFormatParserInfo *info;
-};
-
-struct _EMFormatHookItem {
- EMFormatHandler handler;
-
- struct _EMFormatHook *hook; /* parent pointer */
- gchar *format; /* format handler */
-};
-
-struct _EMFormatHookGroup {
- struct _EMFormatHook *hook; /* parent pointer */
- gchar *id; /* target formatter id */
- GSList *items; /* items to consider */
-};
-
-/**
- * struct _EMFormatHook - Mail formatter hook.
- *
- * @hook:
- * @groups:
- *
- * The Mail formatter hook links all of the plugin formatter hooks
- * into the relevent formatter classes.
- **/
-struct _EMFormatHook {
- EPluginHook hook;
-
- GSList *groups;
-};
-
-struct _EMFormatHookClass {
- EPluginHookClass hook_class;
-
- /* which class to add matching items to */
- GHashTable *format_classes;
-};
-
-GType em_format_hook_get_type (void);
-
-/* register a type as a possible formatter hook point */
-void em_format_hook_register_type (GType type);
-
-G_END_DECLS
-
-#endif /* __EM_FORMAT_HOOK_H__ */