1 /////////////////////////////////////////////////////////////////////////////
3 // This program is free software; you can redistribute it and/or modify
4 // it under the terms of the GNU General Public License as published by
5 // the Free Software Foundation; either version 2 of the License, or
6 // (at your option) any later version.
8 // This program is distributed in the hope that it will be useful, but
9 // WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // General Public License for more details.
13 // You should have received a copy of the GNU General Public License
14 // along with this program; if not, write to the Free Software
15 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16 /////////////////////////////////////////////////////////////////////////////
20 * @brief Declaration file ConfigLog class
25 #include "UnicodeString.h"
31 * @brief Class for saving configuration log file
39 String GetFileName() const;
40 bool WriteLogFile(String &sError);
42 // Implementation methods
44 void WriteItem(int indent, const String& key, const TCHAR *value = 0);
45 void WriteItem(int indent, const String& key, const String &str);
46 void WriteItem(int indent, const String& key, long value);
47 void WriteVersionOf1(int indent, const String& path);
48 void WriteLocaleSettings(unsigned locid, const String& title);
49 void WriteWinMergeConfig(void);
52 bool DoFile(String &sError);
53 void WritePluginsInLogFile(const wchar_t *transformationEvent);
54 String GetWindowsVer() const;
55 String GetBuildFlags() const;
56 void FileWriteString(const String& lpsz);
59 // Implementation data
62 std::unique_ptr<UniStdioFile> m_pfile;