QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
server
qgsstorebadlayerinfo.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
qgsstorebadlayerinfo.cpp
3
------------------------
4
begin : Jan 2019
5
copyright : (C) 2019 by Marco Hugentobler
6
email : marco dot hugentobler at sourcepole dot ch
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
#include "
qgsstorebadlayerinfo.h
"
19
20
#include <QDomElement>
21
22
void
QgsStoreBadLayerInfo::handleBadLayers
(
const
QList<QDomNode> &layers )
23
{
24
mBadLayerIds.clear();
25
QList<QDomNode>::const_iterator it = layers.constBegin();
26
for
( ; it != layers.constEnd(); ++it )
27
{
28
if
( !it->isNull() )
29
{
30
const
QDomElement idElem = it->firstChildElement(
"id"
);
31
if
( !idElem.isNull() )
32
{
33
const
QString badLayerId = idElem.text();
34
mBadLayerIds.append( badLayerId );
35
const
QDomElement nameElem = it->firstChildElement(
"layername"
);
36
if
( !nameElem.isNull() )
37
{
38
mBadLayerNames.insert( badLayerId, nameElem.text() );
39
}
40
}
41
}
42
}
43
}
QgsStoreBadLayerInfo::handleBadLayers
void handleBadLayers(const QList< QDomNode > &layers) override
handleBadLayers
Definition
qgsstorebadlayerinfo.cpp:22
qgsstorebadlayerinfo.h
Generated on
for QGIS API Documentation by
1.17.0