~jonas-drange/ubuntu-ui-extras/clean-up-for-review

« back to all changes in this revision

Viewing changes to modules/Ubuntu/Components/Extras/Printers/backend/backend_cups.cpp

  • Committer: Jonas G. Drange
  • Date: 2017-02-23 14:04:26 UTC
  • Revision ID: jonas.drange@canonical.com-20170223140426-aeu0wgeeistsr0tr
drops a lot of code that was not used, and some TODOS/FIXMES that aren't necessary

Show diffs side-by-side

added added

removed removed

Lines of Context:
187
187
    return QString();
188
188
}
189
189
 
190
 
QString PrinterCupsBackend::printerSetLocation(const QString &name,
191
 
                                               const QString &location)
192
 
{
193
 
    Q_UNUSED(name);
194
 
    Q_UNUSED(location);
195
 
    return QString();
196
 
}
197
 
 
198
 
QString PrinterCupsBackend::printerSetShared(const QString &name,
199
 
                                             const bool shared)
200
 
{
201
 
    Q_UNUSED(name);
202
 
    Q_UNUSED(shared);
203
 
    return QString();
204
 
}
205
 
 
206
 
QString PrinterCupsBackend::printerSetJobSheets(const QString &name,
207
 
                                                const QString &start,
208
 
                                                const QString &end)
209
 
{
210
 
    Q_UNUSED(name);
211
 
    Q_UNUSED(start);
212
 
    Q_UNUSED(end);
213
 
    return QString();
214
 
}
215
 
 
216
 
QString PrinterCupsBackend::printerSetErrorPolicy(const QString &name,
217
 
                                                  const PrinterEnum::ErrorPolicy &policy)
218
 
{
219
 
    Q_UNUSED(name);
220
 
    Q_UNUSED(policy);
221
 
    return QString();
222
 
}
223
 
 
224
 
QString PrinterCupsBackend::printerSetOpPolicy(const QString &name,
225
 
                                               const PrinterEnum::OperationPolicy &policy)
226
 
{
227
 
    Q_UNUSED(name);
228
 
    Q_UNUSED(policy);
229
 
    return QString();
230
 
}
231
 
 
232
 
QString PrinterCupsBackend::printerSetUsersAllowed(const QString &name,
233
 
                                                   const QStringList &users)
234
 
{
235
 
    Q_UNUSED(name);
236
 
    Q_UNUSED(users);
237
 
    return QString();
238
 
}
239
 
 
240
 
QString PrinterCupsBackend::printerSetUsersDenied(const QString &name,
241
 
                                                  const QStringList &users)
242
 
{
243
 
    Q_UNUSED(name);
244
 
    Q_UNUSED(users);
245
 
    return QString();
246
 
}
247
 
 
248
 
QString PrinterCupsBackend::printerAddOptionDefault(const QString &name,
249
 
                                                    const QString &option,
250
 
                                                    const QStringList &values)
251
 
{
252
 
    Q_UNUSED(name);
253
 
    Q_UNUSED(option);
254
 
    Q_UNUSED(values);
255
 
    return QString();
256
 
}
257
 
 
258
 
QString PrinterCupsBackend::printerDeleteOptionDefault(const QString &name,
259
 
                                                       const QString &value)
260
 
{
261
 
    Q_UNUSED(name);
262
 
    Q_UNUSED(value);
263
 
    return QString();
264
 
}
265
 
 
266
190
QString PrinterCupsBackend::printerAddOption(const QString &name,
267
191
                                             const QString &option,
268
192
                                             const QStringList &values)
371
295
    return ret;
372
296
}
373
297
 
374
 
// FIXME: maybe have a PrinterDest iface that has a CupsDest impl?
375
298
cups_dest_t* PrinterCupsBackend::makeDest(const QString &name,
376
299
                                          const PrinterJob *options)
377
300
{
378
 
    // Get the cups dest
379
301
    cups_dest_t *dest = getDest(name);
380
302
 
381
303
    if (options->collate()) {