QGIS API Documentation  2.10.1-Pisa
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
qgslayerdefinition.h
Go to the documentation of this file.
1 #ifndef QGSLAYERDEFINITION_H
2 #define QGSLAYERDEFINITION_H
3 
4 #include "qgslayertreegroup.h"
5 
13 class CORE_EXPORT QgsLayerDefinition
14 {
15  public:
17  static bool loadLayerDefinition( const QString & path, QgsLayerTreeGroup* rootGroup, QString &errorMessage );
19  static bool loadLayerDefinition( QDomDocument doc, QgsLayerTreeGroup* rootGroup, QString &errorMessage );
21  static bool exportLayerDefinition( QString path, QList<QgsLayerTreeNode*> selectedTreeNodes, QString &errorMessage );
22 };
23 
24 #endif // QGSLAYERDEFINITION_H
Layer tree group node serves as a container for layers and further groups.
The QgsLayerDefinition class holds generic methods for loading/exporting QLR files.