blob: bbd2dd6acae3da0d75b6591a52bb49f4dd241a87 (
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
49
50
51
52
53
54
55
56
|
#ifndef QPLACEALTERNATIVEVALUE_H
#define QPLACEALTERNATIVEVALUE_H
#include <QSharedDataPointer>
#include <QString>
#include "qplaceglobal.h"
namespace QT_PLACES_NAMESPACE {
class QPlaceAlternativeValuePrivate;
class Q_PLACES_EXPORT QPlaceAlternativeValue
{
public:
enum TextSemantics {
Synonim,
Exonym,
Unclassified
};
enum NameType {
BaseName,
ShortBaseName,
Abbrevation,
Unknown
};
QPlaceAlternativeValue();
QPlaceAlternativeValue(const QPlaceAlternativeValue &other);
virtual ~QPlaceAlternativeValue();
QPlaceAlternativeValue &operator=(const QPlaceAlternativeValue &other);
bool operator==(const QPlaceAlternativeValue &other) const;
bool operator!=(const QPlaceAlternativeValue &other) const {
return !(other == *this);
}
QString key() const;
void setKey(const QString &data);
QString language() const;
void setLanguage(const QString &data);
TextSemantics semantics() const;
void setSemantics(const TextSemantics &data);
NameType type() const;
void setType(const NameType &data);
QString value() const;
void setValue(const QString &data);
private:
QSharedDataPointer<QPlaceAlternativeValuePrivate> d;
};
} // QT_PLACES_NAMESPACE
#endif // QPLACEALTERNATIVEVALUE_H
|