| 1 | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ |
| 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 | |
| 10 | #pragma once |
| 11 | |
| 12 | #include <sal/config.h> |
| 13 | |
| 14 | #include <string_view> |
| 15 | |
| 16 | #include <rtl/ustring.hxx> |
| 17 | |
| 18 | #include <comphelper/comphelperdllapi.h> |
| 19 | |
| 20 | inline constexpr OUString AVMEDIA_MIMETYPE_COMMON = u"application/vnd.sun.star.media"_ustr; |
| 21 | |
| 22 | namespace comphelper |
| 23 | { |
| 24 | COMPHELPER_DLLPUBLIC auto IsMediaMimeType(::std::string_view const rMimeType) -> bool; |
| 25 | COMPHELPER_DLLPUBLIC auto IsMediaMimeType(OUString const& rMimeType) -> bool; |
| 26 | COMPHELPER_DLLPUBLIC auto GuessMediaMimeType(::std::u16string_view rFileName) -> OUString; |
| 27 | |
| 28 | } // namespace comphelper |
| 29 | |
| 30 | /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ |