QGIS API Documentation  3.16.0-Hannover (43b64b13f3)
qgslayermetadataformatter.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgslayermetadataformatter.h
3  ---------------------------
4  begin : September 2017
5  copyright : (C) 2017 by Etienne Trimaille
6  email : etienne dot trimaille 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 #ifndef QGSLAYERMETADATAFORMATTER_H
19 #define QGSLAYERMETADATAFORMATTER_H
20 
21 #include <QCoreApplication>
22 
23 #include "qgis_sip.h"
24 #include "qgis_core.h"
25 #include "qgslayermetadata.h"
26 
33 class CORE_EXPORT QgsLayerMetadataFormatter
34 {
35  Q_DECLARE_TR_FUNCTIONS( "QgsLayerMetadataFormatter" )
36 
37  public:
38 
43 
48  QString accessSectionHtml() const;
49 
54  QString contactsSectionHtml() const;
55 
61  QString extentSectionHtml( const bool showSpatialExtent = true ) const;
62 
67  QString identificationSectionHtml() const;
68 
73  QString historySectionHtml() const;
74 
79  QString linksSectionHtml() const;
80 
81  private:
82  QgsLayerMetadata mMetadata;
83 };
84 
85 #endif // QGSLAYERMETADATAFORMATTER_H
QgsLayerMetadataFormatter
Class for metadata formatter.
Definition: qgslayermetadataformatter.h:34
QgsLayerMetadata
A structured metadata store for a map layer.
Definition: qgslayermetadata.h:57
qgslayermetadata.h
qgis_sip.h