Guest User

Untitled

a guest
May 25th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. #pragma once
  2.  
  3. // Notification callback function
  4. typedef void(__stdcall *ZAPI_CALLBACK_FUNC)(const int code, const int type, LPVOID data, LPVOID param);
  5.  
  6. class ClientProtocol
  7. {
  8.  
  9. public:
  10. //---
  11. static ClientProtocol& Instance();
  12. //---
  13. int Connect(LPCSTR host, UserObject& authUser);
  14. int Subscribe(ZAPI_CALLBACK_FUNC callback, const int flags, void *param);
  15. void Disconnect(void);
  16. //---
  17. BYTE Ping();
  18. BYTE FastPing();
  19.  
  20. BYTE EventsClientCalendar(EventCache& vec);
  21. BYTE RequestCreate(const RequestObject& req);
  22. BYTE RequestDelete(const int login, const int reqId);
  23. BYTE RequestsDeleteAll();
  24. BYTE RequestsDeleteByEvent(const int eventId);
  25. BYTE RequestsGet(RequestCache& vec);
  26. BYTE RequestsGetByEvent(RequestCache& vec, const int eventId);
  27.  
  28. size_t bytesSent();
  29. size_t bytesReceived();
  30.  
  31. };
Add Comment
Please, Sign In to add comment