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

📄 gsm_event.h

📁 对各种手机进行编程的工具包源码gsmlib 1.9版本。
💻 H
字号:
// *************************************************************************// * GSM TA/ME library// *// * File:    gsm_event.h// *// * Purpose: Event handler interface// *// * Author:  Peter Hofmann (software@pxh.de)// *// * Created: 7.6.1999// *************************************************************************#ifndef GSM_EVENT_H#define GSM_EVENT_H#include <gsmlib/gsm_sms.h>#include <gsmlib/gsm_cb.h>using namespace std;namespace gsmlib{  // forward declarations  class GsmAt;  // event handler interface  class GsmEvent  {  private:    // dispatch CMT/CBR/CDS/CLIP etc.    void dispatch(string s, GsmAt &at) throw(GsmException);  public:    // for SMSReception, type of SMS    enum SMSMessageType {NormalSMS, CellBroadcastSMS, StatusReportSMS};    // caller line identification presentation    // only called if setCLIPEvent(true) is set    virtual void callerLineID(string number, string subAddr, string alpha);    // SMS reception    // only called if setSMSReceptionEvent(...true...) is set    virtual void SMSReception(SMSMessageRef newMessage,                              SMSMessageType messageType);    // CB reception    // only called if setSMSReceptionEvent(...true...) is set    // storage of CBM in ME is not supported by the standard    virtual void CBReception(CBMessageRef newMessage);    // SMS reception indication (called when SMS is not delivered to TE    // but stored in ME memory)    virtual void SMSReceptionIndication(string storeName, unsigned int index,                                        SMSMessageType messageType);    // RING indication    virtual void ringIndication();    friend class gsmlib::GsmAt;  };};#endif // GSM_EVENT_H

⌨️ 快捷键说明

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