This class allows to send and read SMS. More...
#include <Sms.h>
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. | |
This class allows to send and read SMS.
| 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:
| QMessage Sms::getMessage | ( | int | id | ) |
Get a message.
| id | the id of the message |
| void Sms::messageServiceStateChanged | ( | QMessageService::State | s | ) | [slot] |
Slot called if the message was sent.
| s | is the status |
| bool Sms::sendKey | ( | QByteArray | key, | |
| QString | to = "" | |||
| ) |
Send a key via SMS.
| 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 + |
1.6.3