QGIS API Documentation  2.4.0-Chugiak
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
qgsprovidermetadata.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  qgsprovidermetadata.cpp - Metadata class for
3  describing a data provider.
4  -------------------
5  begin : Sat Jan 10 2004
6  copyright : (C) 2004 by Gary E.Sherman
7  email : sherman at mrcc.com
8  ***************************************************************************/
9 
10 /***************************************************************************
11  * *
12  * This program is free software; you can redistribute it and/or modify *
13  * it under the terms of the GNU General Public License as published by *
14  * the Free Software Foundation; either version 2 of the License, or *
15  * (at your option) any later version. *
16  * *
17  ***************************************************************************/
18 
19 #include "qgsprovidermetadata.h"
20 
21 
22 
24  QString const & _description,
25  QString const & _library )
26  : key_( _key ),
27  description_( _description ),
28  library_( _library )
29 {}
30 
31 QString const & QgsProviderMetadata::key() const
32 {
33  return key_;
34 }
35 
36 QString const & QgsProviderMetadata::description() const
37 {
38  return description_;
39 }
40 
41 QString const & QgsProviderMetadata::library() const
42 {
43  return library_;
44 }
const QString & description() const
this returns descriptive text for the provider
QString key_
unique key for data provider
QgsProviderMetadata(const QString &_key, const QString &_description, const QString &_library)
QString description_
associated terse description
QString library_
file path
const QString & key() const
this returns the unique key associated with the provider
const QString & library() const
this returns the library file name