mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
lib refactoring
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@4579 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
9d6224da96
commit
be1d0346df
@ -1,76 +0,0 @@
|
||||
/***************************************************************************
|
||||
qgsprovidermetadata.h - Metadata class for
|
||||
describing a data provider.
|
||||
-------------------
|
||||
begin : Sat Jan 10 2004
|
||||
copyright : (C) 2004 by Gary E.Sherman
|
||||
email : sherman at mrcc.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. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
/* $Id$ */
|
||||
|
||||
#ifndef QGSPROVIDERMETADATA_H
|
||||
#define QGSPROVIDERMETADATA_H
|
||||
|
||||
|
||||
#include <qstring.h>
|
||||
|
||||
|
||||
/** holds data provider key, description, and associated shared library file information
|
||||
|
||||
The metadata class is used in a lazy load implementation in
|
||||
QgsProviderRegistry. To save memory, data providers are only actually
|
||||
loaded via QLibrary calls if they're to be used. (Though they're all
|
||||
iteratively loaded once to get their metadata information, and then
|
||||
unloaded when the QgsProviderRegistry is created.) QgsProviderMetadata
|
||||
supplies enough information to be able to later load the associated shared
|
||||
library object.
|
||||
|
||||
*/
|
||||
class QgsProviderMetadata
|
||||
{
|
||||
public:
|
||||
|
||||
QgsProviderMetadata(QString const & _key, QString const & _description, QString const & _library);
|
||||
|
||||
/** this returns the unique key associated with the provider
|
||||
|
||||
This key string is used for the associative container in QgsProviderRegistry
|
||||
*/
|
||||
QString const & key() const;
|
||||
|
||||
/** this returns descriptive text for the provider
|
||||
|
||||
This is used to provide a descriptive list of available data providers.
|
||||
*/
|
||||
QString const & description() const;
|
||||
|
||||
/** this returns the library file name
|
||||
|
||||
This is used to QLibrary calls to load the data provider.
|
||||
*/
|
||||
QString const & library() const;
|
||||
|
||||
private:
|
||||
|
||||
/// unique key for data provider
|
||||
QString key_;
|
||||
|
||||
/// associated terse description
|
||||
QString description_;
|
||||
|
||||
/// file path
|
||||
QString library_;
|
||||
|
||||
}; // class QgsProviderMetadata
|
||||
|
||||
#endif //QGSPROVIDERMETADATA_H
|
||||
|
Loading…
x
Reference in New Issue
Block a user