diff --git a/libkcups/KCupsRequest.cpp b/libkcups/KCupsRequest.cpp index e6d3bd9..ea90ccf 100644 --- a/libkcups/KCupsRequest.cpp +++ b/libkcups/KCupsRequest.cpp @@ -194,10 +194,9 @@ void KCupsRequest::getJobs(const QString &printerName, bool myJobs, int whichJob // printer-uri makes the Name of the Job and owner came blank lol request.addPrinterUri(printerName, false); - request.addInteger(IPP_TAG_OPERATION, IPP_TAG_ENUM, KCUPS_PRINTER_TYPE, CUPS_PRINTER_LOCAL); request.addStringList(IPP_TAG_OPERATION, IPP_TAG_KEYWORD, KCUPS_REQUESTED_ATTRIBUTES, attributes); - request.addInteger(IPP_TAG_OPERATION, IPP_TAG_ENUM, KCUPS_MY_JOBS, myJobs); + request.addBoolean(IPP_TAG_OPERATION, KCUPS_MY_JOBS, myJobs); if (whichJobs == CUPS_WHICHJOBS_COMPLETED) { request.addString(IPP_TAG_OPERATION, IPP_TAG_KEYWORD, KCUPS_WHICH_JOBS, QLatin1String("completed")); diff --git a/libkcups/KIppRequest.cpp b/libkcups/KIppRequest.cpp index 42adc2c..c108f68 100644 --- a/libkcups/KIppRequest.cpp +++ b/libkcups/KIppRequest.cpp @@ -244,7 +244,7 @@ void KIppRequestPrivate::addRawRequestsToIpp(ipp_t *ipp) const request.group, request.valueTag, request.name.toUtf8().constData(), - "utf-8", + NULL, request.value.toString().toUtf8().constData()); break; case QVariant::StringList: @@ -258,7 +258,7 @@ void KIppRequestPrivate::addRawRequestsToIpp(ipp_t *ipp) const request.valueTag, request.name.toUtf8().constData(), list.size(), - "utf-8", + NULL, values); // ippAddStrings deep copies everything so we can throw away the values.