Coverage Report

Created: 2026-03-31 07:41

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/qtbase/src/gui/kernel/qplatformclipboard.h
Line
Count
Source
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
#ifndef QPLATFORMCLIPBOARD_H
6
#define QPLATFORMCLIPBOARD_H
7
8
//
9
//  W A R N I N G
10
//  -------------
11
//
12
// This file is part of the QPA API and is not meant to be used
13
// in applications. Usage of this API may make your code
14
// source and binary incompatible with future versions of Qt.
15
//
16
17
#include <QtGui/qtguiglobal.h>
18
19
#ifndef QT_NO_CLIPBOARD
20
21
#include <QtGui/QClipboard>
22
23
QT_BEGIN_NAMESPACE
24
25
26
class Q_GUI_EXPORT QPlatformClipboard
27
{
28
public:
29
    Q_DISABLE_COPY_MOVE(QPlatformClipboard)
30
31
0
    QPlatformClipboard() = default;
32
    virtual ~QPlatformClipboard();
33
34
    virtual QMimeData *mimeData(QClipboard::Mode mode = QClipboard::Clipboard);
35
    virtual void setMimeData(QMimeData *data, QClipboard::Mode mode = QClipboard::Clipboard);
36
    virtual bool supportsMode(QClipboard::Mode mode) const;
37
    virtual bool ownsMode(QClipboard::Mode mode) const;
38
    void emitChanged(QClipboard::Mode mode);
39
};
40
41
QT_END_NAMESPACE
42
43
#endif // QT_NO_CLIPBOARD
44
45
#endif //QPLATFORMCLIPBOARD_H