1 |
/* using http://sourceforge.net/projects/libserial/ |
2 |
*/ |
3 |
|
4 |
#include <iostream> |
5 |
#include <string> |
6 |
#include <stdexcept> |
7 |
|
8 |
#include "DebugTransceiver.h" |
9 |
#include "Sms.h" |
10 |
|
11 |
|
12 |
using namespace std; |
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
void DebugTransceiver::SendSms(std::string to, std::string message, bool allowMultipart) |
20 |
{ |
21 |
_to=to; |
22 |
_message = message; |
23 |
_multipart = allowMultipart; |
24 |
|
25 |
if (_print) |
26 |
{ |
27 |
cout << "DebugModemTransceiver::SendSms --------------" << endl; |
28 |
cout << "To: " << to << endl;; |
29 |
cout << "Message: " << message << endl; |
30 |
cout << "Multipart: " << allowMultipart << endl; |
31 |
|
32 |
} |
33 |
} |
34 |
|
35 |
std::vector<SMS> DebugTransceiver::ReadSms(bool readAll) |
36 |
{ |
37 |
vector<SMS> result; |
38 |
return result; |
39 |
} |