| 1 | /* |
| 2 | * SPDX-FileCopyrightText: 2009 Alan Alpert <alan.alpert@nokia.com> |
| 3 | * SPDX-FileCopyrightText: 2010 Ménard Alexis <menard@kde.org> |
| 4 | * SPDX-FileCopyrightText: 2010 Marco Martin <mart@kde.org> |
| 5 | * |
| 6 | * SPDX-License-Identifier: LGPL-2.0-or-later |
| 7 | */ |
| 8 | |
| 9 | #ifndef COPYHELPER_H |
| 10 | #define COPYHELPER_H |
| 11 | |
| 12 | #include <QObject> |
| 13 | #include <qqmlregistration.h> |
| 14 | |
| 15 | class CopyHelperPrivate : public QObject |
| 16 | { |
| 17 | Q_OBJECT |
| 18 | QML_ELEMENT |
| 19 | QML_SINGLETON |
| 20 | public: |
| 21 | Q_INVOKABLE void copyTextToClipboard(const QString &text); |
| 22 | }; |
| 23 | |
| 24 | #endif |
| 25 | |