LibreOffice Module ucb (master)  1
ftpintreq.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
19 
20 #ifndef INCLUDED_UCB_SOURCE_UCP_FTP_FTPINTREQ_HXX
21 #define INCLUDED_UCB_SOURCE_UCP_FTP_FTPINTREQ_HXX
22 
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>
31 #include <cppuhelper/implbase.hxx>
32 
33 
34 namespace ftp {
35 
36  class XInteractionApproveImpl : public cppu::WeakImplHelper <
37  css::task::XInteractionApprove >
38  {
39  public:
40 
42 
43  virtual void SAL_CALL select() override;
44 
45  bool isSelected() const { return m_bSelected;}
46 
47  private:
48 
50  };
51 
52 
53  class XInteractionDisapproveImpl : public cppu::WeakImplHelper <
54  css::task::XInteractionDisapprove >
55  {
56  public:
57 
59 
60  virtual void SAL_CALL select() override;
61  };
62 
63 
65  {
66  public:
67 
69 
70  bool approved() const;
71 
72  css::uno::Reference<css::task::XInteractionRequest> const& getRequest() const
73  {
74  return m_xRequest;
75  }
76 
77  private:
78 
81 
82  css::uno::Reference<css::task::XInteractionRequest> m_xRequest;
83 
86  };
87 
88 }
89 
90 
91 #endif
92 
93 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
XInteractionApproveImpl *const p1
Definition: ftpintreq.hxx:79
css::uno::Reference< css::task::XInteractionRequest > const & getRequest() const
Definition: ftpintreq.hxx:72
Definition of ftpcontentprovider.
virtual void SAL_CALL select() override
Definition: ftpintreq.cxx:42
virtual void SAL_CALL select() override
Definition: ftpintreq.cxx:54
css::uno::Reference< css::task::XInteractionRequest > m_xRequest
Definition: ftpintreq.hxx:82
XInteractionRequestImpl & operator=(const XInteractionRequestImpl &)=delete
XInteractionDisapproveImpl *const p2
Definition: ftpintreq.hxx:80