1 |
#ifndef __IGSMMODEM_H__ |
#ifndef __ISMSTRANSCEIVER_H__ |
2 |
#define __IGSMMODEM_H__ |
#define __ISMSTRANSCEIVER_H__ |
3 |
|
|
4 |
#include <string> |
#include <string> |
5 |
#include <vector> |
#include <vector> |
6 |
#include "Sms.h" |
#include "Sms.h" |
7 |
|
|
8 |
|
|
9 |
class IGsmModem |
class ISmsTransceiver |
10 |
{ |
{ |
11 |
public: |
public: |
12 |
virtual void SendSms(std::string to, std::string message, bool allowMultipart) = 0; |
virtual void SendSms(std::string to, std::string message, bool allowMultipart) = 0; |
13 |
virtual std::vector<SMS> ReadSms(bool readAll = false) = 0; |
virtual std::vector<SMS> ReadSms(bool readAll = false) = 0; |
14 |
|
|
15 |
virtual void DeleteSms(std::string smsIndex) = 0; |
virtual ~ISmsTransceiver() {} |
|
virtual int DeleteAllSms() = 0; |
|
|
|
|
|
virtual ~IGsmModem() {} |
|
16 |
}; |
}; |
17 |
|
|
18 |
|
|
19 |
#endif // __IGSMMODEM_H__ |
#endif // __ISMSTRANSCEIVER_H__ |