--- a/qtmobility/src/messaging/qmessageaccount_maemo.cpp Fri Apr 16 15:51:22 2010 +0300
+++ b/qtmobility/src/messaging/qmessageaccount_maemo.cpp Mon May 03 13:18:40 2010 +0300
@@ -41,6 +41,7 @@
#include "qmessageaccount.h"
#include "qmessageaccount_p.h"
#include "qmessagemanager.h"
+#include "modestengine_maemo_p.h"
QTM_BEGIN_NAMESPACE
@@ -54,6 +55,11 @@
return result;
}
+QMessageAccountPrivate* QMessageAccountPrivate::implementation(const QMessageAccount &account)
+{
+ return account.d_ptr;
+}
+
QMessageAccount::QMessageAccount()
: d_ptr(new QMessageAccountPrivate(this))
{
@@ -103,7 +109,14 @@
QMessageAccountId QMessageAccount::defaultAccount(QMessage::Type type)
{
- //TODO:
+ QMessageAccountId accountId;
+
+ if (type == QMessage::Email) {
+ accountId = ModestEngine::instance()->defaultAccount();
+ }
+ //TODO: Default SMS Account
+
+ return accountId;
}
QTM_END_NAMESPACE