fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / xmlsecurity / source / framework / decryptorimpl.hxx
blob1a9b110a7fae9c061e0599b5ce39ab8ba5387c06
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 #ifndef _DECRYPTORIMPL_HXX
21 #define _DECRYPTORIMPL_HXX
23 #include <com/sun/star/xml/crypto/sax/XDecryptionResultBroadcaster.hpp>
24 #include <com/sun/star/xml/crypto/sax/XDecryptionResultListener.hpp>
25 #include <com/sun/star/xml/crypto/XXMLSecurityContext.hpp>
26 #include <com/sun/star/lang/XInitialization.hpp>
27 #include <com/sun/star/lang/XServiceInfo.hpp>
28 #include <cppuhelper/implbase3.hxx>
30 #include "encryptionengine.hxx"
32 class DecryptorImpl : public cppu::ImplInheritanceHelper3
34 EncryptionEngine,
35 com::sun::star::xml::crypto::sax::XDecryptionResultBroadcaster,
36 com::sun::star::lang::XInitialization,
37 com::sun::star::lang::XServiceInfo
39 /****** DecryptorImpl.hxx/CLASS DecryptorImpl *********************************
41 * NAME
42 * DecryptorImpl -- decrypts an encryption
44 * FUNCTION
45 * Collects all resources for decrypting an encryption, then decrypts the
46 * encryption by invoking a xmlsec-based encryption bridge component.
48 * AUTHOR
49 * Michael Mi
50 * Email: michael.mi@sun.com
51 ******************************************************************************/
53 private:
54 com::sun::star::uno::Reference<
55 com::sun::star::xml::crypto::XXMLSecurityContext > m_xXMLSecurityContext;
57 virtual void notifyResultListener() const
58 throw (com::sun::star::uno::Exception, com::sun::star::uno::RuntimeException);
59 virtual bool checkReady() const;
60 virtual void startEngine( const com::sun::star::uno::Reference<
61 com::sun::star::xml::crypto::XXMLEncryptionTemplate >&
62 xEncryptionTemplate)
63 throw (com::sun::star::uno::Exception, com::sun::star::uno::RuntimeException);
65 public:
66 explicit DecryptorImpl( const com::sun::star::uno::Reference<
67 com::sun::star::lang::XMultiServiceFactory >& rxMSF);
68 virtual ~DecryptorImpl();
70 /* XDecryptionResultBroadcaster */
71 virtual void SAL_CALL addDecryptionResultListener(
72 const com::sun::star::uno::Reference<
73 com::sun::star::xml::crypto::sax::XDecryptionResultListener >&
74 listener )
75 throw (com::sun::star::uno::Exception, com::sun::star::uno::RuntimeException);
76 virtual void SAL_CALL removeDecryptionResultListener(
77 const com::sun::star::uno::Reference<
78 com::sun::star::xml::crypto::sax::XDecryptionResultListener >&
79 listener )
80 throw (com::sun::star::uno::RuntimeException);
82 /* XInitialization */
83 virtual void SAL_CALL initialize(
84 const com::sun::star::uno::Sequence< com::sun::star::uno::Any >& aArguments )
85 throw (com::sun::star::uno::Exception, com::sun::star::uno::RuntimeException);
87 /* XServiceInfo */
88 virtual OUString SAL_CALL getImplementationName( )
89 throw (com::sun::star::uno::RuntimeException);
90 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
91 throw (com::sun::star::uno::RuntimeException);
92 virtual com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( )
93 throw (com::sun::star::uno::RuntimeException);
96 OUString DecryptorImpl_getImplementationName()
97 throw ( com::sun::star::uno::RuntimeException );
99 sal_Bool SAL_CALL DecryptorImpl_supportsService( const OUString& ServiceName )
100 throw ( com::sun::star::uno::RuntimeException );
102 com::sun::star::uno::Sequence< OUString > SAL_CALL DecryptorImpl_getSupportedServiceNames( )
103 throw ( com::sun::star::uno::RuntimeException );
105 com::sun::star::uno::Reference< com::sun::star::uno::XInterface >
106 SAL_CALL DecryptorImpl_createInstance(
107 const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >&
108 rSMgr)
109 throw ( com::sun::star::uno::Exception );
111 #endif
113 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */