File indexing completed on 2022-11-29 20:00:35

0001 // SPDX-FileCopyrightText: 2021 Carl Schwan <carlschwan@kde.org>
0002 // SPDX-License-Identifier: LGPL-2.0-or-later
0003 
0004 #pragma once
0005 
0006 #include <QObject>
0007 
0008 class QClipboard;
0009 class QImage;
0010 
0011 /**
0012  * Clipboard proxy
0013  */
0014 class Clipboard : public QObject
0015 {
0016     Q_OBJECT
0017 public:
0018     explicit Clipboard(QObject *parent = nullptr);
0019     Q_INVOKABLE void saveText(const QString &message);
0020 
0021 private:
0022     QClipboard *m_clipboard;
0023 };