/*
|
|
SPDX-FileCopyrightText: 2017-2021 Laurent Montel <montel@kde.org>
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "pepcomposerviewbase.h"
|
|
|
|
#include <MessageComposer/ConvertSnippetVariablesJob>
|
|
#include <MessageComposer/PluginComposerInterface>
|
|
#include <MessageComposer/MessageComposerSettings>
|
|
#include <MessageComposer/PluginEditorInterface>
|
|
|
|
#include <MailTransport/Transport>
|
|
|
|
#include <editor/kmcomposerwin.h>
|
|
|
|
class pEpComposerPluginEditorInterface : public MessageComposer::PluginEditorInterface
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit pEpComposerPluginEditorInterface(QObject *parent = nullptr);
|
|
~pEpComposerPluginEditorInterface() override;
|
|
void createAction(KActionCollection *ac) override;
|
|
void exec() override;
|
|
void reloadConfig();
|
|
|
|
public Q_SLOTS:
|
|
void slotSendNow();
|
|
|
|
private Q_SLOTS:
|
|
void slotSendNowByShortcut();
|
|
void slotSendLater();
|
|
void slotSendNowVia(MailTransport::Transport *transport);
|
|
void slotSendLaterVia(MailTransport::Transport *transport);
|
|
void slotActivated();
|
|
|
|
private:
|
|
void prepareMessage();
|
|
|
|
bool mEnabled = false;
|
|
};
|
|
|