File indexing completed on 2024-04-21 04:34:33
0001 /* 0002 * Copyright 2015 Laszlo Kis-Adam <laszlo.kis-adam@kdemail.net> 0003 * 0004 * This program is free software; you can redistribute it and/or 0005 * modify it under the terms of the GNU General Public License 0006 * as published by the Free Software Foundation; either version 2 0007 * of the License, or (at your option) any later version. 0008 * 0009 * This program is distributed in the hope that it will be useful, 0010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0012 * GNU General Public License for more details. 0013 * 0014 * You should have received a copy of the GNU General Public License 0015 * along with this program. If not, see <http://www.gnu.org/licenses/>. 0016 */ 0017 0018 #ifndef KRAZY2_DEFAULTS_H 0019 #define KRAZY2_DEFAULTS_H 0020 0021 #include <QString> 0022 0023 class QUrl; 0024 0025 namespace 0026 { 0027 0028 inline QString defaultPath() 0029 { 0030 return QStringLiteral("/usr/local/Krazy2/bin/krazy2"); 0031 } 0032 0033 } 0034 0035 // Gets the local file's path or a simple command out of a QUrl 0036 // For example, sometimes you'd specify a simple command on a settings page 0037 // instead of a full path, then simply asking for a local file won't do it 0038 QString urlToString(const QUrl &url); 0039 0040 #endif 0041