1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
|
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/auth/qgsauthconfigselect.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsAuthConfigSelect : QWidget
{
%Docstring(signature="appended")
Selector widget for authentication configs
%End
%TypeHeaderCode
#include "qgsauthconfigselect.h"
%End
public:
explicit QgsAuthConfigSelect( QWidget *parent /TransferThis/ = 0, const QString &dataprovider = QString() );
%Docstring
Create a dialog for setting an associated authentication config, either
from existing configs, or creating/removing them from auth database
:param parent: Parent widget
:param dataprovider: The key of the calling layer provider, if
applicable
%End
void setConfigId( const QString &authcfg );
%Docstring
Sets the authentication config id for the resource
%End
const QString configId() const;
%Docstring
Gets the authentication config id for the resource
%End
void setDataProviderKey( const QString &key );
%Docstring
Sets key of layer provider, if applicable
%End
signals:
void selectedConfigIdChanged( const QString &authcfg );
%Docstring
Emitted when authentication config is changed or missing
%End
void selectedConfigIdRemoved( const QString &authcfg );
%Docstring
Emitted when authentication config is removed
%End
public slots:
void showMessage( const QString &msg );
%Docstring
Show a small message bar with a close button
%End
void clearMessage();
%Docstring
Clear and hide small message bar
%End
};
class QgsAuthConfigUriEdit : QDialog
{
%Docstring(signature="appended")
Dialog wrapper of select widget to edit an authcfg in a data source URI
%End
%TypeHeaderCode
#include "qgsauthconfigselect.h"
%End
public:
explicit QgsAuthConfigUriEdit( QWidget *parent /TransferThis/ = 0, const QString &datauri = QString(), const QString &dataprovider = QString() );
%Docstring
Construct wrapper dialog for select widget to edit an authcfg in a data
source URI
:param parent: Parent widget
:param datauri: URI QString with of without an authcfg=ID string
:param dataprovider: The key of the calling layer provider, if
applicable
%End
void setDataSourceUri( const QString &datauri );
%Docstring
Sets the data source URI to parse
%End
QString dataSourceUri();
%Docstring
The returned, possibly edited data source URI
%End
static bool hasConfigId( const QString &txt );
%Docstring
Whether a string contains an authcfg ID
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/auth/qgsauthconfigselect.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
|