1 /* -*- mode: C++; c-file-style: "gnu" -*-
2 Copyright (C) 2009 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.net
3 Copyright (c) 2009 Andras Mantia <andras@kdab.net>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License along
16 with this program; if not, write to the Free Software Foundation, Inc.,
17 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 #ifndef MAILVIEWER_OBJECTTREEEMPTYSOURCE_H
21 #define MAILVIEWER_OBJECTTREEEMPTYSOURCE_H
23 #include "objecttreesourceif.h"
27 namespace MessageViewer
{
29 /** An ObjectTreeSource that does not work on anything */
30 class MESSAGEVIEWER_EXPORT EmptySource
: public ObjectTreeSourceIf
{
35 bool decryptMessage();
36 bool htmlLoadExternal();
37 bool showSignatureDetails();
38 void setHtmlMode( Util::HtmlMode mode
);
40 const QTextCodec
* overrideCodec();
41 QString
createMessageHeader( KMime::Message
*message
);
42 const AttachmentStrategy
* attachmentStrategy();
43 HtmlWriter
* htmlWriter();
44 CSSHelper
* cssHelper();
45 QObject
*sourceObject();