摘要:
定义一个遥控器类,继承于QWSKeyboardHandler。QSocketNotifier用来监听系统文件操作,通过signal/slot跟自定义的ReadRemoteData连接起来。一旦lirc有数据提交,Qt就会通过ReadRemoteData读取到lirc的按键。类定义: 1 class RemoteHandler : public QObject, public QWSKeyboardHandler 2 { 3 Q_OBJECT 4 public: 5 bool loadFinish; 6 RemoteHandler(const QString &devic... 阅读全文