summaryrefslogtreecommitdiffstats
path: root/src/versit/qversitcontactimporter_p.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use QMetaType::Type instead of the deprecated QVariant::TypeChris Adams2020-11-021-12/+12
| | | | | Change-Id: I8b4ee32e36ea024392f85d5cf1b7b03a84a56e7b Reviewed-by: Bea Lam <bea.lam@jollamobile.com>
* Remove usage of deprecated QLatin1LiteralChris Adams2020-11-021-1/+1
| | | | | | Change-Id: I55f270d2fcdaf48aea6e058553c19db517abe2a8 Reviewed-by: Pekka Vuorela <pvuorela@iki.fi> Reviewed-by: Alberto Mardegan <mardy@users.sourceforge.net>
* Add ; to Q_UNUSEDLars Schmertmann2020-11-021-13/+13
| | | | | | | | | This is required to remove the ; from the macro with Qt 6. Task-number: QTBUG-82978 Change-Id: Ie8bdf9b2100826beb2bdb0934d3f36e6a8df13a6 Reviewed-by: Alberto Mardegan <mardy@users.sourceforge.net> Reviewed-by: Christopher Adams <chris.adams@jolla.com>
* QVersitContactImporter: read X-FOLKS-FAVOURITE propertyAlberto Mardegan2020-11-021-9/+11
| | | | | | | | Make the importer understand the X-FOLKS-FAVOURITE property, set by the libfolks library used in GNOME. Change-Id: I819a1c3da35972c556e3628f29a20dba15ed6448 Reviewed-by: Christopher Adams <chris.adams@jolla.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>
* 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>
* [versit] SubTypeLandline does not imply TEL;TYPE=ISDNMatt Vogt2014-08-051-10/+20
| | | | | | | | | | | | | The Landline sub type of QContactPhoneNumber should not be exported as ISDN, as this is a more specific annotation. Instead, export Landline simply as TYPE=VOICE. A new sub type value is defined for importing TEL records that claim ISDN type. Change-Id: Id5afc25597527f4e36dbb23897dce508876642a0 Reviewed-by: Renato Araujo Oliveira Filho <renato.filho@canonical.com> Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
* Use the installed headersKonstantin Ritt2014-01-081-31/+9
| | | | | | | | | | | 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>
* Fixed vcard contact importer.Renato Araujo Oliveira Filho2013-07-011-2/+4
| | | | | | | | Avoid to set a empty list on Phone and Address sub-type fields. This will avoid problems with contact equal operator since the QContact does not set the empty list as default. Change-Id: Ic46cee70117ebea85efc3bb1ee0ec83d5a81bcea Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
* Fixed import contact from a vcard.Renato Araujo Oliveira Filho2013-06-271-2/+4
| | | | | | | | Avoid create invalid entries on the Address sub-types. Change-Id: I0b0719924aedeea39c45697953a82605d5563987 Reviewed-by: Alex <alexander.blasche@digia.com> Reviewed-by: Christopher Adams <chris.adams@jollamobile.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>
* Support more data types in extended details in versit for contactsMikko Suonio2012-06-011-13/+6
| | | | | | | | | The implementation uses JSON as a serialization format for all types of data in extended details. Some types are automatically converted to types natively supported in JSON. Change-Id: I11ce7fe42c4216d166a00c47aecc380103657b22 Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
* Implement contacts versit export/import of extended detailsMikko Suonio2012-05-071-0/+38
| | | | | | | | | This adds support for exporting and importing extended details containing string or integer data. Extended details with other types of data are ignored. Change-Id: Ib6a1c5a2869ed416e405ed1bde87b51e1f70a617 Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
* Added support for QContactVersion detail to Versit.Mika Tikkakoski2012-05-031-0/+33
| | | | | | | | | Vcard extension X-QTPROJECT-VERSION to store sequenceNumber and extendedVersion from QContactVersion detail as a compound property. Change-Id: I1461b8d23372789e42228ba20bab7167f9fbb93c Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
* Fix handling of contact avatar in Versit contact importerMikko Suonio2012-04-301-0/+1
| | | | | | | | | Authors: Claudio Brunelli <claudio.brunelli@nokia.com> Mikko Suonio <mikko.suonio@nokia.com> Change-Id: I926693e91d03414ef7be901badd46aa01c512b40 Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
* Implement contact favorite detail import/export in VersitClaudio Brunelli2012-04-301-0/+50
| | | | | | | | | Authors: Claudio Brunelli <claudio.brunelli@nokia.com> Mikko Suonio <mikko.suonio@nokia.com> Change-Id: Ida89232c45c78970c757f0dfb5a4a24fcc4fde8e Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
* Proper encoding for gender in versit contacts exporter.Mika Tikkakoski2012-04-261-13/+18
| | | | | | | Problem analysis done as teamwork with kranthi.kumar-kuntala@nokia.com. Change-Id: Ie112ac305a849b965e5ad612e32767e478bced86 Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
* refactor displayLabel detail in contacts APIKranthi Kuntala2012-04-021-92/+27
| | | | | | | | | | | | | -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>
* Declare parameters as unused to disable compilation warningsMikko Suonio2012-03-201-0/+1
| | | | | Change-Id: Idd3d6d05c09336549944fca342536860c646a0a7 Reviewed-by: Mikko Suonio <mikko.suonio@nokia.com>
* Remove QContactThumbnail detail.Cristiano di Flora2012-03-151-18/+3
| | | | | | | | | | | | | | | 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>
* 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-67/+152
| | | | | | | | | | | | | | | | | | 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>
* 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>
* 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 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>
* QtPim: Fix compilation on Windows.Friedemann Kleint2011-12-011-3/+3
| | | | | | | | | | | | | - Fix usage of QStringLiteral (use for literals only) - Do not use QStringLiteral for global static constants (for which MSVC fails with 'unrecoverable scope error' - Remove -rpath from test profiles, as qtbase/libs is added by default. Change-Id: Ic94c1fb11b06fb523f4dea95ddb0a0a7dbdbb91c Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Xizhi Zhu <xizhi.zhu@nokia.com> Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
* Simplify interface of QContactDetail.Cristiano di Flora2011-11-261-46/+46
| | | | | | | | | | | | - 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>
* Finalize namespace.Xizhi Zhu2011-10-191-2/+2
| | | | | Change-Id: I2b54571b2befa8120049422aa8034e8ba1e98ea8 Reviewed-by: Xizhi Zhu <xizhi.zhu@nokia.com>
* Fix header files.Xizhi Zhu2011-09-061-5/+4
| | | | | | | | | | 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>
* Various fixes again.Xizhi Zhu2011-08-301-1/+1
| | | | | | Change-Id: I85276c1c25b946ad5fb05c28ff0b947708c2da80 Reviewed-on: http://codereview.qt.nokia.com/3850 Reviewed-by: Xizhi Zhu <xizhi.zhu@nokia.com>
* Import from latest QtMobility.Xizhi Zhu2011-08-231-0/+963