diff options
author | ikause <iiro.kause@nokia.com> | 2012-05-22 14:32:35 +0300 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-23 11:48:10 +0200 |
commit | a31801c664e9d6cff5ab7f7780795def5c2ce8ff (patch) | |
tree | a08feb56c9a936c48b2b6fd764634ac41263ba6c /src/imports/organizer/qdeclarativeorganizermodel.cpp | |
parent | b7f85326ab6728c9fbd6593829a21c3f1ae8666c (diff) |
Finetune Organizer storage location errors
StorageLocationsNotExistingError is removed from
QOrganizerManager. It is replaced by 2 new error codes:
InvalidStorageLocationError - This is returned in cases
when non-mandatory but not existing storage location is
tried to be accessed.
MissingPlatformRequirementsError - This is for cases
when organizer cannot operate due missing organizer backend
requirements. For jsondb backend such case is that User-
partition is not present at all.
Change-Id: I8f1aa51dcd21a3a3b3f8e939ba22f18f2180869f
Reviewed-by: Päivi Rajala <paivi.rajala@nokia.com>
Diffstat (limited to 'src/imports/organizer/qdeclarativeorganizermodel.cpp')
-rw-r--r-- | src/imports/organizer/qdeclarativeorganizermodel.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/imports/organizer/qdeclarativeorganizermodel.cpp b/src/imports/organizer/qdeclarativeorganizermodel.cpp index 1cdb8281e..465b26c83 100644 --- a/src/imports/organizer/qdeclarativeorganizermodel.cpp +++ b/src/imports/organizer/qdeclarativeorganizermodel.cpp @@ -739,8 +739,10 @@ QString QDeclarativeOrganizerModel::error() const return QLatin1String("InvalidItemType"); case QOrganizerManager::InvalidOccurrenceError: return QLatin1String("InvalidOccurrence"); - case QOrganizerManager::StorageLocationsNotExistingError: - return QLatin1String("StorageLocationsNotExistingError"); + case QOrganizerManager::InvalidStorageLocationError: + return QLatin1String("InvalidStorageLocationError"); + case QOrganizerManager::MissingPlatformRequirementsError: + return QLatin1String("MissingPlatformRequirementsError"); default: break; } |