使用soui开发的mbc,只支持windows版本
w1146869587
2022-01-24 4905e2e7537d507f218e8e9595485e09d9f3a2b4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#pragma once
#include "stdafx.h"
//#include "MBUploadFileMgr.h"
 
class  CMBUploadFileOper;
typedef vector<CMBUploadFileOper *>      CMBUploadFileOperVector;
 
 
/************************************************************************/
/*  Ñ¡ÔñÉÏ´«ÎļþµÄ²Ù×÷À࣬ÓÃÀ´²Ù×÷ÉÏ´«Îļþ                              */
/************************************************************************/
class AFX_EXT_CLASS CMBUploadFileOper
{
public:
    CMBUploadFileOper();
    ~CMBUploadFileOper();
public:
    enum{
        State_None = -1,
        State_NoTraversing = 0,
        State_Traversing   = 1,
        State_Traversaled  = 2
    };
public:
    CString                 m_strRootPath;                // µ±Ç°µÄ¸ù·¾¶
    CStringArray            m_arSelFileName;              // Ñ¡ÔñµÄÎļþÃû³Æ
    //SOUI::HTREEITEM         m_hSelFileItem;               // Ñ¡Ôñµ±Ç°Ïî    
    CString                 m_strCabinetID;                  // Îĵµ¹ñid
    int                     m_nCabinetType;               // Îĵµ¹ñÀàÐÍ
    CString                 m_strParentCatalogID;          // ¸¸ÏîĿ¼id
    CString                 m_strFileSFlag;                  // Îļþ·þÎñÆ÷±êʶ 
    CString                 m_strServerPath;              // ·þÎñÆ÷·¾¶
    CString                 m_strFrom;                    // À´Ô´
private:
    CCriticalSection    m_cs;
    int                 m_nState;                         // ×´Ì¬£¬0 Î´±éÀú£¬1 ÕýÔÚ±éÀú£¬2 ±éÀúÍê³É
public:
    void SetState(int nState);
    int  GetState(); 
};
 
 
 
/************************************************************************/
/*  Ñ¡ÔñÉÏ´«ÎļþµÄ²Ù×÷À࣬ÓÃÀ´¹ÜÀí²Ù×÷ÉÏ´«Îļþ                          */
/************************************************************************/
class AFX_EXT_CLASS CMBUploadFileOperMgr
{
public:
    CMBUploadFileOperMgr(void);
    ~CMBUploadFileOperMgr(void);
private:
    CCriticalSection    m_cs;
    CMBManualResetEvent        m_eventShutdown;
    CMBManualResetEvent        m_eventExe;    
public:
    HANDLE                  GetEventShutdownHandle();
    HANDLE                  GetEventExeHandle();
    void                    SetEventShutdownSet();
    void                    SetEventShutdownReset();
    void                    SetEventExeSet();
    void                    SetEventExeReset();
public:
    CMBUploadFileOperVector m_vectorUploadFileOper;      
public:
    bool            AddUploadFileOper(CMBUploadFileOper *pUploadFileOper,bool bEvent = true);    // Ìí¼ÓÊý¾Ý 
    bool            RemoveAllUploadFileOper();                                    // ÒƳý  
    bool            RemoveUploadFileOper( CMBUploadFileOper *pUploadFileOper );
    bool            AttachUplodFileOper( CMBUploadFileOperVector &vectorUploadFileOper );     // ÉèÖÃÏ̵߳IJÙ×÷·½·¨ 
};