~ubuntu-branches/ubuntu/trusty/gsmlib/trusty

« back to all changes in this revision

Viewing changes to ext/gsm_sie_me.h

  • Committer: Bazaar Package Importer
  • Author(s): Mikael Hedin
  • Date: 2002-01-24 12:59:07 UTC
  • Revision ID: james.westby@ubuntu.com-20020124125907-b7qkpokx5283jdpu
Tags: upstream-1.8
ImportĀ upstreamĀ versionĀ 1.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * According to 
 
3
 * AT command set for S45 Siemens mobile phones, v1.8, 26. July 2001
 
4
 * Common AT prefix is "^S" (two characters, not the control code!)
 
5
 */
 
6
 
 
7
 
 
8
#ifndef GSM_SIE_ME_H
 
9
#define GSM_SIE_ME_H
 
10
 
 
11
#include <gsmlib/gsm_at.h>
 
12
#include <string>
 
13
#include <vector>
 
14
 
 
15
using namespace std;
 
16
 
 
17
namespace gsmlib
 
18
{
 
19
 
 
20
  class SieMe : public MeTa
 
21
  {
 
22
  private:
 
23
    // init ME/TA to sensible defaults
 
24
    void init() throw(GsmException);
 
25
 
 
26
  public:
 
27
    // initialize a new MeTa object given the port
 
28
    SieMe(Ref<Port> port) throw(GsmException);
 
29
 
 
30
 
 
31
    // get the current phonebook in the Siemens ME
 
32
    vector<string> getSupportedPhonebooks() throw(GsmException); // (AT^SPBS=?)
 
33
    // get the current phonebook in the Siemens ME
 
34
 
 
35
    string getCurrentPhonebook() throw(GsmException); // (AT^SPBS?)
 
36
    // set the current phonebook in the Siemens ME
 
37
 
 
38
    // remember the last phonebook set for optimisation
 
39
    void setPhonebook(string phonebookName) throw(GsmException); // (AT^SPBS=)
 
40
 
 
41
 
 
42
    // Siemens get supported signal tones
 
43
    IntRange getSupportedSignalTones() throw(GsmException); // (AT^SPST=?)
 
44
 
 
45
    // Siemens set ringing tone
 
46
    void playSignalTone(int tone) throw(GsmException); // (AT^SRTC=x,1)
 
47
 
 
48
    // Siemens set ringing tone
 
49
    void stopSignalTone(int tone) throw(GsmException); // (AT^SRTC=x,0)
 
50
 
 
51
 
 
52
    // Siemens get ringing tone
 
53
    IntRange getSupportedRingingTones() throw(GsmException); // (AT^SRTC=?)
 
54
    // Siemens get ringing tone
 
55
    int getCurrentRingingTone() throw(GsmException); // (AT^SRTC?)
 
56
    // Siemens set ringing tone
 
57
    void setRingingTone(int tone, int volume) throw(GsmException);// (AT^SRTC=)
 
58
    // Siemens set ringing tone on
 
59
    void ringingToneOn() throw(GsmException); // (AT^SRTC)
 
60
    // Siemens set ringing tone of
 
61
    void ringingToneOff() throw(GsmException); // (AT^SRTC)
 
62
    // Siemens toggle ringing tone
 
63
    void toggleRingingTone() throw(GsmException); // (AT^SRTC)
 
64
 
 
65
    // Siemens get supported binary read
 
66
    vector<string> getSupportedBinaryReads() throw(GsmException); // (AT^SBNR=?)
 
67
 
 
68
    // Siemens get supported binary write
 
69
    vector<string> getSupportedBinaryWrites() throw(GsmException); // (AT^SBNW=?)
 
70
 
 
71
    // Siemens Binary Read
 
72
    void getBinary(string binary) throw(GsmException); // (AT^SBNR)
 
73
 
 
74
    // Siemens Binary Write
 
75
    void setBinary(string binary) throw(GsmException); // (AT^SBNW)
 
76
  };
 
77
};
 
78
 
 
79
#endif // GSM_ME_TA_H