55 #include "QtCore/qstring.h" 56 #include "QtCore/qstringlist.h" 57 #include "QtGui/qprinter.h" 60 #include <QtCore/qlibrary.h> 61 #include <cups/cups.h> 75 static int cupsVersion() {
return isAvailable() ? CUPS_VERSION_MAJOR*10000+CUPS_VERSION_MINOR*100+CUPS_VERSION_PATCH : 0; }
100 int printFile(
const char * printerName,
const char * filename,
const char * title,
101 int num_options, cups_option_t * options);
112 #ifndef QT_NO_TEXTCODEC const ppd_option_t * ppdOption(const char *key) const
const ppd_file_t * currentPPD() const
int markOption(const char *name, const char *value)
#define QT_END_NAMESPACE
This macro expands to.
int availablePrintersCount() const
const ppd_option_t * page_sizes
void collectMarkedOptionsHelper(QStringList &list, const ppd_group_t *group) const
The QString class provides a Unicode character string.
QRect pageRect(const char *choice) const
const cups_dest_t * availablePrinters() const
static bool isAvailable()
#define QT_BEGIN_NAMESPACE
This macro expands to.
const ppd_option_t * pageSizes() const
int printFile(const char *printerName, const char *filename, const char *title, int num_options, cups_option_t *options)
QRect paperRect(const char *choice) const
QStringList options() const
The QStringList class provides a list of strings.
void saveOptions(QList< const ppd_option_t *> options, QList< const char *> markedOptions)
QPair< int, QString > tempFd()
int currentPrinterIndex() const
const cups_option_t * printerOption(const QString &key) const
Q_DECLARE_TYPEINFO(cups_option_t, Q_MOVABLE_TYPE|Q_PRIMITIVE_TYPE)
const ppd_file_t * setCurrentPrinter(int index)
QString unicodeString(const char *s)
The QRect class defines a rectangle in the plane using integer precision.
void collectMarkedOptions(QStringList &list, const ppd_group_t *group=0) const
The QTextCodec class provides conversions between text encodings.
static bool printerHasPPD(const char *printerName)
The QList class is a template class that provides lists.