| 
    QGIS API Documentation 3.99.0-Master (f78f5286a64)
    
   | 
 
A combo box which displays the list of connections registered for a given provider. More...
#include <qgsproviderconnectioncombobox.h>

Public Slots | |
| void | setConnection (const QString &connection) | 
| Sets the current connection selected in the combo box.   | |
Signals | |
| void | connectionChanged (const QString &connection) | 
| Emitted whenever the currently selected connection changes.   | |
Public Member Functions | |
| QgsProviderConnectionComboBox (const QString &provider, QWidget *parent=nullptr) | |
| Constructor for QgsProviderConnectionComboBox, for the specified provider.   | |
| QgsProviderConnectionComboBox (QWidget *parent=nullptr) | |
| Constructor for QgsProviderConnectionComboBox.   | |
| bool | allowEmptyConnection () const | 
Returns true if the combobox allows the empty connection ("not set") choice.   | |
| QString | currentConnection () const | 
| Returns the name of the current connection selected in the combo box.   | |
| QString | currentConnectionUri () const | 
| Returns the uri of the current connection selected in the combo box.   | |
| void | setAllowEmptyConnection (bool allowEmpty) | 
| Sets whether an optional empty connection ("not set") option is present in the combobox.   | |
| void | setProvider (const QString &provider) | 
| Sets the provider to be used.   | |
A combo box which displays the list of connections registered for a given provider.
Definition at line 50 of file qgsproviderconnectioncombobox.h.
      
  | 
  explicit | 
Constructor for QgsProviderConnectionComboBox, for the specified provider.
Definition at line 20 of file qgsproviderconnectioncombobox.cpp.
      
  | 
  explicit | 
Constructor for QgsProviderConnectionComboBox.
Definition at line 26 of file qgsproviderconnectioncombobox.cpp.
| bool QgsProviderConnectionComboBox::allowEmptyConnection | ( | ) | const | 
Returns true if the combobox allows the empty connection ("not set") choice. 
Definition at line 66 of file qgsproviderconnectioncombobox.cpp.
      
  | 
  signal | 
Emitted whenever the currently selected connection changes.
| QString QgsProviderConnectionComboBox::currentConnection | ( | ) | const | 
Returns the name of the current connection selected in the combo box.
Definition at line 101 of file qgsproviderconnectioncombobox.cpp.
| QString QgsProviderConnectionComboBox::currentConnectionUri | ( | ) | const | 
Returns the uri of the current connection selected in the combo box.
Definition at line 112 of file qgsproviderconnectioncombobox.cpp.
| void QgsProviderConnectionComboBox::setAllowEmptyConnection | ( | bool | allowEmpty | ) | 
Sets whether an optional empty connection ("not set") option is present in the combobox.
Definition at line 61 of file qgsproviderconnectioncombobox.cpp.
      
  | 
  slot | 
Sets the current connection selected in the combo box.
Definition at line 71 of file qgsproviderconnectioncombobox.cpp.
| void QgsProviderConnectionComboBox::setProvider | ( | const QString & | provider | ) | 
Sets the provider to be used.
Definition at line 31 of file qgsproviderconnectioncombobox.cpp.