-rw-r--r-- | Retrier.cpp | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/Retrier.cpp b/Retrier.cpp new file mode 100644 index 0000000..15b9fc3 --- a/dev/null +++ b/Retrier.cpp | |||
@@ -0,0 +1,46 @@ | |||
1 | // Retrier.cpp : implementation file | ||
2 | // | ||
3 | |||
4 | #include "stdafx.h" | ||
5 | #include "PumpKIN.h" | ||
6 | #include "Retrier.h" | ||
7 | |||
8 | #include "PumpKINDlg.h" | ||
9 | |||
10 | #ifdef _DEBUG | ||
11 | #define new DEBUG_NEW | ||
12 | #undef THIS_FILE | ||
13 | static char THIS_FILE[] = __FILE__; | ||
14 | #endif | ||
15 | |||
16 | ///////////////////////////////////////////////////////////////////////////// | ||
17 | // CRetrier | ||
18 | |||
19 | CRetrier::CRetrier(CPumpKINDlg *daddy) | ||
20 | : m_Daddy(daddy) | ||
21 | { | ||
22 | } | ||
23 | |||
24 | CRetrier::~CRetrier() | ||
25 | { | ||
26 | } | ||
27 | |||
28 | |||
29 | BEGIN_MESSAGE_MAP(CRetrier, CWnd) | ||
30 | //{{AFX_MSG_MAP(CRetrier) | ||
31 | ON_WM_TIMER() | ||
32 | //}}AFX_MSG_MAP | ||
33 | END_MESSAGE_MAP() | ||
34 | |||
35 | |||
36 | ///////////////////////////////////////////////////////////////////////////// | ||
37 | // CRetrier message handlers | ||
38 | |||
39 | void CRetrier::OnTimer(UINT nIDEvent) | ||
40 | { | ||
41 | ASSERT(m_Daddy); | ||
42 | CXferSocket *socket; | ||
43 | if(m_Daddy->m_Xfers.Lookup(nIDEvent,socket)) | ||
44 | socket->OnRetry(); | ||
45 | CWnd::OnTimer(nIDEvent); | ||
46 | } | ||