File indexing completed on 2024-04-28 16:43:21

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 CONNECTINGPAGE_H
0011 #define CONNECTINGPAGE_H
0012 
0013 #include "ui_connecting.h"
0014 
0015 #include <QWizardPage>
0016 
0017 #include <BluezQt/ObexManager>
0018 
0019 class SendFileWizard;
0020 
0021 class ConnectingPage : public QWizardPage, public Ui::Connecting
0022 {
0023     Q_OBJECT
0024 
0025 public:
0026     explicit ConnectingPage(SendFileWizard *wizard = nullptr);
0027 
0028     void initializePage() override;
0029     bool isComplete() const override;
0030 
0031 private Q_SLOTS:
0032     void initJobResult(BluezQt::InitObexManagerJob *job);
0033     void createSessionFinished(BluezQt::PendingCall *call);
0034 
0035 private:
0036     QList<QWizard::WizardButton> wizardButtonsLayout() const;
0037 
0038     SendFileWizard *const m_wizard;
0039     BluezQt::DevicePtr m_device;
0040 };
0041 
0042 #endif // CONNECTINGPAGE_H