clientengine.h
来自「本代码是基于LINUX系统下的」· C头文件 代码 · 共 62 行
H
62 行
// ClientAngine.h: interface for the CClientAngine class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_CLIENTANGINE_H__F48B34AB_DE7B_45AE_99B3_035EBC33D192__INCLUDED_)
#define AFX_CLIENTANGINE_H__F48B34AB_DE7B_45AE_99B3_035EBC33D192__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#ifndef __CLIENTANGINE_H__
#define __CLIENTANGINE_H__
#include "ClientTool.h"
#include <afxtempl.h>
#include "User.h"
#include "SessionManager.h"
class CClientEngine
{
public:
virtual ~CClientEngine();
public:
static CClientEngine* getInstance();
//existing interface goes here
int sendMessage(CUser&, CString);
void receiveMessage(int &flag);
bool userLogin(CString = "", CString = "");
bool userlogout();
bool updateList(CListBox*);
protected:
CClientEngine();
private:
CClientTool* m_tool;
private:
CSessionManager* m_sessionManager;
static CClientEngine* m_instance;
public:
static UINT ThreadFunc(LPVOID pParam);
bool refuse(CUser &u, CString message);
bool transportfile(CUser &u,CString message);
void removeFriends(int id);
void addFriends(int id);
void sendSessionMessage(int sid, CString message);
CUser* getMyseft();
void closeSession(int sid);
void addToMeeting(int sid, CUser* user);
int m_myid;
void CreateSession();
int engineSelect(HWND hWnd, unsigned int wMsg, long lEvent);
CUser* getUserByID(int id);
void chatWithFriend(CUser*);
CArray <CUser,CUser&> m_contactors;
CMap<int, int, CDialog*, CDialog*> m_chatWindows;
};
#endif
#endif // !defined(AFX_CLIENTANGINE_H__F48B34AB_DE7B_45AE_99B3_035EBC33D192__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?