summaryrefslogtreecommitdiffstats
path: root/examples/qtmail/app/emailclient.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Restore compilation of qtmail example.Robin Burchell2014-02-031-3055/+0
| | | | | Change-Id: Id59253e1d121ab0dfcdb59f7018b897f6c1df086 Reviewed-by: Robin Burchell <[email protected]>
* Convert qmfclient & qmfmessageserver into Qt modules: QmfClient & ↵Robin Burchell2014-01-231-1/+1
| | | | | | | | | | | | | | | | | | | | | QmfMessageServer. This was not possible prior to now due to Qt 4 support hanging around like the undead vampire it is, but now we purged it with fire and light, and the build system looks a lot less like a stinky, decomposed corpse. There's still a lot of surprises lurking: qtmail is one such surprise. I don't quite grasp why it's so heavy on plugins, and qmfutil also needs some... attention. But at least it's a start. As part of this work, we rename the qcop headers to fit the private convention. This could have been done in a prior commit, but given that I didn't have an easy way to build prior to this commit, I opted to roll them together. Change-Id: Ia3e288ffc3639a7751c9040ceecb54fca77a31b1 Reviewed-by: Oswald Buddenhagen <[email protected]> Reviewed-by: Matthew Vogt <[email protected]> Reviewed-by: Valerio Valerio <[email protected]>
* Correctly start messageserver5 binary.Robin Burchell2014-01-201-2/+2
| | | | | Change-Id: I7eb742fc60884881714911e76ea6de6ef4939ca4 Reviewed-by: Robin Burchell <[email protected]>
* Update Qt 5 port to match latest releaseValerio Valerio2013-04-191-6/+7
| | | | | | | | Update code base to match latest release of Qt. Signed-off-by: Valerio Valerio <[email protected]> Change-Id: I02c2ff250ea8cd960938b81903e92b04c745ae9c Reviewed-by: Matthew Vogt <[email protected]> Reviewed-by: Robin Burchell <[email protected]>
* Remove Symbian support.Robin Burchell2013-02-281-4/+0
| | | | | | | | Symbian is not a supported platform anymore. Change-Id: I82e618e756ae0b247e6e038fa9d8d43fb90b44ff Reviewed-by: Valerio Valerio <[email protected]> Reviewed-by: Matthew Vogt <[email protected]>
* Change to new-form Digia license headers.Robin Burchell2013-02-121-24/+24
| | | | | Change-Id: If0f4427ee93a37de4ebd9e097defd8b3956f0fc6 Reviewed-by: Lars Knoll <[email protected]>
* s/Nokia/QtProject/ in settings files.Robin Burchell2012-12-051-4/+4
| | | | | | | | | | minor, but matches the changes made in Qt 5, and reflects that Nokia is no longer the vendor of this software. Change-Id: I3b324b813359f53e65760f3ce7a751dbd5c970e7 Reviewed-by: Sergio Ahumada <[email protected]> Reviewed-by: Johan Thelin <[email protected]> Reviewed-by: Valerio Valerio <[email protected]>
* More robust sending code in qtmail example.Don Sanders2012-06-081-1/+2
| | | | | | | | | | | | Handle case of IMAP server supporing GENAUTHURL and SMTP server supporting BURL, and user defining Sent folder on server (or autodetection), then deleting that folder on the server. Don't try to upload message to non-existent sent folder. Probably could still be handled better, CanTransmitFromExternal shouldn't really be used as a message flag, but should instead be computed on demand.
* Replace uses of qDebug with qMailLog.Don Sanders2012-04-201-1/+0
| | | | | | | | | | | | | | As qDebug shouldn't be used in release code, and may become deprecated. There's still some uses of qDebug left, namely, some automated tests that actually test qDebug/qMailLog functionality, some uses of qDebug in uncompiled documentation code snippet examples, one use of include QDebug in symbian code, and in qmailid some uses of defining operator<<(QDebug <<, ...). There's still about 500 uses of qWarning and qFatal left. For these I include qmaillog.h as currently that inclues QDebug. Apart from the one symbian case already mention.
* For new push enabled folders retrieve at least ↵Don Sanders2012-03-021-5/+2
| | | | | | QMailRetrievalAction::defaultMinimum() mails. Previously only 1 mail could be retrieved.
* Add service action to find and create standard folders.Valerio Valerio2012-01-271-0/+18
| | | | | | | | | | | | void QMailRetrievalAction::createStandardFolders(const QMailAccountId &accountId) Requests that the message server create the standard folders for the account accountId. If all standard folders are already set in the storage the service action will return success immediately, in case some standard folders are not set, a matching attempt against a predefined list of translations will be made, if the folders can't be matched, messageserver will try to create them in the server side and match them if the creation is successful. In case folder creation is not allowed for the account accountId the service action will return.
* Fix qtmail bug in editing message in drafts folder on serverDon Sanders2012-01-121-1/+6
| | | | | | | | | | | | | Updated message should now be saved to drafts folder on server. This required deleting old message, and saving a new message. Which has some side effects. #1 On gmail deleted messages are copied to the trash automatically. #2 In qtmail if multiple qmf accounts exist for the same remote account then updating a drafts in one qmf account and then viewing the other account will detect that the original drafts message has been removed due to qtmail automatic visible message flags updating, and the new message will not be retrieved until a synchronization is performed.
* Add disconnected storage actions, for actions requiring database writes.2012W02Don Sanders2012-01-101-2/+3
| | | | | | | | | | | | | | | | | | | | | | | Specifically, as documented in src/libraries/qmfclient/CHANGES.qdoc item 52, added: 'void QMailStorageAction::deleteMessages(quint64, const QMailMessageIdList &ids)', 'void QMailStorageAction::rollBackUpdates(quint64, const QMailAccountId &mailAccountId)', 'void QMailStorageAction::moveToStandardFolder(quint64, const QMailMessageIdList& ids, QMailFolder::StandardFolder standardFolder)', 'void QMailStorageAction::moveToFolder(quint64, const QMailMessageIdList& ids, const QMailFolderId& folderId)', 'void QMailStorageAction::flagMessages(quint64, const QMailMessageIdList& ids, quint64 setMask, quint64 unsetMask)', 'void QMailStorageAction::restoreToPreviousFolder(quint64, const QMailMessageKey& key)', 'void QMailMessageServer::deleteMessages(quint64, const QMailMessageIdList &ids)', 'void QMailMessageServer::rollBackUpdates(quint64, const QMailAccountId &mailAccountId)', 'void QMailMessageServer::moveToStandardFolder(quint64, const QMailMessageIdList& ids, quint64 standardFolder)', 'void QMailMessageServer::moveToFolder(quint64, const QMailMessageIdList& ids, const QMailFolderId& folderId)', 'void QMailMessageServer::flagMessages(quint64, const QMailMessageIdList& ids, quint64 setMask, quint64 unsetMask)' and 'void QMailMessageServer::restoreToPreviousFolder(quint64, const QMailMessageKey& key)'. Also added documentation for new functions, and made some minor documentation updates for existing functions. Additionally added a new set of module tests tst_qmailstorageaction. These tests require the messageserver to be running. They are not just stubs but do real testing.
* Rename some QMailStorageAction functions to indicate they require the device ↵2012W01_1Don Sanders2012-01-051-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | to be online. Specifically: Renamed 'void QMailStorageAction::deleteMessages(const QMailMessageIdList &ids)' to onlineDeleteMessages, 'void QMailStorageAction::copyMessages(const QMailMessageIdList &ids, const QMailFolderId &destinationId)' to onlineCopyMessages, 'void QMailStorageAction::moveMessages(const QMailMessageIdList &ids, const QMailFolderId &destinationId)' to onlineMoveMessages, 'void QMailStorageAction::flagMessages(const QMailMessageIdList &ids, quint64 setMask, quint64 unsetMask)' to onlineFlagMessages, 'void QMailStorageAction::createFolder(const QString &name, const QMailAccountId &accountId, const QMailFolderId &parentId)' to onlineCreateFolder, 'void QMailStorageAction::renameFolder(const QMailFolderId &folderId, const QString &name)' to onlineRenameFolder, 'void QMailStorageAction::deleteFolder(const QMailFolderId &folderId)' to onlineDeleteFolder. 'void QMailMessageServer::deleteMessages(const QMailMessageIdList &ids)' to onlineDeleteMessages, 'void QMailMessageServer::copyMessages(const QMailMessageIdList &ids, const QMailFolderId &destinationId)' to onlineCopyMessages, 'void QMailMessageServer::moveMessages(const QMailMessageIdList &ids, const QMailFolderId &destinationId)' to onlineMoveMessages, 'void QMailMessageServer::flagMessages(const QMailMessageIdList &ids, quint64 setMask, quint64 unsetMask)' to onlineFlagMessages, 'void QMailMessageServer::createFolder(const QString &name, const QMailAccountId &accountId, const QMailFolderId &parentId)' to onlineCreateFolder, 'void QMailMessageServer::renameFolder(const QMailFolderId &folderId, const QString &name)' to onlineRenameFolder, 'void QMailMessageServer::deleteFolder(const QMailFolderId &folderId)' to onlineDeleteFolder. Additionally updated the doc to fix some assorted discrepancies, and indicate which functions require the device to be online. Have not yet regenerated the html version of the doc.
* Fix broken logic for enabling FWOD.Don Sanders2011-11-021-1/+2
| | | | | | | | | Both QMailAccount::CanReferenceExternalData and QMailAccount::CanTransmitViaReference should be true. In reality not a problem in qtmail example due to additional checks, but qtmail code is used as an example by others so good to get it right here.
* Update license headers (make them consistent with harmattan qmf)Don Sanders2011-08-071-17/+17
| | | | Remove obsolete pre-release clause.
* Avoid loop in qtmail UI.Don Sanders2011-06-241-1/+0
|
* Fix regressions in qtmail.experimentalDon Sanders2011-06-221-4/+2
| | | | Due to serviceactions changes.
* Fix style issues.Don Sanders2011-06-021-3/+3
|
* Qtmail fix, safer sending with service actions.Don Sanders2011-06-021-1/+16
| | | | | | | Don't lose mail if messageserver crashes or is not running while queueing mail in outbox. Catch failure and save to outbox using qmailstore.
* qtmail fix.Don Sanders2011-06-021-0/+1
| | | | | If retrieving messages flags fails, give up, rather than endlessly retry.
* Resolve conflicts. In cherry-pick.Don Sanders2011-05-231-17/+11
| | | | | | Eric Springer committed c1b02c7f on May 19, 2011 14:28 Fix qtmail crash when hitting the cancel button
* Use qobject_cast instead of dynamic_cast.Don Sanders2011-05-231-1/+1
|
* In qtmail use async serviceactions for adding and updating messages.Don Sanders2011-05-201-11/+28
| | | | | | When sending mail. Intent is to increase responsiveness of client.
* Merge branch 'symbian'Don Sanders2011-03-221-2/+63
|\
| * Configurable possibility to run messageserver in thread (from dll) on SymbianMarko Minkkinen2011-03-161-0/+58
| |
| * Merge master to symbianMarko Minkkinen2011-03-111-7/+6
| |\
| * | Couple of Symbian related changes (in #ifdefs)Marko Minkkinen2011-02-101-0/+2
| | |
| * | Compiler warnings fixedMarko Minkkinen2011-02-101-2/+3
| | |
* | | Upgrade mailthreads to store account information in database`Eric Springer2011-03-221-2/+2
| | |
* | | Revert "Chuck in unnamed namespace for external linkage"Eric Springer2011-03-161-8/+0
| | | | | | | | | | | | This reverts commit 24cb8cdd0a79cd973349d31120a541308a8f49d1.
* | | Chuck in unnamed namespace for external linkageEric Springer2011-03-161-0/+8
| |/ |/|
* | Fix a problem with failure to export changes to server not beingDon Sanders2011-03-081-7/+6
|/ | | | | | handled correctly. Just a client (qtmail) issue.
* Comment out description after #endif directiveespringe2010-11-241-1/+1
|
* QtMail: QAction::setIconText takes a QString, not boolespringe2010-11-241-1/+1
| | | | | | Currently it's getting casted to a null pointer, and invoking the QString(char *) constructor which is safely handling it -- but this isn't something we should rely on.
* Fix for platforms with no QSystemTrayIcon.Don Sanders2010-11-241-1/+4
|
* Fix 'style' violations.Don Sanders2010-11-021-4/+4
|
* Better sanity checks will synchronizing.Don Sanders2010-11-021-11/+27
|
* Add sanity check when synchronizing.Don Sanders2010-10-281-0/+6
|
* Removed restoreToPreviousFolder from QMailStore (API/ABI break)Patrick Burke2010-10-051-1/+1
| | | | | The functionality has moved to QMailDisconnected, and works after the account has been synchronised with a server.
* Revert "Removed restoreToPreviousFolder from QMailStore (API/ABI break)"espringe2010-10-011-1/+1
| | | | | This reverts commit 42871f0102e9f937de88e5bd2ca3f908a88ee12b, as there are some issues to be discussed before we break ABI.
* Removed restoreToPreviousFolder from QMailStore (API/ABI break)Patrick Burke2010-10-011-1/+1
| | | | | The functionality has moved to QMailDisconnected, and works after the account has been synchronised with a server.
* Add rudimentary new mail notifications to QtMailespringe2010-09-301-0/+52
|
* Fix some issues reported by coverityespringe2010-09-221-6/+1
|
* Rename Qtopiamail library to QMFespringe2010-09-071-4/+4
| | | | | | | | | | | | | | | | | | | | | Library Renames: libmessageserver -> libqmfmessageserver libqtopiamail -> libqmf Directory Changes: src/libraries/messageserver -> src/libraries/qmfmessageserver src/libraries/qtopiamail -> src/libraries/qmf src/plugins/contentmanagers/qtopiamailfile -> qmfstoragemanager src/plugins/messageservices/qtopiamailfile -> qmfsettings Class changes: QtopiamailfileConfigurator -> QmfConfigurator QtopiamailfileSettings -> QmfSettings QtopiamailfileServicePlugin -> QmfServicePlugin QtopiamailfileManager -> QmfStorageManager There's still a few outstanding changes in the docs / translations that should be fixed shortly.
* Simply qtmail example by using newDon Sanders2010-08-221-18/+4
| | | | QMailRetrievalAction::synchronize function.
* Add missing tr's.Don Sanders2010-08-091-7/+7
|
* Create interface for temporary messages. Use it in examples.Don Sanders2010-08-061-1/+1
|
* Stop QtMail from making invalid retrieval requestsEric Springer2010-08-041-3/+4
|
* Fix QtMail dereferencing null pointer crashEric Springer2010-08-041-2/+2
|