summaryrefslogtreecommitdiffstats
path: root/examples/serverobserver
Commit message (Collapse)AuthorAgeFilesLines
* Adjust again some smaller code detailsPekka Vuorela10 days1-2/+2
| | | | | | | | | | | | | | | - Wrap some overly long lines - Honor coding conventions better here and there - Use nullptr more instead of '0' - Switch remaining cases of Q_DECL_OVERRIDE and Q_NULLPTR to standard keywords. - Removed some unnecessary #includes - etc. Change-Id: Ia9a01807da88298a6c1c1bbb22c854743ed19429 Reviewed-by: Pekka Vuorela <pvuorela@iki.fi> Reviewed-by: <matti.viljanen@kapsi.fi> Reviewed-by: Damien Caliste <dcaliste@free.fr>
* Remove qwidgets support from qmfmessageserverPekka Vuorela2025-11-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | This has little real life value. Any environment and apps starting to use the framework will or should have their own UI style. Predefined forms for some protocol configuration editing unlikely fits the rest. Moreover the support has been opt-out instead of opt-in, QMF_NO_MESSAGE_SERVICE_EDITOR which the _app_ has needed defined according to how the library has been built. Should have been some config.h provided by the framework according to how it's compiled. QMailMessageServiceConfigurator class without the editor makes little sense so removed altogether. There's qtmail example that was using this. For now just left some TODO comments to reimplement the account configuration. Unknown how the example works these days in general. Change-Id: I4122e2524a61797753999e67ecec36cb46213a7b Reviewed-by: Damien Caliste <dcaliste@free.fr> Reviewed-by: Pekka Vuorela <pvuorela@iki.fi>
* Avoid some more compiler warningsPekka Vuorela2025-11-061-7/+4
| | | | | | | | | | | | | | | | | | | | | | - Missed earlier one QMessageBox deprecation from separate file - LongStream now doing consistent open() check in all code paths. Also removed unused member variable 'c' and moved internal constants to .cpp. - imapstrategy.h / ImapMessageListStrategy::selectedSectionsAppend() was dead code due to derived class ImapFetchSelectedMessagesStrategy having similar named method with extra parameter and default value. - ImapService was triggering a couple of -Woverloaded-virtual warnings due to having extra methods with same name as base class. These were really used internally so simpler as different named private. - ImapProtocol / QString::lastIndexOf() was complaining about unused return value. Using that should be even simpler than accessing regexp match. - Some small random warnings on unused parameters, missed switch case etc. Change-Id: I243c09ab2d551fe2f8be18f1b3a4df2e3d84b55c Reviewed-by: Pekka Vuorela <pvuorela@iki.fi> Reviewed-by: Damien Caliste <dcaliste@free.fr> Reviewed-by: <matti.viljanen@kapsi.fi>
* Adjust messageserver naming versionsPekka Vuorela2025-11-012-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | On Qt6 it's strange to have messageserver5. Could have bumped the binary there to '6' but maybe we don't really need to highlight the qt version that much. The '5's were added to allow parallel installability but that really matters more on libraries etc rather than the server. We don't want parallel installed daemons fighting who gets autostarted first. Also on credential side it shouldn't matter which was the Qt version. Switching to newer version should still be about the same service. In practice don't think the names matter too much, and auth success is ignored so think it should be ok just changing the naming. Removed the '5's from examples too. No need there. Left the .pro file binary as it was as that side now mostly serves the Qt5 builds where we wouldn't benefit much from changing the binary name. Change-Id: Ie4a843c944caa73b080e3610baee4842500f029b Reviewed-by: Pekka Vuorela <pvuorela@iki.fi> Reviewed-by: Damien Caliste <dcaliste@free.fr> Reviewed-by: <matti.viljanen@kapsi.fi>
* Fix build for examplesPekka Vuorela2025-10-142-13/+2
| | | | | | | | | | | | | The QWidgets side is on its way out but fixing build in the meanwhile is simple enough. Maybe there's some benefit in having some more code here using the library. Not bothering about all the details here. Change-Id: I4ba71d03a5083623bf3cdb79082d6c77283f06bb Reviewed-by: <matti.viljanen@kapsi.fi> Reviewed-by: Damien Caliste <dcaliste@free.fr> Reviewed-by: Pekka Vuorela <pvuorela@iki.fi>
* Add missing spaces after for/if/while/switchPekka Vuorela2025-05-091-1/+1
| | | | | | | Change-Id: I57c6ed78099b3359a16ce807da95325e755f0197 Reviewed-by: Pekka Vuorela <pvuorela@iki.fi> Reviewed-by: Damien Caliste <dcaliste@free.fr> Reviewed-by: <matti.viljanen@kapsi.fi>
* Add CMake build systemDamien Caliste2024-10-171-0/+10
| | | | | | | | | | | | | | | | Adjust source code where necessary like: - #include <private/...> cannot be used since private is the installation path, but not the path used in the sources, - fix map definition in qmailservice.xml, - had to add #include <qmailstore.h> to qmailserviceaction.h since qt_add_dbus_adaptor can only include one header, - add a method using QDBusVariant in ServiceHandler so the adaptor can call it. Change-Id: Idbecf4214dffdf523ccd8558370e8d2854b5d99a Reviewed-by: Pekka Vuorela <pvuorela@iki.fi>
* Remove cruft from some .pro files and remove pointless common.priPekka Vuorela2024-03-311-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | messageserver.pri not used anywhere. Neither PLUGIN_INTERNAL definition is no longer used anywhere. The common.pri isn't too good a common file as it's mostly included outside the src tree, only src/tools/messageserver uses it from the actual sources. Hence removing QMF_ENABLE_LOGGING shouldn't affect anything since it's used only in the libqmfclient for one thing. To use that properly one has needed the definition value passed externally. The win/mac special case release mode I didn't understand too well and neither did qtbase run_pro2cmake.py I was testing to proceed with cmake build. Unsure was that CONFIG_WIN working even in qt5 or was that some earlier thing. The mac bundle would have been used only for unit tests and such, so feels pointless. As neither target now even works because of d-bus ipc, let's just remove this part. Removing these makes the common.pri even more pointless so just moved the INSTALL=target to few places that were using the common.pri Change-Id: Ibfe6da554e0d452e09d08e184e22508c1af958e0 Reviewed-by: Damien Caliste <dcaliste@free.fr> Reviewed-by: Christopher Adams <chris.adams@qinetic.com.au>
* Fix installation of examplesChris Adams2018-07-191-2/+2
| | | | | | Change-Id: I7aacfd91f7ec77dc50026820dd4379a4e42c5d53 Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au> Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
* Compile with GCC 6 -Werror=zero-as-null-pointer-constantChris Adams2018-07-191-2/+2
| | | | | Change-Id: I67eb29e13c5e643ee2f58a0696400e085999c01c Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au>
* Add QT_{BEGIN,END}_NAMESPACE macros to build successfully with namespaced Qt.Robin Burchell2015-08-281-0/+5
| | | | | Change-Id: Iac431ae2d56c2b9fd419651e6cb28c455db55259 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
* Update licensing to match latest approach in QtCore.Robin Burchell2015-08-283-66/+42
| | | | | Change-Id: Icce55517963f0cbc35211e9fc6f1a0fc413f5676 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
* Convert qmfclient & qmfmessageserver into Qt modules: QmfClient & ↵Robin Burchell2014-01-231-18/+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 <oswald.buddenhagen@digia.com> Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au> Reviewed-by: Valerio Valerio <valerio.valerio@jollamobile.com>
* 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 <valerio.valerio@jollamobile.com> Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au> Change-Id: I5e0e0549ef6ffee31b5e60ec94a9e17f27e01436 Reviewed-by: John Brooks <john.brooks@dereferenced.net> Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
* Detection of libraries built as framework or dylib on MacTakahiro Hashimoto2014-01-171-2/+10
| | | | | | | | | | 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 <valerio.valerio@jollamobile.com> Reviewed-by: Tasuku Suzuki <stasuku@gmail.com> Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
* Allow parallel installation of qt4 and qt5 buildsValerio Valerio2013-04-261-5/+11
| | | | | | | | Signed-off-by: Valerio Valerio <valerio.valerio@jollamobile.com> Change-Id: I2c03d287fc871098cf45d75d4a1262b9c6c4378d Reviewed-by: Robin Burchell <robin+qt@viroteck.net> Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au>
* Update Qt 5 port to match latest releaseValerio Valerio2013-04-191-2/+3
| | | | | | | | Update code base to match latest release of Qt. Signed-off-by: Valerio Valerio <valerio.valerio@jollamobile.com> Change-Id: I02c2ff250ea8cd960938b81903e92b04c745ae9c Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au> Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
* Change to new-form Digia license headers.Robin Burchell2013-02-123-72/+72
| | | | | Change-Id: If0f4427ee93a37de4ebd9e097defd8b3956f0fc6 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Build fixes for Qt5 and remove some spurious DEPENDS_ON macrosDon Sanders2012-03-121-0/+3
| | | | | | as they do nothing. Thanks to Valerio for the patch.
* Update license headers (make them consistent with harmattan qmf)Don Sanders2011-08-073-51/+51
| | | | Remove obsolete pre-release clause.
* Remove qDebug'sespringe2010-10-011-1/+1
|
* Rename the client qmf library from qmf to qmfclientespringe2010-09-091-5/+5
| | | | This is done to avoid conflicts with the QPID Management Framework
* Rename Qtopiamail library to QMFespringe2010-09-071-8/+8
| | | | | | | | | | | | | | | | | | | | | 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.
* Make server observer example show pid and action numberEric Springer2010-07-281-1/+3
| | | | It's quite dirty, but it's also quite useful
* Make server observer example wait for message serverEric Springer2010-07-282-1/+31
|
* Add serverobserver example filesEric Springer2010-07-204-0/+351