TdkAddViewDlgController Class Reference

Defines the create view dialog controller. This class is responsible to control the dialog behavior. More...

#include <TdkAddViewDlgController.h>

Inheritance diagram for TdkAddViewDlgController:

TdkDlgController TdkObserver TdkSubject List of all members.

Behavioral Methods

Methods related dialog's behavior.

virtual void setInitialState ()
 Sets the initial state of the dialog.
virtual std::string dlgName ()
 Retrieves dialog's definiton name.
virtual void update (TdkSubject *changedObject)
 Updates the dialog state. This method is called every time dialog's state changed.
virtual void setDbIdx (const int &dbIdx)
 Sets the db idx parameter. This parameter allows access the database driver in the connections pool.
virtual TdkViewgetCreateView ()
 Retrieves the created view.
virtual void okClicked ()
 Method is called on ok button clicked.

Public Member Functions

Constructor and Destructor Methods
Methods related to instantiation and destruction.

 TdkAddViewDlgController (TdkAddViewDlg *dlg)
 Constructor.
virtual ~TdkAddViewDlgController ()
 Destructor.

Private Attributes

TdkView_createdView
 Pointer to created view.
int _dbIdx
 Database driver identifier in connections pool.

Detailed Description

Defines the create view dialog controller. This class is responsible to control the dialog behavior.

/**


Constructor & Destructor Documentation

TdkAddViewDlgController::TdkAddViewDlgController ( TdkAddViewDlg dlg  ) 

Constructor.

Parameters:
dlg Pointer to a create view dialog

TdkAddViewDlgController::~TdkAddViewDlgController (  )  [virtual]

Destructor.


Member Function Documentation

void TdkAddViewDlgController::setInitialState (  )  [virtual]

Sets the initial state of the dialog.

Implements TdkDlgController.

std::string TdkAddViewDlgController::dlgName (  )  [virtual]

Retrieves dialog's definiton name.

Returns:
Returns the definition TDK_ADD_VIEW_DLG_NAME

Implements TdkDlgController.

void TdkAddViewDlgController::update ( TdkSubject changedObject  )  [virtual]

Updates the dialog state. This method is called every time dialog's state changed.

Parameters:
changedObject The object that changed.

Implements TdkObserver.

void TdkAddViewDlgController::setDbIdx ( const int &  dbIdx  )  [virtual]

Sets the db idx parameter. This parameter allows access the database driver in the connections pool.

Parameters:
dbIdx Index of database driver in connections pool.

TdkView * TdkAddViewDlgController::getCreateView (  )  [virtual]

Retrieves the created view.

Returns:
Returns the created view.

void TdkAddViewDlgController::okClicked (  )  [protected, virtual]

Method is called on ok button clicked.


Member Data Documentation

TdkView* TdkAddViewDlgController::_createdView [private]

Pointer to created view.

int TdkAddViewDlgController::_dbIdx [private]

Database driver identifier in connections pool.


The documentation for this class was generated from the following files:
Generated on Fri Jun 15 16:54:27 2007 for TDK by  doxygen 1.5.2