1 /**************************************************************************
5 Unix Remote Printing Operation
6 Copyright (c) Arto Hyvättinen 2010
8 This file is part of URPO.
10 URPO is free software: you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation, either version 3 of the License, or
13 (at your option) any later version.
15 URPO is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
21 **************************************************************************/
23 #ifndef PRINTERLISTJOB_H
24 #define PRINTERLISTJOB_H
28 #include <QStringList>
30 /*! Get list of available printers
32 @author Arto Hyvättinen
36 connect finished() and call start().
37 getPrinters() tell printers of remote host.
41 class PrinterListJob : public UrpoJob
45 explicit PrinterListJob(UrpoConnection* connection);
46 /*! List of printers in system */
47 QStringList getPrinters() const { return printers_; }
52 /*! Read output and do printer list */
53 void doList(bool success);
60 QStringList printers_;
61 UrpoProcess* process_;
64 #endif // PRINTERLISTJOB_H