QGIS API Documentation  3.8.0-Zanzibar (11aff65)
qgsrelation_p.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsrelation_p.h
3  --------------------------
4  begin : August 2018
5  copyright : (C) 2018 Matthias Kuhn
6  email : [email protected]
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 #ifndef QGSRELATION_P_H
18 #define QGSRELATION_P_H
19 
20 #define SIP_NO_FILE
21 
23 
24 //
25 // W A R N I N G
26 // -------------
27 //
28 // This file is not part of the QGIS API. It exists purely as an
29 // implementation detail. This header file may change from version to
30 // version without notice, or even be removed.
31 //
32 
33 #include "qgsrelation.h"
34 
35 #include <QSharedData>
36 #include <QPointer>
37 
38 class QgsRelationPrivate : public QSharedData
39 {
40  public:
41  QgsRelationPrivate() = default;
42 
44  QString mRelationId;
46  QString mRelationName;
48  QString mReferencingLayerId;
50  QPointer<QgsVectorLayer> mReferencingLayer;
52  QString mReferencedLayerId;
54  QPointer<QgsVectorLayer> mReferencedLayer;
55 
57 
63  QList< QgsRelation::FieldPair > mFieldPairs;
64 
65  bool mValid = false;
66 };
67 
69 
70 #endif // QGSRELATION_P_H
Loose relation, related elements are not part of the parent and a parent copy will not copy any child...
Definition: qgsrelation.h:59
RelationStrength
enum for the relation strength Association, Composition
Definition: qgsrelation.h:57