summaryrefslogtreecommitdiffabout
path: root/Retrier.cpp
blob: 15b9fc3a60ed2d2baf87734f622d6e2084aa3c7e (plain)
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
// Retrier.cpp : implementation file
//

#include "stdafx.h"
#include "PumpKIN.h"
#include "Retrier.h"

#include "PumpKINDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CRetrier

CRetrier::CRetrier(CPumpKINDlg *daddy)
	: m_Daddy(daddy)
{
}

CRetrier::~CRetrier()
{
}


BEGIN_MESSAGE_MAP(CRetrier, CWnd)
	//{{AFX_MSG_MAP(CRetrier)
	ON_WM_TIMER()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()


/////////////////////////////////////////////////////////////////////////////
// CRetrier message handlers

void CRetrier::OnTimer(UINT nIDEvent) 
{
	ASSERT(m_Daddy);
CXferSocket *socket;
	if(m_Daddy->m_Xfers.Lookup(nIDEvent,socket))
		socket->OnRetry();
	CWnd::OnTimer(nIDEvent);
}