#include <hk_drivermanager.h>
Inheritance diagram for hk_drivermanager:


Public Member Functions | |
| hk_drivermanager (void) | |
| hk_drivermanager (bool runtime) | |
| hk_connection * | new_connection (const hk_string &drivername="", enum_interaction i=interactive) |
| hk_connection * | find_existing_connection (const hk_string &drivername, const hk_string &host, unsigned int tcp_port, const hk_string &user) |
| hk_database * | open_connectionfile (const hk_url &connectionfile) |
Static Public Member Functions | |
| static vector< hk_string > * | driverlist (void) |
| static void | set_path (const hk_string &path) |
| static hk_string | path (void) |
| static void | set_driverselectdialog (requestdialogtype *dialog) |
| static hk_string | show_driverselectdialog (void) |
Friends | |
| class | hk_connection |
| hk_drivermanager::hk_drivermanager | ( | void | ) |
| runtime | if true the user has no possibility to change table and form structures or query statements |
| hk_connection * hk_drivermanager::new_connection | ( | const hk_string & | drivername = "", |
|
| enum_interaction | i = interactive | |||
| ) |
with this method you can create a new connection to a database. If no driver is set a dialog appears which asks for the driver. You can set a GUI dependend driverdialog with set_driverselectdialog.
| drivername | name of the wished database driver (i.e. mysql) | |
| i | if i is set to 'interactive' warningmessages and dialog boxes will be shown |
| hk_connection * hk_drivermanager::find_existing_connection | ( | const hk_string & | drivername, | |
| const hk_string & | host, | |||
| unsigned int | tcp_port, | |||
| const hk_string & | user | |||
| ) |
If an already created connection exists, it will be returned otherwise NULL
| void hk_drivermanager::set_path | ( | const hk_string & | path | ) | [static] |
Path to the directory where the database drivers are stored.(default: /usr/lib/hk_classes/drivers)
| void hk_drivermanager::set_driverselectdialog | ( | requestdialogtype * | dialog | ) | [static] |
you can write your own GUI dependend function to show a driver select dialog by defining a function of requestdialogtype
1.5.0