1*1c4c525fSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*1c4c525fSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*1c4c525fSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*1c4c525fSAndrew Rist * distributed with this work for additional information 6*1c4c525fSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*1c4c525fSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*1c4c525fSAndrew Rist * "License"); you may not use this file except in compliance 9*1c4c525fSAndrew Rist * with the License. You may obtain a copy of the License at 10*1c4c525fSAndrew Rist * 11*1c4c525fSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*1c4c525fSAndrew Rist * 13*1c4c525fSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*1c4c525fSAndrew Rist * software distributed under the License is distributed on an 15*1c4c525fSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*1c4c525fSAndrew Rist * KIND, either express or implied. See the License for the 17*1c4c525fSAndrew Rist * specific language governing permissions and limitations 18*1c4c525fSAndrew Rist * under the License. 19*1c4c525fSAndrew Rist * 20*1c4c525fSAndrew Rist *************************************************************/ 21*1c4c525fSAndrew Rist 22*1c4c525fSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #if !defined INCLUDED_STOC_JAVAVM_INTERACT_HXX 25cdf0e10cSrcweir #define INCLUDED_STOC_JAVAVM_INTERACT_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include "com/sun/star/task/XInteractionRequest.hpp" 28cdf0e10cSrcweir #include "com/sun/star/uno/Any.hxx" 29cdf0e10cSrcweir #include "com/sun/star/uno/Reference.hxx" 30cdf0e10cSrcweir #include "com/sun/star/uno/Sequence.hxx" 31cdf0e10cSrcweir #include "cppuhelper/implbase1.hxx" 32cdf0e10cSrcweir #include "rtl/ref.hxx" 33cdf0e10cSrcweir 34cdf0e10cSrcweir namespace com { namespace sun { namespace star { namespace task { 35cdf0e10cSrcweir class XInteractionContinuation; 36cdf0e10cSrcweir } } } } 37cdf0e10cSrcweir 38cdf0e10cSrcweir namespace stoc_javavm { 39cdf0e10cSrcweir 40cdf0e10cSrcweir class InteractionRequest: 41cdf0e10cSrcweir public cppu::WeakImplHelper1< com::sun::star::task::XInteractionRequest > 42cdf0e10cSrcweir { 43cdf0e10cSrcweir public: 44cdf0e10cSrcweir explicit InteractionRequest(com::sun::star::uno::Any const & rRequest); 45cdf0e10cSrcweir 46cdf0e10cSrcweir virtual com::sun::star::uno::Any SAL_CALL getRequest() 47cdf0e10cSrcweir throw (com::sun::star::uno::RuntimeException); 48cdf0e10cSrcweir 49cdf0e10cSrcweir virtual com::sun::star::uno::Sequence< com::sun::star::uno::Reference< 50cdf0e10cSrcweir com::sun::star::task::XInteractionContinuation > > SAL_CALL 51cdf0e10cSrcweir getContinuations() throw (com::sun::star::uno::RuntimeException); 52cdf0e10cSrcweir 53cdf0e10cSrcweir bool retry() const; 54cdf0e10cSrcweir 55cdf0e10cSrcweir private: 56cdf0e10cSrcweir class RetryContinuation; 57cdf0e10cSrcweir 58cdf0e10cSrcweir InteractionRequest(InteractionRequest &); // not implemented 59cdf0e10cSrcweir void operator =(InteractionRequest); // not implemented 60cdf0e10cSrcweir 61cdf0e10cSrcweir virtual ~InteractionRequest(); 62cdf0e10cSrcweir 63cdf0e10cSrcweir com::sun::star::uno::Any m_aRequest; 64cdf0e10cSrcweir com::sun::star::uno::Sequence< com::sun::star::uno::Reference< 65cdf0e10cSrcweir com::sun::star::task::XInteractionContinuation > > m_aContinuations; 66cdf0e10cSrcweir rtl::Reference< RetryContinuation > m_xRetryContinuation; 67cdf0e10cSrcweir }; 68cdf0e10cSrcweir 69cdf0e10cSrcweir } 70cdf0e10cSrcweir 71cdf0e10cSrcweir #endif // INCLUDED_STOC_JAVAVM_INTERACT_HXX 72