QGIS API Documentation  3.4.15-Madeira (e83d02e274)
Public Slots | Signals | Public Member Functions | List of all members
QgsAuthConfigIdEdit Class Reference

Custom widget for editing an authentication configuration ID. More...

#include <qgsauthconfigidedit.h>

Inheritance diagram for QgsAuthConfigIdEdit:
Inheritance graph
[legend]

Public Slots

void clear ()
 Clear all of the widget's editing state and contents. More...
 
void setAllowEmptyId (bool allowed)
 Sets whether to allow no ID to be set. More...
 
void setAuthConfigId (const QString &authcfg)
 Sets the authentication configuration ID, storing it, and validating the passed value. More...
 

Signals

void validityChanged (bool valid)
 Validity of the ID has changed. More...
 

Public Member Functions

 QgsAuthConfigIdEdit (QWidget *parent=nullptr, const QString &authcfg=QString(), bool allowEmpty=true)
 Widget to unlock and edit an authentication configuration ID. More...
 
bool allowEmptyId ()
 Whether to allow no ID to be set. More...
 
QString const configId ()
 The authentication configuration ID, if valid, otherwise null QString. More...
 
bool validate ()
 Validate the widget state and ID. More...
 

Detailed Description

Custom widget for editing an authentication configuration ID.

Note
Validates the input against the database and for ID's 7-character alphanumeric syntax
not available in Python bindings

Definition at line 33 of file qgsauthconfigidedit.h.

Constructor & Destructor Documentation

QgsAuthConfigIdEdit::QgsAuthConfigIdEdit ( QWidget *  parent = nullptr,
const QString &  authcfg = QString(),
bool  allowEmpty = true 
)
explicit

Widget to unlock and edit an authentication configuration ID.

Parameters
parentParent widget
authcfgAuthentication configuration ID
allowEmptyWhether to allow no ID to be set, even when editing, e.g. Add config functions

Definition at line 25 of file qgsauthconfigidedit.cpp.

Member Function Documentation

bool QgsAuthConfigIdEdit::allowEmptyId ( )
inline

Whether to allow no ID to be set.

Definition at line 51 of file qgsauthconfigidedit.h.

void QgsAuthConfigIdEdit::clear ( )
slot

Clear all of the widget's editing state and contents.

Definition at line 87 of file qgsauthconfigidedit.cpp.

const QString QgsAuthConfigIdEdit::configId ( )

The authentication configuration ID, if valid, otherwise null QString.

Definition at line 42 of file qgsauthconfigidedit.cpp.

void QgsAuthConfigIdEdit::setAllowEmptyId ( bool  allowed)
slot

Sets whether to allow no ID to be set.

Definition at line 81 of file qgsauthconfigidedit.cpp.

void QgsAuthConfigIdEdit::setAuthConfigId ( const QString &  authcfg)
slot

Sets the authentication configuration ID, storing it, and validating the passed value.

Definition at line 71 of file qgsauthconfigidedit.cpp.

bool QgsAuthConfigIdEdit::validate ( )

Validate the widget state and ID.

Definition at line 51 of file qgsauthconfigidedit.cpp.

void QgsAuthConfigIdEdit::validityChanged ( bool  valid)
signal

Validity of the ID has changed.


The documentation for this class was generated from the following files: