File indexing completed on 2024-04-28 05:27:37
0001 /* 0002 SPDX-FileCopyrightText: 2018 Roman Gilg <subdiff@gmail.com> 0003 SPDX-FileCopyrightText: 2021 David Redondo <kde@david-redondo.de> 0004 0005 SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 #pragma once 0008 0009 #include <QString> 0010 0011 namespace Globals 0012 { 0013 QString dirPath(); 0014 /** 0015 * Tries to find the specified file realtive to dirPath(). Also considers presets if there is no 0016 * existing file under dirPath() yet. 0017 * @returns The abosolute path to a matching file if on exists or an empty string 0018 */ 0019 QString findFile(const QString &filePath); 0020 }