File indexing completed on 2024-04-28 09:41:01

0001 /*******************************************************************************
0002  * Copyright (C) 2008-2013 Konstantinos Smanis <konstantinos.smanis@gmail.com> *
0003  *                                                                             *
0004  * This program is free software: you can redistribute it and/or modify it     *
0005  * under the terms of the GNU General Public License as published by the Free  *
0006  * Software Foundation, either version 3 of the License, or (at your option)   *
0007  * any later version.                                                          *
0008  *                                                                             *
0009  * This program is distributed in the hope that it will be useful, but WITHOUT *
0010  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or       *
0011  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for    *
0012  * more details.                                                               *
0013  *                                                                             *
0014  * You should have received a copy of the GNU General Public License along     *
0015  * with this program. If not, see <http://www.gnu.org/licenses/>.              *
0016  *******************************************************************************/
0017 
0018 #ifndef COMMON_H
0019 #define COMMON_H
0020 
0021 //Qt
0022 #include <QFlags>
0023 
0024 enum LoadOperation {
0025     NoOperation = 0x0,
0026     MenuFile = 0x1,
0027     ConfigurationFile = 0x2,
0028     EnvironmentFile = 0x4,
0029     MemtestFile = 0x8,
0030     Vbe = 0x10,
0031     Locales = 0x20
0032 };
0033 Q_DECLARE_FLAGS(LoadOperations, LoadOperation)
0034 Q_DECLARE_OPERATORS_FOR_FLAGS(LoadOperations)
0035 
0036 QString quoteWord(const QString &word);
0037 QString unquoteWord(const QString &word);
0038 
0039 #endif