File indexing completed on 2024-05-05 17:34:27
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 #ifndef COMMON_GLOBALS_H 0008 #define COMMON_GLOBALS_H 0009 0010 #include <QString> 0011 0012 namespace Globals 0013 { 0014 QString dirPath(); 0015 /** 0016 * Tries to find the specified file realtive to dirPath(). Also considers presets if there is no 0017 * existing file under dirPath() yet. 0018 * @returns The abosolute path to a matching file if on exists or an empty string 0019 */ 0020 QString findFile(const QString &filePath); 0021 } 0022 0023 #endif