www.pudn.com > MyQQClient.zip > MainSocket.h


#if !defined(AFX_MAINSOCKET_H__A3E365B3_2960_4C16_8258_D24FAF5CA875__INCLUDED_) 
#define AFX_MAINSOCKET_H__A3E365B3_2960_4C16_8258_D24FAF5CA875__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// MainSocket.h : header file 
// 
 
 
struct CHATDLGINFO { 
//	int nSocketID; 
	CString strUserName; 
	CString	strChatMessage; 
}; 
///////////////////////////////////////////////////////////////////////////// 
// CMainSocket command target 
 
class CMainSocket : public CSocket 
{ 
// Attributes 
public: 
	void *m_pMainDlg; 
	CObArray m_ChatInfo; 
	CObArray m_ChatDlgs; 
	CObArray m_ChatActions; 
	int m_image; 
	CString m_UserName; 
 
// Operations 
public: 
	CMainSocket(); 
	virtual ~CMainSocket(); 
 
// Overrides 
public: 
	void OnChatAction(CString strName,CString strClientName,CString strMessage); 
	//void CloseChatDlg(CChatDialog pChatDlg); 
	void ReceiveMessage(CString UserName,CString strMessage); 
	void SendMessage(CString UserName,CString strMessage); 
	void OpenChatDlg(CString UserName); 
	int GetImage(); 
	void SetImage(int image); 
	CString GetUserName(); 
	void SetUserName(CString sName); 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CMainSocket) 
	public: 
	virtual void OnReceive(int nErrorCode); 
	//}}AFX_VIRTUAL 
 
	// Generated message map functions 
	//{{AFX_MSG(CMainSocket) 
		// NOTE - the ClassWizard will add and remove member functions here. 
	//}}AFX_MSG 
 
// Implementation 
protected: 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_MAINSOCKET_H__A3E365B3_2960_4C16_8258_D24FAF5CA875__INCLUDED_)