android: Update app-specific/MIME type icons
[LibreOffice.git] / jvmfwk / inc / fwkutil.hxx
blob76d437ae76b9689679f976ecffa6c1707cee9172
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_JVMFWK_SOURCE_FWKUTIL_HXX
20 #define INCLUDED_JVMFWK_SOURCE_FWKUTIL_HXX
22 #include <config_folders.h>
24 #include <sal/config.h>
25 #include <rtl/bootstrap.hxx>
26 #include <rtl/byteseq.hxx>
27 #include <osl/mutex.hxx>
29 namespace osl { class Mutex; }
31 namespace jfw
34 /** Returns the file URL of the directory where the framework library
35 (this library) resides.
37 OUString getLibraryLocation();
39 /** provides a bootstrap class which already knows the values from the
40 jvmfkwrc file.
42 const rtl::Bootstrap * Bootstrap();
44 osl::Mutex& FwkMutex();
46 rtl::ByteSequence encodeBase16(const rtl::ByteSequence& rawData);
47 rtl::ByteSequence decodeBase16(const rtl::ByteSequence& data);
49 OUString getDirFromFile(std::u16string_view usFilePath);
51 enum FileStatus
53 FILE_OK,
54 FILE_DOES_NOT_EXIST,
55 FILE_INVALID
58 /** checks if the URL is a file.
60 If it is a link to a file than
61 it is resolved. Assuming that the argument
62 represents a relative URL then FILE_INVALID
63 is returned.
66 @return
67 one of the values of FileStatus.
69 @exception
70 Errors occurred during determining if the file exists
72 FileStatus checkFileURL(const OUString & path);
75 #endif
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */