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

Diff of /smsdaemon/SmsPdu.h

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

revision 59 by torben, Wed Jun 11 19:42:24 2008 UTC revision 70 by torben, Fri Jun 13 07:56:57 2008 UTC
# Line 3  Line 3 
3  #include <string>  #include <string>
4  #include <vector>  #include <vector>
5    
6    #include "Sms.h"
7    
8    struct PduInfo
9    {
10            std::string pdu;
11            int len;
12    };
13    
14  namespace SmsPdu  namespace SmsPdu
15  {  {
16          std::vector<unsigned char> BcdEncode(std::string input);  
17            std::string EncodePhonenr(std::string input);
18            std::string DecodePhonenr(std::string input);
19    
20          std::string HexformatVector(std::vector<unsigned char> vec);          std::string HexformatVector(std::vector<unsigned char> vec);
21            std::vector<unsigned char> HexDecodeString(std::string str);
22    
23          std::vector<unsigned char> Encode7to8bit(std::string str);          std::vector<unsigned char> Encode7to8bit(std::string str);
24            std::string Decode8to7bit( std::vector<unsigned char> input, int shift_start );
25    
26            std::vector<PduInfo> CreateSmsPdu(std::string to, std::string message, bool allowMultipart);
27    
28          std::string CreateSmsPdu(std::string to, std::string message, int& len);          SMS ParseSmsPdu(std::string pdu);
29  }  }

Legend:
Removed from v.59  
changed lines
  Added in v.70

  ViewVC Help
Powered by ViewVC 1.1.20