Messagelib
8#include "interfaces/bodypart.h"
9#include "messageviewer/viewer.h"
11#include <KContacts/Addressee>
12#include <KContacts/Picture>
27namespace MessageViewer
29class ContactDisplayMessageMemento :
public QObject,
public MimeTreeParser::Interface::BodyPartMemento
33 explicit ContactDisplayMessageMemento(
const QString &emailAddress);
34 ~ContactDisplayMessageMemento()
override;
35 void processAddress(
const KContacts::Addressee &addressee);
36 [[nodiscard]] KContacts::Picture photo()
const;
38 [[nodiscard]]
bool finished()
const;
40 void detach()
override;
42 [[nodiscard]] QPixmap gravatarPixmap()
const;
44 [[nodiscard]] QImage imageFromUrl()
const;
48 void update(MimeTreeParser::UpdateMode);
49 void changeDisplayMail(Viewer::DisplayFormatMessage displayAsHtml,
bool remoteContent);
52 void slotGravatarResolvUrlFinished(Gravatar::GravatarResolvUrlJob *);
53 void slotSearchJobFinished(KJob *job);
54 [[nodiscard]]
bool searchPhoto(
const KContacts::AddresseeList &list);
55 KContacts::Picture mPhoto;
56 QPixmap mGravatarPixmap;
58 const QString mEmailAddress;
59 bool mFinished =
false;
60 QPointer<Akonadi::ContactSearchJob> mSearchJob;
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:47:40 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.