summaryrefslogtreecommitdiffstats
path: root/src/contacts/qcontactmanager_p.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use QMultiHash where appropriateChris Adams2020-11-021-3/+3
| | | | | | Change-Id: I58e75ba3463415b7642a25345715609516e93aa1 Reviewed-by: Pekka Vuorela <pvuorela@iki.fi> Reviewed-by: Alberto Mardegan <mardy@users.sourceforge.net>
* Use Qt::SplitBehavior in preference to QString::SplitBehaviorEdward Welbourne2020-11-021-3/+3
| | | | | | | | | | The Qt version was added in 5.14 "for use as eventual replacement for QString::SplitBehavior." Move another step closer to that goal. De-UKified spelling of "behavior" in the process. Change-Id: I13b4fdc82fdee779b2e4d03ce287b749dadd1b71 Reviewed-by: Alberto Mardegan <mardy@users.sourceforge.net> Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au>
* Migrate QContactManagerData to use QRegularExpressionSamuel Gaist2018-08-061-1/+2
| | | | | | | | | | This patch updates the QContactManagerData class to use QRegularExpression in place of QRegExp which is to be considered deprecated. Change-Id: I9389692f1c2bbd9c76337177da778974fc65aed1 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io> Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
* Fix licensingJani Heikkinen2017-05-041-14/+20
| | | | | | | | | | Currently tests are licensed under GPL-EXCEPT, examples under BSD and src under LGPL so replase old license headers with new & proper ones. Also remove old & unused license files & add missing ones Task-number: QTBUG-57147 Change-Id: I07f7b555a3766ad1c4f57d662fc3326522885abe Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Drop condition around QFactoryLoaderUlf Hermann2017-03-291-2/+0
| | | | | | | QFactoryLoader is available without QLibrary. Change-Id: I5346d66d0589e2412cb13add0e932ed4b5e887a6 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* More license test fixesAlex Blasche2015-04-161-1/+1
| | | | | | | | | This change should have really been part of I4a4c08123be144a0f3c2c9ce987f5ce1e9ff8bb4 but resolving the conflicts across 300+ files is no fun. Change-Id: Ic14b52c6e27c1924419446b7f876954dc7bf1450 Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au>
* Update contact URLAlex Blasche2015-04-161-1/+1
| | | | | | | QtProject is no more. Change-Id: I2b1d6ff8ed40deec419c51757a539b40cc78b42f Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au>
* Fix licenses for QtPIMAlex Blasche2015-04-161-21/+13
| | | | | | | | | | 1.) Use QtCompany in each header and update copyright year 2.) All tests are LGPLv21 (some test files were BSD) 3.) Convert doc snippet to BSD (some were LGPL) 4,) Convert example code from FDL to BSD Change-Id: I4a4c08123be144a0f3c2c9ce987f5ce1e9ff8bb4 Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au>
* Make ID component parameter escaping functions consistentMatt Vogt2015-01-051-8/+14
| | | | | | | | Use the same coding style when escaping and unescaping characters in both the URI and the local ID components. Change-Id: I690c3d840368a7795e7fe092910255960cbacdde Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
* PIM ID local components do not need to be human-readableMatt Vogt2015-01-051-42/+97
| | | | | | | | | | | | | The PIM ID objects compose two elements: the URI of the manager that owns them, and a local component meaningful only to that manager. The URI is composed from human-readable elements and benefits from a string representation, but the local element has no requirement on readability, and can consume less storage by using a binary representation. Change-Id: I56d553f6d9debf0486310688006b0be8728c1c90 Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com> Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
* Cache deserialized manager URIs to promote data sharingMatt Vogt2014-08-081-1/+18
| | | | | | | | | | When deserializing ID objects, construct the resulting objects from cached instances of the manager URI string so that the resulting ID objects can share a string data representation. Change-Id: If3091bfc42e61938a823a9d2bfc68d0dafec0977 Reviewed-by: Christopher Adams <chris.adams@jollamobile.com> Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
* Simplify contact and organizer ID representationsKonstantin Ritt2014-08-011-18/+25
| | | | | | | | | | Simplify contact and organizer IDs to simply contain a manager URI that identifies the owner of the identified object, and an engine- specific string that identifies the object to that manager. Change-Id: Ic14c419df264e91c61e0f3d474d846289e1aaa82 Reviewed-by: Christopher Adams <chris.adams@jollamobile.com> Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
* Extend changed signals to optionally report changed typesMatt Vogt2014-07-181-6/+6
| | | | | | | | | | | | Add a parameter to the contactsChanged and itemsChanged signals, which allow a manager to optionally report the extent of changes involved in a contact or organizer item modification. If no changes are explicitly reported by the manager, the receiver must assume that any or all details of the contacts or organizer items may have been modified. Change-Id: Ie8a0d051c3f82a5911dea68213d78c2b173e762e Reviewed-by: Alex Blasche <alexander.blasche@digia.com> Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
* Centralize the URI and the ID string parse/build codeKonstantin Ritt2014-05-161-0/+124
| | | | | | | | | This also reduces the code duplication and consolidates the behavior between QtContacts and QtOrganizer. Change-Id: Ia2df252e6b55652821df143c1421b326bfbc3c7f Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au> Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
* Use the installed headersKonstantin Ritt2014-01-081-19/+14
| | | | | | | | | | | This fixes synqt warnings about incorrect inclusions in public headers. Also deals with extra- and duplicate includes, forward declaration, namespacing issues, and circular dependencies... ...and Qt-ifies the headers after all. Change-Id: Ia373d6fb93e0fecedd2a2334fbeb4c2005a67a4c Reviewed-by: Michael Krasnyk <michael.krasnyk@gmail.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* fix compileOswald Buddenhagen2013-03-261-1/+1
| | | | | | | | | | | work around compatibility issue between Q_GLOBAL_STATIC_WITH_ARGS and QStringLiteral: qt5/qtpim/src/contacts/qcontactmanager_p.cpp:81:484: error: lambda-expression in unevaluated context Change-Id: I70fb7d405140f3a5a811c0f8021a7ab3ac754ede Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com> Reviewed-by: Olivier Goffart <ogoffart@woboq.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Adjust QT*_{BEGIN,END}_NAMESPACE macroSergio Ahumada2013-03-261-2/+2
| | | | | | | | Changed to QT_{BEGIN,END}_NAMESPACE_* to match syncqt and tst_header's checks. Change-Id: If41721bf6be1294c9e0068af74917afc246603e9 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-241-24/+24
| | | | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: I2d9a4538442adcebf58fe50bf47c5e5c8b3b526a Reviewed-by: Janne Anttila <janne.anttila@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Use QPointer instead of QWeakPointer for tracking QObjects.Stephen Kelly2012-05-311-4/+4
| | | | | | Change-Id: Ia79fd891946a93f47a76fb97bfe07d9cc37da27e Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
* Use QStringLiteral macro instead of QLatin1String where possible.Cristiano di Flora2012-05-311-1/+1
| | | | | Change-Id: I283e72fa94ac08f2ac40db285b8607f3170b9d5b Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
* Remove QContactManagerEngineV2Wrapper, add PartialSave functionalityTommi Anttila2012-05-231-14/+8
| | | | | | | | | | -Merged QContactManagerEngineV2Wrapper class to QContactManagerEngine class -PartialSave functionality added to JsonDb and Memory backends (JsonDb side by Mika Tikkakoski mika.tikkakoski@nokia.com) -Adapted PartialSave tests in qcontactasync tests to match current lastError functionality Change-Id: I2c0be0fa2369c027221d6b51cce2b1304eb86685 Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
* Change uses of {to,from}Ascii to {to,from}Latin1Thiago Macieira2012-05-041-2/+2
| | | | | | | | | | This operation should be a no-op anyway, since at this point in time, the fromAscii and toAscii functions simply call their fromLatin1 and toLatin1 counterparts. Task-number: QTBUG-21872 Change-Id: I66177403322c7b2d15556f7a56750ac35a639aad Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
* Remove workaround for fixed bug in qobject_cast.Cristiano di Flora2012-04-121-4/+1
| | | | | Change-Id: I15a03f29d00ab1cf7911e3cc4af3313a4ad6c09b Reviewed-by: Tommi Anttila <tommi.4.anttila@nokia.com>
* "Lazy" plugin load in contacts.Claudio Brunelli2012-03-231-68/+40
| | | | | | | | | | | | | Postpone contacts plugin library loading to actual engine creation (createEngine) phase. Don't load all contacts plugins when importing QtContacts 5.0. Enables "lazy" dynamic plugin load. Corrected tests tst_QContactManager::metadata() and tst_QContactManager::nullIdOperations() to load proper manager Change-Id: I923c9ff92c6d2cdce284d4fef4377774b4fdc711 Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
* Fix the module names in the file headers.Xizhi Zhu2012-02-061-1/+1
| | | | | | Change-Id: Ibe0e92da12770e8dedc503788edad1f0d129a5f1 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Andy Cox <andrew.cox@nokia.com>
* Removed Q_OS_SYMBIAN flagged codeacox2012-02-051-5/+1
| | | | | | Change-Id: I098c66af4425031e2321fd2c3ab0289f2a40b62d Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Xizhi Zhu <xizhi.zhu@nokia.com>
* Remove "All rights reserved" line from license headers.Jason McDonald2012-01-301-1/+1
| | | | | | | | | | | As in the past, to avoid rewriting various autotests that contain line-number information, an extra blank line has been inserted at the end of the license text to ensure that this commit does not change the total number of lines in the license header. Change-Id: I063dff80c66d3f4d1dfd07c27478b9d5b1bfe0d8 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Fix several white space styling issues.Kranthi Kuntala2012-01-241-9/+9
| | | | | | | | | | This is fixing style issues related by the QContactId introduction together with some other similar issues already present in code before it. Change-Id: I204594f24195d30db36cf7d766cec97fb4ce8bfb Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
* introduce QContactIdKranthi Kuntala2012-01-241-15/+25
| | | | | | | | | | | | | | | This change introduces a back-end agnostic QContactId abstraction based on the design pattern already adopted in Organizer API. Back-end specific IDs are hidden behind an opaque QContactId wrapper class. This implementation removes the QContactLocalId from the api Fixes to auto tests done by Pekka Kauppila<pekka.kauppila@nokia.com> Change-Id: Ib9f5433c662eeac476f73005500c1bdd5604b1fb Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com> Reviewed-by: Mikko Suonio <mikko.suonio@nokia.com>
* Remove simulator backend from QtContacts API.Cristiano di Flora2012-01-211-10/+0
| | | | | | | | Change-Id: I4bf4360dee2b54bc28fd7f6a9fdaf299b23af0ed Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Oliver Wolff <oliver.wolff@nokia.com> Reviewed-by: Rainer Keller <rainer.keller@nokia.com> Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
* Update obsolete contact address.Jason McDonald2012-01-201-1/+1
| | | | | | | | Replace Nokia contact email address with Qt Project website. Change-Id: I981663bb2eec3d39a40bbec70bc064d0abec98ba Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
* Update copyright year in Nokia copyright headers.Jason McDonald2012-01-111-1/+1
| | | | | | | | | Update copyright headers from before 2011, and a few new ones that were merged after the previous change to copyright headers. Change-Id: I6d14a19ca1f3d257c05aaf26abc6bc2f3fb0489f Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Iterate via const reference when possibleCristiano di Flora2011-12-021-2/+2
| | | | | | | Change-Id: I46edfa497eef86d16af8a8cc2845e25bd755e4ca Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Claudio Brunelli <claudio.brunelli@nokia.com> Reviewed-by: Kranthi Kumar Kuntala <kranthi.kumar-kuntala@nokia.com>
* QContact Memory backend as a plugin.Cristiano di Flora2011-11-151-61/+56
| | | | | | Change-Id: Iac9b0169f78b8b5eb7fbcb9017f4016e32fde628 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
* Finalize namespace.Xizhi Zhu2011-10-191-2/+2
| | | | | Change-Id: I2b54571b2befa8120049422aa8034e8ba1e98ea8 Reviewed-by: Xizhi Zhu <xizhi.zhu@nokia.com>
* QtPim: Fix compilation on Windows/Warnings.Friedemann Kleint2011-09-291-1/+1
| | | | | | | | | | | | - Fix export of VersitOrganizer - Fix ASCII string conversion warnings - Fix crash-prone (QString == 0) comparisons - Fix setting of participant to have an effect Change-Id: Icac4266e7857b9b0b93c9a2722e308c7ac823d94 Reviewed-on: http://codereview.qt-project.org/5796 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Xizhi Zhu <xizhi.zhu@nokia.com>
* Get rid of QtWidgets dependencies from Qt pim libraries.Cristiano di Flora2011-09-171-3/+0
| | | | | | | Change-Id: I78744e26a46b489f8632a9305742af04827d4994 Reviewed-on: http://codereview.qt-project.org/5064 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
* Fix header files.Xizhi Zhu2011-09-061-1/+1
| | | | | | | | | | 1) Private headers should not be included in public headers. 2) Use <> for public headers, and "" for private headers. Change-Id: I229ff85c1665dd95a3b16e82b397703035f4e198 Reviewed-on: http://codereview.qt.nokia.com/4239 Reviewed-by: Xizhi Zhu <xizhi.zhu@nokia.com> Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
* Import from latest QtMobility.Xizhi Zhu2011-08-231-0/+405