kexi
KexiDBShortcutFile Class Reference
#include <kexidbshortcutfile.h>
Inheritance diagram for KexiDBShortcutFile:

Detailed Description
Loads and saves information for a "shortcut to a connection" file containing connection information with database name (i.e. ProjectData). This is implementation for handling .KEXIS files. See http://www.kexi-project.org/wiki/wikiview/index.php?KexiMimeTypes_DataSaving_Loading
Definition at line 33 of file kexidbshortcutfile.h.
Public Member Functions | |
KexiDBShortcutFile (const QString &fileName) | |
~KexiDBShortcutFile () | |
bool | loadProjectData (KexiProjectData &data, QString *groupKey=0) |
bool | saveProjectData (const KexiProjectData &data, bool savePassword, QString *groupKey=0, bool overwriteFirstGroup=true) |
QString | fileName () const |
Protected Attributes | |
Private * | d |
Constructor & Destructor Documentation
KexiDBShortcutFile::KexiDBShortcutFile | ( | const QString & | fileName | ) |
Creates a new object for fileName.
Definition at line 52 of file kexidbshortcutfile.cpp.
Member Function Documentation
QString KexiDBShortcutFile::fileName | ( | ) | const |
- Returns:
- filename provided on this object's construction. */
Reimplemented in KexiDBConnShortcutFile.
Definition at line 250 of file kexidbshortcutfile.cpp.
bool KexiDBShortcutFile::loadProjectData | ( | KexiProjectData & | data, | |
QString * | groupKey = 0 | |||
) |
Loads project data (with connection data) into data. Database name and caption can be set there but these are optional. groupKey, if provided will be set to a group key, so you can later use it in saveConnectionData().
- Returns:
- true on success.
Definition at line 63 of file kexidbshortcutfile.cpp.
bool KexiDBShortcutFile::saveProjectData | ( | const KexiProjectData & | data, | |
bool | savePassword, | |||
QString * | groupKey = 0 , |
|||
bool | overwriteFirstGroup = true | |||
) |
Saves project data data (with connection data) to a shortcut file. If storePassword is true, password will be saved in the file, even if data.connectionData()->savePassword is false. Existing data is merged with new data. groupKey is reused, if specified. If overwriteFirstGroup is true (the default) first found group will be overwritten instead of creating of a new unique group. This mode is usable for updating .kexic files containing single connection data, what's used for storing connections repository.
- Returns:
- true on success.
Definition at line 158 of file kexidbshortcutfile.cpp.
The documentation for this class was generated from the following files: