diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2007-11-07 09:08:29 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2007-11-07 09:08:29 +0000 |
commit | 47904877b28433e3937b1282245b6ae7618892d0 (patch) | |
tree | ed988cdb62629467c103b6e721ba1f8e4180502d /ucbhelper/source/provider/handleinteractionrequest.cxx | |
parent | d1619c1dda2a1141d49fb57940a14a960358636e (diff) |
INTEGRATION: CWS tkr05_SRC680 (1.4.12); FILE MERGED
2007/09/20 11:03:55 tkr 1.4.12.1: #i31053#: WebDAV HTTPS Support
Diffstat (limited to 'ucbhelper/source/provider/handleinteractionrequest.cxx')
-rw-r--r-- | ucbhelper/source/provider/handleinteractionrequest.cxx | 37 |
1 files changed, 34 insertions, 3 deletions
diff --git a/ucbhelper/source/provider/handleinteractionrequest.cxx b/ucbhelper/source/provider/handleinteractionrequest.cxx index f60b14792a43..4d245d5e8cab 100644 --- a/ucbhelper/source/provider/handleinteractionrequest.cxx +++ b/ucbhelper/source/provider/handleinteractionrequest.cxx @@ -4,9 +4,9 @@ * * $RCSfile: handleinteractionrequest.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: ihi $ $Date: 2007-06-05 14:54:39 $ + * last change: $Author: rt $ $Date: 2007-11-07 10:08:29 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -79,7 +79,9 @@ #ifndef _UCBHELPER_SIMPLEINTERACTIONREQUEST_HXX #include "ucbhelper/simpleinteractionrequest.hxx" #endif - +#ifndef _UCBHELPER_SIMPLECERTIFICATEVALIDATIONREQUEST_HXX +#include "ucbhelper/simplecertificatevalidationrequest.hxx" +#endif #ifndef INCLUDED_UTILITY #include <utility> #define INCLUDED_UTILITY @@ -169,3 +171,32 @@ handleInteractionRequest( } } + +namespace ucbhelper { + +sal_Int32 +handleInteractionRequest( + rtl::Reference< ucbhelper::SimpleCertificateValidationRequest > const & rRequest, + uno::Reference< ucb::XCommandEnvironment > const & rEnvironment, + bool bThrowOnAbort) + SAL_THROW((uno::Exception)) +{ + handle(rRequest.get(), rEnvironment); + sal_Int32 nResponse = rRequest->getResponse(); + switch (nResponse) + { + case ucbhelper::CONTINUATION_UNKNOWN: + cppu::throwException(rRequest->getRequest()); + break; + + case ucbhelper::CONTINUATION_ABORT: + if (bThrowOnAbort) + throw ucb::CommandFailedException( + rtl::OUString(), 0, rRequest->getRequest()); + break; + } + return nResponse; +} + +} + |