/usr/include/qgis/qgspluginlayer.h is in libqgis-dev 2.8.6+dfsg-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | /***************************************************************************
qgspluginlayer.h
---------------------
begin : January 2010
copyright : (C) 2010 by Martin Dobias
email : wonder dot sk at gmail dot com
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef QGSPLUGINLAYER_H
#define QGSPLUGINLAYER_H
#include "qgsmaplayer.h"
typedef QList< QPair<QString, QPixmap> > QgsLegendSymbologyList;
/** \ingroup core
Base class for plugin layers. These can be implemented by plugins
and registered in QgsPluginLayerRegistry.
In order to be readable from project files, they should set these attributes in layer DOM node:
"type" = "plugin"
"name" = "your_layer_type"
*/
class CORE_EXPORT QgsPluginLayer : public QgsMapLayer
{
Q_OBJECT
public:
QgsPluginLayer( QString layerType, QString layerName = QString() );
/** return plugin layer type (the same as used in QgsPluginLayerRegistry) */
QString pluginLayerType();
void setExtent( const QgsRectangle &extent ) override;
//! return a list of symbology items for the legend
//! (defult implementation returns nothing)
//! @note Added in v2.1
virtual QgsLegendSymbologyList legendSymbologyItems( const QSize& iconSize );
/** Return new instance of QgsMapLayerRenderer that will be used for rendering of given context
*
* The default implementation returns map layer renderer which just calls draw().
* This may work, but it is unsafe for multi-threaded rendering because of the run
* conditions that may happen (e.g. something is changed in the layer while it is
* being rendered).
*
* @note added in 2.4
*/
virtual QgsMapLayerRenderer* createMapRenderer( QgsRenderContext& rendererContext ) override;
protected:
QString mPluginLayerType;
};
#endif // QGSPLUGINLAYER_H
|