summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/kab/KConnection.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/drivers/kab/KConnection.hxx')
-rw-r--r--connectivity/source/drivers/kab/KConnection.hxx20
1 files changed, 13 insertions, 7 deletions
diff --git a/connectivity/source/drivers/kab/KConnection.hxx b/connectivity/source/drivers/kab/KConnection.hxx
index 848dce45ba6f..aeb6b3f02795 100644
--- a/connectivity/source/drivers/kab/KConnection.hxx
+++ b/connectivity/source/drivers/kab/KConnection.hxx
@@ -37,6 +37,9 @@ namespace KABC
class StdAddressBook;
class AddressBook;
}
+namespace com { namespace sun { namespace star { namespace sdbc {
+ class XDriver;
+} } } }
namespace connectivity
{
@@ -48,8 +51,6 @@ namespace connectivity
::com::sun::star::lang::XServiceInfo
> OMetaConnection_BASE;
- class KabDriver;
-
typedef OMetaConnection_BASE KabConnection_BASE; // implements basics and text encoding
typedef std::vector< ::com::sun::star::uno::WeakReferenceHelper > OWeakRefArray;
@@ -69,14 +70,17 @@ namespace connectivity
// for this Connection
::KABC::StdAddressBook* m_pAddressBook; // the address book
- KabDriver* m_pDriver; // pointer to the owning driver object
+ css::uno::Reference<css::uno::XComponentContext> m_xComponentContext;
::com::sun::star::uno::Reference< ::com::sun::star::sdbcx::XTablesSupplier>
m_xCatalog; // needed for the SQL interpreter
public:
- virtual void construct( const OUString& url,const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& info) throw(::com::sun::star::sdbc::SQLException);
+ void construct();
- KabConnection(KabDriver* _pDriver);
+ KabConnection(
+ css::uno::Reference<css::uno::XComponentContext> const &
+ componentContext,
+ css::uno::Reference<css::sdbc::XDriver> const & driver);
virtual ~KabConnection();
void closeAllStatements () throw( ::com::sun::star::sdbc::SQLException);
@@ -120,8 +124,10 @@ namespace connectivity
// needed for the SQL interpreter
::com::sun::star::uno::Reference< ::com::sun::star::sdbcx::XTablesSupplier > SAL_CALL createCatalog();
- // accessors
- inline KabDriver* getDriver() const { return m_pDriver;}
+ css::uno::Reference<css::uno::XComponentContext>
+ getComponentContext() const
+ { return m_xComponentContext; }
+
::KABC::AddressBook* getAddressBook() const;
};
}