18 |
std::string message; |
std::string message; |
19 |
std::string sender; |
std::string sender; |
20 |
short group,count,id; |
short group,count,id; |
21 |
|
|
22 |
|
bool operator<(const SmsPart& p2) const |
23 |
|
{ |
24 |
|
return (id < p2.id); |
25 |
|
} |
26 |
|
bool operator==(const SmsPart& p2) const |
27 |
|
{ |
28 |
|
return (message==p2.message && sender==p2.sender && group==p2.group && count==p2.count && id==p2.id); |
29 |
|
} |
30 |
|
|
31 |
}; |
}; |
32 |
|
|
33 |
namespace SmsPdu |
namespace SmsPdu |
38 |
SMS ParseSmsPdu(std::string pdu); |
SMS ParseSmsPdu(std::string pdu); |
39 |
|
|
40 |
//private section: |
//private section: |
41 |
|
|
42 |
SmsPart ParseSmsPduWorker(std::string pdu); |
SmsPart ParseSmsPduWorker(std::string pdu); |
43 |
|
|
44 |
std::string EncodePhonenr(std::string input); |
std::string EncodePhonenr(std::string input); |