Kexi API Documentation (2.0 alpha)

KexiDBConnectionWidget Class Reference

#include <kexidbconnectionwidget.h>

Inheritance diagram for KexiDBConnectionWidget:

KexiDBConnectionWidgetBase List of all members.

Signals

void saveChanges ()
 emitted when data saving is needed
void loadDBList ()

Public Member Functions

 KexiDBConnectionWidget (QWidget *parent=0, const char *name=0)
virtual ~KexiDBConnectionWidget ()
void setData (const KexiProjectData &data, const QString &shortcutFileName=QString::null)
void setData (const KexiDB::ConnectionData &data, const QString &shortcutFileName=QString::null)
KexiProjectData data ()
KPushButtonsaveChangesButton () const
KPushButtontestConnectionButton () const
KexiDBDriverComboBoxdriversCombo () const
bool connectionOnly () const

Protected Slots

void slotLocationBGrpClicked (int id)
void slotCBToggled (bool on)
virtual void languageChange ()

Protected Member Functions

void setDataInternal (const KexiProjectData &data, bool connectionOnly, const QString &shortcutFileName)

Protected Attributes

KexiProjectData m_data
KexiDBDriverComboBoxm_driversCombo
Private * d

Constructor & Destructor Documentation

KexiDBConnectionWidget::KexiDBConnectionWidget QWidget parent = 0,
const char *  name = 0
 

Definition at line 68 of file kexidbconnectionwidget.cpp.

References d, Kexi::driverManager(), loadDBList(), m_driversCombo, saveChanges(), KexiDBDriverComboBox::ShowServerDrivers, slotCBToggled(), and slotLocationBGrpClicked().

KexiDBConnectionWidget::~KexiDBConnectionWidget  )  [virtual]
 

Definition at line 114 of file kexidbconnectionwidget.cpp.

References d.


Member Function Documentation

bool KexiDBConnectionWidget::connectionOnly  )  const
 

Returns:
true if only connection data is managed by this widget

Definition at line 119 of file kexidbconnectionwidget.cpp.

References d.

Referenced by KexiDBConnectionTabWidget::currentProjectData().

KexiProjectData KexiDBConnectionWidget::data  ) 
 

Definition at line 199 of file kexidbconnectionwidget.cpp.

References m_data.

KexiDBDriverComboBox* KexiDBConnectionWidget::driversCombo  )  const [inline]
 

Definition at line 62 of file kexidbconnectionwidget.h.

Referenced by KexiDBConnectionTabWidget::currentProjectData().

virtual void KexiDBConnectionWidget::languageChange  )  [inline, protected, virtual, slot]
 

Definition at line 76 of file kexidbconnectionwidget.h.

void KexiDBConnectionWidget::loadDBList  )  [signal]
 

Referenced by KexiDBConnectionWidget().

void KexiDBConnectionWidget::saveChanges  )  [signal]
 

emitted when data saving is needed

Referenced by KexiDBConnectionWidget().

KPushButton * KexiDBConnectionWidget::saveChangesButton  )  const
 

Returns:
a pointer to 'save changes' button. You can call hide() for this to hide it.

Definition at line 189 of file kexidbconnectionwidget.cpp.

References d.

void KexiDBConnectionWidget::setData const KexiDB::ConnectionData data,
const QString shortcutFileName = QString::null
 

Sets connection data data. shortcutFileName is only used to check if the file is writable (if no, "save changes" button will be disabled).

Definition at line 183 of file kexidbconnectionwidget.cpp.

References setDataInternal().

void KexiDBConnectionWidget::setData const KexiProjectData data,
const QString shortcutFileName = QString::null
 

Sets project data data. shortcutFileName is only used to check if the file is writable (if no, "save changes" button will be disabled).

Definition at line 178 of file kexidbconnectionwidget.cpp.

References setDataInternal().

Referenced by KexiDBConnectionTabWidget::setData().

void KexiDBConnectionWidget::setDataInternal const KexiProjectData data,
bool  connectionOnly,
const QString shortcutFileName
[protected]
 

Todo:
what if there's no such driver name?

Definition at line 122 of file kexidbconnectionwidget.cpp.

References KexiDB::SchemaData::caption(), KexiProjectData::connectionData(), d, KexiProjectData::databaseName(), m_data, m_driversCombo, KexiDBDriverComboBox::setDriverName(), and slotLocationBGrpClicked().

Referenced by setData().

void KexiDBConnectionWidget::slotCBToggled bool  on  )  [protected, slot]
 

Definition at line 212 of file kexidbconnectionwidget.cpp.

Referenced by KexiDBConnectionWidget().

void KexiDBConnectionWidget::slotLocationBGrpClicked int  id  )  [protected, slot]
 

Definition at line 204 of file kexidbconnectionwidget.cpp.

Referenced by KexiDBConnectionWidget(), and setDataInternal().

KPushButton * KexiDBConnectionWidget::testConnectionButton  )  const
 

Returns:
a pointer to 'test connection' button. You can call hide() for this to hide it.

Definition at line 194 of file kexidbconnectionwidget.cpp.

References d.


Member Data Documentation

Private* KexiDBConnectionWidget::d [protected]
 

Definition at line 85 of file kexidbconnectionwidget.h.

Referenced by connectionOnly(), KexiDBConnectionWidget(), saveChangesButton(), setDataInternal(), testConnectionButton(), and ~KexiDBConnectionWidget().

KexiProjectData KexiDBConnectionWidget::m_data [protected]
 

Definition at line 82 of file kexidbconnectionwidget.h.

Referenced by data(), and setDataInternal().

KexiDBDriverComboBox* KexiDBConnectionWidget::m_driversCombo [protected]
 

Definition at line 83 of file kexidbconnectionwidget.h.

Referenced by KexiDBConnectionWidget(), and setDataInternal().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for Kexi 2.0 alpha.
Documentation copyright © 2002-2007 the Kexi Team.
Generated on Tue Apr 1 20:49:51 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003