summaryrefslogtreecommitdiff
path: root/src/location/places/qplacecategory.h
blob: 15a8b307658254dc7f9522a96b65ef9eb36e758d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef QPLACECATEGORY_H
#define QPLACECATEGORY_H

#include <QSharedDataPointer>
#include <QString>
#include <QVariant>
#include <QList>
#include "qplacealternativevalue.h"

QTM_BEGIN_NAMESPACE

class QPlaceManagerEngine;

class QPlaceCategoryPrivate;
class Q_LOCATION_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;
};

QTM_END_NAMESPACE

#endif // QPLACECATEGORY_H