bump product version to 4.1.6.2
[LibreOffice.git] / ucb / source / ucp / ftp / ftpintreq.hxx
blob00fbc5d7c9d9723d9b17a225bd08540434460323
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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>
33 namespace ftp {
36 class XInteractionApproveImpl
37 : public cppu::OWeakObject,
38 public com::sun::star::lang::XTypeProvider,
39 public com::sun::star::task::XInteractionApprove
41 public:
43 XInteractionApproveImpl();
45 virtual com::sun::star::uno::Any SAL_CALL
46 queryInterface(
47 const com::sun::star::uno::Type& rType )
48 throw( com::sun::star::uno::RuntimeException);
50 virtual void SAL_CALL
51 acquire(
52 void )
53 throw();
55 virtual void SAL_CALL
56 release(
57 void )
58 throw();
61 // XTypeProvider
63 XTYPEPROVIDER_DECL()
65 virtual void SAL_CALL select()
66 throw (com::sun::star::uno::RuntimeException);
68 bool isSelected() const;
70 private:
72 bool m_bSelected;
78 class XInteractionDisapproveImpl
79 : public cppu::OWeakObject,
80 public com::sun::star::lang::XTypeProvider,
81 public com::sun::star::task::XInteractionDisapprove
83 public:
85 XInteractionDisapproveImpl();
87 virtual com::sun::star::uno::Any SAL_CALL
88 queryInterface(
89 const com::sun::star::uno::Type& rType )
90 throw( com::sun::star::uno::RuntimeException);
92 virtual void SAL_CALL
93 acquire(
94 void )
95 throw();
97 virtual void SAL_CALL
98 release(
99 void )
100 throw();
103 // XTypeProvider
105 XTYPEPROVIDER_DECL()
107 virtual void SAL_CALL select()
108 throw (com::sun::star::uno::RuntimeException);
110 private:
112 bool m_bSelected;
117 class XInteractionRequestImpl
118 : public cppu::OWeakObject,
119 public com::sun::star::lang::XTypeProvider,
120 public com::sun::star::task::XInteractionRequest
122 public:
124 XInteractionRequestImpl(const OUString& aName);
126 virtual com::sun::star::uno::Any SAL_CALL
127 queryInterface(
128 const com::sun::star::uno::Type& rType )
129 throw( com::sun::star::uno::RuntimeException);
131 virtual void SAL_CALL
132 acquire(
133 void )
134 throw();
136 virtual void SAL_CALL
137 release(
138 void )
139 throw();
142 // XTypeProvider
144 XTYPEPROVIDER_DECL()
146 com::sun::star::uno::Any SAL_CALL
147 getRequest( )
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
153 getContinuations( )
154 throw (com::sun::star::uno::RuntimeException);
156 bool approved() const;
158 private:
160 XInteractionApproveImpl* p1;
161 XInteractionDisapproveImpl* p2;
163 OUString m_aName;
165 com::sun::star::uno::Sequence<
166 com::sun::star::uno::Reference<
167 com::sun::star::task::XInteractionContinuation > > m_aSeq;
173 #endif
175 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */