#if !defined(AFX_DLGCOPYBLOB_H__9980AFEC_9A55_4FB8_8597_A98A512DBFE1__INCLUDED_)
#define AFX_DLGCOPYBLOB_H__9980AFEC_9A55_4FB8_8597_A98A512DBFE1__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgCopyBLOB.h : header file
//

class CDlgCopyBLOB;
class CTransportSocketClient;
/////////////////////////////////////////////////////////////////////////////
// WaitDlgThread thread

class CWaitDlgThread : public CWinThread
{
	DECLARE_DYNCREATE(CWaitDlgThread)
		
public:
	CWaitDlgThread();           // protected constructor used by dynamic creation
	
protected:
	// Attributes
	
public:
	CDlgCopyBLOB* m_dlg;
	// Operations
public:
	
	// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(cWaitDlgThread)
public:
	virtual BOOL InitInstance();
	virtual int ExitInstance();
	//}}AFX_VIRTUAL
	
	// Implementation
public:
	virtual ~CWaitDlgThread();
	
protected:
	
	// Generated message map functions
	//{{AFX_MSG(cWaitDlgThread)
	// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG
	
	DECLARE_MESSAGE_MAP()
};


/////////////////////////////////////////////////////////////////////////////
// CDlgCopyBLOB dialog

class CDlgCopyBLOB : public CaplTranslateDialog
{
// Construction
public:
	CDlgCopyBLOB(CWnd* pParent = NULL);   // standard constructor
	virtual ~CDlgCopyBLOB();   // standard destructor

// Dialog Data
	//{{AFX_DATA(CDlgCopyBLOB)
	enum { IDD = IDD_DLG_COPY_BLOB };
	CProgressCtrl	m_Progress;
	//}}AFX_DATA
	CString m_titul;
	CWaitDlgThread* m_thread;
	CTransportSocketClient* m_AplTransport;
		
	BOOL OnInitDialog();
	void OnCancel();
	void OnTimer(UINT nIDEvent);
	bool SetProgress(int pos);
	void StartThread();
	void StopThread();
		

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDlgCopyBLOB)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	int m_position;
	bool m_FlagBreak;
	bool m_FlagEnd;
	CRITICAL_SECTION m_fbo;
	bool m_is_foreground;
	
	
public:	
	// Generated message map functions
	//{{AFX_MSG(CDlgCopyBLOB)
	afx_msg void OnBreak();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DLGCOPYBLOB_H__9980AFEC_9A55_4FB8_8597_A98A512DBFE1__INCLUDED_)
