• 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
objecttreeviewersource.h
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 #ifndef MAILVIEWER_OBJECTTREEVIEWERSOURCE_H
21 #define MAILVIEWER_OBJECTTREEVIEWERSOURCE_H
22 
23 #include "objecttreesourceif.h"
24 
25 class QString;
26 
27 namespace MessageViewer {
28 
29 class ViewerPrivate;
30 
32 class MailViewerSource : public ObjectTreeSourceIf {
33  public:
34  explicit MailViewerSource( ViewerPrivate * viewer);
35  ~MailViewerSource();
36  bool htmlMail();
37  bool decryptMessage();
38  bool htmlLoadExternal();
39  bool showSignatureDetails();
40  void setHtmlMode( Util::HtmlMode mode );
41  int levelQuote();
42  const QTextCodec * overrideCodec();
43  QString createMessageHeader( KMime::Message *message );
44  const AttachmentStrategy * attachmentStrategy();
45  HtmlWriter * htmlWriter();
46  CSSHelper* cssHelper();
47  QObject *sourceObject();
48 
49  private:
50  ViewerPrivate *mViewer;
51 };
52 
53 }
54 
55 #endif
56 
MessageViewer::Util::HtmlMode
HtmlMode
Describes the type of the displayed message.
Definition: util.h:73
MessageViewer::MailViewerSource::~MailViewerSource
~MailViewerSource()
Definition: objecttreeviewersource.cpp:32
objecttreesourceif.h
MessageViewer::MailViewerSource::createMessageHeader
QString createMessageHeader(KMime::Message *message)
Definition: objecttreeviewersource.cpp:71
MessageViewer::MailViewerSource::attachmentStrategy
const AttachmentStrategy * attachmentStrategy()
Return the wanted attachment startegy.
Definition: objecttreeviewersource.cpp:81
QObject
MessageViewer::MailViewerSource::htmlLoadExternal
bool htmlLoadExternal()
Return true if external sources should be loaded in a html mail.
Definition: objecttreeviewersource.cpp:46
MessageViewer::MailViewerSource::levelQuote
int levelQuote()
Definition: objecttreeviewersource.cpp:61
MessageViewer::ViewerPrivate
Private class for the Viewer, the main widget in the messageviewer library.
Definition: viewer_p.h:182
MessageViewer::MailViewerSource::sourceObject
QObject * sourceObject()
The source object behind the interface.
Definition: objecttreeviewersource.cpp:76
MessageViewer::MailViewerSource::showSignatureDetails
bool showSignatureDetails()
Return true to include the signature details in the generated html.
Definition: objecttreeviewersource.cpp:51
MessageViewer::MailViewerSource::MailViewerSource
MailViewerSource(ViewerPrivate *viewer)
Definition: objecttreeviewersource.cpp:27
MessageViewer::ObjectTreeSourceIf
Interface for object tree sources.
Definition: objecttreesourceif.h:43
MessageViewer::MailViewerSource::htmlWriter
HtmlWriter * htmlWriter()
Return the html write object.
Definition: objecttreeviewersource.cpp:86
MessageViewer::CSSHelper
Definition: csshelper.h:41
MessageViewer::MailViewerSource::htmlMail
bool htmlMail()
Return true if the mail should be parsed as a html mail.
Definition: objecttreeviewersource.cpp:36
MessageViewer::MailViewerSource
An ObjectTreeParser source working on a MailViewer object.
Definition: objecttreeviewersource.h:32
MessageViewer::AttachmentStrategy
Definition: attachmentstrategy.h:46
MessageViewer::MailViewerSource::decryptMessage
bool decryptMessage()
Return true if an encrypted mail should be decrypted.
Definition: objecttreeviewersource.cpp:41
MessageViewer::MailViewerSource::cssHelper
CSSHelper * cssHelper()
Return the css helper object.
Definition: objecttreeviewersource.cpp:91
MessageViewer::HtmlWriter
An interface to HTML sinks.
Definition: htmlwriter.h:98
MessageViewer::MailViewerSource::setHtmlMode
void setHtmlMode(Util::HtmlMode mode)
Sets the type of mail that is currently displayed.
Definition: objecttreeviewersource.cpp:56
MessageViewer::MailViewerSource::overrideCodec
const QTextCodec * overrideCodec()
The override codec that should be used for the mail.
Definition: objecttreeviewersource.cpp:66
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