mrDarker
2025-08-06 2379434200219132ee252f12d47a1e5efd160f42
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
#pragma once
 
#include <vector>
#include "ExternLightControl.h"
#include "Global_Define.h"
 
class CHardwareSettings;
class CLightManager
{
public:
    CLightManager(void);
    ~CLightManager(void);
 
public:
    void            SetParents(CWnd *pWnd){m_pParents=pWnd;}
    void            SetHardware(CHardwareSettings *pLight){m_pHardwareSetting=pLight;}    
    BOOL            ConnectToLight();
    void            DisConnectControl();
    CExternLightControl    *GetIdxLight(int idx);
    BOOL            GetLightNoUseAutoControl(){return m_bNoUse_LightControl;}
 
public:    
    BOOL            SetLightControlValue(int iCon,int iCh, int nControlVal);    
    BOOL            LampTurnOnOff(int iCon,int iCh, BOOL bOn);
 
protected:
    std::vector<CExternLightControl *>    m_vecLightControl;        
    //CConfig                    m_ConfigLightValue;        // 饭矫乔俊辑 包府窍磊... 炼疙 汲沥蔼阑 扁撅窍绰 Config File    
    CWnd                    *m_pParents;        
    CHardwareSettings        *m_pHardwareSetting;    
 
protected:
    BOOL                    m_bNoUse_LightControl;    
};