3
* KBluetooth4 - KDE4 Bluetooth Framework
5
* Copyright (C) 2008 Tom Patzig <tpatzig@suse.de>
7
* This file is part of kbluetooth4.
9
* kbluetooth4 is free software; you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation; either version 2 of the License, or
12
* (at your option) any later version.
14
* kbluetooth4 is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
19
* You should have received a copy of the GNU General Public License
20
* along with kbluetooth4; if not, write to the Free Software
21
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1
/***************************************************************************
2
* Copyright (C) 2008 Tom Patzig <tpatzig@suse.de> *
3
* Copyright (C) 2008 Alex Fiestas <alex@eyeos.org> *
4
* This program is free software; you can redistribute it and/or modify *
5
* it under the terms of the GNU General Public License as published by *
6
* the Free Software Foundation; either version 2 of the License, or *
7
* (at your option) any later version. *
9
* This program is distributed in the hope that it will be useful, *
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12
* GNU General Public License for more details. *
14
* You should have received a copy of the GNU General Public License *
15
* along with this program; if not, write to the *
16
* Free Software Foundation, Inc., *
17
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
18
***************************************************************************/
25
20
#ifndef WIZARDDIALOG_H
26
21
#define WIZARDDIALOG_H
23
#include "wizardpage.h"
26
#include <QListWidget>
28
#include <QVBoxLayout>
29
#include <KConfigGroup>
36
32
#include <solid/control/bluetoothmanager.h>
37
33
#include <solid/control/bluetoothinterface.h>
38
34
#include <solid/control/bluetoothinputdevice.h>
40
#include "wizardpage.h"
43
36
class BTWizard : public QWizard
48
BTWizard(QObject* parent = 0);
41
BTWizard(QApplication* parent = 0);
53
45
const Solid::Control::BluetoothManager& btmanager;
46
QApplication* m_parent;
55
47
Solid::Control::BluetoothInterface* iface;
56
Solid::Control::BluetoothRemoteDeviceList devList;
57
Solid::Control::BluetoothRemoteDevice* remoteDev;
48
Solid::Control::BluetoothRemoteDeviceList devList;
49
Solid::Control::BluetoothRemoteDevice* remoteDev;
58
50
WizardPage* introPage;
59
51
QLabel* introLabel;
60
52
QVBoxLayout* introLayout;
62
WizardPage* servicePage;
64
QRadioButton* serviceRadioButton1;
65
QRadioButton* serviceRadioButton2;
66
QVBoxLayout* serviceLayout;
68
WizardPage* devicePage;
75
QListWidget* deviceWidget;
76
QPushButton* deviceButton;
77
QComboBox* deviceComboBox;
78
QVBoxLayout* deviceLayout;
79
QHBoxLayout* deviceLayout1;
80
QHBoxLayout* deviceLayout2;
54
WizardPage* discoveryPage;
55
QLabel* discoveryLabel;
56
QLabel* discoveryLabel1;
57
QLabel* discoveryLabel2;
58
QLabel* discoveryLabel3;
59
QLabel* discoveryLabel4;
60
QLabel* discoveryLabel5;
61
QListWidget* discoveryWidget;
62
QPushButton* discoveryButton;
63
QVBoxLayout* discoveryLayout;
64
QHBoxLayout* discoveryLayout1;
82
66
WizardPage* connPage;
116
97
// void createBonding();
117
98
// void createInputDev();
119
void filterList(const QString&, const QString&);
120
void checkInputCapability(const QString&);
121
void connectToDevice();
100
void addDeviceFound(const QString&, const QMap< QString,QVariant >&);
101
void removeDeviceDisappeared(const QString&);
102
void checkInputCapability(const QString&);
103
void connectToDevice();
124
106
void slotCancel();
126
108
void slotSearch();
127
void slotRemoteDeviceFound(const QString&, const QMap< QString,QVariant > &);
128
void slotRemoteDeviceCreated(const QString&);
109
void slotDeviceFound(const QString&, const QMap< QString,QVariant > &);
110
void slotDeviceDisappeared(const QString&);
111
void slotDeviceCreated(const QString&);
129
112
void slotFinish();
131
114
// void connectJob(KJob*);