aboutsummaryrefslogtreecommitdiff
path: root/Src/burnlib/uiUnitReady.h
blob: 127d56fcc607744629cb00dadab82184ce8b6021 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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;
};