summaryrefslogtreecommitdiffabout
path: root/Retrier.cpp
authorMichael Krelin <hacker@klever.net>2004-07-05 01:53:09 (UTC)
committer Michael Krelin <hacker@klever.net>2004-07-05 01:53:09 (UTC)
commit9938ea772d372ba955b7bc1f1c48a062c3a36f8a (patch) (unidiff)
treea98185df944e3a763f9557aa74bc2837b343f048 /Retrier.cpp
downloadpumpkin-9938ea772d372ba955b7bc1f1c48a062c3a36f8a.zip
pumpkin-9938ea772d372ba955b7bc1f1c48a062c3a36f8a.tar.gz
pumpkin-9938ea772d372ba955b7bc1f1c48a062c3a36f8a.tar.bz2
initial commit into svn repository
git-svn-id: http://svn.klever.net/kin/pumpkin/trunk@1 fe716a7a-6dde-0310-88d9-d003556173a8
Diffstat (limited to 'Retrier.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--Retrier.cpp46
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
13static char THIS_FILE[] = __FILE__;
14#endif
15
16/////////////////////////////////////////////////////////////////////////////
17// CRetrier
18
19CRetrier::CRetrier(CPumpKINDlg *daddy)
20 : m_Daddy(daddy)
21{
22}
23
24CRetrier::~CRetrier()
25{
26}
27
28
29BEGIN_MESSAGE_MAP(CRetrier, CWnd)
30 //{{AFX_MSG_MAP(CRetrier)
31 ON_WM_TIMER()
32 //}}AFX_MSG_MAP
33END_MESSAGE_MAP()
34
35
36/////////////////////////////////////////////////////////////////////////////
37// CRetrier message handlers
38
39void CRetrier::OnTimer(UINT nIDEvent)
40{
41 ASSERT(m_Daddy);
42CXferSocket *socket;
43 if(m_Daddy->m_Xfers.Lookup(nIDEvent,socket))
44 socket->OnRetry();
45 CWnd::OnTimer(nIDEvent);
46}