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

Annotation of /smsdaemon/Sms.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 75 - (hide annotations) (download)
Fri Jun 13 10:10:06 2008 UTC (15 years, 11 months ago) by torben
File MIME type: text/plain
File size: 488 byte(s)
Make gsmmodem::readsms use pdu mode 

Cleaned up some unneeded cout and <iostream>


1 torben 26 #ifndef __SMS_H__
2     #define __SMS_H__
3    
4     #include <string>
5    
6     class SMS
7     {
8     public:
9     SMS();
10     SMS(std::string _sender, std::string _message, std::string _timestamp="");
11    
12 torben 69 //decode an CMGF=1 text string
13 torben 26 static SMS FromRawString(const std::string& input);
14 torben 75 static SMS FromPduString(const std::string& input);
15 torben 26
16     std::string sms_index;
17     std::string sender;
18     std::string message;
19     std::string timestamp;
20     };
21    
22    
23     std::string GetSmsCommand(SMS& sms);
24     std::string GetSmsData(SMS& sms);
25    
26     #endif // __SMS_H__

  ViewVC Help
Powered by ViewVC 1.1.20