File indexing completed on 2022-09-27 16:37:10

0001 /*
0002     SPDX-FileCopyrightText: 2010 Daniel Nicoletti <dantti12@gmail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef PAGE_ADD_PRINTER_H
0008 #define PAGE_ADD_PRINTER_H
0009 
0010 #include "GenericPage.h"
0011 
0012 namespace Ui {
0013     class PageAddPrinter;
0014 }
0015 
0016 class PageAddPrinter : public GenericPage
0017 {
0018     Q_OBJECT
0019 public:
0020     explicit PageAddPrinter(QWidget *parent = nullptr);
0021     ~PageAddPrinter() override;
0022 
0023     void setValues(const QVariantHash &args) override;
0024     QVariantHash values() const override;
0025     bool canProceed() const override;
0026 
0027     bool finishClicked() override;
0028 
0029 public slots:
0030     void load();
0031 
0032 private slots:
0033     void checkSelected();
0034     void on_nameLE_textChanged(const QString &text);
0035 
0036 private:
0037     Ui::PageAddPrinter *ui;
0038 };
0039 
0040 #endif