bump product version to 5.0.4.1
[LibreOffice.git] / ucb / source / ucp / file / filid.hxx
blob54c25408479e431652a0c969c8ad64f3aa264984
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 .
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 {
29 class shell;
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
38 public:
39 FileContentIdentifier( const OUString& aUnqPath,
40 bool IsNormalized = true );
42 virtual ~FileContentIdentifier();
44 // XInterface
45 virtual com::sun::star::uno::Any SAL_CALL
46 queryInterface(
47 const com::sun::star::uno::Type& aType )
48 throw( com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
50 virtual void SAL_CALL
51 acquire(
52 void )
53 throw() SAL_OVERRIDE;
55 virtual void SAL_CALL
56 release(
57 void )
58 throw() SAL_OVERRIDE;
60 // XTypeProvider
61 virtual com::sun::star::uno::Sequence< com::sun::star::uno::Type > SAL_CALL
62 getTypes(
63 void )
64 throw( com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
66 virtual com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL
67 getImplementationId(
68 void )
69 throw( com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
71 // XContentIdentifier
72 virtual OUString SAL_CALL
73 getContentIdentifier(
74 void )
75 throw( com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
77 virtual OUString SAL_CALL
78 getContentProviderScheme(
79 void )
80 throw( com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
82 private:
83 OUString m_aContentId; // The URL string
84 OUString m_aNormalizedId; // The somehow normalized string
85 OUString m_aProviderScheme;
88 } // end namespace fileaccess
91 #endif
93 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */