#include <kexiprojectdata.h>
Public Types | |
| typedef TQPtrList< KexiProjectData > | List |
| typedef TQMap< TQCString, TQString > | ObjectInfo |
Public Member Functions | |
| KexiProjectData (const KexiDB::ConnectionData &cdata, const TQString &dbname=TQString(), const TQString &caption=TQString()) | |
| KexiProjectData (const KexiProjectData &pdata) | |
| KexiProjectData & | operator= (const KexiProjectData &pdata) |
| bool | userMode () const |
| KexiDB::ConnectionData * | connectionData () |
| const KexiDB::ConnectionData * | constConnectionData () const |
| TQString | databaseName () const |
| void | setDatabaseName (const TQString &dbName) |
| TQString | infoString (bool nobr=true) const |
| TQDateTime | lastOpened () const |
| void | setLastOpened (const TQDateTime &lastOpened) |
| TQString | description () const |
| void | setDescription (const TQString &desc) |
| void | setReadOnly (bool set) |
| bool | isReadOnly () const |
Public Member Functions inherited from KexiDB::SchemaData | |
| SchemaData (int obj_type=KexiDB::UnknownObjectType) | |
| int | type () const |
| int | id () const |
| TQString | name () const |
| TQString | objectName () const |
| void | setName (const TQString &n) |
| TQString | caption () const |
| void | setCaption (const TQString &c) |
| TQString | description () const |
| void | setDescription (const TQString &desc) |
| virtual TQString | schemaDataDebugString () const |
| virtual bool | isNative () const |
| virtual void | setNative (bool set) |
Public Attributes | |
| TQValueList< ObjectInfo > | autoopenObjects |
| uint | formatVersion |
Additional Inherited Members | |
Protected Member Functions inherited from KexiDB::SchemaData | |
| void | clear () |
Protected Attributes inherited from KexiDB::SchemaData | |
| int | m_type |
| int | m_id |
| TQString | m_name |
| TQString | m_caption |
| TQString | m_desc |
| bool | m_native: 1 |
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.
Member Typedef Documentation
◆ List
| typedef TQPtrList<KexiProjectData> KexiProjectData::List |
Definition at line 42 of file kexiprojectdata.h.
◆ ObjectInfo
| typedef TQMap<TQCString,TQString> KexiProjectData::ObjectInfo |
Definition at line 43 of file kexiprojectdata.h.
Constructor & Destructor Documentation
◆ KexiProjectData() [1/3]
| KexiProjectData::KexiProjectData | ( | ) |
Definition at line 58 of file kexiprojectdata.cpp.
◆ KexiProjectData() [2/3]
| KexiProjectData::KexiProjectData | ( | const KexiDB::ConnectionData & | cdata, |
| const TQString & | dbname = TQString(), |
||
| const TQString & | caption = TQString() |
||
| ) |
Definition at line 66 of file kexiprojectdata.cpp.
◆ KexiProjectData() [3/3]
| KexiProjectData::KexiProjectData | ( | const KexiProjectData & | pdata | ) |
Constructs a copy of pdata
Definition at line 78 of file kexiprojectdata.cpp.
◆ ~KexiProjectData()
| KexiProjectData::~KexiProjectData | ( | ) |
Definition at line 90 of file kexiprojectdata.cpp.
Member Function Documentation
◆ connectionData()
| KexiDB::ConnectionData * KexiProjectData::connectionData | ( | ) |
Definition at line 109 of file kexiprojectdata.cpp.
◆ constConnectionData()
| const KexiDB::ConnectionData * KexiProjectData::constConnectionData | ( | ) | const |
Definition at line 114 of file kexiprojectdata.cpp.
◆ databaseName()
| TQString KexiProjectData::databaseName | ( | ) | const |
- Returns
- database name. In fact, this is the same as KexiDB::SchemaData::name()
Definition at line 119 of file kexiprojectdata.cpp.
◆ description()
| TQString KexiProjectData::description | ( | ) | const |
Definition at line 144 of file kexiprojectdata.cpp.
◆ infoString()
| TQString 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.
◆ isReadOnly()
| bool KexiProjectData::isReadOnly | ( | ) | const |
- Returns
- readonly flag. False by default.
- See also
- setReadOnly()
Definition at line 172 of file kexiprojectdata.cpp.
◆ lastOpened()
| TQDateTime KexiProjectData::lastOpened | ( | ) | const |
Definition at line 134 of file kexiprojectdata.cpp.
◆ operator=()
| KexiProjectData & KexiProjectData::operator= | ( | const KexiProjectData & | pdata | ) |
Definition at line 95 of file kexiprojectdata.cpp.
◆ setDatabaseName()
| void KexiProjectData::setDatabaseName | ( | const TQString & | dbName | ) |
Definition at line 124 of file kexiprojectdata.cpp.
◆ setDescription()
| void KexiProjectData::setDescription | ( | const TQString & | desc | ) |
Definition at line 149 of file kexiprojectdata.cpp.
◆ setLastOpened()
| void KexiProjectData::setLastOpened | ( | const TQDateTime & | lastOpened | ) |
Definition at line 139 of file kexiprojectdata.cpp.
◆ setReadOnly()
| 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.
◆ userMode()
| 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.
Member Data Documentation
◆ autoopenObjects
| TQValueList<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.
◆ formatVersion
| uint KexiProjectData::formatVersion |
Definition at line 102 of file kexiprojectdata.h.
The documentation for this class was generated from the following files:

Public Member Functions inherited from