File indexing completed on 2024-05-12 16:21:16
0001 // SPDX-FileCopyrightText: 2023 Mathis BrĂ¼chert <mbb@kaidan.im> 0002 // 0003 // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0004 0005 #ifndef CLIPBOARD_H 0006 #define CLIPBOARD_H 0007 0008 #include <QObject> 0009 0010 class Clipboard : public QObject 0011 { 0012 Q_OBJECT 0013 Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged) 0014 0015 public: 0016 explicit Clipboard(QObject *parent = nullptr); 0017 0018 void setText(const QString &text); 0019 QString text() const; 0020 0021 Q_SIGNAL void textChanged(); 0022 }; 0023 0024 #endif // CLIPBOARD_H