2021-04-29 23:52:55 +03:00
|
|
|
// SPDX-FileCopyrightText: 2021 Nheko Contributors
|
2022-01-01 06:57:53 +03:00
|
|
|
// SPDX-FileCopyrightText: 2022 Nheko Contributors
|
2021-04-29 23:52:55 +03:00
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2021-04-29 22:46:49 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include <QString>
|
|
|
|
|
|
|
|
class Clipboard : public QObject
|
|
|
|
{
|
2021-09-18 01:22:33 +03:00
|
|
|
Q_OBJECT
|
|
|
|
Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged)
|
2021-04-29 22:46:49 +03:00
|
|
|
|
|
|
|
public:
|
2021-09-18 01:22:33 +03:00
|
|
|
Clipboard(QObject *parent = nullptr);
|
2021-04-29 22:46:49 +03:00
|
|
|
|
2021-09-18 01:22:33 +03:00
|
|
|
QString text() const;
|
|
|
|
void setText(QString text_);
|
2021-04-29 22:46:49 +03:00
|
|
|
signals:
|
2021-09-18 01:22:33 +03:00
|
|
|
void textChanged();
|
2021-04-29 22:46:49 +03:00
|
|
|
};
|