Sim Source interface which interacts with the modem.

#include <simSource.h>

Inheritance diagram for SimSource:

Public Member Functions

 SimSource (const std::string &id, ModemManagerPrivate &modem, const std::string &modemid)
 Constructor. More...
 
virtual ~SimSource ()
 Destructor.
 
void start ()
 Start Source operations.
 
void stop ()
 Stop Source operations.
 
boost::system::error_code sendSms (const std::string &destination, const std::string &content, std::string &smsid)
 Sends a sms to a specified phone number. More...
 
boost::system::error_code deleteSms (const std::string &smsid)
 Delete a specific sms from the sms list. More...
 
- Public Member Functions inherited from SmsSource
 SmsSource (const std::string &id)
 Constructor. More...
 
virtual ~SmsSource ()
 Destructor.
 
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...
 

Additional Inherited Members

- Protected Attributes inherited from SmsSource
std::list< boost::shared_ptr< Sms > > mSmsList
 

Constructor & Destructor Documentation

SimSource ( const std::string &  id,
ModemManagerPrivate modem,
const std::string &  modemid 
)
Parameters
ididentifier
modemmodem object
modemidmodem identifier

Member Function Documentation

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

Implements SmsSource.

boost::system::error_code sendSms ( const std::string &  destination,
const std::string &  content,
std::string &  smsid 
)
virtual
Parameters
destinationis the destination number or element to send the sms to
contentmessage content
smsidresultant sms identifier
Returns
error code

Implements SmsSource.