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

Annotation of /smsdaemon/SmsPdu.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 148 - (hide annotations) (download)
Sun Dec 7 20:18:20 2008 UTC (15 years, 5 months ago) by torben
File MIME type: text/plain
File size: 703 byte(s)
Include guards


1 torben 148 #ifndef __SMSPDU_H__
2     #define __SMSPDU_H__
3 torben 59
4     #include <string>
5     #include <vector>
6    
7 torben 69 #include "Sms.h"
8    
9 torben 60 struct PduInfo
10     {
11     std::string pdu;
12     int len;
13     };
14    
15 torben 59 namespace SmsPdu
16     {
17    
18 torben 68 std::string EncodePhonenr(std::string input);
19     std::string DecodePhonenr(std::string input);
20    
21 torben 59 std::string HexformatVector(std::vector<unsigned char> vec);
22 torben 69 std::vector<unsigned char> HexDecodeString(std::string str);
23 torben 59
24 torben 73 std::vector<unsigned char> Encode7to8bit(std::string str, int shift_start);
25 torben 70 std::string Decode8to7bit( std::vector<unsigned char> input, int shift_start );
26 torben 59
27 torben 60 std::vector<PduInfo> CreateSmsPdu(std::string to, std::string message, bool allowMultipart);
28    
29 torben 69 SMS ParseSmsPdu(std::string pdu);
30 torben 59 }
31 torben 148
32     #endif // __SMSPDU_H__

  ViewVC Help
Powered by ViewVC 1.1.20