File indexing completed on 2025-04-20 04:56:51
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 #pragma once 0011 0012 #include "ui_connect.h" 0013 0014 #include <QWizardPage> 0015 0016 namespace BluezQt 0017 { 0018 class PendingCall; 0019 } 0020 0021 class BlueWizard; 0022 0023 class ConnectPage : public QWizardPage, Ui::Connect 0024 { 0025 Q_OBJECT 0026 0027 public: 0028 explicit ConnectPage(BlueWizard *parent = nullptr); 0029 0030 int nextId() const override; 0031 void initializePage() override; 0032 0033 protected: 0034 QList<QWizard::WizardButton> wizardButtonsLayout() const; 0035 0036 private Q_SLOTS: 0037 void connectFinished(BluezQt::PendingCall *call); 0038 0039 private: 0040 BlueWizard *const m_wizard; 0041 bool m_success = false; 0042 };