summaryrefslogtreecommitdiffstats
path: root/src/contacts/qcontactmanagerengine.h
Commit message (Collapse)AuthorAgeFilesLines
* Accessors should be constChris Adams2021-03-181-2/+2
| | | | | Change-Id: I5316640c5645eddc4078898a67f54dd984ffd29a Reviewed-by: Pekka Vuorela <pvuorela@iki.fi>
* Use QMetaType::Type instead of the deprecated QVariant::TypeChris Adams2020-11-021-1/+1
| | | | | Change-Id: I8b4ee32e36ea024392f85d5cf1b7b03a84a56e7b Reviewed-by: Bea Lam <bea.lam@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>
* QtContacts: detail-leaf-class API improvementsChris Adams2015-11-121-0/+1
| | | | | | | | | | | | | | | This commit improves the API of various detail leaf classes by adding support for more commonly-required fields. It also fixes the QContactGender class so that the enum definitions are sensible and consistent with the rest of the API. Finally, it adds support for providing per-detail provenance information, to enable the Aggregate/Facet contact story. Change-Id: Idf465f99963d372ec4f0d439cf9f3be8a7823202 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com> Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au>
* 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>
* Replace defaultCollection() with defaultCollectionId()Konstantin Ritt2015-02-121-1/+1
| | | | | | | | | | | This assumes the id of a default collection is known at the engine initialization time, but makes it possible to defer fetching the default collection's content up until it is needed. This also greatly simplifies the initialization process for the async-only engines. Change-Id: I5116ffdd22d7fa6cc5f8a8eed7f94518e6db7089 Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
* Add QContactCollection.Renato Araujo Oliveira Filho2015-02-061-0/+21
| | | | | | | | | The QContactCollection class represents a collection of contacts in a manager. This class was implemented based on QOrganizerCollection. Change-Id: I5377f9043a66726182b7a0ed7f40733ffe08b619 Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au> Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
* PIM ID local components do not need to be human-readableMatt Vogt2015-01-051-1/+1
| | | | | | | | | | | | | 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 managerUri value to promote string data sharingMatt Vogt2014-08-011-1/+3
| | | | | | | | | Allow the various instances of string objects containing manager URIs to be shared, by returning a fixed instance from which they can be copied. Change-Id: Id2522c35a1aa009667348a61409cfd87837be9cf Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
* Simplify contact and organizer ID representationsKonstantin Ritt2014-08-011-6/+8
| | | | | | | | | | 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-1/+1
| | | | | | | | | | | | 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>
* Revert change to QContactRelationship participant typesMatt Vogt2014-07-091-1/+1
| | | | | | | | | | | | | | A earlier change converted QContactRelationship first and second properties to use QContact rather than QContactId representations. The motivation for this change is unclear, but it resulted in undesirable complication to the interface without obvious benefits. This change restores the original ID-based representation for relationships. Change-Id: Iaeff907d11efcda0ef3ba3161ee0c3e760b0dd1a Reviewed-by: Christopher Adams <chris.adams@jollamobile.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Use the installed headersKonstantin Ritt2014-01-081-18/+15
| | | | | | | | | | | 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>
* 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>
* Cleaning up old keywords from documentationikause2012-06-131-1/+1
| | | | | Change-Id: I965d91bcb79f7167fc0248fe7b0ef083e333005d Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
* Remove QContactManagerEngineV2Wrapper, add PartialSave functionalityTommi Anttila2012-05-231-29/+4
| | | | | | | | | | -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>
* Introducing StorageLocations in QtContacts.Mikko Suonio2012-04-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit introduces a concept of StorageLocation in QtContacts QML and C++ interfaces. This concept enables QContacts to be stored in two different storage locations, namely UserDataStorage and SystemStorage. Commit includes also jsondb backend support for storage locations as well as test cases for QML and C++ interfaces. There are some limitations in using storage locations. - Contacts QML model can deal with one storage location at the time. - In C++ interface fetching can be done only from one storage location at a time. - Thus fetching from two different storage location requires two fetch requests. - Synchronous operations in C++ interface only supports the default storage location. - It is completely backend specific if and how storage locations are supported. - Currently jsondb backend supports storage locations with default storage location being UserDataStorage. C++ tests for storage locations were implemented by Mika Tikkakoski <mika.tikkakoski@nokia.com> Storage location implementation contain contributions by Claudio Brunelli <claudio.brunelli@nokia.com> Cristiano di Flora <cristiano.di-flora@nokia.com> Mika Tikkakoski <mika.tikkakoski@nokia.com> Change-Id: I4e8d05ccd88371ecd6c9a33a66a6d4bab762be3d Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
* refactor displayLabel detail in contacts APIKranthi Kuntala2012-04-021-4/+0
| | | | | | | | | | | | | -the synthesized display label generated from qcontactmanager is removed -custom label in the name detail has been removed -added a displayLabel detail in c++ api and corresponding bindings in contacts Qml Api -jsondb backend handles displayLabel detail only when it is set in qcontact -The above adaptation is done for versit api , display label is a FN property there -Adapted c++ and qml tests -As a result the only read only property now in qcontact is its Type Change-Id: I0e408dc3f7c62cba9a2f71bac87ff48db840afd1 Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
* remove hasFeature method from contacts ApiKranthi Kuntala2012-03-301-1/+0
| | | | | | | | | | It is recommended to use isRelationshipTypeSupported or supportedContactTypes to know if the relationships or contact types are supported by the managers and for other details the docs should help adapt the tests accordingly Change-Id: I87513ef392a018e4ae91ed5c0575fd832c8b52c7 Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
* Remove compatibleContact() method from QContactManager.Cristiano di Flora2012-03-131-3/+0
| | | | | | | | | After major changes in contacts API, the compatibleContact method is not needed anymore, since it becomes equivalent to validateContact method of QContactManagerEngine. Change-Id: I716bc545621772e2d41bc1b2755c24fbb948e095 Reviewed-by: Kranthi Kuntala <kranthi.kumar-kuntala@nokia.com>
* QtPim: Fix warnings.Friedemann Kleint2012-02-281-2/+2
| | | | | | | | | | | | - Fix MSVC warnings about not overriding functions due to differing parameters (const Enum used inconsistently). - Fix exports of qHash() and stream operators. - Remove QString from ASCII conversion. Change-Id: I9c921f64a2c76a4048520ca35996449c873ef0e8 Reviewed-by: Kranthi Kuntala <kranthi.kumar-kuntala@nokia.com> Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com> Reviewed-by: Alex <alex.blasche@nokia.com>
* Use enumerations for detail types and detail fields.Cristiano di Flora2012-02-241-5/+5
| | | | | | | | | | | | | | | | | | This patch changes the internal representation of detail types and field names within details from a string-based representation to enum constants. Detail definition names are then replaced by the concept of "Detail Type". Enum values are also aligned across C++ Vs QML APIs Authors: - Tommi Anttila <tommi.4.anttila@nokia.com> - Claudio Brunelli <claudio.brunelli@nokia.com> - Cristiano di Flora <cristiano.di-flora@nokia.com> Change-Id: I8b86022d08f9c3baf84b658f07e6600efdc73b8b Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com> Reviewed-by: Claudio Brunelli <claudio.brunelli@nokia.com>
* Add contact validation methods to jsondb back-end.Claudio Brunelli2012-02-061-0/+1
| | | | | | | | | | | Added QContactJsonDbEngine::validateContact, QContactJsonDbEngine::supportedContactDetailTypes, QContactManagerEngine::supportedContactDetailTypes. Extended QContactManagerEngine::validateContact. Change-Id: Ice4c3cd810af0544e8dcdd3a4bbd4c6a95f1cfba Reviewed-by: Mika Tikkakoski <mika.tikkakoski@nokia.com> 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>
* Small improvements to contact id implementation and docs.Mikko Suonio2012-02-021-1/+0
| | | | | | | | | | | | | | | Changes: - Fixes to documentation - Make contact id construction and parsing helper methods private - Remove unused method QContactManagerEngine::engineContactId. - Remove duplication in manager uri construction. - Fix some copyright headers. - Remove buildIdString. - Remove parameters from contact id to string conversion. Change-Id: I1a7ce41cc2f2ed52093e3efb6e2edae97b4fe6ef Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Kranthi Kumar Kuntala <kranthi.kumar-kuntala@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-45/+45
| | | | | | | | | | 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-23/+24
| | | | | | | | | | | | | | | 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>
* Rename all our interfaces from com.nokia to org.qt-project.Xizhi Zhu2012-01-241-1/+1
| | | | | | Change-Id: Ic25cefa066a689a2926d1eeaf036c423abb42737 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
* 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>
* Fixed QtPim contacts namespace compilation.Toby Tomkins2011-12-051-0/+2
| | | | | | | Change-Id: I55512016208ba63ea1cdd46f3a8b5bdcef731918 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Andy Cox <andrew.cox@nokia.com> Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
* Adding new ExtendedDetail detail.Cristiano di Flora2011-11-251-16/+1
| | | | | | | | | | | | | | | | | | | | - consider any unknown detail as extended detail in json2qcontact conversion - JsonDb internal (reserved) keys are skipped properly (i.e., keys starting with "_") - schema handling / detail definition removed - remove documentation of mutable definition mechanism - remove documentation of schema handling mechanisms - remove obsolete code from code snippets - remove qcontactdetaildefinition auto tests - remove detailDefinition tests from several auto tests - add cpp autotests and qml tests - Bool, int, uint, qlonglong, qulonglong, double and QChar supported in extended details - string conversion for date in UTC format for extended details - support for embedded variantlists and maps in extended details Change-Id: I0d9d9c8b3f31376934b64217db3c4be4c9284160 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-3/+3
| | | | | Change-Id: I2b54571b2befa8120049422aa8034e8ba1e98ea8 Reviewed-by: Xizhi Zhu <xizhi.zhu@nokia.com>
* First draft of QContactRelationship refactoring.Cristiano di Flora2011-09-211-1/+1
| | | | | | | | | | | - includes changes to memory back-end; - does not include auto test adaptation - does not include neither qml plugin adaptation nor jsondb backend adaptation. Change-Id: I58d4dc56239cac6dafb4ab061fc8b5e417cf7934 Reviewed-on: http://codereview.qt-project.org/5315 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: <mika.tikkakoski@nokia.com>
* Import from latest QtMobility.Xizhi Zhu2011-08-231-0/+212