diff options
Diffstat (limited to 'connectivity/source/inc/odbc/ODriver.hxx')
-rw-r--r-- | connectivity/source/inc/odbc/ODriver.hxx | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/connectivity/source/inc/odbc/ODriver.hxx b/connectivity/source/inc/odbc/ODriver.hxx index 721f46338022..bb6a4052ddae 100644 --- a/connectivity/source/inc/odbc/ODriver.hxx +++ b/connectivity/source/inc/odbc/ODriver.hxx @@ -32,48 +32,48 @@ #include <unotools/weakref.hxx> namespace connectivity::odbc - { - class OConnection; +{ + class OConnection; - typedef ::cppu::WeakComponentImplHelper< css::sdbc::XDriver, css::lang::XServiceInfo > ODriver_BASE; + typedef ::cppu::WeakComponentImplHelper< css::sdbc::XDriver, css::lang::XServiceInfo > ODriver_BASE; - class OOO_DLLPUBLIC_ODBCBASE SAL_NO_VTABLE ODBCDriver : public ODriver_BASE - { - protected: - ::osl::Mutex m_aMutex; + class OOO_DLLPUBLIC_ODBCBASE SAL_NO_VTABLE ODBCDriver : public ODriver_BASE + { + protected: + ::osl::Mutex m_aMutex; - std::vector<unotools::WeakReference<OConnection>> - m_xConnections; // vector containing a list - // of all the Connection objects - // for this Driver + std::vector<unotools::WeakReference<OConnection>> + m_xConnections; // vector containing a list + // of all the Connection objects + // for this Driver - css::uno::Reference< css::uno::XComponentContext > m_xContext; + css::uno::Reference< css::uno::XComponentContext > m_xContext; - virtual SQLHANDLE EnvironmentHandle() = 0; + virtual SQLHANDLE EnvironmentHandle() = 0; - public: + public: - ODBCDriver(css::uno::Reference< css::uno::XComponentContext > xContext); + ODBCDriver(css::uno::Reference< css::uno::XComponentContext > xContext); - // only possibility to get the odbc functions - virtual const Functions& functions() const = 0; - // OComponentHelper - virtual void SAL_CALL disposing() override; + // only possibility to get the odbc functions + virtual const Functions& functions() const = 0; + // OComponentHelper + virtual void SAL_CALL disposing() override; - // XServiceInfo - virtual OUString SAL_CALL getImplementationName( ) override; - virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override; - virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override; + // XServiceInfo + virtual OUString SAL_CALL getImplementationName( ) override; + virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override; + virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override; - // XDriver - virtual css::uno::Reference< css::sdbc::XConnection > SAL_CALL connect( const OUString& url, const css::uno::Sequence< css::beans::PropertyValue >& info ) override; - virtual sal_Bool SAL_CALL acceptsURL( const OUString& url ) override; - virtual css::uno::Sequence< css::sdbc::DriverPropertyInfo > SAL_CALL getPropertyInfo( const OUString& url, const css::uno::Sequence< css::beans::PropertyValue >& info ) override; - virtual sal_Int32 SAL_CALL getMajorVersion( ) override; - virtual sal_Int32 SAL_CALL getMinorVersion( ) override; + // XDriver + virtual css::uno::Reference< css::sdbc::XConnection > SAL_CALL connect( const OUString& url, const css::uno::Sequence< css::beans::PropertyValue >& info ) override; + virtual sal_Bool SAL_CALL acceptsURL( const OUString& url ) override; + virtual css::uno::Sequence< css::sdbc::DriverPropertyInfo > SAL_CALL getPropertyInfo( const OUString& url, const css::uno::Sequence< css::beans::PropertyValue >& info ) override; + virtual sal_Int32 SAL_CALL getMajorVersion( ) override; + virtual sal_Int32 SAL_CALL getMinorVersion( ) override; - const css::uno::Reference< css::uno::XComponentContext >& getContext() const { return m_xContext; } - }; + const css::uno::Reference< css::uno::XComponentContext >& getContext() const { return m_xContext; } + }; } |