summaryrefslogtreecommitdiff
path: root/connectivity/source/inc/ado/ADriver.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/inc/ado/ADriver.hxx')
-rw-r--r--connectivity/source/inc/ado/ADriver.hxx17
1 files changed, 5 insertions, 12 deletions
diff --git a/connectivity/source/inc/ado/ADriver.hxx b/connectivity/source/inc/ado/ADriver.hxx
index c7bc558fb4d3..a428ed1636ca 100644
--- a/connectivity/source/inc/ado/ADriver.hxx
+++ b/connectivity/source/inc/ado/ADriver.hxx
@@ -26,13 +26,10 @@
#include <cppuhelper/compbase.hxx>
#include <connectivity/CommonTools.hxx>
-namespace com::sun::star::lang { class XMultiServiceFactory; }
+namespace com::sun::star::uno { class XComponentContext; }
namespace connectivity::ado
{
- /// @throws css::uno::Exception
- css::uno::Reference< css::uno::XInterface > ODriver_CreateInstance(const css::uno::Reference< css::lang::XMultiServiceFactory >& _rxFactory);
-
typedef ::cppu::WeakComponentImplHelper< css::sdbc::XDriver,
css::sdbcx::XDataDefinitionSupplier,
css::lang::XServiceInfo
@@ -44,23 +41,19 @@ namespace connectivity::ado
connectivity::OWeakRefArray m_xConnections; // vector containing a list
// of all the Connection objects
// for this Driver
- css::uno::Reference< css::lang::XMultiServiceFactory > m_xORB;
+ css::uno::Reference< css::uno::XComponentContext > m_xContext;
// to put back all the inits with COINIT_MULTITHREADED if needed
int mnNbCallCoInitializeExForReinit;
public:
- ODriver(const css::uno::Reference< css::lang::XMultiServiceFactory >& _xORB);
+ ODriver(const css::uno::Reference< css::uno::XComponentContext >& xContext);
~ODriver() override;
// OComponentHelper
virtual void SAL_CALL disposing() override;
- // XInterface
- /// @throws css::uno::RuntimeException
- static OUString getImplementationName_Static( );
- /// @throws css::uno::RuntimeException
- static css::uno::Sequence< OUString > getSupportedServiceNames_Static( );
- css::uno::Reference< css::lang::XMultiServiceFactory > getORB() const { return m_xORB; }
+
+ css::uno::Reference< css::uno::XComponentContext > getContext() const { return m_xContext; }
private:
void impl_checkURL_throw(const OUString& _sUrl);