Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qplacesearchresult_p.h File Reference
#include "qplacesearchresult.h"
#include "qplacesearchrequest.h"
#include <QSharedData>
#include <QtLocation/QPlaceIcon>
+ Include dependency graph for qplacesearchresult_p.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  QPlaceSearchResultPrivate
 

Macros

#define Q_IMPLEMENT_SEARCHRESULT_D_FUNC(Class)
 
#define Q_IMPLEMENT_SEARCHRESULT_COPY_CTOR(Class)    Class::Class(const QPlaceSearchResult &other) : QPlaceSearchResult() { Class##Private::copyIfPossible(d_ptr, other); }
 
#define Q_DEFINE_SEARCHRESULT_PRIVATE_HELPER(Class, ResultType)
 

Macro Definition Documentation

◆ Q_DEFINE_SEARCHRESULT_PRIVATE_HELPER

#define Q_DEFINE_SEARCHRESULT_PRIVATE_HELPER (   Class,
  ResultType 
)
Value:
QPlaceSearchResultPrivate *clone() const override { return new Class##Private(*this); } \
QPlaceSearchResult::SearchResultType type() const override {return ResultType;} \
static void copyIfPossible(QSharedDataPointer<QPlaceSearchResultPrivate> &d_ptr, const QPlaceSearchResult &other) \
{ \
if (other.type() == ResultType) \
d_ptr = extract_d(other); \
else \
d_ptr = new Class##Private; \
}
\inmodule QtLocation
SearchResultType
Defines the type of search result.
\inmodule QtCore
Definition qshareddata.h:35
GLenum type
QSharedPointer< T > other(t)
[5]

Definition at line 34 of file qplacesearchresult_p.h.

◆ Q_IMPLEMENT_SEARCHRESULT_COPY_CTOR

#define Q_IMPLEMENT_SEARCHRESULT_COPY_CTOR (   Class)     Class::Class(const QPlaceSearchResult &other) : QPlaceSearchResult() { Class##Private::copyIfPossible(d_ptr, other); }

Definition at line 31 of file qplacesearchresult_p.h.

◆ Q_IMPLEMENT_SEARCHRESULT_D_FUNC

#define Q_IMPLEMENT_SEARCHRESULT_D_FUNC (   Class)
Value:
Class##Private *Class::d_func() { return reinterpret_cast<Class##Private *>(d_ptr.data()); } \
const Class##Private *Class::d_func() const { return reinterpret_cast<const Class##Private *>(d_ptr.constData()); } \

Definition at line 27 of file qplacesearchresult_p.h.