Framework for looking up contacts directly in nepomuk in addition to going through...
[kdepim.git] / messageviewer / objecttreeemptysource.h
blob89c9673ea90e6f6f6c73e35008680b05a5f45693
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"
25 class QString;
27 namespace MessageViewer {
29 /** An ObjectTreeSource that does not work on anything */
30 class MESSAGEVIEWER_EXPORT EmptySource : public ObjectTreeSourceIf {
31 public:
32 EmptySource( );
33 ~EmptySource();
34 bool htmlMail();
35 bool decryptMessage();
36 bool htmlLoadExternal();
37 bool showSignatureDetails();
38 void setHtmlMode( Util::HtmlMode mode );
39 void setAllowDecryption( bool allowDecryption );
40 int levelQuote();
41 const QTextCodec * overrideCodec();
42 QString createMessageHeader( KMime::Message *message );
43 const AttachmentStrategy * attachmentStrategy();
44 HtmlWriter * htmlWriter();
45 CSSHelper* cssHelper();
46 QObject *sourceObject();
48 private:
49 bool mAllowDecryption;
54 #endif