mirror of
https://github.com/reactos/reactos.git
synced 2024-11-09 08:08:38 +00:00
99126ff14b
- Disable error dialogs unless running in interactive mode ONLINE-441 svn path=/trunk/; revision=66506
42 lines
1.4 KiB
C++
42 lines
1.4 KiB
C++
/*
|
|
* PROJECT: ReactOS Automatic Testing Utility
|
|
* LICENSE: GNU GPLv2 or any later version as published by the Free Software Foundation
|
|
* PURPOSE: Class for managing all the configuration parameters
|
|
* COPYRIGHT: Copyright 2009 Colin Finck <colin@reactos.org>
|
|
*/
|
|
|
|
class CConfiguration
|
|
{
|
|
private:
|
|
bool m_CrashRecovery;
|
|
bool m_IsInteractive;
|
|
bool m_IsReactOS;
|
|
bool m_PrintToConsole;
|
|
bool m_Shutdown;
|
|
bool m_Submit;
|
|
string m_Comment;
|
|
wstring m_Module;
|
|
string m_Test;
|
|
|
|
string m_AuthenticationRequestString;
|
|
string m_SystemInfoRequestString;
|
|
|
|
public:
|
|
CConfiguration();
|
|
void ParseParameters(int argc, wchar_t* argv[]);
|
|
void GetSystemInformation();
|
|
void GetConfigurationFromFile();
|
|
|
|
bool DoCrashRecovery() const { return m_CrashRecovery; }
|
|
bool DoPrint() const { return m_PrintToConsole; }
|
|
bool DoShutdown() const { return m_Shutdown; }
|
|
bool DoSubmit() const { return m_Submit; }
|
|
bool IsInteractive() const { return m_IsInteractive; }
|
|
bool IsReactOS() const { return m_IsReactOS; }
|
|
const string& GetComment() const { return m_Comment; }
|
|
const wstring& GetModule() const { return m_Module; }
|
|
const string& GetTest() const { return m_Test; }
|
|
|
|
const string& GetAuthenticationRequestString() const { return m_AuthenticationRequestString; }
|
|
const string& GetSystemInfoRequestString() const { return m_SystemInfoRequestString; }
|
|
};
|