From 6cd6b35c737e0e4042a8fd79af1decc9f10ed84b Mon Sep 17 00:00:00 2001 From: Benjamin Dobell Date: Mon, 1 Oct 2012 12:43:05 +1000 Subject: Heimdall 1.4 RC1: - Massive refactoring. - Support for Qualcomm based devices. - Print PIT from file. - Use partition names as arguments e.g. --HIDDEN, --KERNEL, --MOVINAND etc. - Heimdall Frontend UI improvements. - And much more... --- heimdall-frontend/Source/mainwindow.h | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) (limited to 'heimdall-frontend/Source/mainwindow.h') diff --git a/heimdall-frontend/Source/mainwindow.h b/heimdall-frontend/Source/mainwindow.h index 9d21978..bea15cd 100644 --- a/heimdall-frontend/Source/mainwindow.h +++ b/heimdall-frontend/Source/mainwindow.h @@ -56,6 +56,12 @@ namespace HeimdallFrontend kHeimdallStateCount }; + enum + { + kPrintPitSourceDevice = 0, + kPrintPitSourceLocalFile + }; + AboutForm aboutForm; QString lastDirectory; @@ -64,7 +70,7 @@ namespace HeimdallFrontend bool heimdallFailed; int heimdallState; - QProcess process; + QProcess heimdallProcess; PackageData loadedPackageData; @@ -76,6 +82,7 @@ namespace HeimdallFrontend bool verboseOutput; + void StartHeimdall(const QStringList& arguments); void UpdateUnusedPartitionIds(void); @@ -85,13 +92,16 @@ namespace HeimdallFrontend bool IsArchive(QString path); - QString PromptFileSelection(void); - QString PromptFileCreation(void); - - void UpdatePartitionNamesInterface(void); + QString PromptFileSelection(const QString& caption = QString("Select File"), const QString& filter = QString()); + QString PromptFileCreation(const QString& caption = QString("Save File"), const QString& filter = QString()); + + void UpdateLoadPackageInterfaceAvailability(void); + void UpdateFlashInterfaceAvailability(void); + void UpdateCreatePackageInterfaceAvailability(void); + void UpdateUtilitiesInterfaceAvailability(void); void UpdateInterfaceAvailability(void); - void UpdateBuildPackageButton(void); + void UpdatePartitionNamesInterface(void); public: @@ -155,6 +165,9 @@ namespace HeimdallFrontend void SelectPitDestination(void); void DownloadPit(void); + void DevicePrintPitToggled(bool checked); + void LocalFilePrintPitToggled(bool checked); + void SelectPrintPitFile(void); void PrintPit(void); // Heimdall Command Line -- cgit v1.2.3