update emoji autocorrect entries from po-files
[LibreOffice.git] / connectivity / source / drivers / firebird / Tables.hxx
blobdf66e607a917ef98f12efb52ea55c9fcc0bfa0d2
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #ifndef INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_FIREBIRD_TABLES_HXX
11 #define INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_FIREBIRD_TABLES_HXX
13 #include "DatabaseMetaData.hxx"
15 #include <connectivity/sdbcx/VCollection.hxx>
17 namespace connectivity
19 namespace firebird
22 /**
23 * This implements com.sun.star.sdbcx.Container, which seems to be
24 * also known by the name of Tables and Collection.
26 class Tables: public ::connectivity::sdbcx::OCollection
28 protected:
29 ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData >
30 m_xMetaData;
32 // OCollection
33 virtual void impl_refresh()
34 throw(::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
35 virtual ::connectivity::sdbcx::ObjectType createObject(
36 const ::rtl::OUString& rName) SAL_OVERRIDE;
37 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >
38 createDescriptor() SAL_OVERRIDE;
39 virtual ::connectivity::sdbcx::ObjectType appendObject(
40 const OUString& rName,
41 const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& rDescriptor) SAL_OVERRIDE;
43 public:
44 Tables(const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData >& rMetaData,
45 ::cppu::OWeakObject& rParent,
46 ::osl::Mutex& rMutex,
47 ::connectivity::TStringVector& rNames) : sdbcx::OCollection(rParent, true, rMutex, rNames), m_xMetaData(rMetaData) {}
49 // TODO: we should also implement XDataDescriptorFactory, XRefreshable,
50 // XAppend, etc., but all are optional.
52 // XDrop
53 virtual void dropObject(sal_Int32 nPosition, const ::rtl::OUString& rName) SAL_OVERRIDE;
57 } // namespace firebird
58 } // namespace connectivity
61 #endif // INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_FIREBIRD_TABLES_HXX
63 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */