Unify semantics of ID classes
authorMatt Vogt <matthew.vogt@jollamobile.com>
Fri, 1 Aug 2014 05:22:03 +0000 (15:22 +1000)
committerMatthew Vogt <matthew.vogt@qinetic.com.au>
Wed, 6 Aug 2014 12:05:58 +0000 (14:05 +0200)
commit7a2b179ff1cf1bffb378272e2d339bc803700e37
tree6caf463d34a99d2a340ca6f053d58fbbe3e02a1d
parent9c16c52ee347e8011a2e427a5d88c1208db00634
Unify semantics of ID classes

For each of QContactId, QOrganizerItemId and QOrganizerCollectionId
the following are true:
 - null values compare less-than non-null values
 - null values compare equal
 - null values convert to empty string representation

This changes also removes the distinction between non-valid and null
QContactId values.

Change-Id: I6d343728873a49a4dfba0109110980c36eb91b90
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
src/contacts/qcontactid.cpp
src/contacts/qcontactid.h
src/organizer/qorganizercollectionid.cpp
src/organizer/qorganizercollectionid.h
src/organizer/qorganizeritemid.cpp
src/organizer/qorganizeritemid.h
tests/auto/contacts/qcontact/tst_qcontact.cpp
tests/auto/contacts/qmlcontacts/testcases/tst_contacts_e2e.qml
tests/auto/organizer/qorganizercollection/tst_qorganizercollection.cpp
tests/auto/organizer/qorganizeritem/tst_qorganizeritem.cpp