00001 #ifndef MFCRBLINKC_H 00002 #define MFCRBLINKC_H 00003 00004 #include "oaw/misc/stringc.h" 00005 #include "../oawconfig.h" 00006 00007 class CCriticalSection; 00008 class CWinThread; 00009 class CEvent; 00010 class CWnd; 00011 00012 typedef void* LPVOID; 00013 typedef unsigned int UINT; 00014 00015 OAW_BEGIN_NAMESPACE 00016 00017 00018 class SockEventBrokerC; 00019 class CybWorldC; 00020 class CybScriptC; 00021 class CybScriptC_Impl; 00022 class CybFontManagerC; 00023 class CybTextureManagerC; 00024 class CybJSEngineC; 00025 00026 00027 class OAW_DLLMAPPING MFCEBLinkC{ 00028 public: 00029 struct PDThreadParams{ 00030 CWnd* pDialogWnd; 00031 CWinThread* m_pThread; 00032 CCriticalSection* pCS; 00033 SockEventBrokerC* ptrObj; 00034 CybWorldC* pMyWorld; 00035 CybFontManagerC* pFontMgr; 00036 CybTextureManagerC* pTexMgr; 00037 CybJSEngineC* pJsEngine; 00038 CybScriptC* pScript; 00039 CybScriptC_Impl* pScriptImpl; 00040 StringC scriptName; 00041 StringC compName; 00042 StringC endPoint; 00043 StringC localIP; 00044 StringC wrlRoot; 00045 short bWithWorldModel; 00046 }; 00047 MFCEBLinkC(const char*); 00048 virtual ~MFCEBLinkC(); 00049 void Lock(); 00050 void Unlock(); 00051 void SetDlg(CWnd*); 00052 void SetCompParameter(StringC name, StringC localIP, StringC endPoint); 00053 void Start(); 00054 void Stop(); 00055 void AsignScript(CybScriptC_Impl*,const char*); 00056 protected: 00057 static UINT PDThreadRoutine(LPVOID paramsIn); 00058 protected: 00059 PDThreadParams* m_pPDThreadParams; 00060 short m_bWithWorldModel; 00061 00062 }; 00063 00064 OAW_END_NAMESPACE 00065 00066 00067 #endif 00068
1.3-rc2