2017-10-17 21:45:34 +08:00
|
|
|
#ifndef MAINWINDOW_H
|
|
|
|
#define MAINWINDOW_H
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
2017-11-10 12:07:58 +08:00
|
|
|
#include <qqtbluetoothmanager.h>
|
2017-10-17 21:45:34 +08:00
|
|
|
|
2017-11-10 12:07:58 +08:00
|
|
|
namespace Ui
|
|
|
|
{
|
2017-10-17 21:45:34 +08:00
|
|
|
class MainWindow;
|
|
|
|
}
|
|
|
|
|
|
|
|
class MainWindow : public QMainWindow
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2017-11-10 12:07:58 +08:00
|
|
|
explicit MainWindow(QWidget* parent = 0);
|
2017-10-17 21:45:34 +08:00
|
|
|
~MainWindow();
|
|
|
|
|
2017-11-10 12:07:58 +08:00
|
|
|
public slots:
|
|
|
|
void addDevice(QBluetoothDeviceInfo);
|
|
|
|
void addService(QBluetoothServiceInfo);
|
|
|
|
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_btnRefresh_clicked();
|
|
|
|
|
2017-10-17 21:45:34 +08:00
|
|
|
private:
|
2017-11-10 12:07:58 +08:00
|
|
|
Ui::MainWindow* ui;
|
2017-10-17 21:45:34 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MAINWINDOW_H
|