Kexi API Documentation (2.0 alpha)

KexiProjectConnectionData Class Reference

#include <kexiprojectconnectiondata.h>

Inheritance diagram for KexiProjectConnectionData:

KexiDB::ConnectionData KexiDB::ConnectionDataBase List of all members.

Detailed Description

This class aims to provide methods to store/load database settings especially for file based engines.

Extends KexiDB::ConnectionData with additional information (selected driver name and database name) that allows fully-automatic reconnect eg. on next application startup.

Definition at line 36 of file kexiprojectconnectiondata.h.

Public Member Functions

 KexiProjectConnectionData ()
 KexiProjectConnectionData (const QString &driverName, const QString &databaseName, const QString &hostName, unsigned short int port, const QString &userName, const QString &password, const QString &fileName)
 KexiProjectConnectionData (const QString &driverName, const QString &fileName=QString::null)
 connect to a embedded database
 ~KexiProjectConnectionData ()
void writeInfo (QDomDocument &doc)
void setDriverName (const QString &driverName)
void setDatabaseName (const QString &databaseName)
QString driverName () const
QString databaseName () const

Static Public Member Functions

static const QStringgenerateTmpName ()
static KexiProjectConnectionDataloadInfo (QDomElement &e)


Constructor & Destructor Documentation

KexiProjectConnectionData::KexiProjectConnectionData  ) 
 

Definition at line 40 of file kexiprojectconnectiondata.cpp.

Referenced by loadInfo().

KexiProjectConnectionData::KexiProjectConnectionData const QString driverName,
const QString databaseName,
const QString hostName,
unsigned short int  port,
const QString userName,
const QString password,
const QString fileName
 

Definition at line 44 of file kexiprojectconnectiondata.cpp.

References KexiDB::ConnectionDataBase::hostName, KexiDB::ConnectionDataBase::password, KexiDB::ConnectionDataBase::port, KexiDB::ConnectionData::setFileName(), and KexiDB::ConnectionDataBase::userName.

KexiProjectConnectionData::KexiProjectConnectionData const QString driverName,
const QString fileName = QString::null
 

connect to a embedded database

Definition at line 56 of file kexiprojectconnectiondata.cpp.

References KexiDB::ConnectionData::setFileName().

KexiProjectConnectionData::~KexiProjectConnectionData  ) 
 

Definition at line 150 of file kexiprojectconnectiondata.cpp.


Member Function Documentation

QString KexiProjectConnectionData::databaseName  )  const
 

Definition at line 100 of file kexiprojectconnectiondata.cpp.

QString KexiProjectConnectionData::driverName  )  const
 

Definition at line 96 of file kexiprojectconnectiondata.cpp.

const QString & KexiProjectConnectionData::generateTmpName  )  [static]
 

Definition at line 64 of file kexiprojectconnectiondata.cpp.

KexiProjectConnectionData * KexiProjectConnectionData::loadInfo QDomElement &  e  )  [static]
 

Definition at line 70 of file kexiprojectconnectiondata.cpp.

References KexiProjectConnectionData().

void KexiProjectConnectionData::setDatabaseName const QString databaseName  ) 
 

Definition at line 92 of file kexiprojectconnectiondata.cpp.

void KexiProjectConnectionData::setDriverName const QString driverName  ) 
 

Definition at line 88 of file kexiprojectconnectiondata.cpp.

void KexiProjectConnectionData::writeInfo QDomDocument &  doc  ) 
 

Definition at line 106 of file kexiprojectconnectiondata.cpp.

References KexiDB::ConnectionDataBase::hostName, KexiDB::ConnectionDataBase::password, and KexiDB::ConnectionDataBase::userName.


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:50:15 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003