diff options
author | Jean-Francois Mauguit <jfmauguit@mac.com> | 2024-09-24 09:03:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 09:03:25 -0400 |
commit | bab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/burnlib/uiUnitReady.h | |
parent | 4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff) | |
parent | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff) | |
download | winamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz |
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/burnlib/uiUnitReady.h')
-rw-r--r-- | Src/burnlib/uiUnitReady.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/Src/burnlib/uiUnitReady.h b/Src/burnlib/uiUnitReady.h new file mode 100644 index 00000000..127d56fc --- /dev/null +++ b/Src/burnlib/uiUnitReady.h @@ -0,0 +1,47 @@ +#pragma once + +#include "./main.h" +#include "./uiUpdatingData.h" +#include "../primo/obj_primo.h" + +#define UNITREADYUI_DRIVEREADY 0x000 +#define UNITREADYUI_NOTREADY 0x001 +#define UNITREADYUI_CANCELED 0x002 + +#define UNITREADYUI_PRIMOSDKERROR 0x101 +#define UNITREADYUI_UNABLETOCREATEDIALOG 0x102 +#define UNITREADYUI_MESSAGEPUMPERROR 0x103 +#define UNITREADYUI_DRIVENOTSET 0x104 +#define UNITREADYUI_PRIMOSDKNOTSET 0x105 + + +class UnitReadyUI +{ + +public: + BURNLIB_API UnitReadyUI(void); + BURNLIB_API ~UnitReadyUI(void); + +public: + BURNLIB_API DWORD Check(obj_primo *primoSDK, DWORD *drive, BOOL showRetry, HWND ownerWnd); + BURNLIB_API DWORD GetPrimoError(void) { return errPrimo; } + +protected: + DWORD Rescan(void); + static LRESULT CALLBACK WndProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam); + void OnInitDialog(HWND hwndDlg); + void OnCancel(void); + void OnDestroy(void); + +protected: + HWND hwnd; + DWORD *drive; + obj_primo *primoSDK; + DWORD errPrimo; + DWORD errReady; + UpdatingDataUI *updateDlg; + + DWORD statSense; + DWORD statAsc; + DWORD statAscQ; +};
\ No newline at end of file |