QGIS API Documentation 3.41.0-Master (af5edcb665c)
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#include <QObject>
26
37class CORE_EXPORT QgsMapLayerSelectionProperties : public QObject
38{
39 //SIP_TYPEHEADER_INCLUDE( "qgsvectorlayerselectionproperties.h" );
40
41 Q_OBJECT
42
43#ifdef SIP_RUN
45 if ( qobject_cast<QgsVectorLayerSelectionProperties *>( sipCpp ) )
46 {
47 sipType = sipType_QgsVectorLayerSelectionProperties;
48 }
49 else
50 {
51 sipType = 0;
52 }
54#endif
55
56 public:
57
62
68 virtual QDomElement writeXml( QDomElement &element, QDomDocument &doc, const QgsReadWriteContext &context ) = 0;
69
75 virtual bool readXml( const QDomElement &element, const QgsReadWriteContext &context ) = 0;
76
81};
82
83#endif // QGSMAPLAYERSELECTIONPROPERTIES_H
Base class for storage of map layer selection properties.
virtual QDomElement writeXml(QDomElement &element, QDomDocument &doc, const QgsReadWriteContext &context)=0
Writes the properties to a DOM element, to be used later with readXml().
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.
The class is used as a container of context for various read/write operations on other objects.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
Definition qgis_sip.h:191
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53
#define SIP_FACTORY
Definition qgis_sip.h:76
#define SIP_END
Definition qgis_sip.h:208