| | |
| | | #pragma once |
| | | #include "Servo.h" |
| | | #include "CBonder.h" |
| | | #include "Configuration.h" |
| | | #include "CPanel.h" |
| | | #include "GB2860SQLite.h" |
| | | |
| | | |
| | | class CModel |
| | |
| | | int init(); |
| | | int term(); |
| | | void onTimer(UINT nTimerid); |
| | | int createRemoteEqs(); |
| | | CServo& getServo(); |
| | | BEQ::IRemoteEquipment* getBond1(); |
| | | CBonder& getBonder(); |
| | | BEQ::IEquipment* getEquipment(); |
| | | |
| | | public: |
| | | int notify(int code); |
| | |
| | | int notifyObjAndPtr(int code, IRxObject* pObj, void* ptr); |
| | | int notifyObjAndInt(int code, IRxObject* pObj1, IRxObject* pObj2, int exCode); |
| | | int notifyInt(int code, int exCode); |
| | | int notifyInt2(int code, int exCode, int exCode2); |
| | | int notifyDouble(int code, double dValue); |
| | | int notifyText(int code, const char* pszText); |
| | | int notifyPtrAndInt(int code, void* ptr1, void* ptr2, int exCode); |
| | | int notifyTextAndInt(int code, const char* pszText, int exCode); |
| | | int notifyMesMsg(int code, int stream, int function, const char* pszText); |
| | | |
| | | private: |
| | | int savePanel(CPanel* pPanel, CComponent* pComponent); |
| | | |
| | | public: |
| | | CConfiguration m_configuration; |
| | |
| | | CString m_strDataDir; |
| | | |
| | | private: |
| | | CServo m_servo; |
| | | BEQ::IServo* m_pServo; |
| | | BEQ::IRemoteEquipment* m_pEqBond1; |
| | | CBonder m_bonder; |
| | | BEQ::IEquipment* m_pEquipment; |
| | | int m_nTimerID; |
| | | CGB2860SQLite m_sqlite; |
| | | }; |
| | | |