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

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __IM_CLIENTHANDLER_H_INCL__
  2. #define __IM_CLIENTHANDLER_H_INCL__
  3. #include "../../lib/data/net/netClientHandler.h"
  4. #include "IM_ClientProtocol.h"
  5. #include "IM_DataBaseAdapter.h"
  6. /**
  7. * TODO: Add class description
  8. *
  9. * @author Gagua
  10. */
  11. class IM_ClientHandler : public networkClientHandler, public IM_ClientProtocol{
  12. private:
  13. basicLogCollection * m_pLog;
  14. void * m_pMyCurrentJob;
  15. IM_DataBaseAdapter * m_pDBA;
  16. protected:
  17. virtual bool packetHandler( protocolPackage *Package );
  18. public:
  19. // Constructor
  20. explicit IM_ClientHandler( int SOCKET, networkServiceEngine *ptr=NULL );
  21. // Destructor
  22. virtual ~IM_ClientHandler();
  23. virtual bool getStatus( void );
  24. bool handleItem( IM_ITEM_DATA *ptr );
  25. virtual bool dispatchEvent( EVENT_CONTAINER *Evt );
  26. };
  27. #endif // __IM_CLIENTHANDLER_H_INCL__