1 |
torben |
59 |
|
2 |
|
|
|
3 |
|
|
#include <string> |
4 |
|
|
#include <vector> |
5 |
|
|
|
6 |
torben |
60 |
struct PduInfo |
7 |
|
|
{ |
8 |
|
|
std::string pdu; |
9 |
|
|
int len; |
10 |
|
|
}; |
11 |
|
|
|
12 |
torben |
59 |
namespace SmsPdu |
13 |
|
|
{ |
14 |
|
|
|
15 |
torben |
68 |
std::string EncodePhonenr(std::string input); |
16 |
|
|
std::string DecodePhonenr(std::string input); |
17 |
|
|
|
18 |
torben |
59 |
std::string HexformatVector(std::vector<unsigned char> vec); |
19 |
|
|
|
20 |
|
|
std::vector<unsigned char> Encode7to8bit(std::string str); |
21 |
torben |
68 |
std::string Decode8to7bit( std::vector<unsigned char> input ); |
22 |
torben |
59 |
|
23 |
torben |
60 |
std::vector<PduInfo> CreateSmsPdu(std::string to, std::string message, bool allowMultipart); |
24 |
|
|
|
25 |
torben |
59 |
} |