summaryrefslogtreecommitdiffstats
path: root/src/imports/contacts/qdeclarativecontact_p.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove usages of deprecated QQmlListProperty constructorsChris Adams2021-03-181-2/+2
| | | | | | Change-Id: I2cc20b69fb5e7bc491f1d29a2ce6905d618ff27e Reviewed-by: David Llewellyn-Jones <david.llewellyn-jones@jolla.com> Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au>
* Replace Q_NULLPTR with nullptrKevin Funk2017-11-151-1/+1
| | | | | Change-Id: I0c21694591687cdee8b3f749a53c701e76fa42f1 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* 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>
* Compile public headers with GCC 6 -Werror=zero-as-null-pointer-constantThiago Macieira2016-06-151-1/+1
| | | | | Change-Id: I635e4116c1e4499fa1c5fffd144ee47d0674b1b3 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
* 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>
* Add QContactCollection.Renato Araujo Oliveira Filho2015-02-061-0/+6
| | | | | | | | | 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>
* Use the installed headersKonstantin Ritt2014-01-081-6/+6
| | | | | | | | | | | 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>
* Move the declarative bindings out of the module namespaceKonstantin Ritt2014-01-061-4/+4
| | | | | | | | | | | | | | This fixes a broken types in QML (the typical error from engine is like "QMetaProperty::read: Unable to handle unregistered datatype 'QDeclarativeOrganizerItemType::ItemType' for property 'QtOrganizer::QDeclarativeOrganizerEvent::itemType") This reverts 75d049f770f86 and magically fixes related issues missed in it. Task-number: QTBUG-35276 Change-Id: I792cf2bb3ff8f5ea7b59438ddf3107009eb2bc63 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Added support to preferredDetails on QML Contact.Renato Araujo Oliveira Filho2013-07-261-0/+9
| | | | | | | | | | Expose all functions related to preferredDetails into QML contacts. Task-number: QTBUG-32515 Change-Id: I93491cd8ef25cecd891334c7bc17cbb52773acd8 Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
* Fixed QML bindings.Renato Araujo Oliveira Filho2013-05-141-1/+3
| | | | | | | | | | Register types in QML without namespace. Task-number: QTBUG-29830 Change-Id: I03c40750b2b8ad4c079c0ea818e058fd5e0d18fb Reviewed-by: Olivier Goffart <ogoffart@woboq.com> Reviewed-by: Andrew den Exter <andrew.den.exter@qinetic.com.au>
* 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>
* Reorder declarative contact detail properties alphabeticallyMikko Suonio2012-05-151-9/+9
| | | | | | | | This allows easier comparison with material (implementation, tests) which consists of a list of items, one for each detail type. Change-Id: I4028d6a36d122d0eaea9ff0be62779397b5550fe Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
* remove personId detail from the contacts APIKranthi Kuntala2012-05-091-3/+0
| | | | | Change-Id: I33a564009982c797e5517186f633b24f1d5b374d Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
* Added timestamp property to QDeclarativeContactPekka Kauppila2012-04-031-0/+2
| | | | | Change-Id: Ic846785d81ed89637907322fb53db06ca0289454 Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
* refactor displayLabel detail in contacts APIKranthi Kuntala2012-04-021-2/+2
| | | | | | | | | | | | | -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 QContactThumbnail detail.Cristiano di Flora2012-03-151-3/+0
| | | | | | | | | | | | | | | This change removes the QContactThumbnail detail from contacts API. From now on, the handling of PHOTO property of a vcard in Versit will by default cover only the case of a URL value in the PHOTO field. Base64 encoded PHOTO properties are not added by default anymore to QContact objects. In case a specific platform requires storing Base64, this will have to be achieved by implementing platform-specific property handler plugins, e.g. taking care of storing the encoded thumbnails to the platform specific media storage location and converting the image to one or more formats that best fit the target platform. Change-Id: I46028b6229b04be0da853a5c02a600ae0d7b63ec Reviewed-by: Kranthi Kuntala <kranthi.kumar-kuntala@nokia.com>
* Declarative --> Qml adaptation.Xizhi Zhu2012-03-121-20/+20
| | | | | | Change-Id: Id17d603bcd84d3073ff17af8ca235ad8534ebcae Reviewed-by: Kranthi Kuntala <kranthi.kumar-kuntala@nokia.com> Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
* Use enumerations for detail types and detail fields.Cristiano di Flora2012-02-241-2/+2
| | | | | | | | | | | | | | | | | | 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 new QContactVersion detail to QtContacts API.Cristiano di Flora2012-02-081-0/+2
| | | | | Change-Id: Ib2511a0b879133c18ca04749174785d55b55cdff 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>
* introduce QContactIdKranthi Kuntala2012-01-241-4/+2
| | | | | | | | | | | | | | | 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>
* 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>
* Removed setType from QDeclarativeContactacox2012-01-191-3/+1
| | | | | | | | | Type change is not a common use case, so no need to make the type property writable. Change-Id: I8791196452f74b1f622e244d7de5567c4070d5af Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
* Update copyright year in license headers.Jason McDonald2012-01-051-1/+1
| | | | | | Change-Id: I47c2fc4d33b31929f1d7427bf85a7ac73ccbae61 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Improvements to the Qt Contacts QML documentation.Simo Kivimäki2011-12-021-1/+1
| | | | | | Change-Id: I0b4e9f40fe9805e20c5417c9f71b72438deb7621 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
* Add new list property for extendedDetailsCristiano di Flora2011-11-281-0/+2
| | | | | | | Change-Id: Ia926a85c403c1ab782c9f87ba2e3a592a2e985af Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com> Reviewed-by: Mika Tikkakoski <mika.tikkakoski@nokia.com>
* Adding new ExtendedDetail detail.Cristiano di Flora2011-11-251-7/+3
| | | | | | | | | | | | | | | | | | | | - 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>
* Emit contactChanged signal when new empty detail is createdCristiano di Flora2011-11-161-0/+1
| | | | | | Change-Id: I71390ce9c723846dfd34c917e491c111950cee65 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Tommi Anttila <tommi.4.anttila@nokia.com>
* Set contact as modified when a detail is modified.Mikko Suonio2011-11-161-0/+4
| | | | | | | | | | This restores the functionality before dynamic properties removal (change id I11ed9e7eae086e1e9d321705f357be2399db3b89). Change-Id: Ic48c653b1e1755c5ad17f0e931b394c36b1cdedd Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Claudio Brunelli <claudio.brunelli@nokia.com> Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
* Contact element properties to use a common template getter.Cristiano di Flora2011-11-151-0/+17
| | | | | | Change-Id: Idf10dfdf98df5ff46fcaad1763ef2807b2b8efe2 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Mikko Suonio <mikko.suonio@nokia.com>
* Add support for list properties in contacts QML binding.Mikko Suonio2011-11-091-1/+10
| | | | | | | | | | | | | | | | | | Supported list properties: - phone numbers - emails - addresses - organizations - urls List properties and their size can be accessed. Append to or clearing list properties is not supported. Change-Id: Ibbb6e51f0d617c21324f4acc93c99a3a37fc109e Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Claudio Brunelli <claudio.brunelli@nokia.com> Reviewed-by: Tommi Anttila <tommi.4.anttila@nokia.com> Reviewed-by: Mika Tikkakoski <mika.tikkakoski@nokia.com>
* Remove dynamic properties in contacts QML bindingClaudio Brunelli2011-11-031-51/+69
| | | | | | | | | | | | | | | | | | | | | | | Remove metaobject based implementation of dynamic properties - moving details from metaobject to declarativecontact - individual details are supported but - list properties (for example phoneNumbers) are not yet supported Add separate QML elements for Thumbnail and Type Create QML elements for ContactDetails Thumbnail and Type Modify contactDetails signal fieldChanged (of each subclass) into valueChanged Move ContactType from QDeclarativeContact to QDeclarativeContactType (from Contact to Type in QML) Change name of signal detailsChanged to contactChanged Rename details into contactDetails in declarativeContact (contact in QML) Rename contactDetail valueChanged signal into contactDetails Create functions value, setValue, removeValue to manage contact detail fields Fix existing QML tests and created new ones Authors: Claudio Brunelli, Cristiano di Flora, Mikko Suonio Change-Id: I11ed9e7eae086e1e9d321705f357be2399db3b89 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-4/+4
| | | | | Change-Id: I2b54571b2befa8120049422aa8034e8ba1e98ea8 Reviewed-by: Xizhi Zhu <xizhi.zhu@nokia.com>
* Cherry-pick various changes in the common code.Xizhi Zhu2011-08-261-1/+4
| | | | | | Change-Id: I0ae312045847df8986ec71fba9c9282dc91be32a Reviewed-on: http://codereview.qt.nokia.com/3490 Reviewed-by: Xizhi Zhu <xizhi.zhu@nokia.com>
* Import from latest QtMobility.Xizhi Zhu2011-08-231-0/+163