summaryrefslogtreecommitdiffstats
path: root/src/tools/messageserver/messageserver.cpp
diff options
context:
space:
mode:
authorDon Sanders <don.sanders@nokia.com>2011-11-21 19:40:27 +1000
committerDon Sanders <don.sanders@nokia.com>2011-11-21 19:40:27 +1000
commitc7723e6587d7d1cbe7768411b3cca32d29f1eca8 (patch)
tree4872b47dbda0f694a07c48af4fb00c1effd25783 /src/tools/messageserver/messageserver.cpp
parent48dc063ab31202a4bf89b2185fd6c4463832f426 (diff)
Added QMailSearchAction::countMessages function, and QMailMessageServer::messagesCount signal.
QMailSearchAction::countMessages(const QMailMessageKey &filter, const QString &bodyText) function Requests that the message server count all messages that match the criteria specified by \a filter. If \a bodyText is non-empty then messages that contain the supplied text in their content will also be matched and counted. It should be implemented for all protocol plugins for accounts with the QMailAccount::CanSearchOnServer flag set. Implemented for IMAP plugin, accelerated by use of ESEARH IMAP extension when supported by the remote server. QMailSearchAction::messagesCount(uint count) This signal emits the \a count of matching messages on the remote server. Only emitted for remote searches. Emitted by countMessages, and searchMessages functions. uint QMailSearchAction::messagesCount() const Returns the count of matching messages on the remote server. Also implemented boiler plate code in QMailMessageServer etc.
Diffstat (limited to 'src/tools/messageserver/messageserver.cpp')
-rw-r--r--src/tools/messageserver/messageserver.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tools/messageserver/messageserver.cpp b/src/tools/messageserver/messageserver.cpp
index cddea0a1..16cf63f0 100644
--- a/src/tools/messageserver/messageserver.cpp
+++ b/src/tools/messageserver/messageserver.cpp
@@ -142,6 +142,8 @@ MessageServer::MessageServer(QObject *parent)
client, SIGNAL(matchingMessageIds(quint64, QMailMessageIdList)));
connect(handler, SIGNAL(remainingMessagesCount(quint64, uint)),
client, SIGNAL(remainingMessagesCount(quint64, uint)));
+ connect(handler, SIGNAL(messagesCount(quint64, uint)),
+ client, SIGNAL(messagesCount(quint64, uint)));
connect(handler, SIGNAL(searchCompleted(quint64)),
client, SIGNAL(searchCompleted(quint64)));
connect(handler, SIGNAL(actionsListed(QMailActionDataList)),
@@ -213,6 +215,8 @@ MessageServer::MessageServer(QObject *parent)
handler, SLOT(searchMessages(quint64, QMailMessageKey, QString, QMailSearchAction::SearchSpecification, QMailMessageSortKey)));
connect(client, SIGNAL(searchMessages(quint64, QMailMessageKey, QString, QMailSearchAction::SearchSpecification, quint64, QMailMessageSortKey)),
handler, SLOT(searchMessages(quint64, QMailMessageKey, QString, QMailSearchAction::SearchSpecification, quint64, QMailMessageSortKey)));
+ connect(client, SIGNAL(countMessages(quint64, QMailMessageKey, QString)),
+ handler, SLOT(countMessages(quint64, QMailMessageKey, QString)));
connect(client, SIGNAL(shutdown()),
handler, SLOT(shutdown()));
connect(client, SIGNAL(listActions()),