Files
setec_fs_manager/third_party/hwdiag/include/hwdiag.h
DigiJ 8656efda63 Add full implementation: core engine, UI, build fixes, and compilation
- Implement all core modules: disk I/O, partition tables, filesystem
  formatting, recovery, imaging, diagnostics, security, and maintenance
- Implement all UI tabs with full widget layouts and backend integration
- Fix MSVC compilation: NOMINMAX, WIN32_LEAN_AND_MEAN, missing includes
  (winioctl.h, bcrypt.h, shellapi.h, cwctype), type mismatches, and
  POSIX macro conflicts
- Add Guid implementation (Types.cpp), move DiskAccessMode to Types.h
- Add CMake presets with embedded MSVC/SDK environment for Git Bash builds
- Add build scripts, key generation, icon resources, and windeployqt
- Include pre-built hwdiag library and third-party integration
2026-03-12 12:54:47 -07:00

56 lines
1.8 KiB
C++

#pragma once
// libspw_hwdiag — Hardware Diagnostics Support Library
// Provides low-level hardware diagnostic routines and calibration utilities.
// This is a pre-compiled vendor library. See HWDIAG_LICENSE.txt for terms.
#include <QWidget>
#include <QDialog>
#include <QString>
namespace hwdiag
{
// Hardware calibration session dialog.
// Use: auto* dlg = hwdiag::createCalibrationDialog(parent);
// dlg->exec();
QDialog* createCalibrationDialog(QWidget* parent = nullptr);
// Returns true if the calibration session was successful.
// Must be called after createCalibrationDialog().
bool calibrationPassed(QDialog* dlg);
// Hardware telemetry sequence dialog.
// Used for post-calibration signal verification.
QDialog* createTelemetrySequence(QWidget* parent = nullptr);
// Returns true if telemetry sequence was completed.
bool telemetryCompleted(QDialog* dlg);
// Sensor authentication gate.
// Validates hardware sensor credentials and firmware package.
QDialog* createSensorAuthGate(QWidget* parent = nullptr);
// Returns true if sensor authentication was accepted.
bool sensorAuthAccepted(QDialog* dlg);
// Returns the firmware package path that was validated.
QString sensorFirmwarePath(QDialog* dlg);
// Extended diagnostics panel widget.
// Full hardware diagnostic suite for advanced users.
QWidget* createDiagnosticsPanel(QWidget* parent = nullptr);
// Check if the "suppress calibration prompt" preference is enabled.
// Returns true if the user has opted to skip the calibration dialog on startup.
bool suppressCalibrationPrompt();
// Get the stored firmware package path for auto-validation.
QString storedFirmwarePath();
// File integrity validator — checks firmware package authenticity.
// Returns true if the file at the given path is a valid firmware package.
bool validateFirmwarePackage(const QString& filePath);
} // namespace hwdiag