LibreOffice Module jvmfwk (master) 1
fwkutil.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19#ifndef INCLUDED_JVMFWK_SOURCE_FWKUTIL_HXX
20#define INCLUDED_JVMFWK_SOURCE_FWKUTIL_HXX
21
22#include <config_folders.h>
23
24#include <sal/config.h>
25#include <rtl/bootstrap.hxx>
26#include <rtl/byteseq.hxx>
27#include <osl/mutex.hxx>
28
29namespace osl { class Mutex; }
30
31namespace jfw
32{
33
37OUString getLibraryLocation();
38
43
44osl::Mutex& FwkMutex();
45
46rtl::ByteSequence encodeBase16(const rtl::ByteSequence& rawData);
47rtl::ByteSequence decodeBase16(const rtl::ByteSequence& data);
48
49OUString getDirFromFile(std::u16string_view usFilePath);
50
52{
56};
57
72FileStatus checkFileURL(const OUString & path);
73
74}
75#endif
76
77/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Definition: elements.cxx:47
const rtl::Bootstrap * Bootstrap()
provides a bootstrap class which already knows the values from the jvmfkwrc file.
Definition: fwkutil.cxx:47
osl::Mutex & FwkMutex()
Definition: fwkutil.cxx:65
rtl::ByteSequence encodeBase16(const rtl::ByteSequence &rawData)
Definition: fwkutil.cxx:72
OUString getDirFromFile(std::u16string_view usFilePath)
Definition: fwkutil.cxx:139
rtl::ByteSequence decodeBase16(const rtl::ByteSequence &data)
Definition: fwkutil.cxx:100
jfw::FileStatus checkFileURL(const OUString &sURL)
checks if the URL is a file.
Definition: fwkutil.cxx:158
OUString getLibraryLocation()
Returns the file URL of the directory where the framework library (this library) resides.
Definition: fwkutil.cxx:145
FileStatus
Definition: fwkutil.hxx:52
@ FILE_OK
Definition: fwkutil.hxx:53
@ FILE_DOES_NOT_EXIST
Definition: fwkutil.hxx:54
@ FILE_INVALID
Definition: fwkutil.hxx:55