QGIS API Documentation 3.41.0-Master (3440c17df1d)
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#ifdef SIP_RUN
41#endif
42
43 Q_OBJECT
44
45#ifdef SIP_RUN
47 if ( qobject_cast<QgsVectorLayerSelectionProperties *>( sipCpp ) )
48 {
49 sipType = sipType_QgsVectorLayerSelectionProperties;
50 }
51 else
52 {
53 sipType = 0;
54 }
56#endif
57
58 public:
59
64
70 virtual QDomElement writeXml( QDomElement &element, QDomDocument &doc, const QgsReadWriteContext &context ) = 0;
71
77 virtual bool readXml( const QDomElement &element, const QgsReadWriteContext &context ) = 0;
78
83};
84
85#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