diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-05-04 01:24:41 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-05-04 01:24:41 +0200 |
commit | 8af1436e92c1a853b74bacc9ac0adf012fdbc4ca (patch) | |
tree | 55273b39332a99abd213b76d78d37bfb1c3447f7 /qmsgwatchlet | |
parent | 7897ec1596a4348cd926eff7c1d4f03616ed535c (diff) | |
download | sowatch-8af1436e92c1a853b74bacc9ac0adf012fdbc4ca.tar.gz sowatch-8af1436e92c1a853b74bacc9ac0adf012fdbc4ca.zip |
new calendar watchlet
Diffstat (limited to 'qmsgwatchlet')
-rw-r--r-- | qmsgwatchlet/metawatch-digital.qml | 11 | ||||
-rw-r--r-- | qmsgwatchlet/qmsgwatchletplugin.cpp | 4 |
2 files changed, 15 insertions, 0 deletions
diff --git a/qmsgwatchlet/metawatch-digital.qml b/qmsgwatchlet/metawatch-digital.qml index e5e999f..89a5f00 100644 --- a/qmsgwatchlet/metawatch-digital.qml +++ b/qmsgwatchlet/metawatch-digital.qml @@ -20,6 +20,7 @@ MWPage { anchors.bottom: parent.bottom clip: true model: MessageModel { + id: model sortBy: MessageModel.Timestamp sortOrder: MessageModel.DescendingOrder filter: MessageIntersectionFilter { @@ -33,6 +34,16 @@ MWPage { comparator: MessageFilter.Equal value: MessageFilter.InboxFolder } + MessageFilter { + type: MessageFilter.Status + comparator: MessageFilter.Includes + value: MessageFilter.Incoming + } + MessageFilter { + type: MessageFilter.Status + comparator: MessageFilter.Excludes + value: MessageFilter.Removed + } } limit: 20 } diff --git a/qmsgwatchlet/qmsgwatchletplugin.cpp b/qmsgwatchlet/qmsgwatchletplugin.cpp index 2471d03..dfabd12 100644 --- a/qmsgwatchlet/qmsgwatchletplugin.cpp +++ b/qmsgwatchlet/qmsgwatchletplugin.cpp @@ -1,11 +1,15 @@ #include "qmsgwatchlet.h" #include "qmsgwatchletplugin.h" +#include <QtMessaging/QMessageManager> + using namespace sowatch; +QTM_USE_NAMESPACE QMsgWatchletPlugin::QMsgWatchletPlugin(QObject *parent) : QObject(parent) { + qRegisterMetaType<QMessageManager::NotificationFilterIdSet>("QMessageManager::NotificationFilterIdSet"); } QMsgWatchletPlugin::~QMsgWatchletPlugin() |