QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
Loading...
Searching...
No Matches
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.
 
void setAllowEmptyId (bool allowed)
 Sets whether to allow no ID to be set.
 
void setAuthConfigId (const QString &authcfg)
 Sets the authentication configuration ID, storing it, and validating the passed value.
 

Signals

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

Public Member Functions

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

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::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 28 of file qgsauthconfigidedit.cpp.

Member Function Documentation

◆ allowEmptyId()

bool QgsAuthConfigIdEdit::allowEmptyId ( )
inline

Whether to allow no ID to be set.

Definition at line 51 of file qgsauthconfigidedit.h.

◆ clear

void QgsAuthConfigIdEdit::clear ( )
slot

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

Definition at line 90 of file qgsauthconfigidedit.cpp.

◆ configId()

const QString QgsAuthConfigIdEdit::configId ( )

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

Definition at line 45 of file qgsauthconfigidedit.cpp.

◆ setAllowEmptyId

void QgsAuthConfigIdEdit::setAllowEmptyId ( bool  allowed)
slot

Sets whether to allow no ID to be set.

Definition at line 84 of file qgsauthconfigidedit.cpp.

◆ setAuthConfigId

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

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

Definition at line 74 of file qgsauthconfigidedit.cpp.

◆ validate()

bool QgsAuthConfigIdEdit::validate ( )

Validate the widget state and ID.

Definition at line 54 of file qgsauthconfigidedit.cpp.

◆ validityChanged

void QgsAuthConfigIdEdit::validityChanged ( bool  valid)
signal

Validity of the ID has changed.


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