📄 tmlsessmgr.h
字号:
// TmlSessMgr.h: interface for the CTmlSessMgr class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_TMLSESSMGR_H__6A0B16EF_2863_4366_85B3_5CD4414BF4F9__INCLUDED_)
#define AFX_TMLSESSMGR_H__6A0B16EF_2863_4366_85B3_5CD4414BF4F9__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "tmlsession.h"
class CTmlSessMgr
{
public:
class CTmlSessNode
{
// CSessionList(){self=0;next=0;}
public:
char * pSessName;
CTmlSession* self;
CTmlSessNode* next;
};
CTmlSessMgr();
virtual ~CTmlSessMgr();
int CheckSessions();
int DeleteSession(CTmlSession*pSess);
int CheckCredit(char *pUser,char*pPwd);
int InitSessions();
int GetPimSession(char*sessionID,CTmlSession**pSess);
CTmlSession* GetActiveSession();
CTmlSessNode* head;
CTmlSession* active;
int CreateSession(char *pUser,char*pPwd,CTmlSession**pSess);
int CreateSession(CTmlSession**pSess);
int CreateSession(char *pUser,char*pPwd,char*pSession,CTmlSession**pSess);
int GetSession(char* pSession,CTmlSession**pSess); //若不存在则创建这个session
void DropSession(String_t pID);
};
#endif // !defined(AFX_TMLSESSMGR_H__6A0B16EF_2863_4366_85B3_5CD4414BF4F9__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -