aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/clipboard/clipboard.hpp
blob: 1aa213ceb1356652e88052f91619241213497dc5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#ifdef __cplusplus
extern "C" {
#endif

class Clipboard : public QObject
{
    Q_OBJECT
    Q_PROPERTY(QString get READ get WRITE toClipboard NOTIFY clipboardChanged)
public:
    Clipboard();
    virtual ~Clipboard(){}

    Q_INVOKABLE void toClipboard(QString _text);

signals:
    void clipboardChanged();
};

#ifdef __cplusplus
} // extern "C"
#endif