KDE PIM support for the p≡p engine
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

49 lines
1.4 KiB

/*
SPDX-FileCopyrightText: 2015-2020 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef VIEWERPLUGINCREATENOTEINTERFACE_H
#define VIEWERPLUGINCREATENOTEINTERFACE_H
#include <MessageViewer/ViewerPluginInterface>
#include <QDBusInterface>
#include <QDBusReply>
#include <pEp/message.h>
class KActionCollection;
class QLabel;
class QDBusInterface;
class QByteArray;
namespace pEp {
class Client;
}
namespace MessageViewer {
class pEpViewerInterface : public ViewerPluginInterface
{
Q_OBJECT
public:
explicit pEpViewerInterface(KActionCollection *ac, QWidget *parent = nullptr);
~pEpViewerInterface() override;
Q_REQUIRED_RESULT QList<QAction *> actions() const override;
void setMessage(const KMime::Message::Ptr &value) override;
void closePlugin() override;
void showWidget() override;
void setMessageItem(const Akonadi::Item &item) override;
void updateAction(const Akonadi::Item &item) override;
Q_REQUIRED_RESULT ViewerPluginInterface::SpecificFeatureTypes featureTypes() const override;
//Q_REQUIRED_RESULT MessageViewer::ViewerPluginInterface *createView(QWidget *parent, KActionCollection *ac);
private:
QDBusInterface *m_pEpClient = nullptr;
Akonadi::Item mMessageItem;
QList<QAction *> mAction;
QWidget *mStatusWidget = nullptr;
};
}
#endif // VIEWERPLUGINCREATENOTEINTERFACE_H