rbutilQt: Add Uninstallation for Rockbox and Bootloaders. Also add Talkfiles to the...
[Rockbox.git] / rbutil / installlog.h
blobcb85e08359208315f7cb9c99ba27700ec355fa23
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * Module: rbutil
9 * File: installlog.h
11 * Copyright (C) 2006 Christi Alice Scarborough
13 * All files in this archive are subject to the GNU General Public License.
14 * See the file COPYING in the source tree root for full license agreement.
16 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
17 * KIND, either express or implied.
19 ****************************************************************************/
22 #ifndef INSTALLLOG_H_INCLUDED
23 #define INSTALLLOG_H_INCLUDED
25 #include <wx/wxprec.h>
26 #ifdef __BORLANDC__
27 #pragma hdrstop
28 #endif
29 #ifndef WX_PRECOMP
30 #include <wx/wx.h>
31 #endif
33 #include <wx/confbase.h>
34 #include <wx/fileconf.h>
36 #define LOGFILE_VERSION 1
37 #define DIRECTORY_KLUDGE "_DIRECTORY_MARKER_RECORD_KLUDGE_"
38 class InstallLog
40 // Class variables
41 wxFileConfig* logfile;
43 // Methods
44 public:
45 InstallLog(wxString logname, bool CreateLog = true);
46 ~InstallLog();
47 unsigned int WriteFile(wxString filepath, bool isDir = false);
48 unsigned int WriteFile(wxArrayString filepaths);
49 wxArrayString* GetInstalledFiles();
51 private:
52 bool dirtyflag;
53 wxArrayString workingAS;
54 // long dummy;
56 private:
57 void EnumerateCurDir(wxString curdir);
58 }; // InstallLog
61 #endif // INSTALLLOG_H_INCLUDED