--- a/qtmobility/src/messaging/telepathyengine_maemo_p.h Fri Jun 11 14:26:25 2010 +0300
+++ b/qtmobility/src/messaging/telepathyengine_maemo_p.h Wed Jun 23 19:08:38 2010 +0300
@@ -51,8 +51,9 @@
class QMessageService;
-class TelepathyEngine
+class TelepathyEngine : public QObject
{
+ Q_OBJECT
public:
static TelepathyEngine* instance();
@@ -67,8 +68,9 @@
bool sendMessage(QMessage &message);
-
-
+public slots:
+ void onMessageSent(const Tp::Message &,TpSessionAccount *);
+ void onMessageQueued(TpSessionAccount *,bool);
private:
void updateImAccounts() const;
@@ -78,6 +80,8 @@
TpSession *tpSession;
mutable QMessageAccountId defaultSmsAccountId;
mutable QHash<QString, QMessageAccount> iAccounts;
+ QEventLoop loop; // For making send message synchronous
+ bool opBusy;
};
QTM_END_NAMESPACE