From f232625f1522d04cdaa5a530536cbe6c97d7dbc2 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 7 May 2018 13:08:24 +0200 Subject: Cleanup --- .../domain/mime/mimetreeparser/bodypartformatter.h | 34 ---------------------- 1 file changed, 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 namespace Interface { -class BodyPartURLHandler; class BodyPart; class BodyPartFormatter @@ -54,43 +53,10 @@ class BodyPartFormatter public: virtual ~BodyPartFormatter() {} - /** - @li Ok returned when format() generated some HTML - @li NeedContent returned when format() needs the body of the part - @li AsIcon returned when the part should be shown iconified - @li Failed returned when formatting failed. Currently equivalent to Ok - */ - enum Result { Ok, NeedContent, AsIcon, Failed }; - virtual MessagePart::Ptr process(BodyPart &part) const; virtual QVector processList(Interface::BodyPart &part) const; }; -/** - @short interface for BodyPartFormatter plugins - - The interface is queried by for types, subtypes, and the - corresponding bodypart formatter, and the result inserted into - the bodypart formatter factory. - - Subtype alone or both type and subtype may be "*", which is - taken as a wildcard, so that e.g. type=text subtype=* matches - any text subtype, but with lesser specificity than a concrete - mimetype such as text/plain. type=* is only allowed when - subtype=*, too. -*/ -class BodyPartFormatterPlugin -{ -public: - virtual ~BodyPartFormatterPlugin() {} - - virtual const BodyPartFormatter *bodyPartFormatter(int idx) const = 0; - virtual const char *type(int idx) const = 0; - virtual const char *subtype(int idx) const = 0; - - virtual const BodyPartURLHandler *urlHandler(int idx) const = 0; -}; - } // namespace Interface } -- cgit v1.2.3