File indexing completed on 2024-04-28 05:26:14

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