File indexing completed on 2025-03-09 05:06:33
0001 /* 0002 SPDX-FileCopyrightText: 2010-2012 Daniel Nicoletti <dantti12@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef PRINTER_PAGE_H 0008 #define PRINTER_PAGE_H 0009 0010 #include <KCupsPrinter.h> 0011 0012 class PrinterPage : public QWidget 0013 { 0014 Q_OBJECT 0015 public: 0016 explicit PrinterPage(QWidget *parent = nullptr); 0017 virtual bool hasChanges() 0018 { 0019 return false; 0020 } 0021 0022 public: 0023 virtual void save() 0024 { 0025 } 0026 virtual QVariantMap modifiedValues() const; 0027 virtual QStringList neededValues() const 0028 { 0029 return QStringList(); 0030 } 0031 virtual void setRemote(bool remote); 0032 0033 signals: 0034 void changed(bool hasChanges); 0035 }; 0036 0037 #endif