5#ifndef QPLACESEARCHRESULT_H
6#define QPLACESEARCHRESULT_H
8#include <QtCore/QSharedDataPointer>
9#include <QtCore/QVariant>
10#include <QtCore/QString>
11#include <QtLocation/qlocationglobal.h>
15#define Q_DECLARE_SEARCHRESULT_D_FUNC(Class)
16 inline Class##Private *d_func();
17 inline const Class##Private *d_func() const;
18 friend class Class##Private;
20#define Q_DECLARE_SEARCHRESULT_COPY_CTOR(Class)
21 Class(const QPlaceSearchResult &other);
23class QPlaceSearchRequest;
24class QPlaceSearchResultPrivate;
31 QPlaceSearchResult(
const QPlaceSearchResult &other);
33 virtual ~QPlaceSearchResult();
35 QPlaceSearchResult &operator=(
const QPlaceSearchResult &other);
37 bool operator==(
const QPlaceSearchResult &other)
const;
38 bool operator!=(
const QPlaceSearchResult &other)
const {
39 return !(other == *
this);
42 enum SearchResultType {
43 UnknownSearchResult = 0,
48 SearchResultType type()
const;
50 QString title()
const;
51 void setTitle(
const QString &title);
53 QPlaceIcon icon()
const;
54 void setIcon(
const QPlaceIcon &icon);
57 explicit QPlaceSearchResult(QPlaceSearchResultPrivate *d);
58 QSharedDataPointer<QPlaceSearchResultPrivate> d_ptr;
61 inline QPlaceSearchResultPrivate *d_func();
62 inline const QPlaceSearchResultPrivate *d_func()
const;
64 friend class QPlaceSearchResultPrivate;
72Q_DECLARE_METATYPE(QPlaceSearchResult::SearchResultType)
bool compare(const QPlaceSearchResultPrivate *other) const override
Combined button and popup list for selecting options.
Q_DECLARE_TYPEINFO(QByteArrayView, Q_PRIMITIVE_TYPE)
#define Q_IMPLEMENT_SEARCHRESULT_D_FUNC(Class)
#define Q_IMPLEMENT_SEARCHRESULT_COPY_CTOR(Class)
#define Q_DEFINE_SEARCHRESULT_PRIVATE_HELPER(Class, ResultType)