1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XContentIdentifier.idl,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_ucb_XContentIdentifier_idl__
31 #define __com_sun_star_ucb_XContentIdentifier_idl__
33 #ifndef __com_sun_star_uno_XInterface_idl__
34 #include
<com
/sun
/star
/uno
/XInterface.idl
>
38 //=============================================================================
40 module com
{ module sun
{ module star
{ module ucb
{
42 //=============================================================================
43 /** An identifier for contents.
46 @author Kai Sommerfeld
49 published
interface XContentIdentifier
: com
::sun
::star
::uno
::XInterface
51 //-------------------------------------------------------------------------
52 /** returns the content identifier string.
55 the content identifier string. This must be a valid URI
56 (Uniform Resource Identifier, see RFC 2396). This string
57 is required. If a content provider 'implements' some
58 existent URI scheme (e.g., a content provider offering
59 access to a file system would implement the 'file' scheme,
60 and a content provider offering access to IMAP servers
61 would implement the 'imap' scheme), the content identifier
62 strings should use that scheme. If on the other hand a
63 content provider offers access to content for which no
64 appropriate URI scheme exists, a vendor-specific URL scheme
65 starting with 'vnd.' must be created (see the Internet Draft
66 draft-king-vnd-urlscheme-00.txt).
68 string getContentIdentifier
();
70 //-------------------------------------------------------------------------
71 /** returns the content provider scheme string.
73 <p>This string will be calculated from the content identifier string
74 and must be lower-cased(!). It is the 'scheme' the content provider is
75 registered for. In example, a provider for FTP contents will use
76 ftp-URL's as content identifiers. The content provider scheme for all
77 contents provided by that provider will be "ftp".
81 the content provider scheme string.
83 string getContentProviderScheme
();
87 //=============================================================================