• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

messageviewer

  • sources
  • kde-4.12
  • kdepim
  • messageviewer
  • viewer
objecttreeemptysource.cpp
Go to the documentation of this file.
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>
4 
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.
9 
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.
14 
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.
18 */
19 
20 
21 
22 #include "objecttreeemptysource.h"
23 #include "viewer/viewer_p.h"
24 
25 #include "attachmentstrategy.h"
26 
27 namespace MessageViewer {
28 
29 EmptySource::EmptySource() : ObjectTreeSourceIf()
30 {
31  mAllowDecryption = false;
32 }
33 
34 EmptySource::~EmptySource()
35 {
36 }
37 
38 bool EmptySource::htmlMail()
39 {
40  return true;
41 }
42 
43 bool EmptySource::decryptMessage()
44 {
45  return mAllowDecryption;
46 }
47 
48 bool EmptySource::htmlLoadExternal()
49 {
50  return false;
51 }
52 
53 bool EmptySource::showSignatureDetails()
54 {
55  return false;
56 }
57 
58 void EmptySource::setHtmlMode( Util::HtmlMode mode )
59 {
60  Q_UNUSED( mode );
61 }
62 
63 void EmptySource::setAllowDecryption( bool allowDecryption )
64 {
65  mAllowDecryption = allowDecryption;
66 }
67 
68 int EmptySource::levelQuote()
69 {
70  return 1;
71 }
72 
73 const QTextCodec * EmptySource::overrideCodec()
74 {
75  return 0;
76 }
77 
78 QString EmptySource::createMessageHeader( KMime::Message *message )
79 {
80  Q_UNUSED( message );
81  return QString(); //do nothing
82 }
83 
84 QObject *EmptySource::sourceObject()
85 {
86  return 0;
87 }
88 
89 const AttachmentStrategy * EmptySource::attachmentStrategy()
90 {
91  return AttachmentStrategy::smart();
92 }
93 
94 HtmlWriter * EmptySource::htmlWriter()
95 {
96  return 0;
97 }
98 
99 CSSHelper* EmptySource::cssHelper()
100 {
101  return 0;
102 }
103 
104 }
105 
attachmentstrategy.h
MessageViewer::AttachmentStrategy::smart
static const AttachmentStrategy * smart()
Definition: attachmentstrategy.cpp:252
MessageViewer::Util::HtmlMode
HtmlMode
Describes the type of the displayed message.
Definition: util.h:73
objecttreeemptysource.h
MessageViewer::EmptySource::attachmentStrategy
const AttachmentStrategy * attachmentStrategy()
Return the wanted attachment startegy.
Definition: objecttreeemptysource.cpp:89
QObject
MessageViewer::EmptySource::decryptMessage
bool decryptMessage()
Return true if an encrypted mail should be decrypted.
Definition: objecttreeemptysource.cpp:43
MessageViewer::EmptySource::EmptySource
EmptySource()
Definition: objecttreeemptysource.cpp:29
MessageViewer::EmptySource::~EmptySource
~EmptySource()
Definition: objecttreeemptysource.cpp:34
viewer_p.h
MessageViewer::EmptySource::setHtmlMode
void setHtmlMode(MessageViewer::Util::HtmlMode mode)
Sets the type of mail that is currently displayed.
Definition: objecttreeemptysource.cpp:58
MessageViewer::EmptySource::createMessageHeader
QString createMessageHeader(KMime::Message *message)
Definition: objecttreeemptysource.cpp:78
MessageViewer::ObjectTreeSourceIf
Interface for object tree sources.
Definition: objecttreesourceif.h:43
MessageViewer::EmptySource::cssHelper
CSSHelper * cssHelper()
Return the css helper object.
Definition: objecttreeemptysource.cpp:99
MessageViewer::CSSHelper
Definition: csshelper.h:41
MessageViewer::EmptySource::showSignatureDetails
bool showSignatureDetails()
Return true to include the signature details in the generated html.
Definition: objecttreeemptysource.cpp:53
MessageViewer::EmptySource::overrideCodec
const QTextCodec * overrideCodec()
The override codec that should be used for the mail.
Definition: objecttreeemptysource.cpp:73
MessageViewer::EmptySource::htmlMail
bool htmlMail()
Return true if the mail should be parsed as a html mail.
Definition: objecttreeemptysource.cpp:38
MessageViewer::EmptySource::htmlWriter
HtmlWriter * htmlWriter()
Return the html write object.
Definition: objecttreeemptysource.cpp:94
MessageViewer::AttachmentStrategy
Definition: attachmentstrategy.h:46
MessageViewer::EmptySource::htmlLoadExternal
bool htmlLoadExternal()
Return true if external sources should be loaded in a html mail.
Definition: objecttreeemptysource.cpp:48
MessageViewer::EmptySource::sourceObject
QObject * sourceObject()
The source object behind the interface.
Definition: objecttreeemptysource.cpp:84
MessageViewer::EmptySource::levelQuote
int levelQuote()
Definition: objecttreeemptysource.cpp:68
MessageViewer::EmptySource::setAllowDecryption
void setAllowDecryption(bool allowDecryption)
Definition: objecttreeemptysource.cpp:63
MessageViewer::HtmlWriter
An interface to HTML sinks.
Definition: htmlwriter.h:98
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:57 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

messageviewer

Skip menu "messageviewer"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal