summaryrefslogtreecommitdiffabout
path: root/PumpKINDlg.h
Unidiff
Diffstat (limited to 'PumpKINDlg.h') (more/less context) (ignore whitespace changes)
-rw-r--r--PumpKINDlg.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/PumpKINDlg.h b/PumpKINDlg.h
index b247c56..c5469f1 100644
--- a/PumpKINDlg.h
+++ b/PumpKINDlg.h
@@ -346,48 +346,55 @@ public:
346 BOOL ConfirmRequest(); 346 BOOL ConfirmRequest();
347 WORD m_LastSlack; 347 WORD m_LastSlack;
348 UINT m_ACK; 348 UINT m_ACK;
349 BOOL OnTFTP(tftp* p); 349 BOOL OnTFTP(tftp* p);
350 ULONG GetACK(void); 350 ULONG GetACK(void);
351 void DoXfer(); 351 void DoXfer();
352 CRRQSocket(CPumpKINDlg *daddy,LPCTSTR fileName,LPCTSTR type,SOCKADDR_IN *sin); 352 CRRQSocket(CPumpKINDlg *daddy,LPCTSTR fileName,LPCTSTR type,SOCKADDR_IN *sin);
353 BOOL Create(LPCTSTR localFile=NULL,LPCTSTR hostName=NULL); 353 BOOL Create(LPCTSTR localFile=NULL,LPCTSTR hostName=NULL);
354 354
355 DECLARE_DYNAMIC(CRRQSocket) 355 DECLARE_DYNAMIC(CRRQSocket)
356}; 356};
357 357
358 typedef CMap<SOCKET,SOCKET,CXferSocket*,CXferSocket*>CTIDMap; 358 typedef CMap<SOCKET,SOCKET,CXferSocket*,CXferSocket*>CTIDMap;
359typedef CMap<CTime*,CTime*,CTime*,CTime*> CTimeMap; 359typedef CMap<CTime*,CTime*,CTime*,CTime*> CTimeMap;
360 360
361///////////////////////////////////////////////////////////////////////////// 361/////////////////////////////////////////////////////////////////////////////
362// CPumpKINDlg dialog 362// CPumpKINDlg dialog
363 363
364class CTrayer; 364class CTrayer;
365class CRetrier; 365class CRetrier;
366class CPumpKINDlg : public CDialog 366class CPumpKINDlg : public CDialog
367{ 367{
368// Construction 368// Construction
369public: 369public:
370 void AdjustButton(CWnd& w,CRect& wrc);
371 void RecalcLayout(int,int);
372 CSize m_MinSize;
373 UINT m_bottomGapLog;
374 UINT m_bottomGapListen;
375 UINT m_rightGapList;
376 UINT m_rightGapButtons;
370 CString m_lastlogerr; 377 CString m_lastlogerr;
371 void LogLine(LPCTSTR str); 378 void LogLine(LPCTSTR str);
372 CString m_LogFile; 379 CString m_LogFile;
373 BOOL m_bListen; 380 BOOL m_bListen;
374 acl_rules_t m_aclRules; 381 acl_rules_t m_aclRules;
375 CString m_bnwRequest; 382 CString m_bnwRequest;
376 CString m_bnwSuccess; 383 CString m_bnwSuccess;
377 CString m_bnwAbort; 384 CString m_bnwAbort;
378 CBellsNWhistles m_bnw; 385 CBellsNWhistles m_bnw;
379 CTrayer *m_Trayer; 386 CTrayer *m_Trayer;
380 CTimeSpan m_RetryTimeOut; 387 CTimeSpan m_RetryTimeOut;
381 virtual ~CPumpKINDlg(); 388 virtual ~CPumpKINDlg();
382 CRetrier* m_Retrier; 389 CRetrier* m_Retrier;
383 virtual BOOL PreTranslateMessage(MSG* pMsg); 390 virtual BOOL PreTranslateMessage(MSG* pMsg);
384 BOOL m_bShown; 391 BOOL m_bShown;
385 BOOL m_bExiting; 392 BOOL m_bExiting;
386 void SaveSettings(); 393 void SaveSettings();
387 void LoadSettings(); 394 void LoadSettings();
388 void SetupButtons(); 395 void SetupButtons();
389 BITMAP m_bitmapBack; 396 BITMAP m_bitmapBack;
390 CBitmap m_bmpBack; 397 CBitmap m_bmpBack;
391 UINT m_PromptTimeOut; 398 UINT m_PromptTimeOut;
392 UINT m_SpeakPort; 399 UINT m_SpeakPort;
393 void LogLine(UINT msgID); 400 void LogLine(UINT msgID);
@@ -409,48 +416,52 @@ public:
409 rrqDenyAll=acl_rule::rrqDeny, 416 rrqDenyAll=acl_rule::rrqDeny,
410 rrqFallback=acl_rule::rrqNone, 417 rrqFallback=acl_rule::rrqNone,
411 rrqGrant=rrqGiveAll, rrqDeny=rrqDenyAll, rrqPrompt=rrqAlwaysConfirm 418 rrqGrant=rrqGiveAll, rrqDeny=rrqDenyAll, rrqPrompt=rrqAlwaysConfirm
412 }; 419 };
413 enum{ 420 enum{
414 wrqTakeAll=acl_rule::wrqGrant, 421 wrqTakeAll=acl_rule::wrqGrant,
415 wrqConfirmIfExists=acl_rule::wrqPromptIfExists, 422 wrqConfirmIfExists=acl_rule::wrqPromptIfExists,
416 wrqAlwaysConfirm=acl_rule::wrqPrompt, 423 wrqAlwaysConfirm=acl_rule::wrqPrompt,
417 wrqDenyAll=acl_rule::wrqDeny, 424 wrqDenyAll=acl_rule::wrqDeny,
418 wrqFallback=acl_rule::wrqNone, 425 wrqFallback=acl_rule::wrqNone,
419 wrqGrant=wrqTakeAll,wrqDeny=wrqDenyAll, wrqPrompt=wrqAlwaysConfirm 426 wrqGrant=wrqTakeAll,wrqDeny=wrqDenyAll, wrqPrompt=wrqAlwaysConfirm
420 }; 427 };
421 UINT m_RRQMode; 428 UINT m_RRQMode;
422 UINT m_WRQMode; 429 UINT m_WRQMode;
423 BOOL m_bTFTPSubdirs; 430 BOOL m_bTFTPSubdirs;
424 CString m_TFTPRoot; 431 CString m_TFTPRoot;
425 UINT m_ListenPort; 432 UINT m_ListenPort;
426 UINT m_BlockSize; 433 UINT m_BlockSize;
427 CListenSocket m_Listener; 434 CListenSocket m_Listener;
428 CPumpKINDlg(CWnd* pParent = NULL);// standard constructor 435 CPumpKINDlg(CWnd* pParent = NULL);// standard constructor
429 436
430// Dialog Data 437// Dialog Data
431 //{{AFX_DATA(CPumpKINDlg) 438 //{{AFX_DATA(CPumpKINDlg)
432 enum { IDD = IDD_PUMPKIN_DIALOG }; 439 enum { IDD = IDD_PUMPKIN_DIALOG };
440 CButtonm_HelpCtl;
441 CButtonm_PutCtl;
442 CButtonm_GetCtl;
443 CButtonm_ExitCtl;
433 CButtonm_ListenCtl; 444 CButtonm_ListenCtl;
434 CButtonm_AbortCtl; 445 CButtonm_AbortCtl;
435 CButtonm_OptionsCtl; 446 CButtonm_OptionsCtl;
436 CListBoxm_Log; 447 CListBoxm_Log;
437 CListCtrlm_List; 448 CListCtrlm_List;
438 //}}AFX_DATA 449 //}}AFX_DATA
439 450
440 // ClassWizard generated virtual function overrides 451 // ClassWizard generated virtual function overrides
441 //{{AFX_VIRTUAL(CPumpKINDlg) 452 //{{AFX_VIRTUAL(CPumpKINDlg)
442 protected: 453 protected:
443 virtual void DoDataExchange(CDataExchange* pDX);// DDX/DDV support 454 virtual void DoDataExchange(CDataExchange* pDX);// DDX/DDV support
444 //}}AFX_VIRTUAL 455 //}}AFX_VIRTUAL
445 456
446// Implementation 457// Implementation
447protected: 458protected:
448 CToolTipCtrl m_tooltip; 459 CToolTipCtrl m_tooltip;
449 HICON m_hIcon; 460 HICON m_hIcon;
450 461
451 // Generated message map functions 462 // Generated message map functions
452 //{{AFX_MSG(CPumpKINDlg) 463 //{{AFX_MSG(CPumpKINDlg)
453 virtual BOOL OnInitDialog(); 464 virtual BOOL OnInitDialog();
454 afx_msg void OnSysCommand(UINT nID, LPARAM lParam); 465 afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
455 afx_msg void OnDestroy(); 466 afx_msg void OnDestroy();
456 afx_msg void OnPaint(); 467 afx_msg void OnPaint();
@@ -461,27 +472,29 @@ protected:
461 afx_msg void OnExit(); 472 afx_msg void OnExit();
462 afx_msg void OnPut(); 473 afx_msg void OnPut();
463 afx_msg void OnGet(); 474 afx_msg void OnGet();
464 afx_msg void OnDeleteallitemsConnections(NMHDR* pNMHDR, LRESULT* pResult); 475 afx_msg void OnDeleteallitemsConnections(NMHDR* pNMHDR, LRESULT* pResult);
465 afx_msg void OnDeleteitemConnections(NMHDR* pNMHDR, LRESULT* pResult); 476 afx_msg void OnDeleteitemConnections(NMHDR* pNMHDR, LRESULT* pResult);
466 afx_msg void OnInsertitemConnections(NMHDR* pNMHDR, LRESULT* pResult); 477 afx_msg void OnInsertitemConnections(NMHDR* pNMHDR, LRESULT* pResult);
467 afx_msg void OnItemchangedConnections(NMHDR* pNMHDR, LRESULT* pResult); 478 afx_msg void OnItemchangedConnections(NMHDR* pNMHDR, LRESULT* pResult);
468 afx_msg void OnAbort(); 479 afx_msg void OnAbort();
469 afx_msg void OnClose(); 480 afx_msg void OnClose();
470 afx_msg void OnTrayShowpumpkinwindow(); 481 afx_msg void OnTrayShowpumpkinwindow();
471 afx_msg void OnTrayListen(); 482 afx_msg void OnTrayListen();
472 afx_msg void OnTrayExit(); 483 afx_msg void OnTrayExit();
473 afx_msg void OnTrayAboutpumpkin(); 484 afx_msg void OnTrayAboutpumpkin();
474 afx_msg void OnTrayFetchfile(); 485 afx_msg void OnTrayFetchfile();
475 afx_msg void OnTrayHelp(); 486 afx_msg void OnTrayHelp();
476 afx_msg void OnTrayOptions(); 487 afx_msg void OnTrayOptions();
477 afx_msg void OnTraySendfile(); 488 afx_msg void OnTraySendfile();
478 afx_msg void OnWindowPosChanging(WINDOWPOS FAR* lpwndpos); 489 afx_msg void OnWindowPosChanging(WINDOWPOS FAR* lpwndpos);
479 afx_msg void OnSelchangeLog(); 490 afx_msg void OnSelchangeLog();
480 afx_msg void OnTrayOpenfilesfolder(); 491 afx_msg void OnTrayOpenfilesfolder();
481 afx_msg void OnDropFiles(HDROP hDropInfo); 492 afx_msg void OnDropFiles(HDROP hDropInfo);
482 virtual void OnCancel(); 493 virtual void OnCancel();
483 afx_msg void OnHelp(); 494 afx_msg void OnHelp();
484 afx_msg void OnListening(); 495 afx_msg void OnListening();
496 afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI);
497 afx_msg void OnSize(UINT nType, int cx, int cy);
485 //}}AFX_MSG 498 //}}AFX_MSG
486 DECLARE_MESSAGE_MAP() 499 DECLARE_MESSAGE_MAP()
487}; 500};