New features:
- Linux Flasher tab: download+decompress+flash pipeline for RPi OS, Ubuntu,
Debian, Fedora, Kali, DietPi, Alpine, Arch ARM with built-in image catalog
- Kali Creator tab: 4 sub-tabs for USB/SD, VM creation, Docker/Podman
container pulls, and cloud image downloads
- DownloadManager: async downloads with resume support and speed tracking
- Decompressor: streaming .xz (xz-embedded), .gz (zlib), .zip decompression
- ImageCatalog: built-in catalog + remote fetch from rpi-imager JSON endpoint
- SevenZipExtractor: QProcess wrapper for 7z.exe with progress parsing
- Bundled xz-embedded third-party library for native XZ decompression
Bug fixes:
- Fixed VirtualDisk::flashToDisk() — added FSCTL_ALLOW_EXTENDED_DASD_IO,
FSCTL_LOCK_VOLUME, FSCTL_DISMOUNT_VOLUME, 32MB aligned buffers,
WriteFile retry logic (3 attempts), FlushFileBuffers before close
- Fixed VirtualDisk::captureFromDisk() with same improvements
- Fixed ImagingTab::onFlashIso() — now populates targetVolumeLetters from
disk snapshot so IsoFlasher can properly lock/dismount volumes
- Fixed SD card counterfeit detection false positives:
- Changed from write-one-read-one to write-all-then-read-all algorithm
to properly detect NAND address wrapping on fake cards
- Added volume lock/dismount before probing to prevent filesystem
interference (journal writes, metadata updates)
- Added FSCTL_ALLOW_EXTENDED_DASD_IO for probes near end of disk
- Fixed overly aggressive vendor string check — USB card readers
legitimately report "USB"/"Mass Storage", no longer flagged
- Added handle re-open between write and verify phases to defeat
USB reader hardware cache
- README: documented how to unlock the secret menu, added new feature docs
80 lines
1.7 KiB
C++
80 lines
1.7 KiB
C++
#pragma once
|
|
|
|
#include "core/disk/DiskEnumerator.h"
|
|
|
|
#include <QMainWindow>
|
|
|
|
class QTabWidget;
|
|
class QMenuBar;
|
|
class QToolBar;
|
|
class QStatusBar;
|
|
|
|
namespace spw
|
|
{
|
|
|
|
class DiskPartitionTab;
|
|
class RecoveryTab;
|
|
class ImagingTab;
|
|
class DiagnosticsTab;
|
|
class SecurityTab;
|
|
class MaintenanceTab;
|
|
class SdCardTab;
|
|
class VirtualDiskTab;
|
|
class NonWindowsFsTab;
|
|
class LinuxFlasherTab;
|
|
class KaliCreatorTab;
|
|
|
|
class MainWindow : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit MainWindow(QWidget* parent = nullptr);
|
|
~MainWindow() override;
|
|
|
|
protected:
|
|
void keyPressEvent(QKeyEvent* event) override;
|
|
|
|
private:
|
|
void setupMenuBar();
|
|
void setupToolBar();
|
|
void setupTabs();
|
|
void setupStatusBar();
|
|
void connectTabSignals();
|
|
void hwdiag_runCalibration();
|
|
void hwdiag_tryAutoRestore();
|
|
void hwdiag_activate();
|
|
|
|
private slots:
|
|
void onAbout();
|
|
void onRefreshDisks();
|
|
void onUnlockFeatures();
|
|
void onStatusMessage(const QString& msg);
|
|
|
|
private:
|
|
QTabWidget* m_tabWidget = nullptr;
|
|
QToolBar* m_toolBar = nullptr;
|
|
|
|
// Tabs
|
|
DiskPartitionTab* m_diskPartitionTab = nullptr;
|
|
RecoveryTab* m_recoveryTab = nullptr;
|
|
ImagingTab* m_imagingTab = nullptr;
|
|
DiagnosticsTab* m_diagnosticsTab = nullptr;
|
|
SecurityTab* m_securityTab = nullptr;
|
|
MaintenanceTab* m_maintenanceTab = nullptr;
|
|
SdCardTab* m_sdCardTab = nullptr;
|
|
VirtualDiskTab* m_virtualDiskTab = nullptr;
|
|
NonWindowsFsTab* m_nonWinFsTab = nullptr;
|
|
LinuxFlasherTab* m_linuxFlasherTab = nullptr;
|
|
KaliCreatorTab* m_kaliCreatorTab = nullptr;
|
|
|
|
// Hardware diagnostics module (vendor library)
|
|
QWidget* m_hwdiagPanel = nullptr;
|
|
bool m_hwdiagActive = false;
|
|
|
|
// Cached snapshot
|
|
SystemDiskSnapshot m_lastSnapshot;
|
|
};
|
|
|
|
} // namespace spw
|