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

Diff of /smsdaemon/Sms.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 75 by torben, Fri Jun 13 10:10:06 2008 UTC revision 142 by torben, Sun Dec 7 15:51:02 2008 UTC
# Line 7  class SMS Line 7  class SMS
7  {  {
8  public:  public:
9          SMS();          SMS();
10          SMS(std::string _sender, std::string _message, std::string _timestamp="");          SMS(std::string index, std::string _sender, std::string _message, std::string _timestamp="");
11    
12          //decode an CMGF=1 text string          std::string ExtractCommand();
13          static SMS FromRawString(const std::string& input);          std::string ExtractParameters();
         static SMS FromPduString(const std::string& input);  
14    
15    
16            void SetIndex(std::string i) {sms_index=i;}
17            void SetSender(std::string s) {sender=s;}
18            void SetMessage(std::string m) {message=m;}
19            void SetTimestamp(std::string t) {timestamp=t;}
20            
21    
22    
23            std::string GetIndex() {return sms_index;}
24            std::string GetSender() {return sender;}
25            std::string GetMessage() {return message;}
26            std::string GetTimestamp() {return timestamp;}
27            
28    private:
29          std::string sms_index;          std::string sms_index;
30          std::string sender;          std::string sender;
31          std::string message;          std::string message;
# Line 20  public: Line 33  public:
33  };  };
34    
35    
 std::string GetSmsCommand(SMS& sms);  
 std::string GetSmsData(SMS& sms);  
36    
37  #endif // __SMS_H__  #endif // __SMS_H__

Legend:
Removed from v.75  
changed lines
  Added in v.142

  ViewVC Help
Powered by ViewVC 1.1.20