cid#1607171 Data race condition
[LibreOffice.git] / dbaccess / source / core / dataaccess / commandcontainer.hxx
blob3ea36f64808b4d34437f3b3d156508081e53cac6
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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #pragma once
22 #include <definitioncontainer.hxx>
24 #include <com/sun/star/lang/XSingleServiceFactory.hpp>
26 #include <cppuhelper/implbase1.hxx>
28 namespace dbaccess
30 // OCommandContainer
32 typedef ::cppu::ImplHelper1 < css::lang::XSingleServiceFactory
33 > OCommandContainer_BASE;
35 class OCommandContainer : public ODefinitionContainer
36 ,public OCommandContainer_BASE
38 bool m_bTables;
40 public:
41 /** constructs the container.<BR>
43 OCommandContainer(
44 const css::uno::Reference< css::uno::XComponentContext >& _xORB
45 ,const css::uno::Reference< css::uno::XInterface >& _xParentContainer
46 ,const TContentPtr& _pImpl
47 ,bool _bTables
50 DECLARE_XINTERFACE( )
52 virtual css::uno::Sequence<css::uno::Type> SAL_CALL getTypes() override;
53 virtual css::uno::Sequence<sal_Int8> SAL_CALL getImplementationId() override;
55 // XSingleServiceFactory
56 virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstance( ) override;
57 virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceWithArguments( const css::uno::Sequence< css::uno::Any >& aArguments ) override;
59 protected:
60 virtual ~OCommandContainer() override;
62 // ODefinitionContainer
63 virtual css::uno::Reference< css::ucb::XContent > createObject(const OUString& _rName) override;
65 protected:
66 // OContentHelper overridables
67 virtual OUString determineContentType() const override;
70 } // namespace dbaccess
72 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */