⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bt.h

📁 嵌入式LINUX的智能家居系统源码
💻 H
字号:
#include <qtimer.h>#include <pthread.h>#include "cmd_config.h"class BT : public QObject{	Q_OBJECTpublic:	BT();	~BT();public slots:	void switcher(int);//this will treat different cmds to this module		bool setup_connection();	void stop_connection();	void start_BT_reader();		void write_BT(int cmd);//this is not called by cmds and cmd_proxy locally but directly by ker_cmdsignals:	void sig_cmd(int cmd);//a way that BT executer can communicate with ker cmd module	void sig_cmd_ker(int cmd);public:	void emit_sig(int);//this is called by bt_reader thread to emit a cmd signal to the ker_cmd module						//when there is a cmd from blue toothpublic:			pthread_t th_bt_reader;	bool bt_on;	};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -