1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef _FTP_FTPINTREQ_HXX
21 #define _FTP_FTPINTREQ_HXX
23 #include <cppuhelper/weak.hxx>
24 #include <ucbhelper/macros.hxx>
25 #include <rtl/ustring.hxx>
26 #include <com/sun/star/uno/XInterface.hpp>
27 #include <com/sun/star/lang/XTypeProvider.hpp>
28 #include <com/sun/star/task/XInteractionDisapprove.hpp>
29 #include <com/sun/star/task/XInteractionApprove.hpp>
30 #include <com/sun/star/task/XInteractionRequest.hpp>
36 class XInteractionApproveImpl
37 : public cppu::OWeakObject
,
38 public com::sun::star::lang::XTypeProvider
,
39 public com::sun::star::task::XInteractionApprove
43 XInteractionApproveImpl();
45 virtual com::sun::star::uno::Any SAL_CALL
47 const com::sun::star::uno::Type
& rType
)
48 throw( com::sun::star::uno::RuntimeException
);
65 virtual void SAL_CALL
select()
66 throw (com::sun::star::uno::RuntimeException
);
68 bool isSelected() const;
78 class XInteractionDisapproveImpl
79 : public cppu::OWeakObject
,
80 public com::sun::star::lang::XTypeProvider
,
81 public com::sun::star::task::XInteractionDisapprove
85 XInteractionDisapproveImpl();
87 virtual com::sun::star::uno::Any SAL_CALL
89 const com::sun::star::uno::Type
& rType
)
90 throw( com::sun::star::uno::RuntimeException
);
107 virtual void SAL_CALL
select()
108 throw (com::sun::star::uno::RuntimeException
);
117 class XInteractionRequestImpl
118 : public cppu::OWeakObject
,
119 public com::sun::star::lang::XTypeProvider
,
120 public com::sun::star::task::XInteractionRequest
124 XInteractionRequestImpl(const OUString
& aName
);
126 virtual com::sun::star::uno::Any SAL_CALL
128 const com::sun::star::uno::Type
& rType
)
129 throw( com::sun::star::uno::RuntimeException
);
131 virtual void SAL_CALL
136 virtual void SAL_CALL
146 com::sun::star::uno::Any SAL_CALL
148 throw (com::sun::star::uno::RuntimeException
);
150 com::sun::star::uno::Sequence
<
151 com::sun::star::uno::Reference
<
152 com::sun::star::task::XInteractionContinuation
> > SAL_CALL
154 throw (com::sun::star::uno::RuntimeException
);
156 bool approved() const;
160 XInteractionApproveImpl
* p1
;
161 XInteractionDisapproveImpl
* p2
;
165 com::sun::star::uno::Sequence
<
166 com::sun::star::uno::Reference
<
167 com::sun::star::task::XInteractionContinuation
> > m_aSeq
;
175 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */