QGIS API Documentation  2.0.1-Dufour
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
QgsZipItem Class Reference

A zip file: contains layers, using GDAL/OGR VSIFILE mechanism. More...

#include <qgsdataitem.h>

Inheritance diagram for QgsZipItem:
Inheritance graph
[legend]
Collaboration diagram for QgsZipItem:
Collaboration graph
[legend]

Public Member Functions

 QgsZipItem (QgsDataItem *parent, QString name, QString path)
 ~QgsZipItem ()
QVector< QgsDataItem * > createChildren ()
const QStringList & getZipFileList ()
- Public Member Functions inherited from QgsDataCollectionItem
 QgsDataCollectionItem (QgsDataItem *parent, QString name, QString path=QString::null)
 ~QgsDataCollectionItem ()
void setPopulated ()
void addChild (QgsDataItem *item)
- Public Member Functions inherited from QgsDataItem
 QgsDataItem (QgsDataItem::Type type, QgsDataItem *parent, QString name, QString path)
virtual ~QgsDataItem ()
bool hasChildren ()
int rowCount ()
virtual void refresh ()
virtual void populate ()
bool isPopulated ()
virtual void addChildItem (QgsDataItem *child, bool refresh=false)
virtual void deleteChildItem (QgsDataItem *child)
virtual QgsDataItemremoveChildItem (QgsDataItem *child)
virtual bool equal (const QgsDataItem *other)
virtual QWidget * paramWidget ()
virtual QList< QAction * > actions ()
virtual bool acceptDrop ()
virtual bool handleDrop (const QMimeData *, Qt::DropAction)
virtual bool setCrs (QgsCoordinateReferenceSystem crs)
virtual Capability capabilities ()
Type type () const
QgsDataItemparent () const
void setParent (QgsDataItem *parent)
QVector< QgsDataItem * > children () const
QIcon icon () const
QString name () const
QString path () const
void setIcon (QIcon icon)
void setToolTip (QString msg)
QString toolTip () const

Static Public Member Functions

static QString vsiPrefix (QString uri)
static QgsDataItemitemFromPath (QgsDataItem *parent, QString path, QString name)
static const QIcon & iconZip ()
- Static Public Member Functions inherited from QgsDataCollectionItem
static const QIcon & iconDir ()
static const QIcon & iconDataCollection ()
- Static Public Member Functions inherited from QgsDataItem
static int findItem (QVector< QgsDataItem * > items, QgsDataItem *item)

Static Public Attributes

static QVector< dataItem_t * > mDataItemPtr = QVector<dataItem_t*>()
static QStringList mProviderNames = QStringList()

Protected Attributes

QString mVsiPrefix
QStringList mZipFileList

Additional Inherited Members

- Public Types inherited from QgsDataItem
enum  Type {
  Collection, Directory, Layer, Error,
  Favourites
}
enum  Capability { NoCapabilities = 0, SetCrs = 1 }
- Public Slots inherited from QgsDataItem
void emitBeginInsertItems (QgsDataItem *parent, int first, int last)
void emitEndInsertItems ()
void emitBeginRemoveItems (QgsDataItem *parent, int first, int last)
void emitEndRemoveItems ()
- Signals inherited from QgsDataItem
void beginInsertItems (QgsDataItem *parent, int first, int last)
void endInsertItems ()
void beginRemoveItems (QgsDataItem *parent, int first, int last)
void endRemoveItems ()

Detailed Description

A zip file: contains layers, using GDAL/OGR VSIFILE mechanism.

Definition at line 300 of file qgsdataitem.h.

Constructor & Destructor Documentation

QgsZipItem::QgsZipItem ( QgsDataItem parent,
QString  name,
QString  path 
)
QgsZipItem::~QgsZipItem ( )

Definition at line 806 of file qgsdataitem.cpp.

Member Function Documentation

QVector< QgsDataItem * > QgsZipItem::createChildren ( )
virtual
const QStringList & QgsZipItem::getZipFileList ( )
const QIcon & QgsZipItem::iconZip ( )
static

Definition at line 139 of file qgsdataitem.cpp.

References QgsApplication::getThemeIcon(), and QgsDataItem::icon().

Referenced by QgsZipItem().

QgsDataItem * QgsZipItem::itemFromPath ( QgsDataItem parent,
QString  path,
QString  name 
)
static
QString QgsZipItem::vsiPrefix ( QString  uri)
static

Definition at line 957 of file qgsdataitem.cpp.

Referenced by itemFromPath(), and QgsZipItem().

Member Data Documentation

QVector< dataItem_t * > QgsZipItem::mDataItemPtr = QVector<dataItem_t*>()
static
Note
not available via python bindings

Definition at line 316 of file qgsdataitem.h.

Referenced by createChildren(), itemFromPath(), and QgsZipItem().

QStringList QgsZipItem::mProviderNames = QStringList()
static

Definition at line 317 of file qgsdataitem.h.

Referenced by createChildren(), itemFromPath(), and QgsZipItem().

QString QgsZipItem::mVsiPrefix
protected

Definition at line 305 of file qgsdataitem.h.

Referenced by createChildren(), getZipFileList(), and QgsZipItem().

QStringList QgsZipItem::mZipFileList
protected

Definition at line 306 of file qgsdataitem.h.

Referenced by createChildren(), and getZipFileList().


The documentation for this class was generated from the following files: