summaryrefslogtreecommitdiffstats
path: root/src/messaging/modestengine_maemo_p.h
diff options
context:
space:
mode:
authorMarko Minkkinen <marko.minkkinen@digia.com>2010-02-17 17:54:08 +0200
committerMarko Minkkinen <marko.minkkinen@digia.com>2010-02-17 17:54:08 +0200
commit1f5231ae695b9add377add46a4e9ee105c3ee727 (patch)
tree28627f4a1bd9893d3911a978fcfc134a240f4a0e /src/messaging/modestengine_maemo_p.h
parent7dd3fe87d15f82c0d60607252aa00f20814c92db (diff)
Add initial call to Modest's custom, extended API introduced by the new plugin
Make the writemessage example program use tabbed layout in maemo so it fits into the screen.
Diffstat (limited to 'src/messaging/modestengine_maemo_p.h')
-rw-r--r--src/messaging/modestengine_maemo_p.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/messaging/modestengine_maemo_p.h b/src/messaging/modestengine_maemo_p.h
index c91a8290bc..3ceb5aa21d 100644
--- a/src/messaging/modestengine_maemo_p.h
+++ b/src/messaging/modestengine_maemo_p.h
@@ -12,7 +12,7 @@
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
-**file:///home/maminkki/sbox/qtm-messaging/src/messaging/qmtmengine_symbian_p.h
+**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
@@ -42,12 +42,19 @@
#ifndef MODESTENGINE_MAEMO_H
#define MODESTENGINE_MAEMO_H
+#include <QMap>
+#include <QString>
+#include <QDBusArgument>
+
#include "qmessagemanager.h"
#include "gconf/gconf-client.h"
#include "libosso.h"
QTM_BEGIN_NAMESPACE
+typedef QMap< QString, QString > ModestStringMap;
+typedef QList< ModestStringMap > ModestStringMapList;
+
class QMessageService;
class ModestEngine
@@ -83,5 +90,13 @@ private: //Data
QTM_END_NAMESPACE
-#endif // MODESTENGINE_MAEMO_H
+// Marshall the MyStructure data into a D-Bus argument
+QDBusArgument &operator<<(QDBusArgument &argument, const QtMobility::ModestStringMap &map);
+// Retrieve the MyStructure data from the D-Bus argument
+const QDBusArgument &operator>>(const QDBusArgument &argument, QtMobility::ModestStringMap &map);
+
+Q_DECLARE_METATYPE (QtMobility::ModestStringMap);
+Q_DECLARE_METATYPE (QtMobility::ModestStringMapList);
+
+#endif // MODESTENGINE_MAEMO_H