22#include <com/sun/star/uno/XComponentContext.hpp>
23#include <com/sun/star/sdbc/XConnection.hpp>
24#include <com/sun/star/sdbc/XDataSource.hpp>
28 class SQLExceptionInfo;
39 css::uno::Reference< css::uno::XComponentContext >
45 const css::uno::Reference< css::uno::XComponentContext >& _rxContext,
49 const css::uno::Reference< css::uno::XComponentContext >& _rxContext,
51 OUString _sContextInformation
59 css::uno::Reference< css::sdbc::XConnection >
61 const OUString& _rDataSourceName,
67 css::uno::Reference< css::sdbc::XConnection >
69 const css::uno::Reference< css::sdbc::XDataSource>& _xDataSource,
weld::Window * m_pErrorMessageParent
css::uno::Reference< css::sdbc::XConnection > connect(const css::uno::Reference< css::sdbc::XDataSource > &_xDataSource, ::dbtools::SQLExceptionInfo *_pErrorInfo) const
creates a connection to the data source, displays the possible error to the user, or returns it
bool isValid() const
returns <TRUE> if the object is able to create data source connections
ODatasourceConnector(const css::uno::Reference< css::uno::XComponentContext > &_rxContext, weld::Window *_pMessageParent, OUString _sContextInformation)
ODatasourceConnector(const css::uno::Reference< css::uno::XComponentContext > &_rxContext, weld::Window *_pMessageParent)
OUString m_sContextInformation
css::uno::Reference< css::uno::XComponentContext > m_xContext
css::uno::Reference< css::sdbc::XConnection > connect(const OUString &_rDataSourceName, ::dbtools::SQLExceptionInfo *_pErrorInfo) const
creates a connection to the data source, displays the possible error to the user, or returns it