• 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
  • header
contactdisplaymessagememento.h
Go to the documentation of this file.
1 /* Copyright (C) 2012, 2013 Laurent Montel <montel@kde.org>
2  *
3  * This library is free software; you can redistribute it and/or
4  * modify it under the terms of the GNU Library General Public
5  * License as published by the Free Software Foundation; either
6  * version 2 of the License, or (at your option) any later version.
7  *
8  * This library is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  * Library General Public License for more details.
12  *
13  * You should have received a copy of the GNU Library General Public License
14  * along with this library; see the file COPYING.LIB. If not, write to
15  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  * Boston, MA 02110-1301, USA.
17  */
18 
19 #ifndef CONTACTDISPLAYMESSAGEMEMENTO_H
20 #define CONTACTDISPLAYMESSAGEMEMENTO_H
21 
22 #include "interfaces/bodypart.h"
23 #include "viewer/viewer.h"
24 
25 #include <KABC/Picture>
26 #include <KABC/Addressee>
27 
28 #include <QObject>
29 
30 class KJob;
31 
32 namespace MessageViewer
33 {
34 
35 class ContactDisplayMessageMemento : public QObject, public Interface::BodyPartMemento
36 {
37  Q_OBJECT
38 public:
39  explicit ContactDisplayMessageMemento( const QString &emailAddress );
40  ~ContactDisplayMessageMemento();
41  void processAddress( const KABC::Addressee& addressee );
42  bool allowToRemoteContent() const;
43  bool forceToHtml() const;
44  bool forceToText() const;
45  KABC::Picture photo() const;
46 
47  bool finished() const;
48 
49  void detach();
50 
51 signals:
52  // TODO: Factor our update and detach into base class
53  void update( MessageViewer::Viewer::UpdateMode );
54  void changeDisplayMail(Viewer::ForceDisplayTo displayAsHtml, bool remoteContent);
55 
56 private Q_SLOTS:
57  void slotSearchJobFinished( KJob *job );
58 
59 private:
60  void searchPhoto(const KABC::AddresseeList &list);
61  bool mFinished;
62  bool mMailAllowToRemoteContent;
63  Viewer::ForceDisplayTo mForceDisplayTo;
64  KABC::Picture mPhoto;
65 };
66 
67 }
68 
69 
70 #endif /* CONTACTDISPLAYMESSAGE_H */
71 
viewer.h
MessageViewer::ContactDisplayMessageMemento::update
void update(MessageViewer::Viewer::UpdateMode)
MessageViewer::Viewer::UpdateMode
UpdateMode
The display update mode: Force updates the display immediately, Delayed updates after some time (150m...
Definition: viewer.h:132
QObject
MessageViewer::Viewer::ForceDisplayTo
ForceDisplayTo
Definition: viewer.h:108
MessageViewer::ContactDisplayMessageMemento::ContactDisplayMessageMemento
ContactDisplayMessageMemento(const QString &emailAddress)
Definition: contactdisplaymessagememento.cpp:25
MessageViewer::ContactDisplayMessageMemento
Definition: contactdisplaymessagememento.h:35
bodypart.h
MessageViewer::ContactDisplayMessageMemento::processAddress
void processAddress(const KABC::Addressee &addressee)
Definition: contactdisplaymessagememento.cpp:102
MessageViewer::ContactDisplayMessageMemento::changeDisplayMail
void changeDisplayMail(Viewer::ForceDisplayTo displayAsHtml, bool remoteContent)
MessageViewer::Interface::BodyPartMemento
interface of classes that implement status for BodyPartFormatters.
Definition: bodypart.h:55
MessageViewer::ContactDisplayMessageMemento::~ContactDisplayMessageMemento
~ContactDisplayMessageMemento()
Definition: contactdisplaymessagememento.cpp:41
MessageViewer::ContactDisplayMessageMemento::detach
void detach()
Definition: contactdisplaymessagememento.cpp:71
MessageViewer::ContactDisplayMessageMemento::photo
KABC::Picture photo() const
Definition: contactdisplaymessagememento.cpp:123
MessageViewer::ContactDisplayMessageMemento::forceToHtml
bool forceToHtml() const
Definition: contactdisplaymessagememento.cpp:82
MessageViewer::ContactDisplayMessageMemento::allowToRemoteContent
bool allowToRemoteContent() const
Definition: contactdisplaymessagememento.cpp:77
MessageViewer::ContactDisplayMessageMemento::forceToText
bool forceToText() const
Definition: contactdisplaymessagememento.cpp:87
MessageViewer::ContactDisplayMessageMemento::finished
bool finished() const
Definition: contactdisplaymessagememento.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