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

Contents of /smsdaemon/SmsPdu.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 73 - (show annotations) (download)
Fri Jun 13 09:09:36 2008 UTC (15 years, 11 months ago) by torben
File MIME type: text/plain
File size: 637 byte(s)
Fixed a bug in CreateSmsPdu() so it now uses EncodePhonenr() correctly

1
2
3 #include <string>
4 #include <vector>
5
6 #include "Sms.h"
7
8 struct PduInfo
9 {
10 std::string pdu;
11 int len;
12 };
13
14 namespace SmsPdu
15 {
16
17 std::string EncodePhonenr(std::string input);
18 std::string DecodePhonenr(std::string input);
19
20 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, int shift_start);
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 SMS ParseSmsPdu(std::string pdu);
29 }

  ViewVC Help
Powered by ViewVC 1.1.20