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

Annotation of /smsdaemon/DebugTransceiver.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 180 - (hide annotations) (download)
Fri Dec 12 12:54:27 2008 UTC (15 years, 5 months ago) by torben
File MIME type: text/plain
File size: 753 byte(s)
Remove ISmsTransceiver::DeleteSms() - Each transceiver should clean up after itself

Merge SmsHelper into ModemTransceiver, since it is closely connected to the AT command output


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

Properties

Name Value
svn:eol-style native

  ViewVC Help
Powered by ViewVC 1.1.20