Sms Class Reference

This class allows to send and read SMS. More...

#include <Sms.h>

List of all members.

Public Slots

void messageServiceStateChanged (QMessageService::State s)
 Slot called if the message was sent.

Public Member Functions

 Sms (QObject *parent=0)
 Construcs n object that can be used to send SMS and to read Privl-Keys in the Inbox.
QList< QPair< QString,
QByteArray > > 
getInboxKeys ()
 Get a list of PrivL keys that are in the Inbox.
bool sendKey (QByteArray key, QString to="")
 Send a key via SMS.
QMessage getMessage (int id)
 Get a message.

Detailed Description

This class allows to send and read SMS.


Member Function Documentation

QList< QPair< QString, QByteArray > > Sms::getInboxKeys (  ) 

Get a list of PrivL keys that are in the Inbox.

A privl Key is defined to start with PrivlKey:

Returns:
a list containing each Pair(phone number, Privl-Key) from the Inbox
QMessage Sms::getMessage ( int  id  ) 

Get a message.

Parameters:
id the id of the message
Returns:
the requested QMessage
void Sms::messageServiceStateChanged ( QMessageService::State  s  )  [slot]

Slot called if the message was sent.

Parameters:
s is the status
bool Sms::sendKey ( QByteArray  key,
QString  to = "" 
)

Send a key via SMS.

Parameters:
key is the PrivL Key to be sent
to is the phone number of the destinator. It is a QString to contain starting 00, 0 or +
Returns:
success of the operation

The documentation for this class was generated from the following files:
Generated on Thu Jun 24 21:31:43 2010 for PrivL by  doxygen 1.6.3