| 1 | /***************************************************************************** |
| 2 | ** QNapi |
| 3 | ** Copyright (C) 2008-2017 Piotr KrzemiĆski <[email protected]> |
| 4 | ** |
| 5 | ** This program is free software; you can redistribute it and/or modify |
| 6 | ** it under the terms of the GNU General Public License as published by |
| 7 | ** the Free Software Foundation; either version 2 of the License, or |
| 8 | ** (at your option) any later version. |
| 9 | ** |
| 10 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
| 11 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
| 12 | ** |
| 13 | *****************************************************************************/ |
| 14 | |
| 15 | #include "config/generalconfig.h" |
| 16 | #include <QTextStream> |
| 17 | |
| 18 | QString GeneralConfig::toString() const { |
| 19 | QString s; |
| 20 | QTextStream(&s) << "uiLanguage: " << uiLanguage() << endl |
| 21 | << "p7zipPath: " << p7zipPath() << endl |
| 22 | << "tmpPath: " << tmpPath() << endl |
| 23 | << "language: " << language() << endl |
| 24 | << "backupLanguage: " << backupLanguage() << endl |
| 25 | << "noBackup: " << noBackup() << endl |
| 26 | << "quietBatch: " << quietBatch() << endl |
| 27 | << "searchPolicy: " << searchPolicy() << endl |
| 28 | << "downloadPolicy: " << downloadPolicy() << endl |
| 29 | << "changePermissions: " << changePermissionsEnabled() << endl |
| 30 | << "changePermissionsTo: " << changePermissionsTo() << endl; |
| 31 | return s; |
| 32 | } |