QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
qgsdataitemprovider.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsdataitemprovider.h
3  --------------------------------------
4  Date : March 2015
5  Copyright : (C) 2015 by Martin Dobias
6  Email : wonder dot sk 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 
16 #ifndef QGSDATAITEMPROVIDER_H
17 #define QGSDATAITEMPROVIDER_H
18 
19 class QgsDataItem;
20 
21 class QString;
22 
35 class CORE_EXPORT QgsDataItemProvider
36 {
37  public:
38  virtual ~QgsDataItemProvider() {}
39 
41  virtual QString name() = 0;
42 
44  virtual int capabilities() = 0;
45 
48  virtual QgsDataItem* createDataItem( const QString& path, QgsDataItem* parentItem ) = 0;
49 
50 };
51 
52 #endif // QGSDATAITEMPROVIDER_H
Base class for all items in the model.
Definition: qgsdataitem.h:79
This is the interface for those who want to add custom data items to the browser tree.