41 #ifndef REMOTESELECTOR_H 42 #define REMOTESELECTOR_H 47 #include <qbluetoothuuid.h> 48 #include <qbluetoothserviceinfo.h> 49 #include <qbluetoothservicediscoveryagent.h> 50 #include <qbluetoothlocaldevice.h> 52 QT_FORWARD_DECLARE_CLASS(QModelIndex)
53 QT_FORWARD_DECLARE_CLASS(QTableWidgetItem)
54 QT_FORWARD_DECLARE_CLASS(QFile)
75 QBluetoothServiceInfo
service()
const;
78 Ui::RemoteSelector *ui;
80 QBluetoothServiceDiscoveryAgent *m_discoveryAgent;
81 QBluetoothServiceInfo m_service;
82 QMap<int, QBluetoothServiceInfo> m_discoveredServices;
84 QBluetoothLocalDevice *m_localDevice;
85 QPointer<pinDisplay> m_pindisplay;
88 QString addressToName(
const QBluetoothAddress &address);
94 void serviceDiscovered(
const QBluetoothServiceInfo &serviceInfo);
95 void discoveryFinished();
96 void on_refreshPB_clicked();
97 void on_fileSelectPB_clicked();
98 void on_sendButton_clicked();
99 void on_stopButton_clicked();
101 void pairingFinished(
const QBluetoothAddress &address,QBluetoothLocalDevice::Pairing pairing);
102 void pairingError(QBluetoothLocalDevice::Error error);
103 void displayPin(
const QBluetoothAddress &address, QString pin);
104 void displayConfirmation(
const QBluetoothAddress &address, QString pin);
105 void displayConfReject();
106 void displayConfAccepted();
108 void on_remoteDevices_cellClicked(
int row,
int column);
109 void on_remoteDevices_itemChanged(QTableWidgetItem* item);
112 #endif // REMOTESELECTOR_H
QBluetoothServiceInfo service() const
RemoteSelector(QWidget *parent=0)