/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #ifndef INCLUDED_DESKTOP_SOURCE_OFFACC_ACCEPTOR_HXX #define INCLUDED_DESKTOP_SOURCE_OFFACC_ACCEPTOR_HXX #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } } namespace desktop { class Acceptor : public ::cppu::WeakImplHelper { private: osl::Mutex m_aMutex; oslThread m_thread; comphelper::WeakBag< css::bridge::XBridge > m_bridges; ::osl::Condition m_cEnable; css::uno::Reference< css::uno::XComponentContext > m_rContext; css::uno::Reference< css::connection::XAcceptor > m_rAcceptor; css::uno::Reference< css::bridge::XBridgeFactory2 > m_rBridgeFactory; OUString m_aAcceptString; OUString m_aConnectString; OUString m_aProtocol; bool m_bInit; bool m_bDying; public: explicit Acceptor( const css::uno::Reference< css::uno::XComponentContext >& rxContext ); virtual ~Acceptor() override; void run(); // XService info static OUString impl_getImplementationName(); virtual OUString SAL_CALL getImplementationName() override; static css::uno::Sequence impl_getSupportedServiceNames(); virtual css::uno::Sequence SAL_CALL getSupportedServiceNames() override; virtual sal_Bool SAL_CALL supportsService( const OUString& aName ) override; // XInitialize virtual void SAL_CALL initialize( const css::uno::Sequence& aArguments ) override; static css::uno::Reference impl_getInstance( const css::uno::Reference< css::lang::XMultiServiceFactory >& aFactory ); }; class AccInstanceProvider : public ::cppu::WeakImplHelper { private: css::uno::Reference m_rContext; css::uno::Reference m_rConnection; public: AccInstanceProvider(const css::uno::Reference< css::uno::XComponentContext >& rxContext, const css::uno::Reference< css::connection::XConnection >& rConnection); virtual ~AccInstanceProvider() override; // XInstanceProvider virtual css::uno::Reference SAL_CALL getInstance (const OUString& aName ) override; }; } //namespace desktop #endif // INCLUDED_DESKTOP_SOURCE_OFFACC_ACCEPTOR_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ labora/cp-5.3-desktop'>distro/collabora/cp-5.3-desktop LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2024-05-20loplugin:ostr in variousNoel Grandin
2024-04-30WaE: C6011 Dereferencing NULL pointer warningsCaolán McNamara
2022-06-21registry: remove unnecessary commentsChris Sherlock
2021-01-29loplugin:stringviewparam extend to new..Noel
2019-12-19sal_Char->char in oox..registryNoel Grandin
2019-02-15tdf#42949 Fix IWYU warnings in registry/Gabor Kelemen
2018-08-29replace rtl_allocateMemory with std::mallocNoel Grandin
2017-11-02improve constparam lopluginNoel Grandin
2016-02-23new loplugin: commaoperatorNoel Grandin
2016-02-09Remove excess newlinesChris Sherlock
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann
2015-10-01loplugin:unusedmethodsNoel Grandin
2015-07-16loplugin:simplifyboolStephan Bergmann
2015-07-03No need for a C API hereStephan Bergmann
2015-04-09convert RegError to scoped enumNoel Grandin
2015-04-09convert RegValueType to scoped enumNoel Grandin
2015-04-09remove reg keytype constants and related codeNoel Grandin
2015-03-28Clean up C-style casts from pointers to voidStephan Bergmann
2015-03-19loplugin:constantfunction: registryNoel Grandin
2015-01-28Some more loplugin:cstylecast clean-upStephan Bergmann
2014-11-17sal: clean up public headers with include-what-you-useMichael Stahl
2014-07-07DBG_ASSERT->assert when followed by dereferenceCaolán McNamara
2014-07-01clang scan-build: various warningsCaolán McNamara
2014-02-26Remove visual noise from registryAlexander Wilms
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák
2013-03-19removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings declarationsThomas Arnhold
2013-03-19reduce whitespaces between include and filenameThomas Arnhold
2012-07-03re-base on ALv2 code.Michael Meeks
2012-02-18registry: remove obsolete methodsThomas Arnhold
2012-01-21Removed some unused parameters; added SAL_UNUSED_PARAMETER.Stephan Bergmann
2011-11-27remove include of pch header from registryNorbert Thiebaud
2010-10-14Add vim/emacs modelines to all source filesSebastian Spaeth
2010-03-04mhu22: resync to master repository (DEV300_m73).Matthias Huetsch [mhu]
2010-03-04mhu22: #i105430# #i108349# Fixed registry:ORegKey reference counting to avoid...Matthias Huetsch [mhu]
2010-02-12changefileheader2: #i109125#: change source file copyright notice from Sun Mi...Jens-Heiner Rechtien
2009-02-12CWS-TOOLING: integrate CWS sb103Oliver Bolte
2008-10-10CWS-TOOLING: integrate CWS cmcfixes49Oliver Bolte
2008-04-11INTEGRATION: CWS changefileheader (1.6.42); FILE MERGEDRüdiger Timm