Version 4.0.2.1, tag libreoffice-4.0.2.1
[LibreOffice.git] / ucb / source / ucp / file / filid.hxx
blobd884c4f9a9b9484dda858f40f0bc7bfdb11d31f8
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 _FILID_HXX_
20 #define _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( shell* pMyShell,
40 const rtl::OUString& aUnqPath,
41 sal_Bool IsNormalized = true );
43 virtual ~FileContentIdentifier();
45 // XInterface
46 virtual com::sun::star::uno::Any SAL_CALL
47 queryInterface(
48 const com::sun::star::uno::Type& aType )
49 throw( com::sun::star::uno::RuntimeException );
51 virtual void SAL_CALL
52 acquire(
53 void )
54 throw();
56 virtual void SAL_CALL
57 release(
58 void )
59 throw();
61 // XTypeProvider
62 virtual com::sun::star::uno::Sequence< com::sun::star::uno::Type > SAL_CALL
63 getTypes(
64 void )
65 throw( com::sun::star::uno::RuntimeException );
67 virtual com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL
68 getImplementationId(
69 void )
70 throw( com::sun::star::uno::RuntimeException );
72 // XContentIdentifier
73 virtual rtl::OUString SAL_CALL
74 getContentIdentifier(
75 void )
76 throw( com::sun::star::uno::RuntimeException );
78 virtual rtl::OUString SAL_CALL
79 getContentProviderScheme(
80 void )
81 throw( com::sun::star::uno::RuntimeException );
83 private:
84 shell* m_pMyShell;
85 rtl::OUString m_aContentId; // The URL string
86 rtl::OUString m_aNormalizedId; // The somehow normalized string
87 rtl::OUString m_aProviderScheme;
90 } // end namespace fileaccess
93 #endif
95 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */