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 (const KexiDB::ConnectionData &cdata, const QString &dbname=QString::null, const QString &caption=QString::null)
 KexiProjectData (const KexiProjectData &pdata)
KexiProjectDataoperator= (const KexiProjectData &pdata)
bool userMode () 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)
void setReadOnly (bool set)
bool isReadOnly () const

Public Attributes

QValueList< ObjectInfo > autoopenObjects
uint formatVersion

Constructor & Destructor Documentation

KexiProjectData::KexiProjectData ( const KexiProjectData pdata  ) 

Constructs a copy of pdata

Definition at line 78 of file kexiprojectdata.cpp.


Member Function Documentation

bool KexiProjectData::userMode (  )  const

Returns:
true if there is the User Mode set in internal project settings.

Definition at line 129 of file kexiprojectdata.cpp.

QString KexiProjectData::databaseName (  )  const

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

Definition at line 119 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@server:port). For file-based projects returns project's filename. If nobr is true, <nobr> tags are added around '(connection: user@server:port)' (useful for displaying in message boxes).

Definition at line 154 of file kexiprojectdata.cpp.

void KexiProjectData::setReadOnly ( bool  set  ) 

If set is true, sets readonly flag for this data, so any connection opened for the project will be readonly. Change this flag before using this data in KexiProject instance, otherwise you will need to reopen the project.

Definition at line 167 of file kexiprojectdata.cpp.

bool KexiProjectData::isReadOnly (  )  const

Returns:
readonly flag. False by default.
See also:
setReadOnly()

Definition at line 172 of file kexiprojectdata.cpp.


Member Data Documentation

QValueList<ObjectInfo> KexiProjectData::autoopenObjects

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

Definition at line 95 of file kexiprojectdata.h.


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