Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
24
QT_REQUIRE_CONFIG
(
cupsjobwidget
);
25
26
#
include
<
ui_qcupsjobwidget
.
h
>
27
28
QT_BEGIN_NAMESPACE
29
30
class
QString;
31
class
QTime;
32
class
QPrinter;
33
class
QPrintDevice;
34
35
class
QCupsJobWidget
:
public
QWidget
36
{
37
Q_OBJECT
38
39
public
:
40
explicit
QCupsJobWidget
(
QPrinter
*
printer
,
QPrintDevice
*
printDevice
,
QWidget
*
parent
=
nullptr
);
41
~
QCupsJobWidget
();
42
void
setupPrinter
();
43
void
updateSavedValues
();
44
void
revertToSavedValues
();
45
46
private
Q_SLOTS
:
47
void
toggleJobHoldTime
();
48
49
private
:
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
81
Q_DISABLE_COPY_MOVE
(
QCupsJobWidget
)
82
};
83
84
QT_END_NAMESPACE
85
86
#
endif
// QCUPSJOBWIDGET_P_H
QCupsJobWidget
Definition
qcupsjobwidget_p.h:36
QCupsJobWidget::~QCupsJobWidget
~QCupsJobWidget()
Definition
qcupsjobwidget.cpp:49
QCupsJobWidget::revertToSavedValues
void revertToSavedValues()
Definition
qcupsjobwidget.cpp:69
QCupsJobWidget::updateSavedValues
void updateSavedValues()
Definition
qcupsjobwidget.cpp:61
QCupsJobWidget::setupPrinter
void setupPrinter()
Definition
qcupsjobwidget.cpp:53
QObjectData::parent
QObject * parent
Definition
qobject.h:74
QPrinter
\reentrant
Definition
qprinter.h:29
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QT_REQUIRE_CONFIG
QT_REQUIRE_CONFIG(cupsjobwidget)
qtbase
src
printsupport
widgets
qcupsjobwidget_p.h
Generated on
for Qt by
1.18.0