Qt
6.x
The Qt SDK
Loading...
Searching...
No Matches
qplacecontent_p.h
Go to the documentation of this file.
1
// Copyright (C) 2021 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4
#ifndef QPLACECONTENT_P_H
5
#define QPLACECONTENT_P_H
6
7
//
8
// W A R N I N G
9
// -------------
10
//
11
// This file is not part of the Qt API. It exists purely as an
12
// implementation detail. This header file may change from version to
13
// version without notice, or even be removed.
14
//
15
// We mean it.
16
//
17
18
#include "
qplacecontent.h
"
19
#include "
qplacesupplier.h
"
20
#include "
qplaceuser.h
"
21
22
#include <QtCore/QSharedData>
23
#include <QtCore/QString>
24
#include <QtCore/QVariant>
25
26
QT_BEGIN_NAMESPACE
27
28
class
QPlaceContentPrivate
:
public
QSharedData
29
{
30
public
:
31
QPlaceContentPrivate
(
QPlaceContent::Type
type
)
32
:
m_type
(
type
)
33
{}
34
bool
compare
(
const
QPlaceContentPrivate
*
other
)
const
;
35
QPlaceContent::Type
type
()
const
{
return
m_type
; }
36
37
QMap<QPlaceContent::DataTag, QVariant>
data
;
38
const
QPlaceContent::Type
m_type
=
QPlaceContent::NoType
;
39
};
40
41
#define Q_IMPLEMENT_CONTENT_COPY_CTOR(ContentClass, ContentType) \
42
ContentClass::ContentClass(const QPlaceContent &other) \
43
: QPlaceContent(other.type() == ContentType ? other : QPlaceContent(ContentType)) \
44
{ \
45
} \
46
47
48
QT_END_NAMESPACE
49
50
#endif
51
QMap
Definition
qmap.h:186
QPlaceContentPrivate
Definition
qplacecontent_p.h:29
QPlaceContentPrivate::QPlaceContentPrivate
QPlaceContentPrivate(QPlaceContent::Type type)
Definition
qplacecontent_p.h:31
QPlaceContentPrivate::data
QMap< QPlaceContent::DataTag, QVariant > data
Definition
qplacecontent_p.h:37
QPlaceContentPrivate::type
QPlaceContent::Type type() const
Definition
qplacecontent_p.h:35
QPlaceContentPrivate::m_type
const QPlaceContent::Type m_type
Definition
qplacecontent_p.h:38
QPlaceContentPrivate::compare
bool compare(const QPlaceContentPrivate *other) const
Definition
qplacecontent.cpp:19
QPlaceContent::Type
Type
Defines the type of content.
Definition
qplacecontent.h:26
QPlaceContent::NoType
@ NoType
Definition
qplacecontent.h:27
QSharedData
\inmodule QtCore
Definition
qshareddata.h:19
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
type
GLenum type
Definition
qopengles2ext.h:150
qplacecontent.h
qplacesupplier.h
qplaceuser.h
other
QSharedPointer< T > other(t)
[5]
qtlocation
src
location
places
qplacecontent_p.h
Generated by
1.9.7