File indexing completed on 2025-01-19 05:06:22

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 {
0014 class PageAddPrinter;
0015 }
0016 
0017 class PageAddPrinter : public GenericPage
0018 {
0019     Q_OBJECT
0020 public:
0021     explicit PageAddPrinter(QWidget *parent = nullptr);
0022     ~PageAddPrinter() override;
0023 
0024     void setValues(const QVariantMap &args) override;
0025     QVariantMap values() const override;
0026     bool canProceed() const override;
0027 
0028     bool finishClicked() override;
0029 
0030 public slots:
0031     void load();
0032 
0033 private slots:
0034     void checkSelected();
0035 
0036 private:
0037     Ui::PageAddPrinter *const ui;
0038 };
0039 
0040 #endif