1 /*************************************************************************** 2 qgsmdaldataitems.h 3 ------------------ 4 begin : April 2018 5 copyright : (C) 2018 by Peter Petrik 6 email : zilolv at gmail dot com 7 *************************************************************************** 8 * * 9 * This program is free software; you can redistribute it and/or modify * 10 * it under the terms of the GNU General Public License as published by * 11 * the Free Software Foundation; either version 2 of the License, or * 12 * (at your option) any later version. * 13 * * 14 ***************************************************************************/ 15 #ifndef QGSMDALDATAITEMS_H 16 #define QGSMDALDATAITEMS_H 17 18 #include "qgsdataitem.h" 19 #include "qgsdataitemprovider.h" 20 21 #include <QString> 22 23 class QgsMdalLayerItem : public QgsLayerItem 24 { 25 Q_OBJECT 26 public: 27 //! Ctor 28 QgsMdalLayerItem( QgsDataItem *parent, const QString &name, const QString &path, const QString &uri ); 29 QString layerName() const override; 30 }; 31 32 //! Provider for MDAL data items 33 class QgsMdalDataItemProvider : public QgsDataItemProvider 34 { 35 public: 36 QString name() override; 37 38 int capabilities() const override; 39 40 QgsDataItem *createDataItem( const QString &pathIn, QgsDataItem *parentItem ) override; 41 }; 42 43 #endif // QGSMDALDATAITEMS_H 44