📄 transferagentview.h
字号:
//////////////////////////////////////////////////////////////////////
// FileFury
// Copyright (c) 2000 Tenebril Incorporated
// All rights reserved.
//
// This source code is governed by the Tenebril open source
// license (http://www.tenebril.com/developers/opensource/license.html)
//
// For more information on this and other open source applications,
// visit the Tenebril OpenSource page:
// http://www.tenebril.com/developers/opensource
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_TRANSFERAGENTVIEW_H__E41E1CC2_64A0_11D3_B8DD_00600838CD5F__INCLUDED_)
#define AFX_TRANSFERAGENTVIEW_H__E41E1CC2_64A0_11D3_B8DD_00600838CD5F__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// TransferAgentView.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CTransferAgentView view
#define MAX_MACHINE 256
typedef struct
{
TCHAR czSrcName[MAX_PATH + 1];
TCHAR czSrcMach[MAX_MACHINE + 1];
TCHAR czDstName[MAX_PATH + 1];
TCHAR czDstMach[MAX_MACHINE + 1];
} TransferItem;
class CTransferAgentView : public CView
{
friend class CTransferAgentFrame;
protected:
CTransferAgentView(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CTransferAgentView)
// Attributes
public:
// Operations
public:
BOOL IsWorking();
BOOL StopTransfer(BOOL bWait);
UINT AddTransfer(LPCTSTR czFileSrc, LPCTSTR czSrcMachine,
LPCTSTR czFileDst, LPCTSTR czDstMachine);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTransferAgentView)
protected:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CTransferAgentView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
protected:
CTransferAgentFrame * m_pFrame;
int m_nLastPercentage;
BOOL UpdateItemStatus(LONG lDone, LONG lTotal);
BOOL IsLocal(LPCTSTR czIP);
BOOL RunTransfer( TransferItem *pData );
static UINT PASCAL DriveTransfer(LPVOID *Param);
BOOL StartTransfer();
CMutex m_cListLock;
CListCtrl m_cListCtrl;
//{{AFX_MSG(CTransferAgentView)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnSize(UINT nType, int cx, int cy);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
BOOL m_bKeepGoing;
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TRANSFERAGENTVIEW_H__E41E1CC2_64A0_11D3_B8DD_00600838CD5F__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -