File indexing completed on 2025-03-16 13:53:34
0001 /* 0002 * This file is part of the KDE project 0003 * 0004 * SPDX-FileCopyrightText: 2010 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 CONNECT_H 0011 #define CONNECT_H 0012 0013 #include "ui_connect.h" 0014 0015 #include <QWizardPage> 0016 0017 namespace BluezQt 0018 { 0019 class PendingCall; 0020 } 0021 0022 class BlueWizard; 0023 0024 class ConnectPage : public QWizardPage, Ui::Connect 0025 { 0026 Q_OBJECT 0027 0028 public: 0029 explicit ConnectPage(BlueWizard *parent = nullptr); 0030 0031 int nextId() const override; 0032 void initializePage() override; 0033 0034 protected: 0035 QList<QWizard::WizardButton> wizardButtonsLayout() const; 0036 0037 private Q_SLOTS: 0038 void connectFinished(BluezQt::PendingCall *call); 0039 0040 private: 0041 BlueWizard *const m_wizard; 0042 bool m_success = false; 0043 }; 0044 0045 #endif // CONNECT_H