1/*
2 SPDX-FileCopyrightText: 2011 Alejandro Fiestas Olivares <afiestas@kde.org>
3 SPDX-FileCopyrightText: 2014 Aleix Pol Gonzalez <aleixpol@kde.org>
4 SPDX-FileCopyrightText: 2018 Nicolas Fella <nicolas.fella@gmx.de>
5
6 SPDX-License-Identifier: GPL-2.0-or-later
7*/
8
9#ifndef SHAREFILEITEMACTION_H
10#define SHAREFILEITEMACTION_H
11
12#include <KAbstractFileItemActionPlugin>
13#include <KFileItemListProperties>
14#include <QLoggingCategory>
15
16class QAction;
17class KFileItemListProperties;
18class QWidget;
19
20namespace Purpose
21{
22class Menu;
23}
24
25Q_DECLARE_LOGGING_CATEGORY(PURPOSE_FILEITEMACTION)
26class ShareFileItemAction : public KAbstractFileItemActionPlugin
27{
28 Q_OBJECT
29public:
30 ShareFileItemAction(QObject *parent);
31 ~ShareFileItemAction() override;
32 QList<QAction *> actions(const KFileItemListProperties &fileItemInfos, QWidget *parentWidget) override;
33
34private:
35 Purpose::Menu *m_menu;
36 bool m_isFinished = false;
37};
38
39#endif // SHAREFILEITEMACTION_H
40

source code of purpose/src/fileitemactionplugin/sharefileitemaction.h