Debian Codegraph @

ext/gsm_sie_me.h

raw symbols SCIP
1 // *************************************************************************
2 // * GSM TA/ME library
3 // *
4 // * File: gsm_sie_me.h
5 // *
6 // * Purpose: Mobile Equipment/Terminal Adapter and SMS functions
7 // * (According to "AT command set for S45 Siemens mobile phones"
8 // * v1.8, 26. July 2001 - Common AT prefix is "^S")
9 // *
10 // * Author: Christian W. Zuckschwerdt <[email protected]>
11 // *
12 // * Created: 2001-12-15
13 // *************************************************************************
14
15 #ifndef GSM_SIE_ME_H
16 #define GSM_SIE_ME_H
17
18 #include <gsmlib/gsm_error.h>
19 #include <gsmlib/gsm_at.h>
20 #include <string>
21 #include <vector>
22
23 using namespace std;
24
25 namespace gsmlib
26 {
27 // *** Siemens mobile phone binary objects (bitmap, midi, vcal, vcard)
28
29 struct BinaryObject
30 {
31 string _type; // Object type
32 int _subtype; // Object subtype (storage number)
33 unsigned char *_data; // Object binary data
34 int _size; // Object data size
35 };
36
37 // *** this class allows extended access to Siemens moblie phones
38
39 class SieMe : public MeTa
40 {
41 private:
42 // init ME/TA to sensible defaults
43 void init() throw(GsmException);
44
45 public:
46 // initialize a new MeTa object given the port
47 SieMe(Ref<Port> port) throw(GsmException);
48
49
50 // get the current phonebook in the Siemens ME
51 vector<string> getSupportedPhonebooks() throw(GsmException);// (AT^SPBS=?)
52
53 // get the current phonebook in the Siemens ME
54 string getCurrentPhonebook() throw(GsmException); // (AT^SPBS?)
55
56 // set the current phonebook in the Siemens ME
57 // remember the last phonebook set for optimisation
58 void setPhonebook(string phonebookName) throw(GsmException); // (AT^SPBS=)
59
60
61 // Siemens get supported signal tones
62 IntRange getSupportedSignalTones() throw(GsmException); // (AT^SPST=?)
63
64 // Siemens set ringing tone
65 void playSignalTone(int tone) throw(GsmException); // (AT^SRTC=x,1)
66
67 // Siemens set ringing tone
68 void stopSignalTone(int tone) throw(GsmException); // (AT^SRTC=x,0)
69
70
71 // Siemens get ringing tone
72 IntRange getSupportedRingingTones() throw(GsmException); // (AT^SRTC=?)
73 // Siemens get ringing tone
74 int getCurrentRingingTone() throw(GsmException); // (AT^SRTC?)
75 // Siemens set ringing tone
76 void setRingingTone(int tone, int volume) throw(GsmException);// (AT^SRTC=)
77 // Siemens set ringing tone on
78 void playRingingTone() throw(GsmException);
79 // Siemens set ringing tone of
80 void stopRingingTone() throw(GsmException);
81 // Siemens toggle ringing tone
82 void toggleRingingTone() throw(GsmException); // (AT^SRTC)
83
84 // Siemens get supported binary read
85 vector<ParameterRange> getSupportedBinaryReads() throw(GsmException);
86
87 // Siemens get supported binary write
88 vector<ParameterRange> getSupportedBinaryWrites() throw(GsmException);
89
90 // Siemens Binary Read
91 BinaryObject getBinary(string type, int subtype) throw(GsmException);
92
93 // Siemens Binary Write
94 void setBinary(string type, int subtype, BinaryObject obj)
95 throw(GsmException);
96 };
97 };
98
99 #endif // GSM_ME_TA_H