You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
996 B
34 lines
996 B
#ifndef __IM_CLIENTHANDLER_H_INCL__
|
|
#define __IM_CLIENTHANDLER_H_INCL__
|
|
|
|
#include "../../lib/data/net/netClientHandler.h"
|
|
#include "IM_ClientProtocol.h"
|
|
#include "IM_DataBaseAdapter.h"
|
|
|
|
|
|
/**
|
|
* TODO: Add class description
|
|
*
|
|
* @author Gagua
|
|
*/
|
|
class IM_ClientHandler : public networkClientHandler, public IM_ClientProtocol{
|
|
private:
|
|
basicLogCollection * m_pLog;
|
|
void * m_pMyCurrentJob;
|
|
IM_DataBaseAdapter * m_pDBA;
|
|
protected:
|
|
virtual bool packetHandler( protocolPackage *Package );
|
|
public:
|
|
// Constructor
|
|
explicit IM_ClientHandler( int SOCKET, networkServiceEngine *ptr=NULL );
|
|
|
|
// Destructor
|
|
virtual ~IM_ClientHandler();
|
|
virtual bool getStatus( void );
|
|
bool handleItem( IM_ITEM_DATA *ptr );
|
|
virtual bool dispatchEvent( EVENT_CONTAINER *Evt );
|
|
};
|
|
|
|
|
|
|
|
#endif // __IM_CLIENTHANDLER_H_INCL__
|