LibreOffice Module ucb (master) 1
ftpcontent.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#pragma once
21
23#include <com/sun/star/ucb/InsertCommandArgument.hpp>
24#include <com/sun/star/ucb/XContentCreator.hpp>
25#include "ftpurl.hxx"
26
27namespace com::sun::star::beans {
28 struct Property;
29 struct PropertyValue;
30}
31
32namespace com::sun::star::sdbc {
33 class XRow;
34}
35
36
37namespace ftp
38{
39
40class FTPContentProvider;
41
43 public css::ucb::XContentCreator
44{
45public:
46
47 FTPContent( const css::uno::Reference<
48 css::uno::XComponentContext >& rxContext,
49 FTPContentProvider* pProvider,
50 const css::uno::Reference<
51 css::ucb::XContentIdentifier >& Identifier,
52 const FTPURL& FtpUrl);
53
54 FTPContent( const css::uno::Reference<
55 css::uno::XComponentContext >& rxContext,
56 FTPContentProvider* pProvider,
57 const css::uno::Reference<
58 css::ucb::XContentIdentifier >& Identifier,
59 css::ucb::ContentInfo aInfo);
60
61
62 virtual ~FTPContent() override;
63
64 // XInterface
65 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
66 virtual void SAL_CALL acquire()
67 noexcept override;
68 virtual void SAL_CALL release()
69 noexcept override;
70
71 // XTypeProvider
72 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
73 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
74
75 // XServiceInfo
76 virtual OUString SAL_CALL getImplementationName() override;
77 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
78 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
79
80 // XContent
81 virtual OUString SAL_CALL getContentType() override;
82
83 // XCommandProcessor
84 virtual css::uno::Any SAL_CALL execute( const css::ucb::Command& aCommand,
85 sal_Int32 CommandId,
86 const css::uno::Reference<
87 css::ucb::XCommandEnvironment >& Environment ) override;
88
89 virtual void SAL_CALL abort(sal_Int32 CommandId) override;
90
91 // XContentCreator
92 virtual css::uno::Sequence<
93 css::ucb::ContentInfo > SAL_CALL
95
96 virtual css::uno::Reference<
97 css::ucb::XContent > SAL_CALL
98 createNewContent( const css::ucb::ContentInfo& Info ) override;
99
100 // XChild
101
102 virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getParent( ) override;
103
104 virtual void SAL_CALL setParent( const css::uno::Reference< css::uno::XInterface >& Parent ) override;
105
107 static css::uno::Sequence< css::ucb::ContentInfo > queryCreatableContentsInfo_Static();
108
109private:
110
116
117 virtual css::uno::Sequence< css::beans::Property >
118 getProperties( const css::uno::Reference<
119 css::ucb::XCommandEnvironment > & xEnv ) override;
120
121
122 virtual css::uno::Sequence< css::ucb::CommandInfo>
123 getCommands(const css::uno::Reference<
124 css::ucb::XCommandEnvironment > & xEnv) override;
125
126
127 virtual OUString getParentURL() override;
128
129 css::uno::Reference<css::sdbc::XRow>
131 const css::uno::Sequence<
132 css::beans::Property>& seqProp
133 );
134
135 css::uno::Sequence<css::uno::Any>
136 setPropertyValues( const css::uno::Sequence<
137 css::beans::PropertyValue>& seqPropVal);
138
139 void insert(const css::ucb::InsertCommandArgument&,
140 const css::uno::Reference<
141 css::ucb::XCommandEnvironment>&);
142 };
143
144}
145
146/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
css::uno::Sequence< css::uno::Any > setPropertyValues(const css::uno::Sequence< css::beans::PropertyValue > &seqPropVal)
Definition: ftpcontent.cxx:784
virtual ~FTPContent() override
Definition: ftpcontent.cxx:114
FTPContentProvider * m_pFCP
Definition: ftpcontent.hxx:111
virtual css::uno::Sequence< css::ucb::ContentInfo > SAL_CALL queryCreatableContentsInfo() override
Definition: ftpcontent.cxx:581
FTPContent(const css::uno::Reference< css::uno::XComponentContext > &rxContext, FTPContentProvider *pProvider, const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier, css::ucb::ContentInfo aInfo)
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
Definition: ftpcontent.cxx:152
virtual void SAL_CALL release() noexcept override
Definition: ftpcontent.cxx:126
virtual css::uno::Reference< css::ucb::XContent > SAL_CALL createNewContent(const css::ucb::ContentInfo &Info) override
Definition: ftpcontent.cxx:604
css::ucb::ContentInfo m_aInfo
Definition: ftpcontent.hxx:115
virtual void SAL_CALL setParent(const css::uno::Reference< css::uno::XInterface > &Parent) override
Definition: ftpcontent.cxx:625
virtual void SAL_CALL acquire() noexcept override
Definition: ftpcontent.cxx:120
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
Definition: ftpcontent.cxx:132
virtual css::uno::Sequence< css::ucb::CommandInfo > getCommands(const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv) override
virtual css::uno::Any SAL_CALL execute(const css::ucb::Command &aCommand, sal_Int32 CommandId, const css::uno::Reference< css::ucb::XCommandEnvironment > &Environment) override
Definition: ftpcontent.cxx:239
static css::uno::Sequence< css::ucb::ContentInfo > queryCreatableContentsInfo_Static()
Definition: ftpcontent.cxx:588
virtual css::uno::Sequence< css::beans::Property > getProperties(const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv) override
virtual OUString SAL_CALL getContentType() override
Definition: ftpcontent.cxx:188
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
Definition: ftpcontent.cxx:174
FTPContent(const css::uno::Reference< css::uno::XComponentContext > &rxContext, FTPContentProvider *pProvider, const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier, const FTPURL &FtpUrl)
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
Definition: ftpcontent.cxx:147
void insert(const css::ucb::InsertCommandArgument &, const css::uno::Reference< css::ucb::XCommandEnvironment > &)
Definition: ftpcontent.cxx:670
virtual OUString SAL_CALL getImplementationName() override
Definition: ftpcontent.cxx:169
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getParent() override
Definition: ftpcontent.cxx:616
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: ftpcontent.cxx:179
css::uno::Reference< css::sdbc::XRow > getPropertyValues(const css::uno::Sequence< css::beans::Property > &seqProp)
Definition: ftpcontent.cxx:734
virtual OUString getParentURL() override
Definition: ftpcontent.cxx:631
virtual void SAL_CALL abort(sal_Int32 CommandId) override
Definition: ftpcontent.cxx:196
Type
Definition of ftpcontentprovider.
unsigned char sal_Bool
signed char sal_Int8