Base for dialogs to login to database server. More...
#include <mgui/dlglogindb.h>

Public Member Functions | |
| DLG_LOGIN_DB () | |
| virtual | ~DLG_LOGIN_DB () |
| void | GetConnectionString (MISTRING &mistr) |
Protected Member Functions | |
| void | GetConnectionStringLow (MISTRING &mistr, bool bForGettingDatabaseList) |
| bool | GetUseWindowsLogin () const |
Private Member Functions | |
| virtual bool | v_CanUseWindowsLogin () const |
| virtual void | v_GetConnectionString (MISTRING &ConnectionString, bool bForGettingDatabaseList, const MISTRING &Host, const MISTRING &User, const MISTRING &Password, const MISTRING &Database, const MISTRING &Schema, INT32 port)=0 |
| virtual ERRVALUE | v_GetDatabaseList (MISTRINGLIST &List) |
| virtual const char * | v_GetDefaultDatabaseName () const |
| virtual INT32 | v_GetDefaultPort () const |
| virtual const char * | v_GetDefaultSchemaName () const |
| virtual const char * | v_GetINIGroup () const =0 |
| virtual ERRVALUE | v_GetSchemaList (MISTRINGLIST &List) |
| virtual bool | v_NeedServiceName () const |
| virtual void | v_SaveDefaults () |
| virtual bool | v_ShowSchemaSelection () const |
Base for dialogs to login to database server.
| MGUI::DLG_LOGIN_DB::DLG_LOGIN_DB | ( | ) |
| virtual MGUI::DLG_LOGIN_DB::~DLG_LOGIN_DB | ( | ) | [virtual] |
| void MGUI::DLG_LOGIN_DB::GetConnectionString | ( | MISTRING & | mistr | ) |
| void MGUI::DLG_LOGIN_DB::GetConnectionStringLow | ( | MISTRING & | mistr, | |
| bool | bForGettingDatabaseList | |||
| ) | [protected] |
| bool MGUI::DLG_LOGIN_DB::GetUseWindowsLogin | ( | ) | const [inline, protected] |
| virtual bool MGUI::DLG_LOGIN_DB::v_CanUseWindowsLogin | ( | ) | const [private, virtual] |
Return true to have the "Use Windows Login" toggle.
Default implementation returns false.
| virtual void MGUI::DLG_LOGIN_DB::v_GetConnectionString | ( | MISTRING & | ConnectionString, | |
| bool | bForGettingDatabaseList, | |||
| const MISTRING & | Host, | |||
| const MISTRING & | User, | |||
| const MISTRING & | Password, | |||
| const MISTRING & | Database, | |||
| const MISTRING & | Schema, | |||
| INT32 | port | |||
| ) | [private, pure virtual] |
Return the connection string given the current settings.
if bForGettingDatabaseList is true, the connection string should be whatever you'll need in v_GetDatabaseList.
| virtual ERRVALUE MGUI::DLG_LOGIN_DB::v_GetDatabaseList | ( | MISTRINGLIST & | List | ) | [private, virtual] |
Given the current settings, get the list of available databases.
Default implementation will work in most cases.
| virtual const char* MGUI::DLG_LOGIN_DB::v_GetDefaultDatabaseName | ( | ) | const [private, virtual] |
Get the default database name.
This is the database name to use when connecting to query for the list of databases. The default is ""
| virtual INT32 MGUI::DLG_LOGIN_DB::v_GetDefaultPort | ( | ) | const [private, virtual] |
Get the default port number for this database type.
Return -1 if it is not user-settable.
| virtual const char* MGUI::DLG_LOGIN_DB::v_GetDefaultSchemaName | ( | ) | const [private, virtual] |
Get the default schema name.
This should be the default schema if none is set in ini
| virtual const char* MGUI::DLG_LOGIN_DB::v_GetINIGroup | ( | ) | const [private, pure virtual] |
Return the group used to store last used settings in ini file.
The default is the same as the family.
| virtual ERRVALUE MGUI::DLG_LOGIN_DB::v_GetSchemaList | ( | MISTRINGLIST & | List | ) | [private, virtual] |
Given the current settings, get the list of available schemas.
| virtual bool MGUI::DLG_LOGIN_DB::v_NeedServiceName | ( | ) | const [private, virtual] |
| virtual void MGUI::DLG_LOGIN_DB::v_SaveDefaults | ( | ) | [private, virtual] |
Save format-specific properties in the ini file.
| virtual bool MGUI::DLG_LOGIN_DB::v_ShowSchemaSelection | ( | ) | const [private, virtual] |
Return true if the user should be able to select a default schema.
Default implementation returns false.
1.6.1