Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
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 : */
9 :
10 : #ifndef CONNECTIVITY_FIREBIRD_USERS_HXX
11 : #define CONNECTIVITY_FIREBIRD_USERS_HXX
12 :
13 : #include "DatabaseMetaData.hxx"
14 :
15 : #include <connectivity/sdbcx/VCollection.hxx>
16 :
17 : namespace connectivity
18 : {
19 : namespace firebird
20 : {
21 :
22 : /**
23 : * This implements com.sun.star.sdbcx.Container.
24 : */
25 0 : class Users: public ::connectivity::sdbcx::OCollection
26 : {
27 : protected:
28 : ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData >
29 : m_xMetaData;
30 :
31 : // OCollection
32 : virtual void impl_refresh()
33 : throw(::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
34 : virtual ::connectivity::sdbcx::ObjectType createObject(
35 : const ::rtl::OUString& rName) SAL_OVERRIDE;
36 : virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >
37 : createDescriptor() SAL_OVERRIDE;
38 : virtual ::connectivity::sdbcx::ObjectType appendObject(
39 : const OUString& rName,
40 : const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& rDescriptor) SAL_OVERRIDE;
41 :
42 : public:
43 : Users(const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData >& rMetaData,
44 : ::cppu::OWeakObject& rParent,
45 : ::osl::Mutex& rMutex,
46 : ::connectivity::TStringVector& rNames);
47 :
48 : // TODO: we should also implement XDataDescriptorFactory, XRefreshable,
49 : // XAppend, etc., but all are optional.
50 :
51 : // XDrop
52 : virtual void dropObject(sal_Int32 nPosition, const ::rtl::OUString& rName) SAL_OVERRIDE;
53 :
54 : };
55 :
56 : } // namespace firebird
57 : } // namespace connectivity
58 :
59 :
60 : #endif // CONNECTIVITY_FIREBIRD_USERS_HXX
61 :
62 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|