tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / xmlsecurity / source / gpg / XMLSecurityContext.hxx
blobe3dea731010fadf986d869decb7b2c8176b3f85e
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 #pragma once
12 #include <sal/config.h>
13 #include <rtl/ustring.hxx>
14 #include <cppuhelper/implbase.hxx>
16 #include <com/sun/star/uno/Reference.hxx>
17 #include <com/sun/star/lang/XServiceInfo.hpp>
18 #include <com/sun/star/xml/crypto/XXMLSecurityContext.hpp>
20 #include <vector>
22 namespace com::sun::star::xml::crypto { class XSecurityEnvironment; }
24 class XMLSecurityContextGpg : public cppu::WeakImplHelper< css::xml::crypto::XXMLSecurityContext,
25 css::lang::XServiceInfo>
27 private:
28 std::vector< css::uno::Reference< css::xml::crypto::XSecurityEnvironment > > m_vSecurityEnvironments;
30 sal_Int32 m_nDefaultEnvIndex;
32 public:
33 XMLSecurityContextGpg();
34 virtual ~XMLSecurityContextGpg() override;
36 // XXMLSecurityContext
37 virtual sal_Int32 SAL_CALL addSecurityEnvironment(
38 const css::uno::Reference< css::xml::crypto::XSecurityEnvironment >& aSecurityEnvironment) override;
40 virtual ::sal_Int32 SAL_CALL getSecurityEnvironmentNumber() override;
42 virtual css::uno::Reference<css::xml::crypto::XSecurityEnvironment > SAL_CALL getSecurityEnvironmentByIndex(sal_Int32 index) override;
44 virtual css::uno::Reference<css::xml::crypto::XSecurityEnvironment > SAL_CALL getSecurityEnvironment() override;
46 virtual sal_Int32 SAL_CALL getDefaultSecurityEnvironmentIndex() override;
48 virtual void SAL_CALL setDefaultSecurityEnvironmentIndex( sal_Int32 nDefaultEnvIndex ) override;
50 // XServiceInfo
51 virtual OUString SAL_CALL getImplementationName() override ;
53 virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override ;
55 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override ;
56 } ;
58 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */