1*ac9096f4SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*ac9096f4SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*ac9096f4SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*ac9096f4SAndrew Rist  * distributed with this work for additional information
6*ac9096f4SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*ac9096f4SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*ac9096f4SAndrew Rist  * "License"); you may not use this file except in compliance
9*ac9096f4SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*ac9096f4SAndrew Rist  *
11*ac9096f4SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*ac9096f4SAndrew Rist  *
13*ac9096f4SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*ac9096f4SAndrew Rist  * software distributed under the License is distributed on an
15*ac9096f4SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*ac9096f4SAndrew Rist  * KIND, either express or implied.  See the License for the
17*ac9096f4SAndrew Rist  * specific language governing permissions and limitations
18*ac9096f4SAndrew Rist  * under the License.
19*ac9096f4SAndrew Rist  *
20*ac9096f4SAndrew Rist  *************************************************************/
21*ac9096f4SAndrew Rist 
22*ac9096f4SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
25cdf0e10cSrcweir #include "precompiled_ucbhelper.hxx"
26cdf0e10cSrcweir 
27cdf0e10cSrcweir /**************************************************************************
28cdf0e10cSrcweir 								TODO
29cdf0e10cSrcweir  **************************************************************************
30cdf0e10cSrcweir 
31cdf0e10cSrcweir  *************************************************************************/
32cdf0e10cSrcweir #include <osl/mutex.hxx>
33cdf0e10cSrcweir #include <cppuhelper/typeprovider.hxx>
34cdf0e10cSrcweir #include <ucbhelper/interactionrequest.hxx>
35cdf0e10cSrcweir 
36cdf0e10cSrcweir using namespace com::sun::star;
37cdf0e10cSrcweir using namespace ucbhelper;
38cdf0e10cSrcweir 
39cdf0e10cSrcweir //=========================================================================
40cdf0e10cSrcweir //=========================================================================
41cdf0e10cSrcweir //
42cdf0e10cSrcweir // InteractionRequest Implementation.
43cdf0e10cSrcweir //
44cdf0e10cSrcweir //=========================================================================
45cdf0e10cSrcweir //=========================================================================
46cdf0e10cSrcweir 
47cdf0e10cSrcweir namespace ucbhelper
48cdf0e10cSrcweir {
49cdf0e10cSrcweir 
50cdf0e10cSrcweir struct InteractionRequest_Impl
51cdf0e10cSrcweir {
52cdf0e10cSrcweir     rtl::Reference< InteractionContinuation > m_xSelection;
53cdf0e10cSrcweir     com::sun::star::uno::Any m_aRequest;
54cdf0e10cSrcweir     com::sun::star::uno::Sequence<
55cdf0e10cSrcweir         com::sun::star::uno::Reference<
56cdf0e10cSrcweir             com::sun::star::task::XInteractionContinuation > > m_aContinuations;
57cdf0e10cSrcweir 
InteractionRequest_Implucbhelper::InteractionRequest_Impl58cdf0e10cSrcweir     InteractionRequest_Impl() {}
InteractionRequest_Implucbhelper::InteractionRequest_Impl59cdf0e10cSrcweir     InteractionRequest_Impl( const uno::Any & rRequest )
60cdf0e10cSrcweir     : m_aRequest( rRequest ) {}
61cdf0e10cSrcweir };
62cdf0e10cSrcweir 
63cdf0e10cSrcweir }
64cdf0e10cSrcweir 
65cdf0e10cSrcweir //=========================================================================
InteractionRequest()66cdf0e10cSrcweir InteractionRequest::InteractionRequest()
67cdf0e10cSrcweir : m_pImpl( new InteractionRequest_Impl )
68cdf0e10cSrcweir {
69cdf0e10cSrcweir }
70cdf0e10cSrcweir 
71cdf0e10cSrcweir //=========================================================================
InteractionRequest(const uno::Any & rRequest)72cdf0e10cSrcweir InteractionRequest::InteractionRequest( const uno::Any & rRequest )
73cdf0e10cSrcweir : m_pImpl( new InteractionRequest_Impl( rRequest ) )
74cdf0e10cSrcweir {
75cdf0e10cSrcweir }
76cdf0e10cSrcweir 
77cdf0e10cSrcweir //=========================================================================
78cdf0e10cSrcweir // virtual
~InteractionRequest()79cdf0e10cSrcweir InteractionRequest::~InteractionRequest()
80cdf0e10cSrcweir {
81cdf0e10cSrcweir     delete m_pImpl;
82cdf0e10cSrcweir }
83cdf0e10cSrcweir 
84cdf0e10cSrcweir //=========================================================================
setRequest(const uno::Any & rRequest)85cdf0e10cSrcweir void InteractionRequest::setRequest( const uno::Any & rRequest )
86cdf0e10cSrcweir {
87cdf0e10cSrcweir     m_pImpl->m_aRequest = rRequest;
88cdf0e10cSrcweir }
89cdf0e10cSrcweir 
90cdf0e10cSrcweir //=========================================================================
setContinuations(const uno::Sequence<uno::Reference<task::XInteractionContinuation>> & rContinuations)91cdf0e10cSrcweir void InteractionRequest::setContinuations(
92cdf0e10cSrcweir                 const uno::Sequence< uno::Reference<
93cdf0e10cSrcweir                     task::XInteractionContinuation > > & rContinuations )
94cdf0e10cSrcweir {
95cdf0e10cSrcweir     m_pImpl->m_aContinuations = rContinuations;
96cdf0e10cSrcweir }
97cdf0e10cSrcweir 
98cdf0e10cSrcweir //=========================================================================
99cdf0e10cSrcweir rtl::Reference< InteractionContinuation >
getSelection() const100cdf0e10cSrcweir InteractionRequest::getSelection() const
101cdf0e10cSrcweir {
102cdf0e10cSrcweir     return m_pImpl->m_xSelection;
103cdf0e10cSrcweir }
104cdf0e10cSrcweir 
105cdf0e10cSrcweir //=========================================================================
setSelection(const rtl::Reference<InteractionContinuation> & rxSelection)106cdf0e10cSrcweir void InteractionRequest::setSelection(
107cdf0e10cSrcweir                 const rtl::Reference< InteractionContinuation > & rxSelection )
108cdf0e10cSrcweir {
109cdf0e10cSrcweir     m_pImpl->m_xSelection = rxSelection;
110cdf0e10cSrcweir }
111cdf0e10cSrcweir 
112cdf0e10cSrcweir //=========================================================================
113cdf0e10cSrcweir //
114cdf0e10cSrcweir // XInterface methods.
115cdf0e10cSrcweir //
116cdf0e10cSrcweir //=========================================================================
117cdf0e10cSrcweir 
118cdf0e10cSrcweir // virtual
acquire()119cdf0e10cSrcweir void SAL_CALL InteractionRequest::acquire()
120cdf0e10cSrcweir     throw()
121cdf0e10cSrcweir {
122cdf0e10cSrcweir 	OWeakObject::acquire();
123cdf0e10cSrcweir }
124cdf0e10cSrcweir 
125cdf0e10cSrcweir //=========================================================================
126cdf0e10cSrcweir // virtual
release()127cdf0e10cSrcweir void SAL_CALL InteractionRequest::release()
128cdf0e10cSrcweir     throw()
129cdf0e10cSrcweir {
130cdf0e10cSrcweir 	OWeakObject::release();
131cdf0e10cSrcweir }
132cdf0e10cSrcweir 
133cdf0e10cSrcweir //=========================================================================
134cdf0e10cSrcweir // virtual
135cdf0e10cSrcweir uno::Any SAL_CALL
queryInterface(const uno::Type & rType)136cdf0e10cSrcweir InteractionRequest::queryInterface( const uno::Type & rType )
137cdf0e10cSrcweir     throw ( uno::RuntimeException )
138cdf0e10cSrcweir {
139cdf0e10cSrcweir     uno::Any aRet = cppu::queryInterface( rType,
140cdf0e10cSrcweir                 static_cast< lang::XTypeProvider * >( this ),
141cdf0e10cSrcweir                 static_cast< task::XInteractionRequest * >( this ) );
142cdf0e10cSrcweir 
143cdf0e10cSrcweir 	return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
144cdf0e10cSrcweir }
145cdf0e10cSrcweir 
146cdf0e10cSrcweir //=========================================================================
147cdf0e10cSrcweir //
148cdf0e10cSrcweir // XTypeProvider methods.
149cdf0e10cSrcweir //
150cdf0e10cSrcweir //=========================================================================
151cdf0e10cSrcweir 
152cdf0e10cSrcweir // virtual
getImplementationId()153cdf0e10cSrcweir uno::Sequence< sal_Int8 > SAL_CALL InteractionRequest::getImplementationId()
154cdf0e10cSrcweir     throw( uno::RuntimeException )
155cdf0e10cSrcweir {
156cdf0e10cSrcweir 	static cppu::OImplementationId* pId = NULL;
157cdf0e10cSrcweir   	if ( !pId )
158cdf0e10cSrcweir   	{
159cdf0e10cSrcweir 		osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );
160cdf0e10cSrcweir 	  	if ( !pId )
161cdf0e10cSrcweir 	  	{
162cdf0e10cSrcweir 		  	static cppu::OImplementationId id( sal_False );
163cdf0e10cSrcweir 		  	pId = &id;
164cdf0e10cSrcweir 	  	}
165cdf0e10cSrcweir   	}
166cdf0e10cSrcweir   	return (*pId).getImplementationId();
167cdf0e10cSrcweir }
168cdf0e10cSrcweir 
169cdf0e10cSrcweir //=========================================================================
170cdf0e10cSrcweir // virtual
getTypes()171cdf0e10cSrcweir uno::Sequence< uno::Type > SAL_CALL InteractionRequest::getTypes()
172cdf0e10cSrcweir     throw( uno::RuntimeException )
173cdf0e10cSrcweir {
174cdf0e10cSrcweir     static cppu::OTypeCollection* pCollection = 0;
175cdf0e10cSrcweir   	if ( !pCollection )
176cdf0e10cSrcweir   	{
177cdf0e10cSrcweir 		osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );
178cdf0e10cSrcweir 		if ( !pCollection )
179cdf0e10cSrcweir 		{
180cdf0e10cSrcweir 			static cppu::OTypeCollection collection(
181cdf0e10cSrcweir                 getCppuType( static_cast<
182cdf0e10cSrcweir                     uno::Reference< lang::XTypeProvider > * >( 0 ) ),
183cdf0e10cSrcweir                 getCppuType( static_cast<
184cdf0e10cSrcweir                     uno::Reference< task::XInteractionRequest > * >( 0 ) ) );
185cdf0e10cSrcweir 			pCollection = &collection;
186cdf0e10cSrcweir 		}
187cdf0e10cSrcweir 	}
188cdf0e10cSrcweir 	return (*pCollection).getTypes();
189cdf0e10cSrcweir }
190cdf0e10cSrcweir 
191cdf0e10cSrcweir //=========================================================================
192cdf0e10cSrcweir //
193cdf0e10cSrcweir // XInteractionRequest methods.
194cdf0e10cSrcweir //
195cdf0e10cSrcweir //=========================================================================
196cdf0e10cSrcweir 
197cdf0e10cSrcweir // virtual
getRequest()198cdf0e10cSrcweir uno::Any SAL_CALL InteractionRequest::getRequest()
199cdf0e10cSrcweir     throw( uno::RuntimeException )
200cdf0e10cSrcweir {
201cdf0e10cSrcweir     return m_pImpl->m_aRequest;
202cdf0e10cSrcweir }
203cdf0e10cSrcweir 
204cdf0e10cSrcweir //=========================================================================
205cdf0e10cSrcweir // virtual
206cdf0e10cSrcweir uno::Sequence< uno::Reference< task::XInteractionContinuation > > SAL_CALL
getContinuations()207cdf0e10cSrcweir InteractionRequest::getContinuations()
208cdf0e10cSrcweir     throw( uno::RuntimeException )
209cdf0e10cSrcweir {
210cdf0e10cSrcweir     return m_pImpl->m_aContinuations;
211cdf0e10cSrcweir }
212cdf0e10cSrcweir 
213cdf0e10cSrcweir //=========================================================================
214cdf0e10cSrcweir //=========================================================================
215cdf0e10cSrcweir //
216cdf0e10cSrcweir // InteractionContinuation Implementation.
217cdf0e10cSrcweir //
218cdf0e10cSrcweir //=========================================================================
219cdf0e10cSrcweir //=========================================================================
220cdf0e10cSrcweir 
221cdf0e10cSrcweir namespace ucbhelper
222cdf0e10cSrcweir {
223cdf0e10cSrcweir 
224cdf0e10cSrcweir struct InteractionContinuation_Impl
225cdf0e10cSrcweir {
226cdf0e10cSrcweir     InteractionRequest * m_pRequest;
227cdf0e10cSrcweir 
InteractionContinuation_Implucbhelper::InteractionContinuation_Impl228cdf0e10cSrcweir     InteractionContinuation_Impl( InteractionRequest * pRequest )
229cdf0e10cSrcweir     : m_pRequest( pRequest ) {}
230cdf0e10cSrcweir };
231cdf0e10cSrcweir 
232cdf0e10cSrcweir }
233cdf0e10cSrcweir 
234cdf0e10cSrcweir //=========================================================================
InteractionContinuation(InteractionRequest * pRequest)235cdf0e10cSrcweir InteractionContinuation::InteractionContinuation(
236cdf0e10cSrcweir                         InteractionRequest * pRequest )
237cdf0e10cSrcweir : m_pImpl( new InteractionContinuation_Impl( pRequest ) )
238cdf0e10cSrcweir {
239cdf0e10cSrcweir }
240cdf0e10cSrcweir 
241cdf0e10cSrcweir //=========================================================================
242cdf0e10cSrcweir // virtual
~InteractionContinuation()243cdf0e10cSrcweir InteractionContinuation::~InteractionContinuation()
244cdf0e10cSrcweir {
245cdf0e10cSrcweir     delete m_pImpl;
246cdf0e10cSrcweir }
247cdf0e10cSrcweir 
248cdf0e10cSrcweir //=========================================================================
recordSelection()249cdf0e10cSrcweir void InteractionContinuation::recordSelection()
250cdf0e10cSrcweir {
251cdf0e10cSrcweir     m_pImpl->m_pRequest->setSelection( this );
252cdf0e10cSrcweir }
253cdf0e10cSrcweir 
254cdf0e10cSrcweir //=========================================================================
255cdf0e10cSrcweir //=========================================================================
256cdf0e10cSrcweir //
257cdf0e10cSrcweir // InteractionAbort Implementation.
258cdf0e10cSrcweir //
259cdf0e10cSrcweir //=========================================================================
260cdf0e10cSrcweir //=========================================================================
261cdf0e10cSrcweir 
262cdf0e10cSrcweir //=========================================================================
263cdf0e10cSrcweir //
264cdf0e10cSrcweir // XInterface methods.
265cdf0e10cSrcweir //
266cdf0e10cSrcweir //=========================================================================
267cdf0e10cSrcweir 
268cdf0e10cSrcweir // virtual
acquire()269cdf0e10cSrcweir void SAL_CALL InteractionAbort::acquire()
270cdf0e10cSrcweir     throw()
271cdf0e10cSrcweir {
272cdf0e10cSrcweir 	OWeakObject::acquire();
273cdf0e10cSrcweir }
274cdf0e10cSrcweir 
275cdf0e10cSrcweir //=========================================================================
276cdf0e10cSrcweir // virtual
release()277cdf0e10cSrcweir void SAL_CALL InteractionAbort::release()
278cdf0e10cSrcweir     throw()
279cdf0e10cSrcweir {
280cdf0e10cSrcweir 	OWeakObject::release();
281cdf0e10cSrcweir }
282cdf0e10cSrcweir 
283cdf0e10cSrcweir //=========================================================================
284cdf0e10cSrcweir // virtual
285cdf0e10cSrcweir uno::Any SAL_CALL
queryInterface(const uno::Type & rType)286cdf0e10cSrcweir InteractionAbort::queryInterface( const uno::Type & rType )
287cdf0e10cSrcweir     throw ( uno::RuntimeException )
288cdf0e10cSrcweir {
289cdf0e10cSrcweir     uno::Any aRet = cppu::queryInterface( rType,
290cdf0e10cSrcweir                 static_cast< lang::XTypeProvider * >( this ),
291cdf0e10cSrcweir                 static_cast< task::XInteractionContinuation * >( this ),
292cdf0e10cSrcweir                 static_cast< task::XInteractionAbort * >( this ) );
293cdf0e10cSrcweir 
294cdf0e10cSrcweir     return aRet.hasValue()
295cdf0e10cSrcweir             ? aRet : InteractionContinuation::queryInterface( rType );
296cdf0e10cSrcweir }
297cdf0e10cSrcweir 
298cdf0e10cSrcweir //=========================================================================
299cdf0e10cSrcweir //
300cdf0e10cSrcweir // XTypeProvider methods.
301cdf0e10cSrcweir //
302cdf0e10cSrcweir //=========================================================================
303cdf0e10cSrcweir 
304cdf0e10cSrcweir // virtual
getImplementationId()305cdf0e10cSrcweir uno::Sequence< sal_Int8 > SAL_CALL InteractionAbort::getImplementationId()
306cdf0e10cSrcweir     throw( uno::RuntimeException )
307cdf0e10cSrcweir {
308cdf0e10cSrcweir 	static cppu::OImplementationId* pId = NULL;
309cdf0e10cSrcweir   	if ( !pId )
310cdf0e10cSrcweir   	{
311cdf0e10cSrcweir 		osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );
312cdf0e10cSrcweir 	  	if ( !pId )
313cdf0e10cSrcweir 	  	{
314cdf0e10cSrcweir 		  	static cppu::OImplementationId id( sal_False );
315cdf0e10cSrcweir 		  	pId = &id;
316cdf0e10cSrcweir 	  	}
317cdf0e10cSrcweir   	}
318cdf0e10cSrcweir   	return (*pId).getImplementationId();
319cdf0e10cSrcweir }
320cdf0e10cSrcweir 
321cdf0e10cSrcweir //=========================================================================
322cdf0e10cSrcweir // virtual
getTypes()323cdf0e10cSrcweir uno::Sequence< uno::Type > SAL_CALL InteractionAbort::getTypes()
324cdf0e10cSrcweir     throw( uno::RuntimeException )
325cdf0e10cSrcweir {
326cdf0e10cSrcweir     static cppu::OTypeCollection* pCollection = 0;
327cdf0e10cSrcweir   	if ( !pCollection )
328cdf0e10cSrcweir   	{
329cdf0e10cSrcweir 		osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );
330cdf0e10cSrcweir 		if ( !pCollection )
331cdf0e10cSrcweir 		{
332cdf0e10cSrcweir 			static cppu::OTypeCollection collection(
333cdf0e10cSrcweir                 getCppuType( static_cast<
334cdf0e10cSrcweir                     uno::Reference< lang::XTypeProvider > * >( 0 ) ),
335cdf0e10cSrcweir                 getCppuType( static_cast<
336cdf0e10cSrcweir                     uno::Reference< task::XInteractionAbort > * >( 0 ) ) );
337cdf0e10cSrcweir 			pCollection = &collection;
338cdf0e10cSrcweir 		}
339cdf0e10cSrcweir 	}
340cdf0e10cSrcweir 	return (*pCollection).getTypes();
341cdf0e10cSrcweir }
342cdf0e10cSrcweir 
343cdf0e10cSrcweir //=========================================================================
344cdf0e10cSrcweir //
345cdf0e10cSrcweir // XInteractionContinuation methods.
346cdf0e10cSrcweir //
347cdf0e10cSrcweir //=========================================================================
348cdf0e10cSrcweir 
349cdf0e10cSrcweir // virtual
select()350cdf0e10cSrcweir void SAL_CALL InteractionAbort::select()
351cdf0e10cSrcweir     throw( uno::RuntimeException )
352cdf0e10cSrcweir {
353cdf0e10cSrcweir     recordSelection();
354cdf0e10cSrcweir }
355cdf0e10cSrcweir 
356cdf0e10cSrcweir //=========================================================================
357cdf0e10cSrcweir //=========================================================================
358cdf0e10cSrcweir //
359cdf0e10cSrcweir // InteractionRetry Implementation.
360cdf0e10cSrcweir //
361cdf0e10cSrcweir //=========================================================================
362cdf0e10cSrcweir //=========================================================================
363cdf0e10cSrcweir 
364cdf0e10cSrcweir //=========================================================================
365cdf0e10cSrcweir //
366cdf0e10cSrcweir // XInterface methods.
367cdf0e10cSrcweir //
368cdf0e10cSrcweir //=========================================================================
369cdf0e10cSrcweir 
370cdf0e10cSrcweir // virtual
acquire()371cdf0e10cSrcweir void SAL_CALL InteractionRetry::acquire()
372cdf0e10cSrcweir     throw()
373cdf0e10cSrcweir {
374cdf0e10cSrcweir 	OWeakObject::acquire();
375cdf0e10cSrcweir }
376cdf0e10cSrcweir 
377cdf0e10cSrcweir //=========================================================================
378cdf0e10cSrcweir // virtual
release()379cdf0e10cSrcweir void SAL_CALL InteractionRetry::release()
380cdf0e10cSrcweir     throw()
381cdf0e10cSrcweir {
382cdf0e10cSrcweir 	OWeakObject::release();
383cdf0e10cSrcweir }
384cdf0e10cSrcweir 
385cdf0e10cSrcweir //=========================================================================
386cdf0e10cSrcweir // virtual
387cdf0e10cSrcweir uno::Any SAL_CALL
queryInterface(const uno::Type & rType)388cdf0e10cSrcweir InteractionRetry::queryInterface( const uno::Type & rType )
389cdf0e10cSrcweir     throw ( uno::RuntimeException )
390cdf0e10cSrcweir {
391cdf0e10cSrcweir     uno::Any aRet = cppu::queryInterface( rType,
392cdf0e10cSrcweir                 static_cast< lang::XTypeProvider * >( this ),
393cdf0e10cSrcweir                 static_cast< task::XInteractionContinuation * >( this ),
394cdf0e10cSrcweir                 static_cast< task::XInteractionRetry * >( this ) );
395cdf0e10cSrcweir 
396cdf0e10cSrcweir     return aRet.hasValue()
397cdf0e10cSrcweir             ? aRet : InteractionContinuation::queryInterface( rType );
398cdf0e10cSrcweir }
399cdf0e10cSrcweir 
400cdf0e10cSrcweir //=========================================================================
401cdf0e10cSrcweir //
402cdf0e10cSrcweir // XTypeProvider methods.
403cdf0e10cSrcweir //
404cdf0e10cSrcweir //=========================================================================
405cdf0e10cSrcweir 
406cdf0e10cSrcweir // virtual
getImplementationId()407cdf0e10cSrcweir uno::Sequence< sal_Int8 > SAL_CALL InteractionRetry::getImplementationId()
408cdf0e10cSrcweir     throw( uno::RuntimeException )
409cdf0e10cSrcweir {
410cdf0e10cSrcweir 	static cppu::OImplementationId* pId = NULL;
411cdf0e10cSrcweir   	if ( !pId )
412cdf0e10cSrcweir   	{
413cdf0e10cSrcweir 		osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );
414cdf0e10cSrcweir 	  	if ( !pId )
415cdf0e10cSrcweir 	  	{
416cdf0e10cSrcweir 		  	static cppu::OImplementationId id( sal_False );
417cdf0e10cSrcweir 		  	pId = &id;
418cdf0e10cSrcweir 	  	}
419cdf0e10cSrcweir   	}
420cdf0e10cSrcweir   	return (*pId).getImplementationId();
421cdf0e10cSrcweir }
422cdf0e10cSrcweir 
423cdf0e10cSrcweir //=========================================================================
424cdf0e10cSrcweir // virtual
getTypes()425cdf0e10cSrcweir uno::Sequence< uno::Type > SAL_CALL InteractionRetry::getTypes()
426cdf0e10cSrcweir     throw( uno::RuntimeException )
427cdf0e10cSrcweir {
428cdf0e10cSrcweir     static cppu::OTypeCollection* pCollection = 0;
429cdf0e10cSrcweir   	if ( !pCollection )
430cdf0e10cSrcweir   	{
431cdf0e10cSrcweir 		osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );
432cdf0e10cSrcweir 		if ( !pCollection )
433cdf0e10cSrcweir 		{
434cdf0e10cSrcweir 			static cppu::OTypeCollection collection(
435cdf0e10cSrcweir                 getCppuType( static_cast<
436cdf0e10cSrcweir                     uno::Reference< lang::XTypeProvider > * >( 0 ) ),
437cdf0e10cSrcweir                 getCppuType( static_cast<
438cdf0e10cSrcweir                     uno::Reference< task::XInteractionRetry > * >( 0 ) ) );
439cdf0e10cSrcweir 			pCollection = &collection;
440cdf0e10cSrcweir 		}
441cdf0e10cSrcweir 	}
442cdf0e10cSrcweir 	return (*pCollection).getTypes();
443cdf0e10cSrcweir }
444cdf0e10cSrcweir 
445cdf0e10cSrcweir //=========================================================================
446cdf0e10cSrcweir //
447cdf0e10cSrcweir // XInteractionContinuation methods.
448cdf0e10cSrcweir //
449cdf0e10cSrcweir //=========================================================================
450cdf0e10cSrcweir 
451cdf0e10cSrcweir // virtual
select()452cdf0e10cSrcweir void SAL_CALL InteractionRetry::select()
453cdf0e10cSrcweir     throw( uno::RuntimeException )
454cdf0e10cSrcweir {
455cdf0e10cSrcweir     recordSelection();
456cdf0e10cSrcweir }
457cdf0e10cSrcweir 
458cdf0e10cSrcweir //=========================================================================
459cdf0e10cSrcweir //=========================================================================
460cdf0e10cSrcweir //
461cdf0e10cSrcweir // InteractionApprove Implementation.
462cdf0e10cSrcweir //
463cdf0e10cSrcweir //=========================================================================
464cdf0e10cSrcweir //=========================================================================
465cdf0e10cSrcweir 
466cdf0e10cSrcweir //=========================================================================
467cdf0e10cSrcweir //
468cdf0e10cSrcweir // XInterface methods.
469cdf0e10cSrcweir //
470cdf0e10cSrcweir //=========================================================================
471cdf0e10cSrcweir 
472cdf0e10cSrcweir // virtual
acquire()473cdf0e10cSrcweir void SAL_CALL InteractionApprove::acquire()
474cdf0e10cSrcweir     throw()
475cdf0e10cSrcweir {
476cdf0e10cSrcweir 	OWeakObject::acquire();
477cdf0e10cSrcweir }
478cdf0e10cSrcweir 
479cdf0e10cSrcweir //=========================================================================
480cdf0e10cSrcweir // virtual
release()481cdf0e10cSrcweir void SAL_CALL InteractionApprove::release()
482cdf0e10cSrcweir     throw()
483cdf0e10cSrcweir {
484cdf0e10cSrcweir 	OWeakObject::release();
485cdf0e10cSrcweir }
486cdf0e10cSrcweir 
487cdf0e10cSrcweir //=========================================================================
488cdf0e10cSrcweir // virtual
489cdf0e10cSrcweir uno::Any SAL_CALL
queryInterface(const uno::Type & rType)490cdf0e10cSrcweir InteractionApprove::queryInterface( const uno::Type & rType )
491cdf0e10cSrcweir     throw ( uno::RuntimeException )
492cdf0e10cSrcweir {
493cdf0e10cSrcweir     uno::Any aRet = cppu::queryInterface( rType,
494cdf0e10cSrcweir                 static_cast< lang::XTypeProvider * >( this ),
495cdf0e10cSrcweir                 static_cast< task::XInteractionContinuation * >( this ),
496cdf0e10cSrcweir                 static_cast< task::XInteractionApprove * >( this ) );
497cdf0e10cSrcweir 
498cdf0e10cSrcweir     return aRet.hasValue()
499cdf0e10cSrcweir             ? aRet : InteractionContinuation::queryInterface( rType );
500cdf0e10cSrcweir }
501cdf0e10cSrcweir 
502cdf0e10cSrcweir //=========================================================================
503cdf0e10cSrcweir //
504cdf0e10cSrcweir // XTypeProvider methods.
505cdf0e10cSrcweir //
506cdf0e10cSrcweir //=========================================================================
507cdf0e10cSrcweir 
508cdf0e10cSrcweir // virtual
getImplementationId()509cdf0e10cSrcweir uno::Sequence< sal_Int8 > SAL_CALL InteractionApprove::getImplementationId()
510cdf0e10cSrcweir     throw( uno::RuntimeException )
511cdf0e10cSrcweir {
512cdf0e10cSrcweir 	static cppu::OImplementationId* pId = NULL;
513cdf0e10cSrcweir   	if ( !pId )
514cdf0e10cSrcweir   	{
515cdf0e10cSrcweir 		osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );
516cdf0e10cSrcweir 	  	if ( !pId )
517cdf0e10cSrcweir 	  	{
518cdf0e10cSrcweir 		  	static cppu::OImplementationId id( sal_False );
519cdf0e10cSrcweir 		  	pId = &id;
520cdf0e10cSrcweir 	  	}
521cdf0e10cSrcweir   	}
522cdf0e10cSrcweir   	return (*pId).getImplementationId();
523cdf0e10cSrcweir }
524cdf0e10cSrcweir 
525cdf0e10cSrcweir //=========================================================================
526cdf0e10cSrcweir // virtual
getTypes()527cdf0e10cSrcweir uno::Sequence< uno::Type > SAL_CALL InteractionApprove::getTypes()
528cdf0e10cSrcweir     throw( uno::RuntimeException )
529cdf0e10cSrcweir {
530cdf0e10cSrcweir     static cppu::OTypeCollection* pCollection = 0;
531cdf0e10cSrcweir   	if ( !pCollection )
532cdf0e10cSrcweir   	{
533cdf0e10cSrcweir 		osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );
534cdf0e10cSrcweir 		if ( !pCollection )
535cdf0e10cSrcweir 		{
536cdf0e10cSrcweir 			static cppu::OTypeCollection collection(
537cdf0e10cSrcweir                 getCppuType( static_cast<
538cdf0e10cSrcweir                     uno::Reference< lang::XTypeProvider > * >( 0 ) ),
539cdf0e10cSrcweir                 getCppuType( static_cast<
540cdf0e10cSrcweir                     uno::Reference< task::XInteractionApprove > * >( 0 ) ) );
541cdf0e10cSrcweir 			pCollection = &collection;
542cdf0e10cSrcweir 		}
543cdf0e10cSrcweir 	}
544cdf0e10cSrcweir 	return (*pCollection).getTypes();
545cdf0e10cSrcweir }
546cdf0e10cSrcweir 
547cdf0e10cSrcweir //=========================================================================
548cdf0e10cSrcweir //
549cdf0e10cSrcweir // XInteractionContinuation methods.
550cdf0e10cSrcweir //
551cdf0e10cSrcweir //=========================================================================
552cdf0e10cSrcweir 
553cdf0e10cSrcweir // virtual
select()554cdf0e10cSrcweir void SAL_CALL InteractionApprove::select()
555cdf0e10cSrcweir     throw( uno::RuntimeException )
556cdf0e10cSrcweir {
557cdf0e10cSrcweir     recordSelection();
558cdf0e10cSrcweir }
559cdf0e10cSrcweir 
560cdf0e10cSrcweir //=========================================================================
561cdf0e10cSrcweir //=========================================================================
562cdf0e10cSrcweir //
563cdf0e10cSrcweir // InteractionDisapprove Implementation.
564cdf0e10cSrcweir //
565cdf0e10cSrcweir //=========================================================================
566cdf0e10cSrcweir //=========================================================================
567cdf0e10cSrcweir 
568cdf0e10cSrcweir //=========================================================================
569cdf0e10cSrcweir //
570cdf0e10cSrcweir // XInterface methods.
571cdf0e10cSrcweir //
572cdf0e10cSrcweir //=========================================================================
573cdf0e10cSrcweir 
574cdf0e10cSrcweir // virtual
acquire()575cdf0e10cSrcweir void SAL_CALL InteractionDisapprove::acquire()
576cdf0e10cSrcweir     throw()
577cdf0e10cSrcweir {
578cdf0e10cSrcweir 	OWeakObject::acquire();
579cdf0e10cSrcweir }
580cdf0e10cSrcweir 
581cdf0e10cSrcweir //=========================================================================
582cdf0e10cSrcweir // virtual
release()583cdf0e10cSrcweir void SAL_CALL InteractionDisapprove::release()
584cdf0e10cSrcweir     throw()
585cdf0e10cSrcweir {
586cdf0e10cSrcweir 	OWeakObject::release();
587cdf0e10cSrcweir }
588cdf0e10cSrcweir 
589cdf0e10cSrcweir //=========================================================================
590cdf0e10cSrcweir // virtual
591cdf0e10cSrcweir uno::Any SAL_CALL
queryInterface(const uno::Type & rType)592cdf0e10cSrcweir InteractionDisapprove::queryInterface( const uno::Type & rType )
593cdf0e10cSrcweir     throw ( uno::RuntimeException )
594cdf0e10cSrcweir {
595cdf0e10cSrcweir     uno::Any aRet = cppu::queryInterface( rType,
596cdf0e10cSrcweir                 static_cast< lang::XTypeProvider * >( this ),
597cdf0e10cSrcweir                 static_cast< task::XInteractionContinuation * >( this ),
598cdf0e10cSrcweir                 static_cast< task::XInteractionDisapprove * >( this ) );
599cdf0e10cSrcweir 
600cdf0e10cSrcweir     return aRet.hasValue()
601cdf0e10cSrcweir             ? aRet : InteractionContinuation::queryInterface( rType );
602cdf0e10cSrcweir }
603cdf0e10cSrcweir 
604cdf0e10cSrcweir //=========================================================================
605cdf0e10cSrcweir //
606cdf0e10cSrcweir // XTypeProvider methods.
607cdf0e10cSrcweir //
608cdf0e10cSrcweir //=========================================================================
609cdf0e10cSrcweir 
610cdf0e10cSrcweir // virtual
getImplementationId()611cdf0e10cSrcweir uno::Sequence< sal_Int8 > SAL_CALL InteractionDisapprove::getImplementationId()
612cdf0e10cSrcweir     throw( uno::RuntimeException )
613cdf0e10cSrcweir {
614cdf0e10cSrcweir 	static cppu::OImplementationId* pId = NULL;
615cdf0e10cSrcweir   	if ( !pId )
616cdf0e10cSrcweir   	{
617cdf0e10cSrcweir 		osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );
618cdf0e10cSrcweir 	  	if ( !pId )
619cdf0e10cSrcweir 	  	{
620cdf0e10cSrcweir 		  	static cppu::OImplementationId id( sal_False );
621cdf0e10cSrcweir 		  	pId = &id;
622cdf0e10cSrcweir 	  	}
623cdf0e10cSrcweir   	}
624cdf0e10cSrcweir   	return (*pId).getImplementationId();
625cdf0e10cSrcweir }
626cdf0e10cSrcweir 
627cdf0e10cSrcweir //=========================================================================
628cdf0e10cSrcweir // virtual
getTypes()629cdf0e10cSrcweir uno::Sequence< uno::Type > SAL_CALL InteractionDisapprove::getTypes()
630cdf0e10cSrcweir     throw( uno::RuntimeException )
631cdf0e10cSrcweir {
632cdf0e10cSrcweir     static cppu::OTypeCollection* pCollection = 0;
633cdf0e10cSrcweir   	if ( !pCollection )
634cdf0e10cSrcweir   	{
635cdf0e10cSrcweir 		osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );
636cdf0e10cSrcweir 		if ( !pCollection )
637cdf0e10cSrcweir 		{
638cdf0e10cSrcweir 			static cppu::OTypeCollection collection(
639cdf0e10cSrcweir                 getCppuType( static_cast<
640cdf0e10cSrcweir                     uno::Reference< lang::XTypeProvider > * >( 0 ) ),
641cdf0e10cSrcweir                 getCppuType( static_cast<
642cdf0e10cSrcweir                     uno::Reference< task::XInteractionDisapprove > * >( 0 ) ) );
643cdf0e10cSrcweir 			pCollection = &collection;
644cdf0e10cSrcweir 		}
645cdf0e10cSrcweir 	}
646cdf0e10cSrcweir 	return (*pCollection).getTypes();
647cdf0e10cSrcweir }
648cdf0e10cSrcweir 
649cdf0e10cSrcweir //=========================================================================
650cdf0e10cSrcweir //
651cdf0e10cSrcweir // XInteractionContinuation methods.
652cdf0e10cSrcweir //
653cdf0e10cSrcweir //=========================================================================
654cdf0e10cSrcweir 
655cdf0e10cSrcweir // virtual
select()656cdf0e10cSrcweir void SAL_CALL InteractionDisapprove::select()
657cdf0e10cSrcweir     throw( uno::RuntimeException )
658cdf0e10cSrcweir {
659cdf0e10cSrcweir     recordSelection();
660cdf0e10cSrcweir }
661cdf0e10cSrcweir 
662cdf0e10cSrcweir //=========================================================================
663cdf0e10cSrcweir //=========================================================================
664cdf0e10cSrcweir //
665cdf0e10cSrcweir // InteractionSupplyAuthentication Implementation.
666cdf0e10cSrcweir //
667cdf0e10cSrcweir //=========================================================================
668cdf0e10cSrcweir //=========================================================================
669cdf0e10cSrcweir 
670cdf0e10cSrcweir //=========================================================================
671cdf0e10cSrcweir //
672cdf0e10cSrcweir // XInterface methods.
673cdf0e10cSrcweir //
674cdf0e10cSrcweir //=========================================================================
675cdf0e10cSrcweir 
676cdf0e10cSrcweir // virtual
acquire()677cdf0e10cSrcweir void SAL_CALL InteractionSupplyAuthentication::acquire()
678cdf0e10cSrcweir     throw()
679cdf0e10cSrcweir {
680cdf0e10cSrcweir 	OWeakObject::acquire();
681cdf0e10cSrcweir }
682cdf0e10cSrcweir 
683cdf0e10cSrcweir //=========================================================================
684cdf0e10cSrcweir // virtual
release()685cdf0e10cSrcweir void SAL_CALL InteractionSupplyAuthentication::release()
686cdf0e10cSrcweir     throw()
687cdf0e10cSrcweir {
688cdf0e10cSrcweir 	OWeakObject::release();
689cdf0e10cSrcweir }
690cdf0e10cSrcweir 
691cdf0e10cSrcweir //=========================================================================
692cdf0e10cSrcweir // virtual
693cdf0e10cSrcweir uno::Any SAL_CALL
queryInterface(const uno::Type & rType)694cdf0e10cSrcweir InteractionSupplyAuthentication::queryInterface( const uno::Type & rType )
695cdf0e10cSrcweir     throw ( uno::RuntimeException )
696cdf0e10cSrcweir {
697cdf0e10cSrcweir     uno::Any aRet = cppu::queryInterface( rType,
698cdf0e10cSrcweir             static_cast< lang::XTypeProvider * >( this ),
699cdf0e10cSrcweir             static_cast< task::XInteractionContinuation * >( this ),
700cdf0e10cSrcweir 		    static_cast< ucb::XInteractionSupplyAuthentication * >( this ),
701cdf0e10cSrcweir 			static_cast< ucb::XInteractionSupplyAuthentication2 * >( this ));
702cdf0e10cSrcweir 
703cdf0e10cSrcweir     return aRet.hasValue()
704cdf0e10cSrcweir             ? aRet : InteractionContinuation::queryInterface( rType );
705cdf0e10cSrcweir }
706cdf0e10cSrcweir 
707cdf0e10cSrcweir //=========================================================================
708cdf0e10cSrcweir //
709cdf0e10cSrcweir // XTypeProvider methods.
710cdf0e10cSrcweir //
711cdf0e10cSrcweir //=========================================================================
712cdf0e10cSrcweir 
713cdf0e10cSrcweir // virtual
714cdf0e10cSrcweir uno::Sequence< sal_Int8 > SAL_CALL
getImplementationId()715cdf0e10cSrcweir InteractionSupplyAuthentication::getImplementationId()
716cdf0e10cSrcweir     throw( uno::RuntimeException )
717cdf0e10cSrcweir {
718cdf0e10cSrcweir 	static cppu::OImplementationId* pId = NULL;
719cdf0e10cSrcweir   	if ( !pId )
720cdf0e10cSrcweir   	{
721cdf0e10cSrcweir 		osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );
722cdf0e10cSrcweir 	  	if ( !pId )
723cdf0e10cSrcweir 	  	{
724cdf0e10cSrcweir 		  	static cppu::OImplementationId id( sal_False );
725cdf0e10cSrcweir 		  	pId = &id;
726cdf0e10cSrcweir 	  	}
727cdf0e10cSrcweir   	}
728cdf0e10cSrcweir   	return (*pId).getImplementationId();
729cdf0e10cSrcweir }
730cdf0e10cSrcweir 
731cdf0e10cSrcweir //=========================================================================
732cdf0e10cSrcweir // virtual
getTypes()733cdf0e10cSrcweir uno::Sequence< uno::Type > SAL_CALL InteractionSupplyAuthentication::getTypes()
734cdf0e10cSrcweir     throw( uno::RuntimeException )
735cdf0e10cSrcweir {
736cdf0e10cSrcweir     static cppu::OTypeCollection* pCollection = 0;
737cdf0e10cSrcweir   	if ( !pCollection )
738cdf0e10cSrcweir   	{
739cdf0e10cSrcweir 		osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );
740cdf0e10cSrcweir 		if ( !pCollection )
741cdf0e10cSrcweir 		{
742cdf0e10cSrcweir 			static cppu::OTypeCollection collection(
743cdf0e10cSrcweir                 getCppuType( static_cast<
744cdf0e10cSrcweir                     uno::Reference< lang::XTypeProvider > * >( 0 ) ),
745cdf0e10cSrcweir                 getCppuType( static_cast<
746cdf0e10cSrcweir                     uno::Reference<
747cdf0e10cSrcweir                         ucb::XInteractionSupplyAuthentication2 > * >( 0 ) ) );
748cdf0e10cSrcweir 			pCollection = &collection;
749cdf0e10cSrcweir 		}
750cdf0e10cSrcweir 	}
751cdf0e10cSrcweir 	return (*pCollection).getTypes();
752cdf0e10cSrcweir }
753cdf0e10cSrcweir 
754cdf0e10cSrcweir //=========================================================================
755cdf0e10cSrcweir //
756cdf0e10cSrcweir // XInteractionContinuation methods.
757cdf0e10cSrcweir //
758cdf0e10cSrcweir //=========================================================================
759cdf0e10cSrcweir 
760cdf0e10cSrcweir // virtual
select()761cdf0e10cSrcweir void SAL_CALL InteractionSupplyAuthentication::select()
762cdf0e10cSrcweir     throw( uno::RuntimeException )
763cdf0e10cSrcweir {
764cdf0e10cSrcweir     recordSelection();
765cdf0e10cSrcweir }
766cdf0e10cSrcweir 
767cdf0e10cSrcweir //=========================================================================
768cdf0e10cSrcweir //
769cdf0e10cSrcweir // XInteractionSupplyAuthentication methods.
770cdf0e10cSrcweir //
771cdf0e10cSrcweir //=========================================================================
772cdf0e10cSrcweir 
773cdf0e10cSrcweir // virtual
774cdf0e10cSrcweir sal_Bool SAL_CALL
canSetRealm()775cdf0e10cSrcweir InteractionSupplyAuthentication::canSetRealm()
776cdf0e10cSrcweir     throw( uno::RuntimeException )
777cdf0e10cSrcweir {
778cdf0e10cSrcweir     return m_bCanSetRealm;
779cdf0e10cSrcweir }
780cdf0e10cSrcweir 
781cdf0e10cSrcweir //=========================================================================
782cdf0e10cSrcweir // virtual
783cdf0e10cSrcweir void SAL_CALL
setRealm(const rtl::OUString & Realm)784cdf0e10cSrcweir InteractionSupplyAuthentication::setRealm( const rtl::OUString& Realm )
785cdf0e10cSrcweir     throw( uno::RuntimeException )
786cdf0e10cSrcweir {
787cdf0e10cSrcweir     OSL_ENSURE( m_bCanSetPassword,
788cdf0e10cSrcweir         "InteractionSupplyAuthentication::setRealm - Not supported!" );
789cdf0e10cSrcweir 
790cdf0e10cSrcweir     if ( m_bCanSetRealm )
791cdf0e10cSrcweir         m_aRealm = Realm;
792cdf0e10cSrcweir }
793cdf0e10cSrcweir 
794cdf0e10cSrcweir //=========================================================================
795cdf0e10cSrcweir // virtual
796cdf0e10cSrcweir sal_Bool SAL_CALL
canSetUserName()797cdf0e10cSrcweir InteractionSupplyAuthentication::canSetUserName()
798cdf0e10cSrcweir     throw( uno::RuntimeException )
799cdf0e10cSrcweir {
800cdf0e10cSrcweir     return m_bCanSetUserName;
801cdf0e10cSrcweir }
802cdf0e10cSrcweir 
803cdf0e10cSrcweir //=========================================================================
804cdf0e10cSrcweir // virtual
805cdf0e10cSrcweir void SAL_CALL
setUserName(const rtl::OUString & UserName)806cdf0e10cSrcweir InteractionSupplyAuthentication::setUserName( const rtl::OUString& UserName )
807cdf0e10cSrcweir     throw( uno::RuntimeException )
808cdf0e10cSrcweir {
809cdf0e10cSrcweir     OSL_ENSURE( m_bCanSetUserName,
810cdf0e10cSrcweir         "InteractionSupplyAuthentication::setUserName - Not supported!" );
811cdf0e10cSrcweir 
812cdf0e10cSrcweir     if ( m_bCanSetUserName )
813cdf0e10cSrcweir         m_aUserName = UserName;
814cdf0e10cSrcweir }
815cdf0e10cSrcweir 
816cdf0e10cSrcweir //=========================================================================
817cdf0e10cSrcweir // virtual
818cdf0e10cSrcweir sal_Bool SAL_CALL
canSetPassword()819cdf0e10cSrcweir InteractionSupplyAuthentication::canSetPassword()
820cdf0e10cSrcweir     throw( uno::RuntimeException )
821cdf0e10cSrcweir {
822cdf0e10cSrcweir     return m_bCanSetPassword;
823cdf0e10cSrcweir }
824cdf0e10cSrcweir 
825cdf0e10cSrcweir //=========================================================================
826cdf0e10cSrcweir // virtual
827cdf0e10cSrcweir void SAL_CALL
setPassword(const rtl::OUString & Password)828cdf0e10cSrcweir InteractionSupplyAuthentication::setPassword( const rtl::OUString& Password )
829cdf0e10cSrcweir     throw( uno::RuntimeException )
830cdf0e10cSrcweir {
831cdf0e10cSrcweir     OSL_ENSURE( m_bCanSetPassword,
832cdf0e10cSrcweir         "InteractionSupplyAuthentication::setPassword - Not supported!" );
833cdf0e10cSrcweir 
834cdf0e10cSrcweir     if ( m_bCanSetPassword )
835cdf0e10cSrcweir         m_aPassword = Password;
836cdf0e10cSrcweir }
837cdf0e10cSrcweir 
838cdf0e10cSrcweir //=========================================================================
839cdf0e10cSrcweir // virtual
840cdf0e10cSrcweir uno::Sequence< ucb::RememberAuthentication > SAL_CALL
getRememberPasswordModes(ucb::RememberAuthentication & Default)841cdf0e10cSrcweir InteractionSupplyAuthentication::getRememberPasswordModes(
842cdf0e10cSrcweir                                     ucb::RememberAuthentication& Default )
843cdf0e10cSrcweir     throw( uno::RuntimeException )
844cdf0e10cSrcweir {
845cdf0e10cSrcweir     Default = m_eDefaultRememberPasswordMode;
846cdf0e10cSrcweir     return m_aRememberPasswordModes;
847cdf0e10cSrcweir }
848cdf0e10cSrcweir 
849cdf0e10cSrcweir //=========================================================================
850cdf0e10cSrcweir // virtual
851cdf0e10cSrcweir void SAL_CALL
setRememberPassword(ucb::RememberAuthentication Remember)852cdf0e10cSrcweir InteractionSupplyAuthentication::setRememberPassword(
853cdf0e10cSrcweir                                     ucb::RememberAuthentication Remember )
854cdf0e10cSrcweir     throw( uno::RuntimeException )
855cdf0e10cSrcweir {
856cdf0e10cSrcweir     m_eRememberPasswordMode = Remember;
857cdf0e10cSrcweir }
858cdf0e10cSrcweir 
859cdf0e10cSrcweir //=========================================================================
860cdf0e10cSrcweir // virtual
861cdf0e10cSrcweir sal_Bool SAL_CALL
canSetAccount()862cdf0e10cSrcweir InteractionSupplyAuthentication::canSetAccount()
863cdf0e10cSrcweir     throw( uno::RuntimeException )
864cdf0e10cSrcweir {
865cdf0e10cSrcweir     return m_bCanSetAccount;
866cdf0e10cSrcweir }
867cdf0e10cSrcweir 
868cdf0e10cSrcweir //=========================================================================
869cdf0e10cSrcweir // virtual
870cdf0e10cSrcweir void SAL_CALL
setAccount(const rtl::OUString & Account)871cdf0e10cSrcweir InteractionSupplyAuthentication::setAccount( const rtl::OUString& Account )
872cdf0e10cSrcweir     throw( uno::RuntimeException )
873cdf0e10cSrcweir {
874cdf0e10cSrcweir     OSL_ENSURE( m_bCanSetAccount,
875cdf0e10cSrcweir         "InteractionSupplyAuthentication::setAccount - Not supported!" );
876cdf0e10cSrcweir 
877cdf0e10cSrcweir     if ( m_bCanSetAccount )
878cdf0e10cSrcweir         m_aAccount = Account;
879cdf0e10cSrcweir }
880cdf0e10cSrcweir 
881cdf0e10cSrcweir //=========================================================================
882cdf0e10cSrcweir // virtual
883cdf0e10cSrcweir uno::Sequence< ucb::RememberAuthentication > SAL_CALL
getRememberAccountModes(ucb::RememberAuthentication & Default)884cdf0e10cSrcweir InteractionSupplyAuthentication::getRememberAccountModes(
885cdf0e10cSrcweir                                     ucb::RememberAuthentication& Default )
886cdf0e10cSrcweir     throw( uno::RuntimeException )
887cdf0e10cSrcweir {
888cdf0e10cSrcweir     Default = m_eDefaultRememberAccountMode;
889cdf0e10cSrcweir     return m_aRememberAccountModes;
890cdf0e10cSrcweir }
891cdf0e10cSrcweir 
892cdf0e10cSrcweir //=========================================================================
893cdf0e10cSrcweir // virtual
setRememberAccount(ucb::RememberAuthentication Remember)894cdf0e10cSrcweir void SAL_CALL InteractionSupplyAuthentication::setRememberAccount(
895cdf0e10cSrcweir                                     ucb::RememberAuthentication Remember )
896cdf0e10cSrcweir     throw( uno::RuntimeException )
897cdf0e10cSrcweir {
898cdf0e10cSrcweir     m_eRememberAccountMode = Remember;
899cdf0e10cSrcweir }
900cdf0e10cSrcweir 
901cdf0e10cSrcweir //=========================================================================
902cdf0e10cSrcweir //
903cdf0e10cSrcweir // XInteractionSupplyAuthentication2 methods.
904cdf0e10cSrcweir //
905cdf0e10cSrcweir //=========================================================================
906cdf0e10cSrcweir 
907cdf0e10cSrcweir // virtual
908cdf0e10cSrcweir ::sal_Bool SAL_CALL
canUseSystemCredentials(::sal_Bool & Default)909cdf0e10cSrcweir InteractionSupplyAuthentication::canUseSystemCredentials(
910cdf0e10cSrcweir         ::sal_Bool& Default )
911cdf0e10cSrcweir 	throw ( uno::RuntimeException )
912cdf0e10cSrcweir {
913cdf0e10cSrcweir     Default = m_bDefaultUseSystemCredentials;
914cdf0e10cSrcweir     return m_bCanUseSystemCredentials;
915cdf0e10cSrcweir }
916cdf0e10cSrcweir 
917cdf0e10cSrcweir //=========================================================================
918cdf0e10cSrcweir // virtual
setUseSystemCredentials(::sal_Bool UseSystemCredentials)919cdf0e10cSrcweir void SAL_CALL InteractionSupplyAuthentication::setUseSystemCredentials(
920cdf0e10cSrcweir 	    ::sal_Bool UseSystemCredentials )
921cdf0e10cSrcweir 	throw ( uno::RuntimeException )
922cdf0e10cSrcweir {
923cdf0e10cSrcweir 	if ( m_bCanUseSystemCredentials )
924cdf0e10cSrcweir 		m_bUseSystemCredentials = UseSystemCredentials;
925cdf0e10cSrcweir }
926cdf0e10cSrcweir 
927cdf0e10cSrcweir 
928cdf0e10cSrcweir //=========================================================================
929cdf0e10cSrcweir //=========================================================================
930cdf0e10cSrcweir //
931cdf0e10cSrcweir // InteractionSupplyName Implementation.
932cdf0e10cSrcweir //
933cdf0e10cSrcweir //=========================================================================
934cdf0e10cSrcweir //=========================================================================
935cdf0e10cSrcweir 
936cdf0e10cSrcweir //=========================================================================
937cdf0e10cSrcweir //
938cdf0e10cSrcweir // XInterface methods.
939cdf0e10cSrcweir //
940cdf0e10cSrcweir //=========================================================================
941cdf0e10cSrcweir 
942cdf0e10cSrcweir // virtual
acquire()943cdf0e10cSrcweir void SAL_CALL InteractionSupplyName::acquire()
944cdf0e10cSrcweir     throw()
945cdf0e10cSrcweir {
946cdf0e10cSrcweir 	OWeakObject::acquire();
947cdf0e10cSrcweir }
948cdf0e10cSrcweir 
949cdf0e10cSrcweir //=========================================================================
950cdf0e10cSrcweir // virtual
release()951cdf0e10cSrcweir void SAL_CALL InteractionSupplyName::release()
952cdf0e10cSrcweir     throw()
953cdf0e10cSrcweir {
954cdf0e10cSrcweir 	OWeakObject::release();
955cdf0e10cSrcweir }
956cdf0e10cSrcweir 
957cdf0e10cSrcweir //=========================================================================
958cdf0e10cSrcweir // virtual
959cdf0e10cSrcweir uno::Any SAL_CALL
queryInterface(const uno::Type & rType)960cdf0e10cSrcweir InteractionSupplyName::queryInterface( const uno::Type & rType )
961cdf0e10cSrcweir     throw ( uno::RuntimeException )
962cdf0e10cSrcweir {
963cdf0e10cSrcweir     uno::Any aRet = cppu::queryInterface( rType,
964cdf0e10cSrcweir                 static_cast< lang::XTypeProvider * >( this ),
965cdf0e10cSrcweir                 static_cast< task::XInteractionContinuation * >( this ),
966cdf0e10cSrcweir                 static_cast< ucb::XInteractionSupplyName * >( this ) );
967cdf0e10cSrcweir 
968cdf0e10cSrcweir     return aRet.hasValue()
969cdf0e10cSrcweir             ? aRet : InteractionContinuation::queryInterface( rType );
970cdf0e10cSrcweir }
971cdf0e10cSrcweir 
972cdf0e10cSrcweir //=========================================================================
973cdf0e10cSrcweir //
974cdf0e10cSrcweir // XTypeProvider methods.
975cdf0e10cSrcweir //
976cdf0e10cSrcweir //=========================================================================
977cdf0e10cSrcweir 
978cdf0e10cSrcweir // virtual
getImplementationId()979cdf0e10cSrcweir uno::Sequence< sal_Int8 > SAL_CALL InteractionSupplyName::getImplementationId()
980cdf0e10cSrcweir     throw( uno::RuntimeException )
981cdf0e10cSrcweir {
982cdf0e10cSrcweir 	static cppu::OImplementationId* pId = NULL;
983cdf0e10cSrcweir   	if ( !pId )
984cdf0e10cSrcweir   	{
985cdf0e10cSrcweir 		osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );
986cdf0e10cSrcweir 	  	if ( !pId )
987cdf0e10cSrcweir 	  	{
988cdf0e10cSrcweir 		  	static cppu::OImplementationId id( sal_False );
989cdf0e10cSrcweir 		  	pId = &id;
990cdf0e10cSrcweir 	  	}
991cdf0e10cSrcweir   	}
992cdf0e10cSrcweir   	return (*pId).getImplementationId();
993cdf0e10cSrcweir }
994cdf0e10cSrcweir 
995cdf0e10cSrcweir //=========================================================================
996cdf0e10cSrcweir // virtual
getTypes()997cdf0e10cSrcweir uno::Sequence< uno::Type > SAL_CALL InteractionSupplyName::getTypes()
998cdf0e10cSrcweir     throw( uno::RuntimeException )
999cdf0e10cSrcweir {
1000cdf0e10cSrcweir     static cppu::OTypeCollection* pCollection = 0;
1001cdf0e10cSrcweir   	if ( !pCollection )
1002cdf0e10cSrcweir   	{
1003cdf0e10cSrcweir 		osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );
1004cdf0e10cSrcweir 		if ( !pCollection )
1005cdf0e10cSrcweir 		{
1006cdf0e10cSrcweir 			static cppu::OTypeCollection collection(
1007cdf0e10cSrcweir                 getCppuType( static_cast<
1008cdf0e10cSrcweir                     uno::Reference< lang::XTypeProvider > * >( 0 ) ),
1009cdf0e10cSrcweir                 getCppuType( static_cast<
1010cdf0e10cSrcweir                     uno::Reference< ucb::XInteractionSupplyName > * >( 0 ) ) );
1011cdf0e10cSrcweir 			pCollection = &collection;
1012cdf0e10cSrcweir 		}
1013cdf0e10cSrcweir 	}
1014cdf0e10cSrcweir 	return (*pCollection).getTypes();
1015cdf0e10cSrcweir }
1016cdf0e10cSrcweir 
1017cdf0e10cSrcweir //=========================================================================
1018cdf0e10cSrcweir //
1019cdf0e10cSrcweir // XInteractionContinuation methods.
1020cdf0e10cSrcweir //
1021cdf0e10cSrcweir //=========================================================================
1022cdf0e10cSrcweir 
1023cdf0e10cSrcweir // virtual
select()1024cdf0e10cSrcweir void SAL_CALL InteractionSupplyName::select()
1025cdf0e10cSrcweir     throw( uno::RuntimeException )
1026cdf0e10cSrcweir {
1027cdf0e10cSrcweir     recordSelection();
1028cdf0e10cSrcweir }
1029cdf0e10cSrcweir 
1030cdf0e10cSrcweir //=========================================================================
1031cdf0e10cSrcweir //
1032cdf0e10cSrcweir // XInteractionSupplyName methods.
1033cdf0e10cSrcweir //
1034cdf0e10cSrcweir //=========================================================================
1035cdf0e10cSrcweir 
1036cdf0e10cSrcweir // virtual
1037cdf0e10cSrcweir void SAL_CALL
setName(const rtl::OUString & Name)1038cdf0e10cSrcweir InteractionSupplyName::setName( const rtl::OUString& Name )
1039cdf0e10cSrcweir     throw( uno::RuntimeException )
1040cdf0e10cSrcweir {
1041cdf0e10cSrcweir     m_aName = Name;
1042cdf0e10cSrcweir }
1043cdf0e10cSrcweir 
1044cdf0e10cSrcweir //=========================================================================
1045cdf0e10cSrcweir //=========================================================================
1046cdf0e10cSrcweir //
1047cdf0e10cSrcweir // InteractionReplaceExistingData Implementation.
1048cdf0e10cSrcweir //
1049cdf0e10cSrcweir //=========================================================================
1050cdf0e10cSrcweir //=========================================================================
1051cdf0e10cSrcweir 
1052cdf0e10cSrcweir //=========================================================================
1053cdf0e10cSrcweir //
1054cdf0e10cSrcweir // XInterface methods.
1055cdf0e10cSrcweir //
1056cdf0e10cSrcweir //=========================================================================
1057cdf0e10cSrcweir 
1058cdf0e10cSrcweir // virtual
acquire()1059cdf0e10cSrcweir void SAL_CALL InteractionReplaceExistingData::acquire()
1060cdf0e10cSrcweir     throw()
1061cdf0e10cSrcweir {
1062cdf0e10cSrcweir 	OWeakObject::acquire();
1063cdf0e10cSrcweir }
1064cdf0e10cSrcweir 
1065cdf0e10cSrcweir //=========================================================================
1066cdf0e10cSrcweir // virtual
release()1067cdf0e10cSrcweir void SAL_CALL InteractionReplaceExistingData::release()
1068cdf0e10cSrcweir     throw()
1069cdf0e10cSrcweir {
1070cdf0e10cSrcweir 	OWeakObject::release();
1071cdf0e10cSrcweir }
1072cdf0e10cSrcweir 
1073cdf0e10cSrcweir //=========================================================================
1074cdf0e10cSrcweir // virtual
1075cdf0e10cSrcweir uno::Any SAL_CALL
queryInterface(const uno::Type & rType)1076cdf0e10cSrcweir InteractionReplaceExistingData::queryInterface( const uno::Type & rType )
1077cdf0e10cSrcweir     throw ( uno::RuntimeException )
1078cdf0e10cSrcweir {
1079cdf0e10cSrcweir     uno::Any aRet = cppu::queryInterface( rType,
1080cdf0e10cSrcweir                 static_cast< lang::XTypeProvider * >( this ),
1081cdf0e10cSrcweir                 static_cast< task::XInteractionContinuation * >( this ),
1082cdf0e10cSrcweir                 static_cast< ucb::XInteractionReplaceExistingData * >( this ) );
1083cdf0e10cSrcweir 
1084cdf0e10cSrcweir     return aRet.hasValue()
1085cdf0e10cSrcweir             ? aRet : InteractionContinuation::queryInterface( rType );
1086cdf0e10cSrcweir }
1087cdf0e10cSrcweir 
1088cdf0e10cSrcweir //=========================================================================
1089cdf0e10cSrcweir //
1090cdf0e10cSrcweir // XTypeProvider methods.
1091cdf0e10cSrcweir //
1092cdf0e10cSrcweir //=========================================================================
1093cdf0e10cSrcweir 
1094cdf0e10cSrcweir // virtual
1095cdf0e10cSrcweir uno::Sequence< sal_Int8 > SAL_CALL
getImplementationId()1096cdf0e10cSrcweir InteractionReplaceExistingData::getImplementationId()
1097cdf0e10cSrcweir     throw( uno::RuntimeException )
1098cdf0e10cSrcweir {
1099cdf0e10cSrcweir 	static cppu::OImplementationId* pId = NULL;
1100cdf0e10cSrcweir   	if ( !pId )
1101cdf0e10cSrcweir   	{
1102cdf0e10cSrcweir 		osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );
1103cdf0e10cSrcweir 	  	if ( !pId )
1104cdf0e10cSrcweir 	  	{
1105cdf0e10cSrcweir 		  	static cppu::OImplementationId id( sal_False );
1106cdf0e10cSrcweir 		  	pId = &id;
1107cdf0e10cSrcweir 	  	}
1108cdf0e10cSrcweir   	}
1109cdf0e10cSrcweir   	return (*pId).getImplementationId();
1110cdf0e10cSrcweir }
1111cdf0e10cSrcweir 
1112cdf0e10cSrcweir //=========================================================================
1113cdf0e10cSrcweir // virtual
getTypes()1114cdf0e10cSrcweir uno::Sequence< uno::Type > SAL_CALL InteractionReplaceExistingData::getTypes()
1115cdf0e10cSrcweir     throw( uno::RuntimeException )
1116cdf0e10cSrcweir {
1117cdf0e10cSrcweir     static cppu::OTypeCollection* pCollection = 0;
1118cdf0e10cSrcweir   	if ( !pCollection )
1119cdf0e10cSrcweir   	{
1120cdf0e10cSrcweir 		osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );
1121cdf0e10cSrcweir 		if ( !pCollection )
1122cdf0e10cSrcweir 		{
1123cdf0e10cSrcweir 			static cppu::OTypeCollection collection(
1124cdf0e10cSrcweir                 getCppuType( static_cast<
1125cdf0e10cSrcweir                     uno::Reference< lang::XTypeProvider > * >( 0 ) ),
1126cdf0e10cSrcweir                 getCppuType( static_cast<
1127cdf0e10cSrcweir                     uno::Reference<
1128cdf0e10cSrcweir                         ucb::XInteractionReplaceExistingData > * >( 0 ) ) );
1129cdf0e10cSrcweir 			pCollection = &collection;
1130cdf0e10cSrcweir 		}
1131cdf0e10cSrcweir 	}
1132cdf0e10cSrcweir 	return (*pCollection).getTypes();
1133cdf0e10cSrcweir }
1134cdf0e10cSrcweir 
1135cdf0e10cSrcweir //=========================================================================
1136cdf0e10cSrcweir //
1137cdf0e10cSrcweir // XInteractionContinuation methods.
1138cdf0e10cSrcweir //
1139cdf0e10cSrcweir //=========================================================================
1140cdf0e10cSrcweir 
1141cdf0e10cSrcweir // virtual
select()1142cdf0e10cSrcweir void SAL_CALL InteractionReplaceExistingData::select()
1143cdf0e10cSrcweir     throw( uno::RuntimeException )
1144cdf0e10cSrcweir {
1145cdf0e10cSrcweir     recordSelection();
1146cdf0e10cSrcweir }
1147cdf0e10cSrcweir 
1148