XML Mill  1.0.0
A GUI based XML editor with a memory.
Public Slots | Signals | Public Member Functions | Private Slots | Private Member Functions | Private Attributes
GCDBSessionManager Class Reference

Responsible for managing database connections and active database sessions. More...

#include <gcdbsessionmanager.h>

List of all members.

Public Slots

void addExistingDatabase (const QString &currentRoot=QString())
 Add an existing database from file.
void addNewDatabase (const QString &currentRoot=QString())
 Create and add a new database.

Signals

void activeDatabaseChanged (QString)
 Emitted whenever the active database session is changed.
void reset ()
 Emitted when the database change affects the current active document and informs the listener that the document must be reset.

Public Member Functions

 GCDBSessionManager (QWidget *parent=0)
 Constructor.
 ~GCDBSessionManager ()
 Destructor.
void selectActiveDatabase (const QString &currentRoot=QString())
 Select a known database from the dropdown, or add a new or existing database from file.
void removeDatabase (const QString &currentRoot=QString())
 Display the list of known databases that can be removed.

Private Slots

void removeDatabaseConnection ()
 Triggered when the user selection is completed.
void setActiveDatabase ()
 Triggered when the user selection is completed.
void showHelp ()
 Displays help specific to this form.

Private Member Functions

void setActiveDatabase (const QString &dbName)
 Sets the active database session to "dbName" via GCDatabaseInterface.
void addDatabaseConnection (const QString &dbName)
 Adds "dbName" to the list of known databases via GCDatabaseInterface.
void setDatabaseList ()
 Sets the list of known database names on the combo box.

Private Attributes

Ui::GCDBSessionManager * ui
QString m_currentRoot

Detailed Description

Responsible for managing database connections and active database sessions.

This class is responsible for managing database connections and active database sessions and will prompt the user to confirm actions or changes that may result in the current DOM doc being reset.

Definition at line 46 of file gcdbsessionmanager.h.


Constructor & Destructor Documentation

GCDBSessionManager::GCDBSessionManager ( QWidget *  parent = 0) [explicit]

Constructor.

Definition at line 40 of file gcdbsessionmanager.cpp.

Destructor.

Definition at line 60 of file gcdbsessionmanager.cpp.


Member Function Documentation

void GCDBSessionManager::activeDatabaseChanged ( QString  ) [signal]

Emitted whenever the active database session is changed.

void GCDBSessionManager::addDatabaseConnection ( const QString &  dbName) [private]

Adds "dbName" to the list of known databases via GCDatabaseInterface.

Definition at line 231 of file gcdbsessionmanager.cpp.

void GCDBSessionManager::addExistingDatabase ( const QString &  currentRoot = QString()) [slot]

Add an existing database from file.

Parameters:
currentRoot- used to determine whether or not the change will affect the active document (if not provided, the current document is assumed empty).

Definition at line 103 of file gcdbsessionmanager.cpp.

void GCDBSessionManager::addNewDatabase ( const QString &  currentRoot = QString()) [slot]

Create and add a new database.

Parameters:
currentRoot- used to determine whether or not the change will affect the active document (if not provided, the current document is assumed empty).

Definition at line 123 of file gcdbsessionmanager.cpp.

void GCDBSessionManager::removeDatabase ( const QString &  currentRoot = QString())

Display the list of known databases that can be removed.

Parameters:
currentRoot- used to determine whether or not the change will affect the active document (if not provided, the current document is assumed empty).

Definition at line 87 of file gcdbsessionmanager.cpp.

Triggered when the user selection is completed.

Removes the selected database via GCDatabaseInterface.

Definition at line 143 of file gcdbsessionmanager.cpp.

void GCDBSessionManager::reset ( ) [signal]

Emitted when the database change affects the current active document and informs the listener that the document must be reset.

void GCDBSessionManager::selectActiveDatabase ( const QString &  currentRoot = QString())

Select a known database from the dropdown, or add a new or existing database from file.

Parameters:
currentRoot- used to determine whether or not the change will affect the active document (if not provided, the current document is assumed empty).

Definition at line 67 of file gcdbsessionmanager.cpp.

void GCDBSessionManager::setActiveDatabase ( ) [private, slot]

Triggered when the user selection is completed.

Sets the selected database via GCDatabaseInterface.

Definition at line 174 of file gcdbsessionmanager.cpp.

void GCDBSessionManager::setActiveDatabase ( const QString &  dbName) [private]

Sets the active database session to "dbName" via GCDatabaseInterface.

Definition at line 193 of file gcdbsessionmanager.cpp.

Sets the list of known database names on the combo box.

Definition at line 256 of file gcdbsessionmanager.cpp.

void GCDBSessionManager::showHelp ( ) [private, slot]

Displays help specific to this form.

Definition at line 181 of file gcdbsessionmanager.cpp.


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