QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
server
qgsstorebadlayerinfo.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsstorebadlayerinfo.h
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
#ifndef QGSSTOREBADLAYERINFO_H
19
#define QGSSTOREBADLAYERINFO_H
20
21
#include "qgis_server.h"
22
#include "
qgsprojectbadlayerhandler.h
"
23
24
#include <QMap>
25
#include <QStringList>
26
32
class
SERVER_EXPORT
QgsStoreBadLayerInfo
:
public
QgsProjectBadLayerHandler
33
{
34
public
:
38
QgsStoreBadLayerInfo
() =
default
;
39
44
void
handleBadLayers
(
const
QList<QDomNode> &layers )
override
;
45
50
QStringList
badLayers
()
const
{
return
mBadLayerIds; }
51
56
QMap<QString, QString>
badLayerNames
()
const
{
return
mBadLayerNames; }
57
58
private
:
59
QStringList mBadLayerIds;
60
QMap<QString, QString> mBadLayerNames;
61
};
62
63
#endif
// QGSSTOREBADLAYERINFO_H
QgsProjectBadLayerHandler
Interface for classes that handle missing layer files when reading project files.
Definition
qgsprojectbadlayerhandler.h:28
QgsProjectBadLayerHandler::handleBadLayers
virtual void handleBadLayers(const QList< QDomNode > &layers)
This method will be called whenever the project tries to load layers which cannot be accessed.
Definition
qgsprojectbadlayerhandler.cpp:28
QgsStoreBadLayerInfo::badLayerNames
QMap< QString, QString > badLayerNames() const
Returns names of bad layers with ids.
Definition
qgsstorebadlayerinfo.h:56
QgsStoreBadLayerInfo::badLayers
QStringList badLayers() const
badLayers
Definition
qgsstorebadlayerinfo.h:50
QgsStoreBadLayerInfo::QgsStoreBadLayerInfo
QgsStoreBadLayerInfo()=default
Default constructor.
qgsprojectbadlayerhandler.h
Generated on
for QGIS API Documentation by
1.17.0