Changeset View
Changeset View
Standalone View
Standalone View
libkcups/KIppRequest.cpp
Show First 20 Lines • Show All 182 Lines • ▼ Show 20 Line(s) | 181 | { | |||
---|---|---|---|---|---|
183 | 183 | | |||
184 | QString destination; | 184 | QString destination; | ||
185 | if (isClass) { | 185 | if (isClass) { | ||
186 | destination = QLatin1String("/classes/") + name; | 186 | destination = QLatin1String("/classes/") + name; | ||
187 | } else { | 187 | } else { | ||
188 | destination = QLatin1String("/printers/") + name; | 188 | destination = QLatin1String("/printers/") + name; | ||
189 | } | 189 | } | ||
190 | 190 | | |||
191 | httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", cupsUser(), "localhost", | 191 | httpAssembleURI(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", cupsUser(), "localhost", | ||
192 | ippPort(), destination.toUtf8().constData()); | 192 | ippPort(), destination.toUtf8().constData()); | ||
193 | return QString::fromLatin1(uri); | 193 | return QString::fromLatin1(uri); | ||
194 | } | 194 | } | ||
195 | 195 | | |||
196 | KIppRequest &KIppRequest::operator =(const KIppRequest &other) | 196 | KIppRequest &KIppRequest::operator =(const KIppRequest &other) | ||
197 | { | 197 | { | ||
198 | Q_D(KIppRequest); | 198 | Q_D(KIppRequest); | ||
199 | if (this == &other) | 199 | if (this == &other) | ||
▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines |