LibreOffice Module dbaccess (master) 1
|
#include <odbcconfig.hxx>
Public Member Functions | |
OOdbcEnumeration () | |
~OOdbcEnumeration () | |
bool | isLoaded () const |
const OUString & | getLibraryName () const |
void | getDatasourceNames (std::set< OUString > &_rNames) |
Private Member Functions | |
oslGenericFunction | loadSymbol (const char *_pFunctionName) |
bool | load (const char *_pLibPath) |
load the lib More... | |
void | unload () |
unload the lib More... | |
bool | allocEnv () |
ensure that an ODBC environment is allocated More... | |
void | freeEnv () |
free any allocated ODBC environment More... | |
Private Attributes | |
oslModule | m_pOdbcLib |
OUString | m_sLibPath |
oslGenericFunction | m_pAllocHandle |
oslGenericFunction | m_pFreeHandle |
oslGenericFunction | m_pSetEnvAttr |
oslGenericFunction | m_pDataSources |
std::unique_ptr< OdbcTypesImpl > | m_pImpl |
Definition at line 42 of file odbcconfig.hxx.
dbaui::OOdbcEnumeration::OOdbcEnumeration | ( | ) |
Definition at line 107 of file odbcconfig.cxx.
References load(), loadSymbol(), m_pAllocHandle, m_pDataSources, m_pFreeHandle, m_pImpl, m_pSetEnvAttr, ODBC_LIBRARY, ODBC_LIBRARY_1, ODBC_LIBRARY_PLAIN, and unload().
dbaui::OOdbcEnumeration::~OOdbcEnumeration | ( | ) |
Definition at line 146 of file odbcconfig.cxx.
|
private |
ensure that an ODBC environment is allocated
Definition at line 153 of file odbcconfig.cxx.
References isLoaded(), m_pAllocHandle, m_pImpl, m_pSetEnvAttr, and sal_False.
Referenced by getDatasourceNames().
|
private |
free any allocated ODBC environment
Definition at line 175 of file odbcconfig.cxx.
References m_pFreeHandle, and m_pImpl.
Referenced by ~OOdbcEnumeration().
void dbaui::OOdbcEnumeration::getDatasourceNames | ( | std::set< OUString > & | _rNames | ) |
Definition at line 184 of file odbcconfig.cxx.
References allocEnv(), isLoaded(), m_pDataSources, and m_pImpl.
Referenced by dbaui::OGenericAdministrationPage::getSelectedDataSource().
|
inline |
Definition at line 68 of file odbcconfig.hxx.
References m_sLibPath.
Referenced by dbaui::OGenericAdministrationPage::getSelectedDataSource().
|
inline |
Definition at line 64 of file odbcconfig.hxx.
References m_pOdbcLib.
Referenced by allocEnv(), getDatasourceNames(), dbaui::OGenericAdministrationPage::getSelectedDataSource(), and unload().
|
private |
load the lib
Definition at line 68 of file odbcconfig.cxx.
References m_pOdbcLib, m_sLibPath, and sal_False.
Referenced by OOdbcEnumeration().
|
private |
Definition at line 91 of file odbcconfig.cxx.
References m_pOdbcLib, and pData.
Referenced by OOdbcEnumeration().
|
private |
unload the lib
Definition at line 80 of file odbcconfig.cxx.
References isLoaded(), and m_pOdbcLib.
Referenced by OOdbcEnumeration(), and ~OOdbcEnumeration().
|
private |
Definition at line 49 of file odbcconfig.hxx.
Referenced by allocEnv(), and OOdbcEnumeration().
|
private |
Definition at line 52 of file odbcconfig.hxx.
Referenced by getDatasourceNames(), and OOdbcEnumeration().
|
private |
Definition at line 50 of file odbcconfig.hxx.
Referenced by freeEnv(), and OOdbcEnumeration().
|
private |
Definition at line 55 of file odbcconfig.hxx.
Referenced by allocEnv(), freeEnv(), and getDatasourceNames().
|
private |
Definition at line 44 of file odbcconfig.hxx.
Referenced by isLoaded(), load(), loadSymbol(), and unload().
|
private |
Definition at line 51 of file odbcconfig.hxx.
Referenced by allocEnv(), and OOdbcEnumeration().
|
private |
Definition at line 45 of file odbcconfig.hxx.
Referenced by getLibraryName(), and load().