1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: ftpintreq.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _FTP_FTPINTREQ_HXX
32 #define _FTP_FTPINTREQ_HXX
34 #include <cppuhelper/weak.hxx>
35 #include <ucbhelper/macros.hxx>
36 #include <rtl/ustring.hxx>
37 #include <com/sun/star/uno/XInterface.hpp>
38 #include <com/sun/star/lang/XTypeProvider.hpp>
39 #include <com/sun/star/task/XInteractionDisapprove.hpp>
40 #include <com/sun/star/task/XInteractionApprove.hpp>
41 #include <com/sun/star/task/XInteractionRequest.hpp>
47 class XInteractionApproveImpl
48 : public cppu::OWeakObject
,
49 public com::sun::star::lang::XTypeProvider
,
50 public com::sun::star::task::XInteractionApprove
54 XInteractionApproveImpl();
56 virtual com::sun::star::uno::Any SAL_CALL
58 const com::sun::star::uno::Type
& rType
)
59 throw( com::sun::star::uno::RuntimeException
);
76 virtual void SAL_CALL
select()
77 throw (com::sun::star::uno::RuntimeException
);
79 bool isSelected() const;
89 class XInteractionDisapproveImpl
90 : public cppu::OWeakObject
,
91 public com::sun::star::lang::XTypeProvider
,
92 public com::sun::star::task::XInteractionDisapprove
96 XInteractionDisapproveImpl();
98 virtual com::sun::star::uno::Any SAL_CALL
100 const com::sun::star::uno::Type
& rType
)
101 throw( com::sun::star::uno::RuntimeException
);
103 virtual void SAL_CALL
108 virtual void SAL_CALL
118 virtual void SAL_CALL
select()
119 throw (com::sun::star::uno::RuntimeException
);
121 bool isSelected() const;
130 class XInteractionRequestImpl
131 : public cppu::OWeakObject
,
132 public com::sun::star::lang::XTypeProvider
,
133 public com::sun::star::task::XInteractionRequest
137 XInteractionRequestImpl(const rtl::OUString
& aName
);
139 virtual com::sun::star::uno::Any SAL_CALL
141 const com::sun::star::uno::Type
& rType
)
142 throw( com::sun::star::uno::RuntimeException
);
144 virtual void SAL_CALL
149 virtual void SAL_CALL
159 com::sun::star::uno::Any SAL_CALL
161 throw (com::sun::star::uno::RuntimeException
);
163 com::sun::star::uno::Sequence
<
164 com::sun::star::uno::Reference
<
165 com::sun::star::task::XInteractionContinuation
> > SAL_CALL
167 throw (com::sun::star::uno::RuntimeException
);
169 bool aborted() const;
171 bool approved() const;
175 XInteractionApproveImpl
* p1
;
176 XInteractionDisapproveImpl
* p2
;
178 rtl::OUString m_aName
;
180 com::sun::star::uno::Sequence
<
181 com::sun::star::uno::Reference
<
182 com::sun::star::task::XInteractionContinuation
> > m_aSeq
;