/[projects]/smsdaemon/DebugTransceiver.h
ViewVC logotype

Contents of /smsdaemon/DebugTransceiver.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 149 - (show annotations) (download)
Sun Dec 7 20:58:41 2008 UTC (15 years, 5 months ago) by torben
File MIME type: text/plain
File size: 802 byte(s)
Refactoring / rename:
        IGsmModem -> ISmsTransceiver
        GsmModem -> ModemTransceiver
        DebugGsmModem -> DebugTransceiver

Move DebugTransceiver to its own files.


1 #ifndef __DEBUGTRANSCEIVER_H__
2 #define __DEBUGTRANSCEIVER_H__
3
4
5 #include "ISmsTransceiver.h"
6
7 #include <string>
8 #include <vector>
9
10 #include "Sms.h"
11
12
13 class DebugTransceiver : public ISmsTransceiver
14 {
15 public:
16 DebugTransceiver() : _print(false) {}
17 DebugTransceiver(bool print) : _print(print) {}
18 virtual ~DebugTransceiver() {}
19
20 virtual std::vector<SMS> ReadSms(bool readAll=false);
21 virtual void SendSms(std::string to, std::string message, bool allowMultipart);
22
23 virtual void DeleteSms(std::string smsIndex) {}
24 virtual int DeleteAllSms() { return 0;}
25
26
27
28 std::string GetTo() {return _to;}
29 std::string GetMessage() {return _message;}
30 bool GetMultipart() {return _multipart;}
31 private:
32 std::string _to;
33 std::string _message;
34 bool _multipart;
35 bool _print;
36 };
37
38
39 #endif // __DEBUGTRANSCEIVER_H__

Properties

Name Value
svn:eol-style native

  ViewVC Help
Powered by ViewVC 1.1.20