Version 5.4.3.2, tag libreoffice-5.4.3.2
[LibreOffice.git] / include / ucbhelper / simplenameclashresolverequest.hxx
blob3e7b1fef884fb372f8342039712169d8d946fcd9
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 INCLUDED_UCBHELPER_SIMPLENAMECLASHRESOLVEREQUEST_HXX
21 #define INCLUDED_UCBHELPER_SIMPLENAMECLASHRESOLVEREQUEST_HXX
23 #include <rtl/ref.hxx>
24 #include <ucbhelper/interactionrequest.hxx>
25 #include <ucbhelper/ucbhelperdllapi.h>
27 namespace ucbhelper {
29 class InteractionSupplyName;
31 /**
32 * This class implements a simple name clash resolve interaction request.
33 * Instances can be passed directly to XInteractionHandler::handle(...). Each
34 * instance contains a NameClashResolveRequest and two interaction
35 * continuations: "Abort" and "SupplyName". Another continuation
36 * ("ReplaceExistingData") may be supplied optionally.
38 * @see css::ucb::NameClashResolveRequest
39 * @see InteractionAbort
40 * @see InteractioneplaceExistingData
42 class UCBHELPER_DLLPUBLIC SimpleNameClashResolveRequest : public ucbhelper::InteractionRequest
44 rtl::Reference< InteractionSupplyName > m_xNameSupplier;
46 virtual ~SimpleNameClashResolveRequest() override;
48 public:
49 /**
50 * Constructor.
52 * @param rTargetFolderURL contains the URL of the folder that contains
53 * the clashing resource.
54 * @param rClashingName contains the clashing name.
56 SimpleNameClashResolveRequest( const OUString & rTargetFolderURL,
57 const OUString & rClashingName );
58 /**
59 * This method returns the new name that was supplied by the interaction
60 * handler.
62 * @return the new name, if supplied.
64 const OUString getNewName() const;
67 } // namespace ucbhelper
69 #endif /* ! INCLUDED_UCBHELPER_SIMPLENAMECLASHRESOLVEREQUEST_HXX */
71 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */