summaryrefslogtreecommitdiffstats
path: root/src/Clipboard.h
blob: e3321c02a01a579fa381a71ce2343b1752946d9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-FileCopyrightText: Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later

#pragma once

#include <QObject>
#include <QQmlEngine>
#include <QString>

class Clipboard : public QObject
{
    Q_OBJECT
    QML_ELEMENT
    QML_SINGLETON

    Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged)

public:
    Clipboard(QObject *parent = nullptr);

    QString text() const;
    void setText(QString text_);
signals:
    void textChanged();
};