kexi
KexiDBConnShortcutFile Class Reference
#include <kexidbshortcutfile.h>

Detailed Description
Loads and saves information for a "shortcut" file containing connection information (i.e. KexiDB::ConnectionData). This is implementation for handling .KEXIC files. See http://www.kexi-project.org/wiki/wikiview/index.php?KexiMimeTypes_DataSaving_LoadingDefinition at line 72 of file kexidbshortcutfile.h.
Public Member Functions | |
KexiDBConnShortcutFile (const QString &fileName) | |
bool | loadConnectionData (KexiDB::ConnectionData &data, QString *groupKey=0) |
bool | saveConnectionData (const KexiDB::ConnectionData &data, bool savePassword, QString *groupKey=0, bool overwriteFirstGroup=true) |
QString | fileName () const |
Constructor & Destructor Documentation
KexiDBConnShortcutFile::KexiDBConnShortcutFile | ( | const QString & | fileName | ) |
Creates a new object for fileName.
Definition at line 257 of file kexidbshortcutfile.cpp.
Member Function Documentation
bool KexiDBConnShortcutFile::loadConnectionData | ( | KexiDB::ConnectionData & | data, | |
QString * | groupKey = 0 | |||
) |
Loads connection data into data. 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 266 of file kexidbshortcutfile.cpp.
bool KexiDBConnShortcutFile::saveConnectionData | ( | const KexiDB::ConnectionData & | data, | |
bool | savePassword, | |||
QString * | groupKey = 0 , |
|||
bool | overwriteFirstGroup = true | |||
) |
Saves connection data data to a shortcut file. If storePassword is true, password will be saved in the file, even if data.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 275 of file kexidbshortcutfile.cpp.
QString KexiDBConnShortcutFile::fileName | ( | ) | const [inline] |
- Returns:
- filename provided on this object's construction. */
Reimplemented from KexiDBShortcutFile.
Definition at line 98 of file kexidbshortcutfile.h.
The documentation for this class was generated from the following files: