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

Annotation of /smsdaemon/DebugTransceiver.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 196 - (hide annotations) (download)
Thu Dec 18 06:53:29 2008 UTC (15 years, 5 months ago) by torben
File MIME type: text/plain
File size: 775 byte(s)
Make pretty

astyle -t -b -N

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

Properties

Name Value
svn:eol-style native

  ViewVC Help
Powered by ViewVC 1.1.20