File indexing completed on 2024-10-13 10:44:54
0001 /* 0002 * This file is part of the KDE project 0003 * 0004 * SPDX-FileCopyrightText: 2010-2011 Alejandro Fiestas Olivares <afiestas@kde.org> 0005 * SPDX-FileCopyrightText: 2010-2011 UFO Coders <info@ufocoders.com> 0006 * 0007 * SPDX-License-Identifier: LGPL-2.0-or-later 0008 */ 0009 0010 #ifndef DISCOVERWIDGET_H 0011 #define DISCOVERWIDGET_H 0012 0013 #include "ui_discover.h" 0014 0015 #include <QWidget> 0016 0017 #include <BluezQt/Types> 0018 0019 class KMessageWidget; 0020 0021 class DevicesProxyModel; 0022 0023 class DiscoverWidget : public QWidget, public Ui::Discover 0024 { 0025 Q_OBJECT 0026 0027 public: 0028 explicit DiscoverWidget(BluezQt::Manager *manager, QWidget *parent = nullptr); 0029 0030 Q_SIGNALS: 0031 void deviceSelected(BluezQt::DevicePtr device); 0032 0033 private Q_SLOTS: 0034 void indexSelected(const QModelIndex index); 0035 0036 void checkAdapters(); 0037 void fixAdaptersError(); 0038 0039 private: 0040 BluezQt::Manager *m_manager; 0041 DevicesProxyModel *m_model; 0042 KMessageWidget *m_warningWidget; 0043 }; 0044 0045 #endif // DISCOVERWIDGET_H