Kexi API Documentation (2.0 alpha)

KexiProjectData Class Reference

#include <kexiprojectdata.h>

Inheritance diagram for KexiProjectData:

KexiDB::SchemaData List of all members.

Detailed Description

Kexi project core data member.

Contains:

Definition at line 39 of file kexiprojectdata.h.

Public Types

typedef QPtrList< KexiProjectDataList
typedef QMap< QCString, QStringObjectInfo

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 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< ObjectInfoautoopenObjects
uint formatVersion


Member Typedef Documentation

typedef QPtrList<KexiProjectData> KexiProjectData::List
 

Definition at line 42 of file kexiprojectdata.h.

typedef QMap<QCString,QString> KexiProjectData::ObjectInfo
 

Definition at line 43 of file kexiprojectdata.h.


Constructor & Destructor Documentation

KexiProjectData::KexiProjectData  ) 
 

Definition at line 58 of file kexiprojectdata.cpp.

KexiProjectData::KexiProjectData const KexiDB::ConnectionData cdata,
const QString dbname = QString::null,
const QString caption = QString::null
 

Definition at line 66 of file kexiprojectdata.cpp.

References KexiDB::SchemaData::setCaption(), and setDatabaseName().

KexiProjectData::KexiProjectData const KexiProjectData pdata  ) 
 

Constructs a copy of pdata

Definition at line 78 of file kexiprojectdata.cpp.

References autoopenObjects.

KexiProjectData::~KexiProjectData  ) 
 

Definition at line 90 of file kexiprojectdata.cpp.


Member Function Documentation

KexiDB::ConnectionData * KexiProjectData::connectionData  ) 
 

Definition at line 109 of file kexiprojectdata.cpp.

Referenced by KexiMigration::KexiMigrate::checkIfDestinationDatabaseOverwritingNeedsAccepting(), KexiDBConnectionTabWidget::currentProjectData(), KexiMigration::KexiMigrate::isSourceAndDestinationDataSourceTheSame(), KexiDBConnShortcutFile::loadConnectionData(), KexiDBShortcutFile::loadProjectData(), KexiMainWindowImpl::openProject(), KexiMigration::KexiMigrate::performImport(), KexiDBConnectionWidget::setDataInternal(), KexiMainWindowImpl::slotProjectNew(), and KexiMainWindowImpl::slotToolsCompactDatabase().

const KexiDB::ConnectionData * KexiProjectData::constConnectionData  )  const
 

Definition at line 114 of file kexiprojectdata.cpp.

Referenced by infoString(), KexiMainWindowImpl::openProject(), KexiDBShortcutFile::saveProjectData(), KexiDBConnectionTabWidget::setData(), and KexiProjectSelectorWidget::setProjectSet().

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.

References KexiDB::SchemaData::name().

Referenced by KexiMigration::KexiMigrate::checkIfDestinationDatabaseOverwritingNeedsAccepting(), infoString(), KexiMigration::KexiMigrate::isSourceAndDestinationDataSourceTheSame(), KexiMainWindowImpl::openProject(), KexiMigration::KexiMigrate::performImport(), KexiDBShortcutFile::saveProjectData(), KexiDBConnectionWidget::setDataInternal(), KexiMainWindowImpl::slotProjectNew(), and KexiMainWindowImpl::slotToolsCompactDatabase().

QString KexiProjectData::description  )  const
 

Reimplemented from KexiDB::SchemaData.

Definition at line 144 of file kexiprojectdata.cpp.

References KexiDB::SchemaData::description().

Referenced by KexiDBShortcutFile::saveProjectData(), and KexiDBConnectionTabWidget::setData().

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.

References constConnectionData(), and databaseName().

Referenced by KexiMainWindowImpl::openProject().

bool KexiProjectData::isReadOnly  )  const
 

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

Definition at line 172 of file kexiprojectdata.cpp.

QDateTime KexiProjectData::lastOpened  )  const
 

Definition at line 134 of file kexiprojectdata.cpp.

KexiProjectData & KexiProjectData::operator= const KexiProjectData pdata  ) 
 

Definition at line 95 of file kexiprojectdata.cpp.

References d.

void KexiProjectData::setDatabaseName const QString dbName  ) 
 

Definition at line 124 of file kexiprojectdata.cpp.

References KexiDB::SchemaData::setName().

Referenced by KexiDBConnectionTabWidget::currentProjectData(), KexiProjectData(), and KexiDBShortcutFile::loadProjectData().

void KexiProjectData::setDescription const QString desc  ) 
 

Reimplemented from KexiDB::SchemaData.

Definition at line 149 of file kexiprojectdata.cpp.

References KexiDB::SchemaData::setDescription().

Referenced by KexiDBConnectionTabWidget::currentProjectData(), and KexiDBShortcutFile::loadProjectData().

void KexiProjectData::setLastOpened const QDateTime &  lastOpened  ) 
 

Definition at line 139 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.

Referenced by KexiStartupHandler::init().

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.

Referenced by KexiMainWindowImpl::KexiMainWindowImpl().


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.

Referenced by KexiProjectData().

uint KexiProjectData::formatVersion
 

Definition at line 102 of file kexiprojectdata.h.

Referenced by KexiDBShortcutFile::loadProjectData(), and KexiDBShortcutFile::saveProjectData().


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