Home · All Classes · All Namespaces · Modules · Functions · Files

sms-manager.h

00001 class SmsManager : public QObject
00002 {
00003 public:
00004     /* on instantiation SmsManager will get the account ready and prepare all 
00005      * async operations to make it work properly */
00006     SmsManager(const QString &accountObjectPath = 
00007         [DEFAULT_SMS_ACCOUNT_PATH]);
00008 
00009     /* if sendTextMessage is called and the account is not ready yet, it will 
00010      * make the account ready and then send the message. The returned 
00011      * PendingOperation will finish when the account is ready (or fail) and 
00012      * the message is sent (or fail) */
00013     PendingOperation *sendTextMessage(const QString &phoneNumber,
00014         const QString &message);
00015 
00016 Q_SIGNALS:
00017     void textMessageReceived(const QString &phoneNumber,
00018         const QDateTime &timestamp, const QString &message);
00019 };


Copyright © 2008-2010 Collabora Ltd. and Nokia Corporation
Telepathy-Qt4 0.3.6