#include <kexidbshortcutfile.h>
Public Member Functions | |
| KexiDBShortcutFile (const TQString &fileName) | |
| bool | loadProjectData (KexiProjectData &data, TQString *groupKey=0) |
| bool | saveProjectData (const KexiProjectData &data, bool savePassword, TQString *groupKey=0, bool overwriteFirstGroup=true) |
| TQString | fileName () const |
Protected Attributes | |
| Private * | d |
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.
Constructor & Destructor Documentation
◆ KexiDBShortcutFile()
| KexiDBShortcutFile::KexiDBShortcutFile | ( | const TQString & | fileName | ) |
Creates a new object for fileName.
Definition at line 52 of file kexidbshortcutfile.cpp.
◆ ~KexiDBShortcutFile()
| KexiDBShortcutFile::~KexiDBShortcutFile | ( | ) |
Definition at line 58 of file kexidbshortcutfile.cpp.
Member Function Documentation
◆ fileName()
| TQString KexiDBShortcutFile::fileName | ( | ) | const |
- Returns
- filename provided on this object's construction. */
Definition at line 250 of file kexidbshortcutfile.cpp.
◆ loadProjectData()
| bool KexiDBShortcutFile::loadProjectData | ( | KexiProjectData & | data, |
| TQString * | 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.
◆ saveProjectData()
| bool KexiDBShortcutFile::saveProjectData | ( | const KexiProjectData & | data, |
| bool | savePassword, | ||
| TQString * | 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.
Member Data Documentation
◆ d
|
protected |
Definition at line 64 of file kexidbshortcutfile.h.
The documentation for this class was generated from the following files:
