summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpdfoutputintent.h
blob: cdeb6da2a4e0e6ede537d7707e8ee2a3ce9932fc (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// Copyright (C) 2024 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com, author Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only

#ifndef QPDFOUTPUTINTENT_H
#define QPDFOUTPUTINTENT_H

#include <QtGui/qtguiglobal.h>

#ifndef QT_NO_PDF

#include <QtCore/qshareddata.h>

QT_BEGIN_NAMESPACE

class QString;
class QUrl;
class QColorSpace;

class QPdfOutputIntentPrivate;
QT_DECLARE_QESDP_SPECIALIZATION_DTOR_WITH_EXPORT(QPdfOutputIntentPrivate, Q_GUI_EXPORT)

class Q_GUI_EXPORT QPdfOutputIntent
{
public:
    QPdfOutputIntent();
    QPdfOutputIntent(const QPdfOutputIntent &other);
    QPdfOutputIntent(QPdfOutputIntent &&other) noexcept = default;
    QPdfOutputIntent &operator=(const QPdfOutputIntent &other);
    QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(QPdfOutputIntent)
    ~QPdfOutputIntent();

    void swap(QPdfOutputIntent &other) noexcept { d.swap(other.d); }

    QString outputConditionIdentifier() const;
    void setOutputConditionIdentifier(const QString &identifier);

    QString outputCondition() const;
    void setOutputCondition(const QString &condition);

    QUrl registryName() const;
    void setRegistryName(const QUrl &name);

    QColorSpace outputProfile() const;
    void setOutputProfile(const QColorSpace &profile);

private:
    QExplicitlySharedDataPointer<QPdfOutputIntentPrivate> d;
};

Q_DECLARE_SHARED(QPdfOutputIntent)

QT_END_NAMESPACE

#endif // QT_NO_PDF

#endif // QPDFOUTPUTINTENT_H