Better wording
[kdepim.git] / messageviewer / objecttreeemptysource.cpp
blobcd377b23859baf239a3ef0d9789983faf871b562
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 #include <config-messageviewer.h>
22 #include "objecttreeemptysource.h"
23 #include "viewer_p.h"
25 #include "attachmentstrategy.h"
27 namespace MessageViewer {
29 EmptySource::EmptySource() : ObjectTreeSourceIf()
33 EmptySource::~EmptySource()
37 bool EmptySource::htmlMail()
39 return true;
42 bool EmptySource::decryptMessage()
44 return mAllowDecryption;
47 bool EmptySource::htmlLoadExternal()
49 return false;
52 bool EmptySource::showSignatureDetails()
54 return false;
57 void EmptySource::setHtmlMode( Util::HtmlMode mode )
59 Q_UNUSED( mode );
62 void EmptySource::setAllowDecryption( bool allowDecryption )
64 mAllowDecryption = allowDecryption;
67 int EmptySource::levelQuote()
69 return 1;
72 const QTextCodec * EmptySource::overrideCodec()
74 return 0;
77 QString EmptySource::createMessageHeader( KMime::Message *message )
79 Q_UNUSED( message );
80 return QString(); //do nothing
83 QObject *EmptySource::sourceObject()
85 return 0;
88 const AttachmentStrategy * EmptySource::attachmentStrategy()
90 return AttachmentStrategy::smart();
93 HtmlWriter * EmptySource::htmlWriter()
95 return 0;
98 CSSHelper* EmptySource::cssHelper()
100 return 0;