|
QGIS API Documentation
2.12.0-Lyon
|
Abstract base class for authentication method plugins. More...
#include <qgsauthmethod.h>

Public Types | |
| enum | Expansion { NetworkRequest = 0x1, NetworkReply = 0x2, DataSourceURI = 0x4, GenericDataSourceURI = 0x8, All = NetworkRequest | NetworkReply | DataSourceURI | GenericDataSourceURI } |
| Flags that represent the update points (where authentication configurations are expanded) supported by an authentication method. More... | |
Public Member Functions | |
| virtual | ~QgsAuthMethod () |
| virtual void | clearCachedConfig (const QString &authcfg)=0 |
| Clear any cached configuration. More... | |
| virtual QString | description () const =0 |
| A non-translated short description representing the auth method for use in debug output and About dialog. More... | |
| virtual QString | displayDescription () const =0 |
| Translatable display version of the 'description()'. More... | |
| virtual QString | key () const =0 |
| A non-translated short name representing the auth method. More... | |
| QStringList | supportedDataProviders () const |
| The data providers that the method supports, allowing for filtering out authcfgs that are not applicable to a given provider, or where the updating code is not currently implemented. More... | |
| QgsAuthMethod::Expansions | supportedExpansions () const |
| Flags that represent the update points (where authentication configurations are expanded) supported by an authentication method. More... | |
| virtual bool | updateDataSourceUriItems (QStringList &connectionItems, const QString &authcfg, const QString &dataprovider=QString()) |
| Update data source connection items with authentication components. More... | |
| virtual void | updateMethodConfig (QgsAuthMethodConfig &mconfig)=0 |
| Update an authentication configuration in place. More... | |
| virtual bool | updateNetworkReply (QNetworkReply *reply, const QString &authcfg, const QString &dataprovider=QString()) |
| Update a network reply with authentication components. More... | |
| virtual bool | updateNetworkRequest (QNetworkRequest &request, const QString &authcfg, const QString &dataprovider=QString()) |
| Update a network request with authentication components. More... | |
| int | version () const |
| Increment this if method is significantly updated, allow updater code to be written for previously stored authcfg. More... | |
Public Member Functions inherited from QObject | |
| QObject (QObject *parent) | |
| QObject (QObject *parent, const char *name) | |
| virtual | ~QObject () |
| bool | blockSignals (bool block) |
| QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
| const QObjectList & | children () const |
| const char * | className () const |
| bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
| void | deleteLater () |
| void | destroyed (QObject *obj) |
| bool | disconnect (const QObject *receiver, const char *method) |
| bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
| void | dumpObjectInfo () |
| void | dumpObjectTree () |
| QList< QByteArray > | dynamicPropertyNames () const |
| virtual bool | event (QEvent *e) |
| virtual bool | eventFilter (QObject *watched, QEvent *event) |
| T | findChild (const QString &name) const |
| QList< T > | findChildren (const QRegExp ®Exp) const |
| QList< T > | findChildren (const QString &name) const |
| bool | inherits (const char *className) const |
| void | insertChild (QObject *object) |
| void | installEventFilter (QObject *filterObj) |
| bool | isA (const char *className) const |
| bool | isWidgetType () const |
| void | killTimer (int id) |
| virtual const QMetaObject * | metaObject () const |
| void | moveToThread (QThread *targetThread) |
| const char * | name () const |
| const char * | name (const char *defaultName) const |
| QString | objectName () const |
| QObject * | parent () const |
| QVariant | property (const char *name) const |
| void | removeChild (QObject *object) |
| void | removeEventFilter (QObject *obj) |
| void | setName (const char *name) |
| void | setObjectName (const QString &name) |
| void | setParent (QObject *parent) |
| bool | setProperty (const char *name, const QVariant &value) |
| bool | signalsBlocked () const |
| int | startTimer (int interval) |
| QThread * | thread () const |
Protected Member Functions | |
| QgsAuthMethod () | |
| Construct a default authentication method. More... | |
| void | setDataProviders (const QStringList &dataproviders) |
| Set list of data providers this auth method supports. More... | |
| void | setExpansions (const QgsAuthMethod::Expansions &expansions) |
| Set the support expansions (points in providers where the authentication is injected) of the auth method. More... | |
| void | setVersion (int version) |
| Set the version of the auth method (useful for future upgrading) More... | |
Protected Member Functions inherited from QObject | |
| bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
| virtual void | childEvent (QChildEvent *event) |
| virtual void | connectNotify (const char *signal) |
| virtual void | customEvent (QEvent *event) |
| virtual void | disconnectNotify (const char *signal) |
| int | receivers (const char *signal) const |
| QObject * | sender () const |
| int | senderSignalIndex () const |
| virtual void | timerEvent (QTimerEvent *event) |
Static Protected Member Functions | |
| static QString | authMethodTag () |
| Tag signifying that this is an authentcation method (e.g. More... | |
Static Protected Member Functions inherited from QObject | |
| QByteArray | normalizeSignalSlot (const char *signalSlot) |
Protected Attributes | |
| QStringList | mDataProviders |
| QgsAuthMethod::Expansions | mExpansions |
| int | mVersion |
Additional Inherited Members | |
Static Public Member Functions inherited from QObject | |
| bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
| bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
| bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
| bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
| QString | tr (const char *sourceText, const char *disambiguation, int n) |
| QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Properties inherited from QObject | |
| objectName | |
Abstract base class for authentication method plugins.
Definition at line 33 of file qgsauthmethod.h.
|
inlinevirtual |
Definition at line 57 of file qgsauthmethod.h.
|
inlineexplicitprotected |
Construct a default authentication method.
Definition at line 147 of file qgsauthmethod.h.
|
inlinestaticprotected |
Tag signifying that this is an authentcation method (e.g.
for use as title in message log panel output)
Definition at line 154 of file qgsauthmethod.h.
|
pure virtual |
Clear any cached configuration.
Called when the QgsAuthManager deletes an authentication configuration (authcfg).
|
pure virtual |
A non-translated short description representing the auth method for use in debug output and About dialog.
|
pure virtual |
Translatable display version of the 'description()'.
|
pure virtual |
A non-translated short name representing the auth method.
|
inlineprotected |
Set list of data providers this auth method supports.
Definition at line 162 of file qgsauthmethod.h.
|
inlineprotected |
Set the support expansions (points in providers where the authentication is injected) of the auth method.
Definition at line 160 of file qgsauthmethod.h.
|
inlineprotected |
Set the version of the auth method (useful for future upgrading)
Definition at line 157 of file qgsauthmethod.h.
|
inline |
The data providers that the method supports, allowing for filtering out authcfgs that are not applicable to a given provider, or where the updating code is not currently implemented.
Definition at line 80 of file qgsauthmethod.h.
|
inline |
Flags that represent the update points (where authentication configurations are expanded) supported by an authentication method.
Definition at line 75 of file qgsauthmethod.h.
|
inlinevirtual |
Update data source connection items with authentication components.
| connectionItems | QStringlist of 'key=value' pairs, as utilized in QgsDataSourceURI::connectionInfo() |
| authcfg | Authentication configuration ID |
| dataprovider | Textual key for a data provider, e.g. 'postgres', that allows for custom updater code specific to the provider |
Definition at line 121 of file qgsauthmethod.h.
|
pure virtual |
Update an authentication configuration in place.
|
inlinevirtual |
Update a network reply with authentication components.
| reply | The network reply object to update |
| authcfg | Authentication configuration ID |
| dataprovider | Textual key for a data provider, e.g. 'postgres', that allows for custom updater code specific to the provider |
Definition at line 105 of file qgsauthmethod.h.
|
inlinevirtual |
Update a network request with authentication components.
| request | The network request to update |
| authcfg | Authentication configuration ID |
| dataprovider | Textual key for a data provider, e.g. 'postgres', that allows for custom updater code specific to the provider |
Definition at line 89 of file qgsauthmethod.h.
|
inline |
Increment this if method is significantly updated, allow updater code to be written for previously stored authcfg.
Definition at line 69 of file qgsauthmethod.h.
|
protected |
Definition at line 165 of file qgsauthmethod.h.
|
protected |
Definition at line 164 of file qgsauthmethod.h.
|
protected |
Definition at line 166 of file qgsauthmethod.h.
1.8.9.1