File indexing completed on 2025-03-09 05:06:32
0001 /* 0002 SPDX-FileCopyrightText: 2010 Daniel Nicoletti <dantti12@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef CONFIGURE_PRINTER_INTERFACE_H 0008 #define CONFIGURE_PRINTER_INTERFACE_H 0009 0010 #include <QDBusContext> 0011 0012 class QTimer; 0013 class QWidget; 0014 class ConfigurePrinterInterface : public QObject, protected QDBusContext 0015 { 0016 Q_OBJECT 0017 Q_CLASSINFO("D-Bus Interface", "org.kde.ConfigurePrinter") 0018 public: 0019 explicit ConfigurePrinterInterface(QObject *parent = nullptr); 0020 ~ConfigurePrinterInterface() override; 0021 0022 signals: 0023 void quit(); 0024 0025 public slots: 0026 void ConfigurePrinter(const QString &destName); 0027 void RemovePrinter(); 0028 0029 private: 0030 QTimer *m_updateUi = nullptr; 0031 QHash<QString, QWidget *> m_uis; 0032 }; 0033 0034 #endif