QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
qgsdataprovider.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  qgsdataprovider.cpp - DataProvider Interface
3  --------------------------------------
4  Date : May 2016
5  Copyright : (C) 2016 by Matthias Kuhn
6  email : [email protected]
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 #include "qgsdataprovider.h"
17 
18 
20 {
21  mProviderProperties.insert( property, value );
22 }
23 
25 {
26  mProviderProperties.insert( property, value );
27 }
28 
30 {
31  return mProviderProperties.value( property, defaultValue );
32 }
33 
35 {
36  return mProviderProperties.value( property, defaultValue );
37 }
38 
QVariant providerProperty(ProviderProperty property, const QVariant &defaultValue=QVariant()) const
Get the current value of a certain provider property.
QVariant property(const char *name) const
void setProviderProperty(ProviderProperty property, const QVariant &value)
Allows setting arbitrary properties on the provider.
iterator insert(const Key &key, const T &value)
ProviderProperty
Properties are used to pass custom configuration options into data providers.
const T value(const Key &key) const