qtmobility/src/messaging/qmessageaccount_maemo.cpp
changeset 14 6fbed849b4f4
parent 11 06b8e2af4411
--- a/qtmobility/src/messaging/qmessageaccount_maemo.cpp	Fri Jun 11 14:26:25 2010 +0300
+++ b/qtmobility/src/messaging/qmessageaccount_maemo.cpp	Wed Jun 23 19:08:38 2010 +0300
@@ -42,6 +42,7 @@
 #include "qmessageaccount_p.h"
 #include "qmessagemanager.h"
 #include "modestengine_maemo_p.h"
+#include "telepathyengine_maemo_p.h"
 
 QTM_BEGIN_NAMESPACE
 
@@ -114,8 +115,9 @@
     if (type == QMessage::Email) {
         accountId = ModestEngine::instance()->defaultAccount();
     }
-    //TODO: Default SMS Account
-
+    if (type == QMessage::Sms || type == QMessage::InstantMessage) {
+        accountId = TelepathyEngine::instance()->defaultAccount(type);  //TODO: Default SMS Account
+    }
     return accountId;
 }