Control.h
资源名称:视频会议系统.rar [点击查看]
上传用户:popouu88
上传日期:2013-02-11
资源大小:2894k
文件大小:2k
源码类别:
IP电话/视频会议
开发平台:
Visual C++
- // Control.h : main header file for the CONTROL application
- //
- #if !defined(AFX_CONTROL_H__FA76F039_BF67_434E_8D06_219A120F5B73__INCLUDED_)
- #define AFX_CONTROL_H__FA76F039_BF67_434E_8D06_219A120F5B73__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #ifndef __AFXWIN_H__
- #error include 'stdafx.h' before including this file for PCH
- #endif
- #include "resource.h" // main symbols
- //网络类
- #include "..公共类TCP.h"
- //视频类
- #include "VideoUSB.h"
- //通道类型
- #include "..公共类PackagePChannelType.h"
- //用户注册
- #include "..公共类PackagePRegisterREQ.h"
- #include "..公共类PackagePRegisterRES.h"
- //在线用户
- #include "..公共类PackagePOnlineUserREQ.h"
- #include "..公共类PackagePOnlineUserRES.h"
- //请求视频信息
- #include "..公共类PackagePRecvVideoREQ.h"
- //停止接收视频
- #include "..公共类PackagePStopVideoREQ.h"
- //视频数据包
- #include "..公共类PackagePVideoData.h"
- //网络连接测试
- #include "..公共类PackagePConnectTest.h"
- //云台镜头的控制
- #include "..公共类PackagePPanelCommand.h"
- /////////////////////////////////////////////////////////////////////////////
- // CControlApp:
- // See Control.cpp for the implementation of this class
- //
- class CControlApp : public CWinApp
- {
- public:
- CControlApp();
- CTCP & GetTCP( bool command = true ){ return command ? cmdTCP : videoTCP; }
- static void OnConnect( void * pContext );
- INT_PTR_MAP * GetMap( void ){ return &this->recv_video_map; }
- protected:
- void OnlineUser( CBuffer & buffer );
- static void OnCommand( void * pContext );
- static void OnVideo( void * pContext );
- //{{AFX_VIRTUAL(CControlApp)
- virtual BOOL InitInstance();
- //}}AFX_VIRTUAL
- //{{AFX_MSG(CControlApp)
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- private:
- CString appIni;
- CTCP cmdTCP;
- CTCP videoTCP;
- CString IP;
- int Port;
- CString userName;
- CString password;
- int user_id;
- //保存 CVideoDlg 指针
- INT_PTR_MAP recv_video_map;
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_CONTROL_H__FA76F039_BF67_434E_8D06_219A120F5B73__INCLUDED_)