KSane

ksanedevicedialog.h
1/*
2 * SPDX-FileCopyrightText: 2007-2010 Kare Sars <kare dot sars at iki dot fi>
3 * SPDX-FileCopyrightText: 2009 Grzegorz Kurtyka <grzegorz dot kurtyka at gmail dot com>
4 * SPDX-FileCopyrightText: 2014 Gregor Mitsch : port to KDE5 frameworks
5 *
6 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7 */
8
9#ifndef KSANE_DEVICE_DIALOG_H
10#define KSANE_DEVICE_DIALOG_H
11
12#include <QGroupBox>
13#include <QStringList>
14#include <QButtonGroup>
15#include <QToolTip>
16#include <QRadioButton>
17#include <QCheckBox>
18#include <QPushButton>
19#include <QBoxLayout>
20#include <QDialog>
21
22#include <KSaneCore/Interface>
23
24namespace KSaneIface
25{
26
27class KSaneDeviceDialog : public QDialog
28{
30
31public:
32 KSaneDeviceDialog(QWidget *parent = nullptr);
33 ~KSaneDeviceDialog() override;
34
35 QString getSelectedName() const;
36 void setDefault(const QString &);
37
38public Q_SLOTS:
39 void updateDevicesList(const QList<KSaneCore::DeviceInformation*> &list);
40 void reloadDevicesList();
41
43 void requestReloadList(const KSaneCore::Interface::DeviceType type);
44
45private Q_SLOTS:
46 void setAvailable(bool avail);
47
48
49private:
50 QString m_defaultBackend;
51 QString m_selectedDevice;
52 QWidget *m_btnContainer;
53 QGroupBox *m_gbDevices;
54 QButtonGroup *m_btnGroupDevices;
55 QVBoxLayout *m_btnLayout;
56 QPushButton *m_btnReloadDevices;
57 QPushButton *m_btnOk;
58};
59
60}
61
62#endif
63
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 26 2024 11:57:20 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.