File indexing completed on 2024-04-28 15:40:12

0001 // SPDX-FileCopyrightText: 2021-2023 Tobias Leupold <tl at stonemx dot de>
0002 //
0003 // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0004 
0005 #ifndef COPYLINKENGINE_H
0006 #define COPYLINKENGINE_H
0007 
0008 // Qt includes
0009 #include <QObject>
0010 
0011 namespace MainWindow
0012 {
0013 
0014 class CopyLinkEngine : public QObject
0015 {
0016     Q_OBJECT
0017 
0018 public:
0019     enum Action {
0020         Copy,
0021         Link
0022     };
0023 
0024     explicit CopyLinkEngine(QObject *parent);
0025 
0026 public Q_SLOTS:
0027     void selectTarget(QWidget *parent, const QList<QUrl> &files, Action action);
0028 
0029 private: // Variables
0030     QString m_lastTarget;
0031 };
0032 
0033 }
0034 
0035 #endif // COPYLINKENGINE_H
0036 
0037 // vi:expandtab:tabstop=4 shiftwidth=4: