summaryrefslogtreecommitdiffabout
path: root/Retrier.cpp
Side-by-side diff
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 @@
+// 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);
+}