File indexing completed on 2025-01-05 04:36:20

0001 /*
0002  * SPDX-FileCopyrightText: 2020 David Barchiesi <david@barchie.si>
0003  *
0004  * SPDX-License-Identifier: GPL-2.0-or-later
0005  *
0006  */
0007 
0008 #ifndef CONTEXTMENUACTION_H
0009 #define CONTEXTMENUACTION_H
0010 
0011 #include <KAbstractFileItemActionPlugin>
0012 #include <KFileItem>
0013 
0014 class ContextMenuAction : public KAbstractFileItemActionPlugin
0015 {
0016     Q_OBJECT
0017 
0018 public:
0019     ContextMenuAction(QObject *parent, const QVariantList &args);
0020     QList<QAction *> actions(const KFileItemListProperties &fileItemInfos, QWidget *parentWidget) override;
0021 
0022 private:
0023     QAction *createCopyUrlAction(QWidget *parent, const QString &gdriveLink);
0024     QAction *createOpenUrlAction(QWidget *parent, const QString &gdriveLink);
0025 };
0026 
0027 #endif