gsm_event.h

来自「对各种手机进行编程的工具包源码gsmlib 1.9版本。」· C头文件 代码 · 共 66 行

H
66
字号
// *************************************************************************// * 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 + =
减小字号Ctrl + -
显示快捷键?