Parent Directory | Revision Log
Basic Sms PDU parsing works
1 | #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 | //decode an CMGF=1 text string |
13 | static SMS FromRawString(const std::string& input); |
14 | |
15 | std::string sms_index; |
16 | std::string sender; |
17 | std::string message; |
18 | std::string timestamp; |
19 | }; |
20 | |
21 | |
22 | std::string GetSmsCommand(SMS& sms); |
23 | std::string GetSmsData(SMS& sms); |
24 | |
25 | #endif // __SMS_H__ |
ViewVC Help | |
Powered by ViewVC 1.1.20 |