16 |
#include "common.h" |
#include "common.h" |
17 |
|
|
18 |
#include "SmsPdu.h" |
#include "SmsPdu.h" |
19 |
|
#include "SmsHelper.h" |
20 |
|
|
21 |
using namespace std; |
using namespace std; |
22 |
|
|
110 |
|
|
111 |
|
|
112 |
string sms_entry = result.substr(0,endpos); |
string sms_entry = result.substr(0,endpos); |
113 |
retval.push_back( SMS::FromPduString(sms_entry) );; |
retval.push_back( SmsHelper::FromPduString(sms_entry) );; |
114 |
|
|
115 |
if (endpos == string::npos) |
if (endpos == string::npos) |
116 |
break; |
break; |
149 |
if (to.at(0) == '+') |
if (to.at(0) == '+') |
150 |
to.erase(0,0); |
to.erase(0,0); |
151 |
|
|
152 |
vector<PduInfo> pdu_vec = SmsPdu::CreateSmsPdu(to, message, allowMultipart); |
vector<PduInfo> pdu_vec = SmsPdu::CreateSmsPdu(to, Util::str_latin2gsm(message), allowMultipart); |
153 |
|
|
154 |
for (unsigned i=0; i<pdu_vec.size(); ++i) |
for (unsigned i=0; i<pdu_vec.size(); ++i) |
155 |
{ |
{ |
157 |
|
|
158 |
SendSmsPdu(pdu.pdu, pdu.len); |
SendSmsPdu(pdu.pdu, pdu.len); |
159 |
} |
} |
160 |
|
Common::instance()->logMessage( "All PDU's send"); |
161 |
|
|
162 |
} |
} |
163 |
|
|
174 |
|
|
175 |
for (unsigned int i= 0; i<sms.size(); ++i) |
for (unsigned int i= 0; i<sms.size(); ++i) |
176 |
{ |
{ |
177 |
DeleteSms( sms[i].sms_index); |
DeleteSms( sms[i].GetIndex() ); |
178 |
} |
} |
179 |
return sms.size(); |
return sms.size(); |
180 |
} |
} |
264 |
} |
} |
265 |
} |
} |
266 |
|
|
267 |
|
std::vector<SMS> DebugGsmModem::ReadSms(bool readAll) |
268 |
|
{ |
269 |
|
vector<SMS> result; |
270 |
|
return result; |
271 |
|
} |