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

Diff of /smsdaemon/SmsPdu.h

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

revision 148 by torben, Sun Dec 7 20:18:20 2008 UTC revision 176 by torben, Thu Dec 11 22:32:58 2008 UTC
# Line 12  struct PduInfo Line 12  struct PduInfo
12          int len;          int len;
13  };  };
14    
15    
16    struct SmsPart
17    {
18            std::string message;
19            std::string sender;
20            short group,count,id;
21    };
22    
23  namespace SmsPdu  namespace SmsPdu
24  {  {
25    //public section:
26            std::vector<PduInfo> CreateSmsPdu(std::string to, std::string message, bool allowMultipart);
27    
28            SMS ParseSmsPdu(std::string pdu);
29    
30    //private section:
31            
32            SmsPart ParseSmsPduWorker(std::string pdu);
33    
34          std::string EncodePhonenr(std::string input);          std::string EncodePhonenr(std::string input);
35          std::string DecodePhonenr(std::string input);          std::string DecodePhonenr(std::string input);
# Line 24  namespace SmsPdu Line 40  namespace SmsPdu
40          std::vector<unsigned char> Encode7to8bit(std::string str, int shift_start);          std::vector<unsigned char> Encode7to8bit(std::string str, int shift_start);
41          std::string Decode8to7bit( std::vector<unsigned char> input, int shift_start );          std::string Decode8to7bit( std::vector<unsigned char> input, int shift_start );
42    
         std::vector<PduInfo> CreateSmsPdu(std::string to, std::string message, bool allowMultipart);  
   
         SMS ParseSmsPdu(std::string pdu);  
43  }  }
44    
45  #endif // __SMSPDU_H__  #endif // __SMSPDU_H__

Legend:
Removed from v.148  
changed lines
  Added in v.176

  ViewVC Help
Powered by ViewVC 1.1.20