From 8cb7f6ee8f872938e257541c07d0e4b2ad0e3f35 Mon Sep 17 00:00:00 2001 From: Benjamin Dobell Date: Sun, 17 Jul 2011 19:50:07 +1000 Subject: - Added Utilities tab to Heimdall Frontend. - Fixed Heimdall command line support for PIT files without a reference to themselves. - Added tool tips to Heimdall Frontend. - Added heimdall 'info' and 'download-pit' actions. - Made 'detect' action return 0 if a device is detected, 1 otherwise. --- heimdall-frontend/Source/mainwindow.h | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) (limited to 'heimdall-frontend/Source/mainwindow.h') diff --git a/heimdall-frontend/Source/mainwindow.h b/heimdall-frontend/Source/mainwindow.h index b041dab..e4ca08d 100644 --- a/heimdall-frontend/Source/mainwindow.h +++ b/heimdall-frontend/Source/mainwindow.h @@ -45,12 +45,25 @@ namespace HeimdallFrontend private: + enum + { + kHeimdallStateStopped = 0, + kHeimdallStateFlashing, + kHeimdallStateDetectingDevice, + kHeimdallStateClosingPcScreen, + kHeimdallStatePrintingPit, + kHeimdallStateDownloadingPit, + kHeimdallStateCount + }; + AboutForm aboutForm; QString lastDirectory; + int tabIndex; + bool heimdallFailed; - bool heimdallRunning; + int heimdallState; QProcess process; PackageData loadedPackageData; @@ -63,6 +76,8 @@ namespace HeimdallFrontend bool verboseOutput; + void StartHeimdall(const QStringList& arguments); + void UpdateUnusedPartitionIds(void); bool ReadPit(QFile *file); @@ -74,7 +89,7 @@ namespace HeimdallFrontend QString PromptFileCreation(void); void UpdatePartitionNamesInterface(void); - void UpdateStartButton(void); + void UpdateInterfaceAvailability(void); void UpdateBuildPackageButton(void); @@ -89,11 +104,15 @@ namespace HeimdallFrontend void SetVerboseOutput(bool enabled); void ShowAbout(void); + void FunctionTabChanged(int index); + + // Load Package Tab void SelectFirmwarePackage(void); void OpenDeveloperHomepage(void); void OpenDeveloperDonationWebpage(void); void LoadFirmwarePackage(void); + // Flash Tab void SelectPartitionName(int index); void SelectPartitionFile(void); @@ -108,6 +127,7 @@ namespace HeimdallFrontend void StartFlash(void); + // Create Package Tab void FirmwareNameChanged(const QString& text); void FirmwareVersionChanged(const QString& text); void PlatformNameChanged(const QString& text); @@ -128,6 +148,16 @@ namespace HeimdallFrontend void BuildPackage(void); + // Utilities Tab + void DetectDevice(void); + void ClosePcScreen(void); + + void SelectPitDestination(void); + void DownloadPit(void); + + void PrintPit(void); + + // Heimdall Command Line void HandleHeimdallStdout(void); void HandleHeimdallReturned(int exitCode, QProcess::ExitStatus exitStatus); void HandleHeimdallError(QProcess::ProcessError error); -- cgit v1.2.3