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

Contents of /smsdaemon/DebugTransceiver.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 210 - (show annotations) (download)
Sun Dec 21 21:14:40 2008 UTC (15 years, 4 months ago) by torben
File MIME type: text/plain
File size: 728 byte(s)
No usage for DeleteAllSms(), since all incoming messages should be serviced

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
24
25 std::string GetTo()
26 {
27 return _to;
28 }
29 std::string GetMessage()
30 {
31 return _message;
32 }
33 bool GetMultipart()
34 {
35 return _multipart;
36 }
37 private:
38 std::string _to;
39 std::string _message;
40 bool _multipart;
41 bool _print;
42 };
43
44
45 #endif // __DEBUGTRANSCEIVER_H__

Properties

Name Value
svn:eol-style native

  ViewVC Help
Powered by ViewVC 1.1.20