/usr/include/gsmlib/gsm_event.h is in libgsmme-dev 1.10+20120414.gita5e5ae9a-0.3+b1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | // *************************************************************************
// * 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>
namespace gsmlib
{
// forward declarations
class GsmAt;
// event handler interface
class GsmEvent
{
private:
// dispatch CMT/CBR/CDS/CLIP etc.
void dispatch(std::string s, GsmAt &at) throw(GsmException);
public:
virtual ~GsmEvent() { }
// for SMSReception, type of SMS
enum SMSMessageType {NormalSMS, CellBroadcastSMS, StatusReportSMS};
// caller line identification presentation
// only called if setCLIPEvent(true) is set
virtual void callerLineID(std::string number, std::string subAddr, std::string alpha);
// called if the string NO CARRIER is read
virtual void noAnswer();
// 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(std::string storeName, unsigned int index,
SMSMessageType messageType);
// RING indication
virtual void ringIndication();
friend class gsmlib::GsmAt;
};
};
#endif // GSM_EVENT_H
|