summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Varga <mihai.mv13@gmail.com>2014-06-30 20:24:16 +0300
committerMihai Varga <mihai.mv13@gmail.com>2014-06-30 20:24:16 +0300
commitfde54c22eab44a33599d067c838508ac1ac0055e (patch)
tree698844508f62c4b54942646a01da006d04bba06f
parent2f86b03eca4805fad2b3a63d03257d5e2da6fbd7 (diff)
Continuations are set in the request
-rw-r--r--include/ucbhelper/authenticationfallback.hxx13
-rw-r--r--ucbhelper/source/provider/authenticationfallback.cxx7
2 files changed, 11 insertions, 9 deletions
diff --git a/include/ucbhelper/authenticationfallback.hxx b/include/ucbhelper/authenticationfallback.hxx
index 19a6b7fda418..c73383a61a1d 100644
--- a/include/ucbhelper/authenticationfallback.hxx
+++ b/include/ucbhelper/authenticationfallback.hxx
@@ -23,6 +23,8 @@
#include <rtl/ref.hxx>
#include <ucbhelper/interactionrequest.hxx>
#include <ucbhelper/ucbhelperdllapi.h>
+#include <com/sun/star/ucb/AuthenticationFallbackRequest.hpp>
+
namespace ucbhelper {
@@ -35,10 +37,9 @@ namespace ucbhelper {
*/
class UCBHELPER_DLLPUBLIC AuthenticationFallbackRequest : public ucbhelper::InteractionRequest
{
+private:
+ rtl::Reference< ucbhelper::InteractionAuthFallback > m_xAuthFallback;
- OUString m_Instructions;
- OUString m_Url;
- OUString m_Code;
public:
/**
* Constructor.
@@ -48,8 +49,10 @@ public:
*/
AuthenticationFallbackRequest( const OUString & rInstructions,
const OUString & rURL );
- void setCode( const OUString & code ) { m_Code = code; }
- OUString getCode( ) { return m_Code; }
+
+ const rtl::Reference< ucbhelper::InteractionAuthFallback >&
+ getAuthFallbackInter( ) const { return m_xAuthFallback; }
+
};
} // namespace ucbhelper
diff --git a/ucbhelper/source/provider/authenticationfallback.cxx b/ucbhelper/source/provider/authenticationfallback.cxx
index 8171cc252efd..7f47b0901da9 100644
--- a/ucbhelper/source/provider/authenticationfallback.cxx
+++ b/ucbhelper/source/provider/authenticationfallback.cxx
@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#include <com/sun/star/ucb/AuthenticationFallbackRequest.hpp>
#include <ucbhelper/authenticationfallback.hxx>
using namespace com::sun::star;
@@ -33,12 +32,12 @@ AuthenticationFallbackRequest::AuthenticationFallbackRequest(
aRequest.url = rURL;
setRequest( uno::makeAny( aRequest ) );
+ m_xAuthFallback = new InteractionAuthFallback( this );
uno::Sequence<
- uno::Reference< task::XInteractionContinuation > > aContinuations( 3 );
+ uno::Reference< task::XInteractionContinuation > > aContinuations( 2 );
aContinuations[ 0 ] = new InteractionAbort( this );
- aContinuations[ 1 ] = new InteractionRetry( this );
- aContinuations[ 2 ] = new InteractionApprove( this );
+ aContinuations[ 1 ] = m_xAuthFallback.get( );
setContinuations( aContinuations );
}