1 | /****************************************************************************
|
---|
2 | **
|
---|
3 | ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
---|
4 | ** Contact: Qt Software Information ([email protected])
|
---|
5 | **
|
---|
6 | ** This file is part of the documentation of the Qt Toolkit.
|
---|
7 | **
|
---|
8 | ** $QT_BEGIN_LICENSE:LGPL$
|
---|
9 | ** Commercial Usage
|
---|
10 | ** Licensees holding valid Qt Commercial licenses may use this file in
|
---|
11 | ** accordance with the Qt Commercial License Agreement provided with the
|
---|
12 | ** Software or, alternatively, in accordance with the terms contained in
|
---|
13 | ** a written agreement between you and Nokia.
|
---|
14 | **
|
---|
15 | ** GNU Lesser General Public License Usage
|
---|
16 | ** Alternatively, this file may be used under the terms of the GNU Lesser
|
---|
17 | ** General Public License version 2.1 as published by the Free Software
|
---|
18 | ** Foundation and appearing in the file LICENSE.LGPL included in the
|
---|
19 | ** packaging of this file. Please review the following information to
|
---|
20 | ** ensure the GNU Lesser General Public License version 2.1 requirements
|
---|
21 | ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
---|
22 | **
|
---|
23 | ** In addition, as a special exception, Nokia gives you certain
|
---|
24 | ** additional rights. These rights are described in the Nokia Qt LGPL
|
---|
25 | ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
|
---|
26 | ** package.
|
---|
27 | **
|
---|
28 | ** GNU General Public License Usage
|
---|
29 | ** Alternatively, this file may be used under the terms of the GNU
|
---|
30 | ** General Public License version 3.0 as published by the Free Software
|
---|
31 | ** Foundation and appearing in the file LICENSE.GPL included in the
|
---|
32 | ** packaging of this file. Please review the following information to
|
---|
33 | ** ensure the GNU General Public License version 3.0 requirements will be
|
---|
34 | ** met: http://www.gnu.org/copyleft/gpl.html.
|
---|
35 | **
|
---|
36 | ** If you are unsure which license is appropriate for your use, please
|
---|
37 | ** contact the sales department at [email protected].
|
---|
38 | ** $QT_END_LICENSE$
|
---|
39 | **
|
---|
40 | ****************************************************************************/
|
---|
41 |
|
---|
42 | /*!
|
---|
43 | \class QPrinterInfo
|
---|
44 |
|
---|
45 | \brief The QPrinterInfo class gives access to information about
|
---|
46 | existing printers.
|
---|
47 |
|
---|
48 | Use the static functions to generate a list of QPrinterInfo
|
---|
49 | objects. Each QPrinterInfo object in the list represents a single
|
---|
50 | printer and can be queried for name, supported paper sizes, and
|
---|
51 | whether or not it is the default printer.
|
---|
52 |
|
---|
53 | \since 4.4
|
---|
54 | */
|
---|
55 |
|
---|
56 | /*!
|
---|
57 | \fn QList<QPrinterInfo> QPrinterInfo::availablePrinters()
|
---|
58 |
|
---|
59 | Returns a list of available printers on the system.
|
---|
60 | */
|
---|
61 |
|
---|
62 | /*!
|
---|
63 | \fn QPrinterInfo QPrinterInfo::defaultPrinter()
|
---|
64 |
|
---|
65 | Returns the default printer on the system.
|
---|
66 |
|
---|
67 | The return value should be checked using isNull() before being
|
---|
68 | used, in case there is no default printer.
|
---|
69 |
|
---|
70 | \sa isNull()
|
---|
71 | */
|
---|
72 |
|
---|
73 | /*!
|
---|
74 | \fn QPrinterInfo::QPrinterInfo()
|
---|
75 |
|
---|
76 | Constructs an empty QPrinterInfo object.
|
---|
77 |
|
---|
78 | \sa isNull()
|
---|
79 | */
|
---|
80 |
|
---|
81 | /*!
|
---|
82 | \fn QPrinterInfo::QPrinterInfo(const QPrinterInfo& src)
|
---|
83 |
|
---|
84 | Constructs a copy of \a src.
|
---|
85 | */
|
---|
86 |
|
---|
87 | /*!
|
---|
88 | \fn QPrinterInfo::QPrinterInfo(const QPrinter& printer)
|
---|
89 |
|
---|
90 | Constructs a QPrinterInfo object from \a printer.
|
---|
91 | */
|
---|
92 |
|
---|
93 | /*!
|
---|
94 | \fn QPrinterInfo::~QPrinterInfo()
|
---|
95 |
|
---|
96 | Destroys the QPrinterInfo object. References to the values in the
|
---|
97 | object become invalid.
|
---|
98 | */
|
---|
99 |
|
---|
100 | /*!
|
---|
101 | \fn QPrinterInfo& QPrinterInfo::operator=(const QPrinterInfo& src)
|
---|
102 |
|
---|
103 | Sets the QPrinterInfo object to be equal to \a src.
|
---|
104 | */
|
---|
105 |
|
---|
106 | /*!
|
---|
107 | \fn QString QPrinterInfo::printerName() const
|
---|
108 |
|
---|
109 | Returns the name of the printer.
|
---|
110 |
|
---|
111 | \sa QPrinter::setPrinterName()
|
---|
112 | */
|
---|
113 |
|
---|
114 | /*!
|
---|
115 | \fn bool QPrinterInfo::isNull() const
|
---|
116 |
|
---|
117 | Returns whether this QPrinterInfo object holds a printer definition.
|
---|
118 |
|
---|
119 | An empty QPrinterInfo object could result for example from calling
|
---|
120 | defaultPrinter() when there are no printers on the system.
|
---|
121 | */
|
---|
122 |
|
---|
123 | /*!
|
---|
124 | \fn bool QPrinterInfo::isDefault() const
|
---|
125 |
|
---|
126 | Returns whether this printer is the default printer.
|
---|
127 | */
|
---|
128 |
|
---|
129 | /*!
|
---|
130 | \fn QList< QPrinter::PaperSize> QPrinterInfo::supportedPaperSizes() const
|
---|
131 | \since 4.4
|
---|
132 |
|
---|
133 | Returns a list of supported paper sizes by the printer.
|
---|
134 |
|
---|
135 | Not all printer drivers support this query, so the list may be empty.
|
---|
136 | On Mac OS X 10.3, this function always returns an empty list.
|
---|
137 | */
|
---|