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