Sms Source interface including service logic.

#include <smsSource.h>

Inheritance diagram for SmsSource:

Public Member Functions

 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...
 

Protected Attributes

std::list< boost::shared_ptr< Sms > > mSmsList
 

Constructor & Destructor Documentation

SmsSource ( const std::string &  id)
explicit
Parameters
ididentifier

Member Function Documentation

virtual boost::system::error_code deleteSms ( const std::string &  smsid)
pure virtual
Parameters
smsidsms identifier
Returns
error code

Implemented in SimSource.

virtual boost::system::error_code getSmsInfo ( const std::string &  smsid,
dpySms::SmsInformation &  info 
) const
virtual
Parameters
smsidid to be retrieved
infosms information
Returns
error code
virtual std::list<boost::shared_ptr<ISms> > getSmsList ( ) const
virtual
Returns
list of sms
virtual boost::system::error_code sendSms ( const std::string &  destination,
const std::string &  content,
std::string &  smsid 
)
pure virtual
Parameters
destinationis the destination number or element to send the sms to
contentmessage content
smsidresultant sms identifier
Returns
error code

Implemented in SimSource.

Member Data Documentation

std::list<boost::shared_ptr<Sms> > mSmsList
protected

Sms List