1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
19 #ifndef __com_sun_star_ucb_XFileIdentifierConverter_idl__
20 #define __com_sun_star_ucb_XFileIdentifierConverter_idl__
22 #include
<com
/sun
/star
/uno
/XInterface.idl
>
25 module com
{ module sun
{ module star
{ module ucb
{
27 /** specifies methods to convert between (file) URLs and file paths in system
33 published
interface XFileIdentifierConverter
: com
::sun
::star
::uno
::XInterface
35 /** Get information about the "locality" of a file content provider.
37 <p>The returned information can be used to chose the "best" among a
38 number of file content providers implementing this interface.
41 the base (file) URL used to specify a file content provider.
44 an appropriate value representing the "locality" of the specified file
45 content provider. Generally, higher (non-negative) numbers denote
46 file content providers that are more "local", and negative numbers
47 denote content providers that are not file content providers at all.
48 As a convention (and to keep this useful), values should be restricted
49 to the range from -1 to +10, inclusive.
51 long getFileProviderLocality
( [in] string BaseURL
);
53 /** converts a file path in system dependent notation to a (file) URL.
56 the base (file) URL relative to which the file path shall be
60 a file path in system dependent notation.
63 the URL corresponding to the file path, or an empty string if the file
64 path cannot be converted into a URL.
66 string getFileURLFromSystemPath
( [in] string BaseURL
,
67 [in] string SystemPath
);
69 /** converts a (file) URL to a file path in system dependent notation.
75 the file path corresponding to the URL, or an empty string if the URL
76 cannot be converted into a file path.
78 string getSystemPathFromFileURL
( [in] string URL
);
86 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */