LCOV - code coverage report
Current view: top level - security - XDocumentDigitalSignatures.hdl (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 2 2 100.0 %
Date: 2013-07-09 Functions: 2 2 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : #ifndef INCLUDED_COM_SUN_STAR_SECURITY_XDOCUMENTDIGITALSIGNATURES_HDL
       2             : #define INCLUDED_COM_SUN_STAR_SECURITY_XDOCUMENTDIGITALSIGNATURES_HDL
       3             : 
       4             : #include "sal/config.h"
       5             : 
       6             : namespace com { namespace sun { namespace star { namespace embed { class XStorage; } } } }
       7             : namespace com { namespace sun { namespace star { namespace io { class XInputStream; } } } }
       8             : namespace com { namespace sun { namespace star { namespace io { class XStream; } } } }
       9             : #include "com/sun/star/security/DocumentSignatureInformation.hdl"
      10             : namespace com { namespace sun { namespace star { namespace security { class XCertificate; } } } }
      11             : #include "com/sun/star/uno/RuntimeException.hdl"
      12             : #include "com/sun/star/uno/XInterface.hdl"
      13             : #include "com/sun/star/uno/Reference.h"
      14             : #include "com/sun/star/uno/Sequence.h"
      15             : #include "cppu/macros.hxx"
      16             : #include "rtl/ustring.hxx"
      17             : #include "sal/types.h"
      18             : 
      19             : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
      20             : 
      21             : namespace com { namespace sun { namespace star { namespace security {
      22             : 
      23          70 : class SAL_NO_VTABLE XDocumentDigitalSignatures : public css::uno::XInterface
      24             : {
      25             : public:
      26             : 
      27             :     // Methods
      28             :     virtual ::sal_Bool SAL_CALL signDocumentContent( const ::com::sun::star::uno::Reference< css::embed::XStorage >& xStorage, const ::com::sun::star::uno::Reference< css::io::XStream >& xSignStream ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
      29             :     virtual ::com::sun::star::uno::Sequence< css::security::DocumentSignatureInformation > SAL_CALL verifyDocumentContentSignatures( const ::com::sun::star::uno::Reference< css::embed::XStorage >& xStorage, const ::com::sun::star::uno::Reference< css::io::XInputStream >& xSignInStream ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
      30             :     virtual void SAL_CALL showDocumentContentSignatures( const ::com::sun::star::uno::Reference< css::embed::XStorage >& xStorage, const ::com::sun::star::uno::Reference< css::io::XInputStream >& xSignInStream ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
      31             :     virtual ::rtl::OUString SAL_CALL getDocumentContentSignatureDefaultStreamName() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
      32             :     virtual ::sal_Bool SAL_CALL signScriptingContent( const ::com::sun::star::uno::Reference< css::embed::XStorage >& xStorage, const ::com::sun::star::uno::Reference< css::io::XStream >& xSignStream ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
      33             :     virtual ::com::sun::star::uno::Sequence< css::security::DocumentSignatureInformation > SAL_CALL verifyScriptingContentSignatures( const ::com::sun::star::uno::Reference< css::embed::XStorage >& xStorage, const ::com::sun::star::uno::Reference< css::io::XInputStream >& xSignInStream ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
      34             :     virtual void SAL_CALL showScriptingContentSignatures( const ::com::sun::star::uno::Reference< css::embed::XStorage >& xStorage, const ::com::sun::star::uno::Reference< css::io::XInputStream >& xSignInStream ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
      35             :     virtual ::rtl::OUString SAL_CALL getScriptingContentSignatureDefaultStreamName() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
      36             :     virtual ::sal_Bool SAL_CALL signPackage( const ::com::sun::star::uno::Reference< css::embed::XStorage >& Storage, const ::com::sun::star::uno::Reference< css::io::XStream >& xSignStream ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
      37             :     virtual ::com::sun::star::uno::Sequence< css::security::DocumentSignatureInformation > SAL_CALL verifyPackageSignatures( const ::com::sun::star::uno::Reference< css::embed::XStorage >& Storage, const ::com::sun::star::uno::Reference< css::io::XInputStream >& xSignInStream ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
      38             :     virtual void SAL_CALL showPackageSignatures( const ::com::sun::star::uno::Reference< css::embed::XStorage >& xStorage, const ::com::sun::star::uno::Reference< css::io::XInputStream >& xSignInStream ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
      39             :     virtual ::rtl::OUString SAL_CALL getPackageSignatureDefaultStreamName() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
      40             :     virtual void SAL_CALL showCertificate( const ::com::sun::star::uno::Reference< css::security::XCertificate >& Certificate ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
      41             :     virtual void SAL_CALL manageTrustedSources() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
      42             :     virtual ::sal_Bool SAL_CALL isAuthorTrusted( const ::com::sun::star::uno::Reference< css::security::XCertificate >& Author ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
      43             :     virtual ::sal_Bool SAL_CALL isLocationTrusted( const ::rtl::OUString& Location ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
      44             :     virtual void SAL_CALL addAuthorToTrustedSources( const ::com::sun::star::uno::Reference< css::security::XCertificate >& Author ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
      45             :     virtual void SAL_CALL addLocationToTrustedSources( const ::rtl::OUString& Location ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
      46             :     virtual ::com::sun::star::uno::Reference< css::security::XCertificate > SAL_CALL chooseCertificate() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
      47             : 
      48             :     static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
      49             : 
      50             : protected:
      51          70 :     ~XDocumentDigitalSignatures() throw () {} // avoid warnings about virtual members and non-virtual dtor
      52             : };
      53             : 
      54             : 
      55             : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::security::XDocumentDigitalSignatures const *);
      56             : } } } }
      57             : 
      58             : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< css::security::XDocumentDigitalSignatures > *) SAL_THROW(());
      59             : 
      60             : #endif

Generated by: LCOV version 1.10