123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- // CPhotoFTPSendDlg.h : header file
- //
- #if !defined(AFX_CPhotoFTPSendDLG_H__C9767248_E115_11D2_970B_00A024EBF6AB__INCLUDED_)
- #define AFX_CPhotoFTPSendDLG_H__C9767248_E115_11D2_970B_00A024EBF6AB__INCLUDED_
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- /////////////////////////////////////////////////////////////////////////////
- // CCPhotoFTPSendDlg dialog
- #include <afxtempl.h>
- #include "TrayIcon.h"
- #define MAX_THREAD 10
- class CCPhotoFTPSendDlg : public CDialog
- {
- BOOL m_bFirst;
- CTrayIcon m_TrayIcon;
- CString m_pathbak;
- CString m_clientinfo;
- // Construction
- public:
- CString GetModifyDate(CString path);
- BOOL IsStatusPause(CString path);
- void GetUserPswFromPhotoType(CString type, CString &user, CString &pass);
- void ModifyStaus2(CString path);
- void CheckTaskOK(CString path);
- int FTPFile(CString path, CString name);
- void ModifyStaus(CString path, CString info);
- void ModifyStaus3(CString path, int type, CString ip);
- void ModifyStaus4(CString path, CString str,int pos);
- BOOL TaskExist(CString path, CArray<CStringArray, CStringArray>*pList1array);
- void FillGrid();
- BOOL SaveTask();
- CString GetPhotoType(CString path);
- CString GetClient(CString path, int &size);
- CString GetBranchNameFromDoMain(CString domain);
- CString GetBranch(CString path);
- CString GetBranchIPFromDoMain(CString domain, CString &hskip);
- CString GetBranchIP(CString path, CString &hskip);
- void LoadTaskFunc();
- CArray<CStringArray, CStringArray>m_List1array;
- CArray<CStringArray, CStringArray>m_branchinfoarray;
- CCPhotoFTPSendDlg(CWnd* pParent = NULL); // standard constructor
- bool m_bRunning; // Flag to whether thread is on running or not
- int m_bTerminate; // Flag to Thread to be terminated
- unsigned int m_dwThreadID; // Thread ID
- HANDLE m_hThread; // Thread and Event handle
- BOOL TerminateThread();
- bool m_bRunning2; // Flag to whether thread is on running or not
- int m_bTerminate2; // Flag to Thread to be terminated
- unsigned int m_dwThreadID2; // Thread ID
- HANDLE m_hThread2; // Thread and Event handle
- BOOL TerminateThread2();
- bool m_bRunning1[MAX_THREAD]; // Flag to whether thread is on running or not
- bool m_bTerminate1[MAX_THREAD]; // Flag to Thread to be terminated
- unsigned int m_dwThreadID1[MAX_THREAD]; // Thread ID
- HANDLE m_hThread1[MAX_THREAD]; // Thread and Event handle
- BOOL TerminateThread1(int pos);
- // Dialog Data
- //{{AFX_DATA(CCPhotoFTPSendDlg)
- enum { IDD = IDD_CPhotoFTPSend_DIALOG };
- CListCtrl m_List1;
- CString m_host;
- CString m_user;
- CString m_pass;
- UINT m_port;
- CString m_fwhost;
- UINT m_fwport;
- CString m_fwuser;
- CString m_fwpass;
- CString m_lfile;
- CString m_rfile;
- BOOL m_pasv;
- int m_put;
- int m_logontype;
- CString m_acct;
- //}}AFX_DATA
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CCPhotoFTPSendDlg)
- public:
- virtual BOOL PreTranslateMessage(MSG* pMsg);
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- HICON m_hIcon;
- // Generated message map functions
- //{{AFX_MSG(CCPhotoFTPSendDlg)
- virtual BOOL OnInitDialog();
- afx_msg void OnPaint();
- afx_msg HCURSOR OnQueryDragIcon();
- afx_msg void OnButton1();
- afx_msg void OnDestroy();
- afx_msg void OnTimer(UINT nIDEvent);
- afx_msg void OnButton2();
- afx_msg void OnClickList1(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnButton3();
- afx_msg void OnButton4();
- virtual void OnCancel();
- afx_msg void OnOpen();
- afx_msg void OnExit();
- afx_msg void OnClose();
- afx_msg void OnButton5();
- afx_msg void OnButton6();
- afx_msg void OnButton7();
- //}}AFX_MSG
- afx_msg void OnRadio(UINT nID);
- LRESULT OnTrayNotification(WPARAM wParam,LPARAM lParam);
- LRESULT OnAbortClose(WPARAM wParam, LPARAM lParam);
- DECLARE_MESSAGE_MAP()
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_CPhotoFTPSendDLG_H__C9767248_E115_11D2_970B_00A024EBF6AB__INCLUDED_)
|