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_CHOOSE_PPD_H 0008 #define PAGE_CHOOSE_PPD_H 0009 0010 #include "GenericPage.h" 0011 0012 #include <QStackedLayout> 0013 0014 #include <KJob> 0015 0016 namespace Ui 0017 { 0018 class PageChoosePPD; 0019 } 0020 0021 class SelectMakeModel; 0022 class PageChoosePPD : public GenericPage 0023 { 0024 Q_OBJECT 0025 public: 0026 explicit PageChoosePPD(const QVariantMap &args = QVariantMap(), QWidget *parent = nullptr); 0027 ~PageChoosePPD() override; 0028 0029 bool canProceed() const override; 0030 void setValues(const QVariantMap &args) override; 0031 QVariantMap values() const override; 0032 bool isValid() const override; 0033 0034 private slots: 0035 void checkSelected(); 0036 void selectDefault(); 0037 void resultJob(KJob *job); 0038 0039 private: 0040 void removeTempPPD(); 0041 0042 Ui::PageChoosePPD *const ui; 0043 bool m_isValid = false; 0044 SelectMakeModel *m_selectMM = nullptr; 0045 QStackedLayout *m_layout = nullptr; 0046 QString m_ppdFile; 0047 }; 0048 0049 #endif