summaryrefslogtreecommitdiffstats
path: root/src/imports/contacts/qdeclarativecontactdetail.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Don't include mocs inside namespacesChris Adams2018-10-261-2/+2
| | | | | | | | See commit 5b99f3a3 in qtbase dev. Task-number: QTBUG-71300 Change-Id: I38b281f8990baa9b8ea9969e52b8a7b80b5e7da9 Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au>
* 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>
* Fix unit test failuresMatt Vogt2015-04-161-0/+14
| | | | | | | | | | | | | | | | | | | Includes the following changes: - QDeclarativeContactExtendedDetail::setData now unboxes values from QJSValue - QDeclarativeOrganizerItemExtendedDetail::setData now unboxes values from QJSValue - QDeclarativeOrganizerRecurrenceRule is now reset when assigned a null void * - Correct tst_QVersitContactExporter logic, since QVariantHash is now a supported type for QJsonValue export - Correct tst_QVersitOrganizerExporter logic, since QVariantHash is now a supported type for QJsonValue export - Correct expected output when compring debug output involving QVariant data Change-Id: I67b6b71226c4b4c928c0c26681b24813de525545 Reviewed-by: Alex Blasche <alexander.blasche@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>
* Remove unnecessary \inqmlmodule parameterAlejandro Exojo2014-12-081-27/+27
| | | | | Change-Id: Ib9207074048c0368977f5e3db276f1ec8c7d2eaf Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* Remove jsondb backendsMatt Vogt2014-06-161-8/+0
| | | | | | | The jsondb contact and organizer backends are unsupported. Change-Id: I6aa76c94b97edad20d43d777f75ec66f0400b65e Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
* Use the installed headersKonstantin Ritt2014-01-081-2/+2
| | | | | | | | | | | 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-3/+5
| | | | | | | | | | | | | | 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>
* Created protocol property in QDeclarativeContactOnlineAccount.Renato Araujo Oliveira Filho2013-07-161-0/+18
| | | | | | | | | | Exported protocol property and OnlineAccountProtocol enum in QDeclarativeContactOnlineAccount. Task-number: QTBUG-32142 Change-Id: I4e3a5fda659bbb48b56e83b96de3e59a03549c31 Reviewed-by: Christopher Adams <chris.adams@jollamobile.com> Reviewed-by: Alex <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>
* Doc: Changed \qmlclass to \qmltype and added \instantiatesJerome Pasion2012-07-301-27/+54
| | | | | | | | | -\qmlclass is now \qmltype -\instantiates is for QML types implemented in C++ Change-Id: Ic16ff5d625529fc31680978d2e5f1700b7858345 Reviewed-by: Peter Yard <peter.yard@nokia.com> Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
* Improve contact extended detail documentationMikko Suonio2012-05-311-22/+39
| | | | | Change-Id: Ic447b0e06561b4932cf5ca5855c5558733f04a7c Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
* Improve contact detail documentationMikko Suonio2012-05-241-2/+0
| | | | | | | | | Removed two descriptions of nonexistent variables. Reordered descriptions in declaration order. Remove unnecessary reference to qml module. Change-Id: I3c95ee88057402c4972d40451cb885a9a319aef8 Reviewed-by: Kranthi Kuntala <kranthi.kumar-kuntala@nokia.com>
* Add qml module version to \inqmlmodule referencesMikko Suonio2012-05-221-26/+26
| | | | | | | | Unspecified version causes qdoc to assume '1.0' and generate a warning. Change-Id: Ia1c69952c4019cec2f0f9d0f4eab130bf0320fdb Reviewed-by: Päivi Rajala <paivi.rajala@nokia.com> Reviewed-by: Andy Cox <andrew.cox@nokia.com>
* Doc: Fix \sa usageMarius Storm-Olsen2012-05-101-113/+115
| | | | | | | | Ensure comma between elements (2 missing), single space and curly- braces around title elements, etc. Change-Id: Ib9f1c733709730b2ddb0b7e9992770278fabe4d3 Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
* remove personId detail from the contacts APIKranthi Kuntala2012-05-091-23/+0
| | | | | Change-Id: I33a564009982c797e5517186f633b24f1d5b374d Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
* remove startdate and enddate fields from QContactOrganizationKranthi Kuntala2012-05-091-13/+0
| | | | | Change-Id: Idd71e56ba333b75d175302c49fa38937a109dd2a Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
* Fix retrieving favorite detail from a contactMikko Suonio2012-04-271-4/+6
| | | | | | | | | | | This commit adjusts the order of other details to ease detection of a similar error in the future. Memory backend works now. Jsondb backend has another issue with favorite detail, which needs further work. Change-Id: I3128a27298a7f4485a8a73c1f9834b128dfa4f71 Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
* Remove obsoleted references to customLabel.Cristiano di Flora2012-04-031-6/+0
| | | | | | | | Remove customLabel usage from examples/qmlcontacts Cleanup qdeclarativecontactdetail documentation. Change-Id: I528813c2a3aade378db1443e778b9e39f5058bc3 Reviewed-by: Kranthi Kuntala <kranthi.kumar-kuntala@nokia.com>
* refactor displayLabel detail in contacts APIKranthi Kuntala2012-04-021-2/+1
| | | | | | | | | | | | | -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-2/+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-1/+1
| | | | | | Change-Id: Id17d603bcd84d3073ff17af8ca235ad8534ebcae Reviewed-by: Kranthi Kuntala <kranthi.kumar-kuntala@nokia.com> Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
* Remove the usage of deprecated qdoc macros.Casper van Donderen2012-03-081-181/+181
| | | | | | | | | | | | QDoc now has support for Doxygen style commands for italics, bold and list items. This change applies that change in QDoc to the actual documentation. Task-number: QTBUG-24578 Change-Id: I19e15490a54b69ebec26a0932cd53ce080a9391e Reviewed-by: Kranthi Kuntala <kranthi.kumar-kuntala@nokia.com> Reviewed-by: Andy Cox <andrew.cox@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-289/+18
| | | | | | | | | | | | | | | | | | 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/+11
| | | | | 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>
* 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 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-28/+59
| | | | | | Change-Id: I0b4e9f40fe9805e20c5417c9f71b72438deb7621 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
* Simplify interface of QContactDetail.Cristiano di Flora2011-11-261-2/+6
| | | | | | | | | | | | - DefinitionName and field names are now QString and not QLatin1Constant anymore - removed extra field getter methods: now field values can be retrieved only as QVariant. Change-Id: I5de61520137228d25c067674174347a57eb77d12 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Mikko Suonio <mikko.suonio@nokia.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/+39
| | | | | | | | | | | | | | | | | | | | - 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>
* Fix references to contacts QML module in docs.Mikko Suonio2011-11-241-28/+28
| | | | | | Change-Id: I0ec54278d75a382e5c0eae1c2fc65668255f5f1b Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
* Remove dynamic properties in contacts QML bindingClaudio Brunelli2011-11-031-7/+151
| | | | | | | | | | | | | | | | | | | | | | | 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-2/+2
| | | | | Change-Id: I2b54571b2befa8120049422aa8034e8ba1e98ea8 Reviewed-by: Xizhi Zhu <xizhi.zhu@nokia.com>
* startdate and enddate added to qcontactorganizationKranthi Kuntala2011-09-071-0/+13
| | | | | | | | Change-Id: I4511b9c3b274a89d7772a949fcc8cd406cd63f93 Reviewed-on: http://codereview.qt.nokia.com/4076 Reviewed-by: 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>
* Cherry-pick various changes in the common code.Xizhi Zhu2011-08-261-35/+62
| | | | | | 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/+1294