Baloo Widgets

tagsfileitemaction.h
1/*
2 SPDX-FileCopyrightText: 2018 Nicolas Fella <nicolas.fella@gmx.de>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#ifndef TAGSFILEITEMACTION_H
8#define TAGSFILEITEMACTION_H
9
10#include <KAbstractFileItemActionPlugin>
11#include <KCoreDirLister>
12#include <KFileItemListProperties>
13#include <KFileMetaData/UserMetaData>
14
15class QAction;
16class QWidget;
17
18class TagsFileItemAction : public KAbstractFileItemActionPlugin
19{
21public:
22 TagsFileItemAction(QObject *parent, const QVariantList &args);
23 ~TagsFileItemAction() override;
24 QList<QAction *> actions(const KFileItemListProperties &fileItemInfos, QWidget *parentWidget) override;
25
26private:
27 KFileMetaData::UserMetaData *m_metaData = nullptr;
28 KCoreDirLister m_tagsLister;
29 QMenu *m_menu;
30 QAction *newAction;
31};
32
33#endif // TAGSFILEITEMACTION_H
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:52:38 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.