| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 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 |
|
| 28 |
|
| 29 |
struct BinaryObject |
| 30 |
{ |
| 31 |
string _type; |
| 32 |
int _subtype; |
| 33 |
unsigned char *_data; |
| 34 |
int _size; |
| 35 |
}; |
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
class SieMe : public MeTa |
| 40 |
{ |
| 41 |
private: |
| 42 |
|
| 43 |
void init() throw(GsmException); |
| 44 |
|
| 45 |
public: |
| 46 |
|
| 47 |
SieMe(Ref<Port> port) throw(GsmException); |
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
vector<string> getSupportedPhonebooks() throw(GsmException); |
| 52 |
|
| 53 |
|
| 54 |
string getCurrentPhonebook() throw(GsmException); |
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
void setPhonebook(string phonebookName) throw(GsmException); |
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
IntRange getSupportedSignalTones() throw(GsmException); |
| 63 |
|
| 64 |
|
| 65 |
void playSignalTone(int tone) throw(GsmException); |
| 66 |
|
| 67 |
|
| 68 |
void stopSignalTone(int tone) throw(GsmException); |
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
IntRange getSupportedRingingTones() throw(GsmException); |
| 73 |
|
| 74 |
int getCurrentRingingTone() throw(GsmException); |
| 75 |
|
| 76 |
void setRingingTone(int tone, int volume) throw(GsmException); |
| 77 |
|
| 78 |
void playRingingTone() throw(GsmException); |
| 79 |
|
| 80 |
void stopRingingTone() throw(GsmException); |
| 81 |
|
| 82 |
void toggleRingingTone() throw(GsmException); |
| 83 |
|
| 84 |
|
| 85 |
vector<ParameterRange> getSupportedBinaryReads() throw(GsmException); |
| 86 |
|
| 87 |
|
| 88 |
vector<ParameterRange> getSupportedBinaryWrites() throw(GsmException); |
| 89 |
|
| 90 |
|
| 91 |
BinaryObject getBinary(string type, int subtype) throw(GsmException); |
| 92 |
|
| 93 |
|
| 94 |
void setBinary(string type, int subtype, BinaryObject obj) |
| 95 |
throw(GsmException); |
| 96 |
}; |
| 97 |
}; |
| 98 |
|
| 99 |
#endif |