kexi

KexiProjectConnectionData Class Reference

#include <kexiprojectconnectiondata.h>

Inheritance diagram for KexiProjectConnectionData:
KexiDB::ConnectionData KexiDB::ConnectionDataBase

Public Member Functions

 KexiProjectConnectionData (const TQString &driverName, const TQString &databaseName, const TQString &hostName, unsigned short int port, const TQString &userName, const TQString &password, const TQString &fileName)
 
 KexiProjectConnectionData (const TQString &driverName, const TQString &fileName=TQString())
 
void writeInfo (TQDomDocument &doc)
 
void setDriverName (const TQString &driverName)
 
void setDatabaseName (const TQString &databaseName)
 
TQString driverName () const
 
TQString databaseName () const
 
- Public Member Functions inherited from KexiDB::ConnectionData
 ConnectionData (const ConnectionData &)
 
ConnectionData & operator= (const ConnectionData &cd)
 
void setFileName (const TQString &fn)
 
TQString fileName () const
 
TQString dbPath () const
 
TQString dbFileName () const
 
TQString serverInfoString (bool addUser=true) const
 

Static Public Member Functions

static const TQString & generateTmpName ()
 
static KexiProjectConnectionData * loadInfo (TQDomElement &e)
 

Additional Inherited Members

- Public Types inherited from KexiDB::ConnectionData
typedef TQPtrList< ConnectionData > List
 
typedef TQPtrListIterator< ConnectionData > ListIterator
 
- Public Attributes inherited from KexiDB::ConnectionData
uint formatVersion
 
- Public Attributes inherited from KexiDB::ConnectionDataBase
TQString caption
 
TQString description
 
int id
 
TQString driverName
 
TQString hostName
 
unsigned short int port
 
bool useLocalSocketFile
 
TQString localSocketFileName
 
TQString password
 
bool savePassword
 
TQString userName
 
- Protected Attributes inherited from KexiDB::ConnectionData
Private * priv
 
- Protected Attributes inherited from KexiDB::ConnectionDataBase
TQString m_fileName
 
TQString m_dbPath
 
TQString m_dbFileName
 

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.

Constructor & Destructor Documentation

◆ KexiProjectConnectionData() [1/3]

KexiProjectConnectionData::KexiProjectConnectionData ( )

Definition at line 40 of file kexiprojectconnectiondata.cpp.

◆ KexiProjectConnectionData() [2/3]

KexiProjectConnectionData::KexiProjectConnectionData ( const TQString &  driverName,
const TQString &  databaseName,
const TQString &  hostName,
unsigned short int  port,
const TQString &  userName,
const TQString &  password,
const TQString &  fileName 
)

Definition at line 44 of file kexiprojectconnectiondata.cpp.

◆ KexiProjectConnectionData() [3/3]

KexiProjectConnectionData::KexiProjectConnectionData ( const TQString &  driverName,
const TQString &  fileName = TQString() 
)

connect to a embedded database

Definition at line 56 of file kexiprojectconnectiondata.cpp.

◆ ~KexiProjectConnectionData()

KexiProjectConnectionData::~KexiProjectConnectionData ( )

Definition at line 150 of file kexiprojectconnectiondata.cpp.

Member Function Documentation

◆ databaseName()

TQString KexiProjectConnectionData::databaseName ( ) const

Definition at line 100 of file kexiprojectconnectiondata.cpp.

◆ driverName()

TQString KexiProjectConnectionData::driverName ( ) const

Definition at line 96 of file kexiprojectconnectiondata.cpp.

◆ generateTmpName()

const TQString & KexiProjectConnectionData::generateTmpName ( )
static

Definition at line 64 of file kexiprojectconnectiondata.cpp.

◆ loadInfo()

KexiProjectConnectionData * KexiProjectConnectionData::loadInfo ( TQDomElement &  e)
static

Definition at line 70 of file kexiprojectconnectiondata.cpp.

◆ setDatabaseName()

void KexiProjectConnectionData::setDatabaseName ( const TQString &  databaseName)

Definition at line 92 of file kexiprojectconnectiondata.cpp.

◆ setDriverName()

void KexiProjectConnectionData::setDriverName ( const TQString &  driverName)

Definition at line 88 of file kexiprojectconnectiondata.cpp.

◆ writeInfo()

void KexiProjectConnectionData::writeInfo ( TQDomDocument &  doc)

Definition at line 106 of file kexiprojectconnectiondata.cpp.


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