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

Annotation of /smsdaemon/DebugTransceiver.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 210 - (hide annotations) (download)
Sun Dec 21 21:14:40 2008 UTC (15 years, 5 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 torben 149 #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 torben 196 public:
16 torben 149 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 torben 196 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 torben 149 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