summaryrefslogtreecommitdiff
path: root/src/location/places/qplacedescription.h
blob: 2860921d60010fbf5129b3a7da8e9be4dd236573 (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
#ifndef QPLACEDESCRIPTION_H
#define QPLACEDESCRIPTION_H

#include <QSharedDataPointer>
#include <QStringList>
#include "qmobilityglobal.h"
#include "qplacesupplier.h"

QTM_BEGIN_NAMESPACE

class QPlaceDescriptionPrivate;

class Q_LOCATION_EXPORT QPlaceDescription
{
public:
    QPlaceDescription();
    QPlaceDescription(const QPlaceDescription &other);

    virtual ~QPlaceDescription();

    QPlaceDescription &operator=(const QPlaceDescription &other);

    bool operator==(const QPlaceDescription &other) const;
    bool operator!=(const QPlaceDescription &other) const {
        return !(other == *this);
    }

    QString content() const;
    void setContent(const QString &data);
    QString contentTitle() const;
    void setContentTitle(const QString &data);
    QString contentType() const;
    void setContentType(const QString &data);
    QPlaceSupplier supplier() const;
    void setSupplier(const QPlaceSupplier &data);
    QString sourceURL() const;
    void setSourceURL(const QString &data);
    QString language() const;
    void setLanguage(const QString &data);

private:
    QSharedDataPointer<QPlaceDescriptionPrivate> d;
};

QTM_END_NAMESPACE

#endif // QPLACEDESCRIPTION_H