kexi

KexiProjectData Class Reference

#include <kexiprojectdata.h>

Inheritance diagram for KexiProjectData:

KexiDB::SchemaData List of all members.

Detailed Description

Kexi project core data member.

Contains:

  • project name
  • database name
  • connection data
  • date and time of last opening

Definition at line 39 of file kexiprojectdata.h.


Public Types

typedef QPtrList< KexiProjectDataList
typedef QMap< QCString, QString > ObjectInfo

Public Member Functions

 KexiProjectData ()
 KexiProjectData (const KexiDB::ConnectionData &cdata, const QString &dbname=QString::null, const QString &caption=QString::null)
 KexiProjectData (const KexiProjectData &pdata)
 ~KexiProjectData ()
KexiProjectDataoperator= (const KexiProjectData &pdata)
bool finalMode () const
KexiDB::ConnectionDataconnectionData ()
const KexiDB::ConnectionDataconstConnectionData () const
QString databaseName () const
void setDatabaseName (const QString &dbName)
QString infoString (bool nobr=true) const
QDateTime lastOpened () const
void setLastOpened (const QDateTime &lastOpened)
QString description () const
void setDescription (const QString &desc)

Public Attributes

QValueList< ObjectInfoautoopenObjects
uint formatVersion

Constructor & Destructor Documentation

KexiProjectData::KexiProjectData ( const KexiProjectData pdata  ) 

Constructs a copy of pdata

Definition at line 76 of file kexiprojectdata.cpp.


Member Function Documentation

QString KexiProjectData::databaseName (  )  const

Returns:
database name. In fact, this is the same as KexiDB::SchemaData::name()

Definition at line 117 of file kexiprojectdata.cpp.

bool KexiProjectData::finalMode (  )  const

Returns:
true if there is final mode set in internal project settings.

Definition at line 127 of file kexiprojectdata.cpp.

QString KexiProjectData::infoString ( bool  nobr = true  )  const

Returns:
user-visible string better describing the project than just databaseName(). For server-based projects returns i18n'd string: "<project name>" (connection: user:port). For file-based projects returns project's filename. If nobr is true, <nobr> tags are added around '(connection: user:port)' (useful for displaying in message boxes).

Definition at line 152 of file kexiprojectdata.cpp.


Member Data Documentation

objects to open on startup (come from command line "-open" option) It's public for convenience

Definition at line 85 of file kexiprojectdata.h.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys