diff options
author | abcd <qt-info@nokia.com> | 2011-07-26 11:43:16 +1000 |
---|---|---|
committer | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2011-07-26 06:53:14 +0200 |
commit | fc891cec2a8d3c7ffcbe7ee5b8dfaa0908121cd9 (patch) | |
tree | 20b741f5894422f26fd3b28307c2e544bcf62a5f /src/location | |
parent | 8dc9c2fc9b470f0d97a188cbae3fab0b822dafe8 (diff) | |
download | qtlocation-fc891cec2a8d3c7ffcbe7ee5b8dfaa0908121cd9.tar.gz |
Remove description field from qplacecategory
The REST API doees not support the desciption field.
Change-Id: Ic2acd9adcf53e67b5ef8c9d5568ba09fe2b776a3
Reviewed-on: http://codereview.qt.nokia.com/2139
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
Diffstat (limited to 'src/location')
-rw-r--r-- | src/location/places/qplacecategory.cpp | 27 | ||||
-rw-r--r-- | src/location/places/qplacecategory.h | 2 | ||||
-rw-r--r-- | src/location/places/qplacecategory_p.h | 1 |
3 files changed, 4 insertions, 26 deletions
diff --git a/src/location/places/qplacecategory.cpp b/src/location/places/qplacecategory.cpp index 3c0ce55e..d1a32603 100644 --- a/src/location/places/qplacecategory.cpp +++ b/src/location/places/qplacecategory.cpp @@ -55,7 +55,6 @@ QPlaceCategoryPrivate::QPlaceCategoryPrivate(const QPlaceCategoryPrivate &other) : QSharedData() { this->categoryId = other.categoryId; - this->description = other.description; this->name = other.name; } @@ -65,10 +64,8 @@ QPlaceCategoryPrivate::~QPlaceCategoryPrivate() bool QPlaceCategoryPrivate::operator==(const QPlaceCategoryPrivate &other) const { - return (this->categoryId == other.categoryId - && this->description == other.description - && this->name == other.name - ); + return (this->categoryId == other.categoryId) + && (this->name == other.name); } /*! @@ -79,7 +76,7 @@ bool QPlaceCategoryPrivate::operator==(const QPlaceCategoryPrivate &other) const \brief The QPlaceCategory class represents a category object. Each QPlaceCategory represents a category object with a number of attributes - such as description, name, id etc. Each QPlaceCategory is associated with place. + such as name, id etc. Each QPlaceCategory is associated with place. Category objects are read-only, e.g. user of API might get business info object associated to specific place but can not edit its content. User might also create new @@ -131,7 +128,7 @@ QString QPlaceCategory::categoryId() const } /*! - Sets description. + Sets category id to \a catID. */ void QPlaceCategory::setCategoryId(const QString &catID) { @@ -139,22 +136,6 @@ void QPlaceCategory::setCategoryId(const QString &catID) } /*! - Returns description. -*/ -QString QPlaceCategory::description() const -{ - return d->description; -} - -/*! - Sets category description. -*/ -void QPlaceCategory::setDescription(const QString &description) -{ - d->description = description; -} - -/*! Returns name of category. */ QString QPlaceCategory::name() const diff --git a/src/location/places/qplacecategory.h b/src/location/places/qplacecategory.h index 63932174..8a36e225 100644 --- a/src/location/places/qplacecategory.h +++ b/src/location/places/qplacecategory.h @@ -69,8 +69,6 @@ public: QString categoryId() const; void setCategoryId(const QString &catID); - QString description() const; - void setDescription(const QString &description); QString name() const; void setName(const QString &name); diff --git a/src/location/places/qplacecategory_p.h b/src/location/places/qplacecategory_p.h index 97ce28fe..cfa0c775 100644 --- a/src/location/places/qplacecategory_p.h +++ b/src/location/places/qplacecategory_p.h @@ -59,7 +59,6 @@ public: bool operator==(const QPlaceCategoryPrivate &other) const; QString categoryId; - QString description; QString name; }; |