1 ///////////////////////////////////////////////////////////////////////////////
2 // Simple x264 Launcher
3 // Copyright (C) 2004-2013 LoRd_MuldeR <MuldeR2@GMX.de>
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.
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License along
16 // with this program; if not, write to the Free Software Foundation, Inc.,
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 // http://www.gnu.org/licenses/gpl-2.0.txt
20 ///////////////////////////////////////////////////////////////////////////////
24 class PreferencesModel
27 PreferencesModel(void);
30 bool autoRunNextJob(void) { return m_autoRunNextJob; }
31 unsigned int maxRunningJobCount(void) { return m_maxRunningJobCount; }
32 bool shutdownComputer(void) { return m_shutdownComputer; }
33 bool use10BitEncoding(void) { return m_use10BitEncoding; }
34 bool useAvisyth64Bit(void) { return m_useAvisyth64Bit; }
35 bool saveLogFiles(void) { return m_saveLogFiles; }
36 bool saveToSourcePath(void) { return m_saveToSourcePath; }
37 int processPriority(void) { return m_processPriority; }
38 bool enableSounds(void) { return m_enableSounds; }
39 bool disableWarnings(void) { return m_disableWarnings; }
42 void setAutoRunNextJob(const bool autoRunNextJob) { m_autoRunNextJob = autoRunNextJob; }
43 void setMaxRunningJobCount(const unsigned int maxRunningJobCount) { m_maxRunningJobCount = maxRunningJobCount; }
44 void setShutdownComputer(const bool shutdownComputer) { m_shutdownComputer = shutdownComputer; }
45 void setUse10BitEncoding(const bool use10BitEncoding) { m_use10BitEncoding = use10BitEncoding; }
46 void setUseAvisyth64Bit(const bool useAvisyth64Bit) { m_useAvisyth64Bit = useAvisyth64Bit; }
47 void setSaveLogFiles(const bool saveLogFiles) { m_saveLogFiles = saveLogFiles; }
48 void setSaveToSourcePath(const bool saveToSourcePath) { m_saveToSourcePath = saveToSourcePath; }
49 void setProcessPriority(const int processPriority) { m_processPriority = processPriority; }
50 void setEnableSounds(const bool enableSounds) { m_enableSounds = enableSounds; }
51 void setDisableWarnings(const bool disableWarnings) { m_disableWarnings = disableWarnings; }
54 static void initPreferences(PreferencesModel *preferences);
55 static void loadPreferences(PreferencesModel *preferences);
56 static void savePreferences(PreferencesModel *preferences);
59 bool m_autoRunNextJob;
60 unsigned int m_maxRunningJobCount;
61 bool m_shutdownComputer;
62 bool m_use10BitEncoding;
63 bool m_useAvisyth64Bit;
65 bool m_saveToSourcePath;
66 int m_processPriority;
68 bool m_disableWarnings;