summaryrefslogtreecommitdiffstats
path: root/examples/qtmail/app
Commit message (Collapse)AuthorAgeFilesLines
* Restore compilation of qtmail example.Robin Burchell2014-02-0399-70999/+0
| | | | | Change-Id: Id59253e1d121ab0dfcdb59f7018b897f6c1df086 Reviewed-by: Robin Burchell <[email protected]>
* Make URL opening function in a cross-platform world.Robin Burchell2014-01-281-7/+2
| | | | | | Change-Id: I7f4bee6fccf1e2a805cc7e9899ae16a6e15caa8d Reviewed-by: Valerio Valerio <[email protected]> Reviewed-by: Robin Burchell <[email protected]>
* Remove obsolete Qtopia-related bits from qtmail.Robin Burchell2014-01-271-34/+1
| | | | | Change-Id: I021570bce26529adfbfb4080b18b87df74bc2c18 Reviewed-by: Matthew Vogt <[email protected]>
* Remove stray QDebug.Robin Burchell2014-01-241-1/+0
| | | | | Change-Id: If27729ee3fd511226a31ae096f52e130e14d8065 Reviewed-by: Robin Burchell <[email protected]>
* Remove composer & viewer plugins, move them entirely to QtMail.Robin Burchell2014-01-2432-8737/+20675
| | | | | | | | | | | | | | | | | These may have made some sense back when QMF was part of Qtopia (a messaging system customizable for each platform and offering extensible message types), but it makes a lot less sense in the sense of a library offering email-related functionality. This type of functionality belongs in the clients, not in the library, so move it there. This has been performed through a fairly quick hatchet job. It isn't really clean, working code yet, but it is operational. Change-Id: Ic417a5e885034b67b645df238febb30cda88b17c Reviewed-by: Matthew Vogt <[email protected]> Reviewed-by: Valerio Valerio <[email protected]>
* Make qmfutil a Qt module: QmfWidgets.Robin Burchell2014-01-231-15/+2
| | | | | | | | | | I'm not totally clear how useful this thing actually is, but instead of bastardising it across a few examples/projects, let's promote it to a module and avoid that black magic. Change-Id: I4d34961bc30e01455274afdd344286f4e5cfd25a Reviewed-by: Matthew Vogt <[email protected]> Reviewed-by: Robin Burchell <[email protected]>
* Convert qmfclient & qmfmessageserver into Qt modules: QmfClient & ↵Robin Burchell2014-01-232-16/+9
| | | | | | | | | | | | | | | | | | | | | 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]>
* Remove Qt 4 support.Robin Burchell2014-01-211-17/+6
| | | | | | | | | | | This has persisted long enough, and as far as I am aware, has no users. It is also blocking potential build system cleanups and other good things. Reviewed-by: Valerio Valerio <[email protected]> Reviewed-by: Matthew Vogt <[email protected]> Change-Id: I5e0e0549ef6ffee31b5e60ec94a9e17f27e01436 Reviewed-by: John Brooks <[email protected]> Reviewed-by: Robin Burchell <[email protected]>
* Correctly start messageserver5 binary.Robin Burchell2014-01-201-2/+2
| | | | | Change-Id: I7eb742fc60884881714911e76ea6de6ef4939ca4 Reviewed-by: Robin Burchell <[email protected]>
* Detection of libraries built as framework or dylib on MacTakahiro Hashimoto2014-01-171-2/+11
| | | | | | | | | | This makes build system detect if Qt libraries are built as framework or not and add correct flags to LIBS. Change-Id: Ifb0d2ed87f5d624966395bce39959ce53f1dee89 Reviewed-by: Valerio Valerio <[email protected]> Reviewed-by: Tasuku Suzuki <[email protected]> Reviewed-by: Robin Burchell <[email protected]>
* Fix QMF with Qt 5.1+4.0.1Robin Burchell2013-06-122-9/+1
| | | | | | | | | | | Q_GLOBAL_STATIC changed implementation. To make life easy, just make the constructor public, and stop trying to use Q_GLOBAL_STATIC in a rather unsupported way. Change-Id: I7c6b13534c1a32db643574a9814b73ce0e0b22cf Reviewed-by: Valerio Valerio <[email protected]> Reviewed-by: John Brooks <[email protected]> Reviewed-by: Robin Burchell <[email protected]>
* Allow parallel installation of qt4 and qt5 buildsValerio Valerio2013-04-261-5/+11
| | | | | | | | Signed-off-by: Valerio Valerio <[email protected]> Change-Id: I2c03d287fc871098cf45d75d4a1262b9c6c4378d Reviewed-by: Robin Burchell <[email protected]> Reviewed-by: Matthew Vogt <[email protected]>
* Update Qt 5 port to match latest releaseValerio Valerio2013-04-198-13/+16
| | | | | | | | 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-283-23/+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-1223-552/+552
| | | | | Change-Id: If0f4427ee93a37de4ebd9e097defd8b3956f0fc6 Reviewed-by: Lars Knoll <[email protected]>
* s/Nokia/QtProject/ in settings files.Robin Burchell2012-12-053-7/+7
| | | | | | | | | | 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.
* Build fixes for Qt5 and remove some spurious DEPENDS_ON macrosDon Sanders2012-03-121-0/+2
| | | | | | as they do nothing. Thanks to Valerio for the patch.
* 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-272-0/+21
| | | | | | | | | | | | 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-0723-391/+391
| | | | 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-022-1/+17
| | | | | | | 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.
* Qt 4.8 beta fix.Don Sanders2011-05-261-1/+2
| | | | | | QApplication must be constructed before QSettings. Patch from Juha Kurikkala
* 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-202-12/+31
| | | | | | When sending mail. Intent is to increase responsiveness of client.
* Small Mac OS X build fixHarald Fernengel2011-03-291-3/+3
|
* Merge branch 'symbian'Don Sanders2011-03-2211-12/+107
|\
| * Configurable possibility to run messageserver in thread (from dll) on SymbianMarko Minkkinen2011-03-163-0/+88
| |
| * Merge master to symbianMarko Minkkinen2011-03-112-8/+7
| |\
| * | Couple of Symbian related changes (in #ifdefs)Marko Minkkinen2011-02-101-0/+2
| | |
| * | Compiler warnings fixedMarko Minkkinen2011-02-1010-12/+13
| | |
| * | Symbian related changes to .pri & .pro filesMarko Minkkinen2011-02-101-0/+4
| | |
* | | 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-082-8/+7
|/ | | | | | handled correctly. Just a client (qtmail) issue.
* Additional Symbian fixes from SADon Sanders2010-12-091-0/+8
|
* Fix a crash when removing accounts.Don Sanders2010-12-051-1/+5
| | | | | | Add a guard to QList.mid call, seems really strange that the mid function is unstable when pos is greater than (or equal to?) count of elements in the list, but this is not the first time I've experience this crash.
* 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.