Baloo Widgets

tagsfileitemaction.h
1 /*
2  SPDX-FileCopyrightText: 2018 Nicolas Fella <[email protected]>
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 
15 class QAction;
16 class QWidget;
17 
18 class TagsFileItemAction : public KAbstractFileItemActionPlugin
19 {
20  Q_OBJECT
21 public:
22  TagsFileItemAction(QObject *parent, const QVariantList &args);
23  ~TagsFileItemAction() override;
24  QList<QAction *> actions(const KFileItemListProperties &fileItemInfos, QWidget *parentWidget) override;
25 
26 private:
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
virtual QList< QAction * > actions(const KFileItemListProperties &fileItemInfos, QWidget *parentWidget)=0
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Aug 11 2022 04:13:42 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.