mirror of
https://github.com/HEYAHONG/SimpleBLETool.git
synced 2025-05-08 22:09:19 +08:00
33 lines
822 B
C++
33 lines
822 B
C++
#ifndef BLEPERIPHERALDIALOG_H
|
|
#define BLEPERIPHERALDIALOG_H
|
|
|
|
#include "SimpleBLEToolMain.h"
|
|
#include "wx/log.h"
|
|
|
|
class BLEPeripheralDialog:public GUIPeripheral
|
|
{
|
|
public:
|
|
BLEPeripheralDialog( wxWindow* parent);
|
|
virtual ~BLEPeripheralDialog();
|
|
|
|
void SetBLEPerh(SimpleBLE::Peripheral _Perh);
|
|
void SetOnClose(std::function<void(void)> OnClose);
|
|
|
|
protected:
|
|
virtual void OnClose( wxCloseEvent& event );
|
|
virtual void OnUnpair( wxCommandEvent& event );
|
|
virtual void OnConnect( wxCommandEvent& event );
|
|
virtual void OnDisConnect( wxCommandEvent& event );
|
|
virtual void OnTreeItemRightClick( wxTreeEvent& event );
|
|
|
|
private:
|
|
|
|
SimpleBLEToolFrame *mainwindow;
|
|
SimpleBLE::Peripheral Perh;
|
|
std::function<void(void)> OnCloseCb;
|
|
|
|
void UpdateStatus();
|
|
};
|
|
|
|
#endif // BLEPERIPHERALDIALOG_H
|