QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
qgsmaplayerselectionproperties.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsmaplayerselectionproperties.h
3 ---------------
4 begin : July 2023
5 copyright : (C) 2023 by Nyall Dawson
6 email : nyall dot dawson at gmail dot com
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
18
19#ifndef QGSMAPLAYERSELECTIONPROPERTIES_H
20#define QGSMAPLAYERSELECTIONPROPERTIES_H
21
22#include "qgis_core.h"
23#include "qgis_sip.h"
24#include "qgsreadwritecontext.h"
25
26#include <QObject>
27
38class CORE_EXPORT QgsMapLayerSelectionProperties : public QObject
39{
40 //SIP_TYPEHEADER_INCLUDE( "qgsvectorlayerselectionproperties.h" );
41
42 Q_OBJECT
43
44#ifdef SIP_RUN
46 if ( qobject_cast<QgsVectorLayerSelectionProperties *>( sipCpp ) )
47 {
48 sipType = sipType_QgsVectorLayerSelectionProperties;
49 }
50 else
51 {
52 sipType = 0;
53 }
55#endif
56
57 public:
58
63
69 virtual QDomElement writeXml( QDomElement &element, QDomDocument &doc, const QgsReadWriteContext &context ) = 0;
70
76 virtual bool readXml( const QDomElement &element, const QgsReadWriteContext &context ) = 0;
77
82};
83
84#endif // QGSMAPLAYERSELECTIONPROPERTIES_H
virtual QDomElement writeXml(QDomElement &element, QDomDocument &doc, const QgsReadWriteContext &context)=0
Writes the properties to a DOM element, to be used later with readXml().
QgsMapLayerSelectionProperties(QObject *parent)
Constructor for QgsMapLayerSelectionProperties, with the specified parent object.
virtual bool readXml(const QDomElement &element, const QgsReadWriteContext &context)=0
Reads temporal properties from a DOM element previously written by writeXml().
virtual QgsMapLayerSelectionProperties * clone() const =0
Creates a clone of the properties.
A container for the context for various read/write operations on objects.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
Definition qgis_sip.h:199
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53
#define SIP_FACTORY
Definition qgis_sip.h:84
#define SIP_END
Definition qgis_sip.h:216