QgsNewConnection Class Reference

#include <qgsnewconnection.h>

List of all members.


Detailed Description

Dialog to allow the user to configure and save connection information for a PostgresQl database.

Definition at line 26 of file qgsnewconnection.h.

Public Slots

void on_btnOk_clicked ()
 Autoconnected SLOTS.
void on_btnCancel_clicked ()
void on_btnHelp_clicked ()
void on_btnConnect_clicked ()
void on_cb_geometryColumnsOnly_clicked ()

Public Member Functions

 QgsNewConnection (QWidget *parent=0, const QString &connName=QString::null, Qt::WFlags fl=QgisGui::ModalDialogFlags)
 Constructor.
 ~QgsNewConnection ()
 Destructor.
void testConnection ()
 Tests the connection using the parameters supplied.
void saveConnection ()
 Saves the connection to ~/.qt/qgisrc.
void helpInfo ()
 Display the context help.

Static Private Attributes

static const int context_id = 929865718


Constructor & Destructor Documentation

QgsNewConnection::QgsNewConnection ( QWidget *  parent = 0,
const QString &  connName = QString::null,
Qt::WFlags  fl = QgisGui::ModalDialogFlags 
)

Constructor.

Definition at line 33 of file qgsnewconnection.cpp.

References on_cb_geometryColumnsOnly_clicked().

QgsNewConnection::~QgsNewConnection (  ) 

Destructor.

Definition at line 104 of file qgsnewconnection.cpp.


Member Function Documentation

void QgsNewConnection::testConnection (  ) 

Tests the connection using the parameters supplied.

Definition at line 108 of file qgsnewconnection.cpp.

References QgsDataSourceURI::connectionInfo(), QgsLogger::debug(), and QgsDataSourceURI::setConnection().

Referenced by on_btnConnect_clicked().

void QgsNewConnection::saveConnection (  ) 

Saves the connection to ~/.qt/qgisrc.

Definition at line 131 of file qgsnewconnection.cpp.

Referenced by QgsSpit::editConnection(), QgsDbSourceSelect::editConnection(), and on_btnOk_clicked().

void QgsNewConnection::helpInfo (  ) 

Display the context help.

Definition at line 148 of file qgsnewconnection.cpp.

References context_id, and QgsContextHelp::run().

Referenced by on_btnHelp_clicked().

void QgsNewConnection::on_btnOk_clicked (  )  [slot]

Autoconnected SLOTS.

Definition at line 73 of file qgsnewconnection.cpp.

References saveConnection().

void QgsNewConnection::on_btnCancel_clicked (  )  [slot]

Definition at line 88 of file qgsnewconnection.cpp.

void QgsNewConnection::on_btnHelp_clicked (  )  [slot]

Definition at line 78 of file qgsnewconnection.cpp.

References helpInfo().

void QgsNewConnection::on_btnConnect_clicked (  )  [slot]

Definition at line 83 of file qgsnewconnection.cpp.

References testConnection().

void QgsNewConnection::on_cb_geometryColumnsOnly_clicked (  )  [slot]

Definition at line 94 of file qgsnewconnection.cpp.

Referenced by QgsNewConnection().


Member Data Documentation

const int QgsNewConnection::context_id = 929865718 [static, private]

Definition at line 47 of file qgsnewconnection.h.

Referenced by helpInfo().


The documentation for this class was generated from the following files:
Generated on Tue Oct 28 16:52:01 2008 for Quantum GIS API Documentation by  doxygen 1.5.1