LibreOffice Module ucb (master)  1
filcmd.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 #ifndef INCLUDED_UCB_SOURCE_UCP_FILE_FILCMD_HXX
20 #define INCLUDED_UCB_SOURCE_UCP_FILE_FILCMD_HXX
21 
22 #include <rtl/ustring.hxx>
23 #include <cppuhelper/weak.hxx>
24 #include <com/sun/star/ucb/XCommandInfo.hpp>
25 
26 
27 namespace fileaccess {
28 
29 
30  // forward
31  class TaskManager;
32 
33 
35  : public cppu::OWeakObject,
36  public css::ucb::XCommandInfo
37  {
38  public:
39 
40  explicit XCommandInfo_impl( TaskManager* pMyShell );
41 
42  virtual ~XCommandInfo_impl() override;
43 
44  // XInterface
45  virtual css::uno::Any SAL_CALL
46  queryInterface( const css::uno::Type& aType ) override;
47 
48  virtual void SAL_CALL
49  acquire()
50  throw() override;
51 
52  virtual void SAL_CALL
53  release()
54  throw() override;
55 
56  // XCommandInfo
57 
58  virtual css::uno::Sequence< css::ucb::CommandInfo > SAL_CALL
59  getCommands() override;
60 
61  virtual css::ucb::CommandInfo SAL_CALL
62  getCommandInfoByName( const OUString& Name ) override;
63 
64  virtual css::ucb::CommandInfo SAL_CALL
65  getCommandInfoByHandle( sal_Int32 Handle ) override;
66 
67  virtual sal_Bool SAL_CALL
68  hasCommandByName( const OUString& Name ) override;
69 
70  virtual sal_Bool SAL_CALL
71  hasCommandByHandle( sal_Int32 Handle ) override;
72 
73 
74  private:
75 
77  };
78 
79 }
80 
81 #endif
82 
83 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void SAL_CALL acquire() override
Definition: filcmd.cxx:49
virtual sal_Bool SAL_CALL hasCommandByName(const OUString &Name) override
Definition: filcmd.cxx:107
virtual ~XCommandInfo_impl() override
Definition: filcmd.cxx:43
OUString Name
virtual css::ucb::CommandInfo SAL_CALL getCommandInfoByHandle(sal_Int32 Handle) override
Definition: filcmd.cxx:94
XCommandInfo_impl(TaskManager *pMyShell)
Definition: filcmd.cxx:38
TaskManager * m_pMyShell
Definition: filcmd.hxx:76
unsigned char sal_Bool
virtual css::uno::Sequence< css::ucb::CommandInfo > SAL_CALL getCommands() override
Definition: filcmd.cxx:74
virtual sal_Bool SAL_CALL hasCommandByHandle(sal_Int32 Handle) override
Definition: filcmd.cxx:116
SQLHANDLE Handle
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &aType) override
Definition: filcmd.cxx:65
virtual css::ucb::CommandInfo SAL_CALL getCommandInfoByName(const OUString &Name) override
Definition: filcmd.cxx:81
virtual void SAL_CALL release() override
Definition: filcmd.cxx:57