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 INCLUDED_UCB_SOURCE_UCP_FILE_FILID_HXX
20 #define INCLUDED_UCB_SOURCE_UCP_FILE_FILID_HXX
22 #include <rtl/ustring.hxx>
23 #include <cppuhelper/weak.hxx>
24 #include <com/sun/star/lang/XTypeProvider.hpp>
25 #include <com/sun/star/ucb/XContentIdentifier.hpp>
27 namespace fileaccess
{
31 class FileContentIdentifier
:
32 public cppu::OWeakObject
,
33 public com::sun::star::lang::XTypeProvider
,
34 public com::sun::star::ucb::XContentIdentifier
37 // This implementation has to be reworked
39 FileContentIdentifier( const OUString
& aUnqPath
,
40 bool IsNormalized
= true );
42 virtual ~FileContentIdentifier();
45 virtual com::sun::star::uno::Any SAL_CALL
47 const com::sun::star::uno::Type
& aType
)
48 throw( com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
61 virtual com::sun::star::uno::Sequence
< com::sun::star::uno::Type
> SAL_CALL
64 throw( com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
66 virtual com::sun::star::uno::Sequence
< sal_Int8
> SAL_CALL
69 throw( com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
72 virtual OUString SAL_CALL
75 throw( com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
77 virtual OUString SAL_CALL
78 getContentProviderScheme(
80 throw( com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
83 OUString m_aContentId
; // The URL string
84 OUString m_aNormalizedId
; // The somehow normalized string
85 OUString m_aProviderScheme
;
88 } // end namespace fileaccess
93 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */