endpointstorage.h

来自「一个c++实现的acd的例子。 ----ACDCommandListener.」· C头文件 代码 · 共 64 行

H
64
字号
// EndpointStorage.h: interface for the EndpointStorage class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_ENDPOINTSTORAGE_H__7FE3E20A_2295_4903_9548_0E94C440EAED__INCLUDED_)
#define AFX_ENDPOINTSTORAGE_H__7FE3E20A_2295_4903_9548_0E94C440EAED__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "endpoint.h"

class Endpoint;

//##ModelId=424BB6460140
class EndpointStorage  
{
public:
	//EndpointStorage();
	//virtual ~EndpointStorage();
    /**
     * Add endpoint.
     * @param _epid     endpoint ID
     * @param _alias    first H.323 alias
     */
	//##ModelId=424BB6460141
    void addEndpoint(CString _epid, CString _alias);

    /**
     * Remove endpoint.
     * @param _epid     endpoint ID
     */
	//##ModelId=424BB6460151
    void removeEndpoint(CString _epid);

    /**
     * Change endpoint state.
     * @param _epid     endpoint ID
     * @param _state    new state
     */
	//##ModelId=424BB6460153
    void setEndpointState(CString _epid, int _state);

    /**
     * Access endpoint by endpoint ID.
     * @param _epid     endpoint ID
     * @return          the endpoint
     */
	//##ModelId=424BB6460161
    Endpoint endpointById(CString _epid);

    /**
     * Access endpoint by alias.
     * @param _alias    H.323 alias
     * @return          the endpoint
     */
	//##ModelId=424BB646016F
    Endpoint endpointByAlias(CString _alias);


};

#endif // !defined(AFX_ENDPOINTSTORAGE_H__7FE3E20A_2295_4903_9548_0E94C440EAED__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?