Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qcupsjobwidget_p.h
Go to the documentation of this file.
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
6#ifndef QCUPSJOBWIDGET_P_H
7#define QCUPSJOBWIDGET_P_H
8
9//
10// W A R N I N G
11// -------------
12//
13// This file is not part of the Qt API. It exists purely as an
14// implementation detail. This header file may change from version to
15// to version without notice, or even be removed.
16//
17// We mean it.
18//
19//
20
21#include <QtPrintSupport/private/qtprintsupportglobal_p.h>
22#include <private/qcups_p.h>
23
25
26#include <ui_qcupsjobwidget.h>
27
28QT_BEGIN_NAMESPACE
29
30class QString;
31class QTime;
32class QPrinter;
33class QPrintDevice;
34
35class QCupsJobWidget : public QWidget
36{
38
39public:
42 void setupPrinter();
43 void updateSavedValues();
45
46private Q_SLOTS:
47 void toggleJobHoldTime();
48
49private:
50
51 void setJobHold(QCUPSSupport::JobHoldUntil jobHold = QCUPSSupport::NoHold, QTime holdUntilTime = QTime());
52 QCUPSSupport::JobHoldUntil jobHold() const;
53 QTime jobHoldTime() const;
54
55 void setJobBilling(const QString &jobBilling = QString());
56 QString jobBilling() const;
57
58 void setJobPriority(int priority = 50);
59 int jobPriority() const;
60
61 void setStartBannerPage(const QCUPSSupport::BannerPage bannerPage = QCUPSSupport::NoBanner);
62 QCUPSSupport::BannerPage startBannerPage() const;
63
64 void setEndBannerPage(const QCUPSSupport::BannerPage bannerPage = QCUPSSupport::NoBanner);
65 QCUPSSupport::BannerPage endBannerPage() const;
66
67 void initJobHold();
68 void initJobBilling();
69 void initJobPriority();
70 void initBannerPages();
71
72 QPrinter *m_printer;
73 QPrintDevice *m_printDevice;
74 Ui::QCupsJobWidget m_ui;
75
76 QCUPSSupport::JobHoldUntilWithTime m_savedJobHoldWithTime;
77 QString m_savedJobBilling;
78 int m_savedPriority;
79 QCUPSSupport::JobSheets m_savedJobSheets;
80
82};
83
84QT_END_NAMESPACE
85
86#endif // QCUPSJOBWIDGET_P_H
QObject * parent
Definition qobject.h:74
\reentrant
Definition qprinter.h:29
Combined button and popup list for selecting options.
QT_REQUIRE_CONFIG(cupsjobwidget)