blob: 4e14495e9fb3af6da3a60dcf8d1869bb5fc55af0 (
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
|
#ifndef QPLACECONTACT_H
#define QPLACECONTACT_H
#include <QSharedDataPointer>
#include <QString>
#include "qplaceglobal.h"
namespace QT_PLACES_NAMESPACE {
class QPlaceContactPrivate;
class Q_PLACES_EXPORT QPlaceContact
{
public:
enum ContactType {
Phone,
Email,
URL,
Fax,
IM,
Undefined
};
QPlaceContact();
QPlaceContact(const QPlaceContact &other);
virtual ~QPlaceContact();
QPlaceContact &operator=(const QPlaceContact &other);
bool operator==(const QPlaceContact &other) const;
bool operator!=(const QPlaceContact &other) const {
return !(other == *this);
}
QString description() const;
void setDescription(const QString& data);
ContactType type() const;
void setType(const ContactType &data);
QString value() const;
void setValue(const QString& data);
private:
QSharedDataPointer<QPlaceContactPrivate> d;
};
} // QT_PLACES_NAMESPACE
#endif // QPLACECONTACT_H
|