Sms Source interface including service logic.
#include <smsSource.h>
|
| SmsSource (const std::string &id) |
| Constructor. More...
|
|
virtual | ~SmsSource () |
| Destructor.
|
|
virtual void | start ()=0 |
| Start Source operations.
|
|
virtual void | stop ()=0 |
| Stop Source operations.
|
|
virtual std::list< boost::shared_ptr< ISms > > | getSmsList () const |
| Retrieve sms list from the sms source. More...
|
|
virtual boost::system::error_code | getSmsInfo (const std::string &smsid, dpySms::SmsInformation &info) const |
| Retrieve sms related information. More...
|
|
virtual boost::system::error_code | sendSms (const std::string &destination, const std::string &content, std::string &smsid)=0 |
| Sends a sms to a specified phone number or address. More...
|
|
virtual boost::system::error_code | deleteSms (const std::string &smsid)=0 |
| Delete a specific sms from the sms list. More...
|
|
virtual boost::system::error_code deleteSms |
( |
const std::string & |
smsid | ) |
|
|
pure virtual |
- Parameters
-
- Returns
- error code
Implemented in SimSource.
virtual boost::system::error_code getSmsInfo |
( |
const std::string & |
smsid, |
|
|
dpySms::SmsInformation & |
info |
|
) |
| const |
|
virtual |
- Parameters
-
smsid | id to be retrieved |
info | sms information |
- Returns
- error code
virtual std::list<boost::shared_ptr<ISms> > getSmsList |
( |
| ) |
const |
|
virtual |
virtual boost::system::error_code sendSms |
( |
const std::string & |
destination, |
|
|
const std::string & |
content, |
|
|
std::string & |
smsid |
|
) |
| |
|
pure virtual |
- Parameters
-
destination | is the destination number or element to send the sms to |
content | message content |
smsid | resultant sms identifier |
- Returns
- error code
Implemented in SimSource.
std::list<boost::shared_ptr<Sms> > mSmsList |
|
protected |