summaryrefslogtreecommitdiffstats
path: root/src/location/places/qplacecategory.h
diff options
context:
space:
mode:
authorabcd <qt-info@nokia.com>2011-06-02 17:07:29 +1000
committerabcd <qt-info@nokia.com>2011-06-02 17:28:32 +1000
commit8fab6bcfc3ef9912852e916b852456327fba299f (patch)
treed652f611c06e9f35ea8aeaa353d1674535747e99 /src/location/places/qplacecategory.h
parent1dd8b4805d108931a41eb2d58874a598281ee2c4 (diff)
Initial dump of places
Diffstat (limited to 'src/location/places/qplacecategory.h')
-rw-r--r--src/location/places/qplacecategory.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/location/places/qplacecategory.h b/src/location/places/qplacecategory.h
new file mode 100644
index 00000000..c78201de
--- /dev/null
+++ b/src/location/places/qplacecategory.h
@@ -0,0 +1,49 @@
+#ifndef QPLACECATEGORY_H
+#define QPLACECATEGORY_H
+
+#include <QSharedDataPointer>
+#include <QString>
+#include <QVariant>
+#include <QList>
+#include "qplaceglobal.h"
+#include "qplacealternativevalue.h"
+
+namespace QT_PLACES_NAMESPACE {
+
+class QPlaceManagerEngine;
+
+class QPlaceCategoryPrivate;
+class Q_PLACES_EXPORT QPlaceCategory
+{
+public:
+ QPlaceCategory();
+ QPlaceCategory(const QPlaceCategory &other);
+
+ virtual ~QPlaceCategory();
+
+ QPlaceCategory &operator=(const QPlaceCategory &other);
+
+ bool operator==(const QPlaceCategory &other) const;
+ bool operator!=(const QPlaceCategory &other) const {
+ return !(other == *this);
+ }
+
+ QList<QPlaceAlternativeValue> alternativeNames() const;
+ void setAlternativeNames(const QList<QPlaceAlternativeValue> &names);
+ QString categoryId() const;
+ void setCategoryId(const QString &catID);
+ QString categorySystemId() const;
+ void setCategorySystemId(const QString &catID);
+ QString description() const;
+ void setDescription(const QString &description);
+ QString name() const;
+ void setName(const QString &name);
+
+ bool isEmpty() const;
+private:
+ QSharedDataPointer<QPlaceCategoryPrivate> d;
+};
+
+} // QT_PLACES_NAMESPACE
+
+#endif // QPLACECATEGORY_H