syncthingtray/fileitemactionplugin/syncthingmenuaction.h

30 lines
706 B
C++

#ifndef SYNCTHINGMENUACTION_H
#define SYNCTHINGMENUACTION_H
#include <KFileItemListProperties>
#include <QAction>
namespace Data {
enum class SyncthingStatus;
}
/*!
* \brief The SyncthingMenuAction class provides the top-level menu "Syncthing" entry for the context menu.
*/
class SyncthingMenuAction : public QAction {
Q_OBJECT
public:
explicit SyncthingMenuAction(const KFileItemListProperties &properties = KFileItemListProperties(),
const QList<QAction *> &actions = QList<QAction *>(), QWidget *parentWidget = nullptr);
public Q_SLOTS:
void updateStatus(Data::SyncthingStatus status);
private:
KFileItemListProperties m_properties;
};
#endif // SYNCTHINGMENUACTION_H