summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--framework/src/domain/mime/mimetreeparser/bodypartformatter.h34
1 files changed, 0 insertions, 34 deletions
diff --git a/framework/src/domain/mime/mimetreeparser/bodypartformatter.h b/framework/src/domain/mime/mimetreeparser/bodypartformatter.h
index 18428443..b332b477 100644
--- a/framework/src/domain/mime/mimetreeparser/bodypartformatter.h
+++ b/framework/src/domain/mime/mimetreeparser/bodypartformatter.h
@@ -46,7 +46,6 @@ namespace MimeTreeParser
46namespace Interface 46namespace Interface
47{ 47{
48 48
49class BodyPartURLHandler;
50class BodyPart; 49class BodyPart;
51 50
52class BodyPartFormatter 51class BodyPartFormatter
@@ -54,43 +53,10 @@ class BodyPartFormatter
54public: 53public:
55 virtual ~BodyPartFormatter() {} 54 virtual ~BodyPartFormatter() {}
56 55
57 /**
58 @li Ok returned when format() generated some HTML
59 @li NeedContent returned when format() needs the body of the part
60 @li AsIcon returned when the part should be shown iconified
61 @li Failed returned when formatting failed. Currently equivalent to Ok
62 */
63 enum Result { Ok, NeedContent, AsIcon, Failed };
64
65 virtual MessagePart::Ptr process(BodyPart &part) const; 56 virtual MessagePart::Ptr process(BodyPart &part) const;
66 virtual QVector<MessagePart::Ptr> processList(Interface::BodyPart &part) const; 57 virtual QVector<MessagePart::Ptr> processList(Interface::BodyPart &part) const;
67}; 58};
68 59
69/**
70 @short interface for BodyPartFormatter plugins
71
72 The interface is queried by for types, subtypes, and the
73 corresponding bodypart formatter, and the result inserted into
74 the bodypart formatter factory.
75
76 Subtype alone or both type and subtype may be "*", which is
77 taken as a wildcard, so that e.g. type=text subtype=* matches
78 any text subtype, but with lesser specificity than a concrete
79 mimetype such as text/plain. type=* is only allowed when
80 subtype=*, too.
81*/
82class BodyPartFormatterPlugin
83{
84public:
85 virtual ~BodyPartFormatterPlugin() {}
86
87 virtual const BodyPartFormatter *bodyPartFormatter(int idx) const = 0;
88 virtual const char *type(int idx) const = 0;
89 virtual const char *subtype(int idx) const = 0;
90
91 virtual const BodyPartURLHandler *urlHandler(int idx) const = 0;
92};
93
94} // namespace Interface 60} // namespace Interface
95 61
96} 62}