File indexing completed on 2024-04-28 05:35:34

0001 // SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0002 // SPDX-FileCopyrightText: 2023 Harald Sitter <sitter@kde.org>
0003 
0004 #pragma once
0005 
0006 #include "kworkspace_export.h"
0007 
0008 #include <KService>
0009 
0010 namespace DefaultService
0011 {
0012 /// @returns the default browser service (may be invalid if resolution fails)
0013 [[nodiscard]] KWORKSPACE_EXPORT KService::Ptr browser();
0014 /// @returns the **legacy** browser executable only. Use this only as fallback to ::browser()!
0015 [[nodiscard]] KWORKSPACE_EXPORT QString legacyBrowserExec();
0016 } // namespace DefaultService