Counter Strike : Global Offensive Source Code
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.

56 lines
1.6 KiB

  1. //========= Copyright � Valve Corporation, All rights reserved. =======================//
  2. //
  3. // Purpose: Jobs for communicating with the custom Steam backend (Game Coordinator)
  4. //
  5. //=====================================================================================//
  6. #ifndef MATCHMAKING_STEAM_DATACENTER_JOBS_H
  7. #define MATCHMAKING_STEAM_DATACENTER_JOBS_H
  8. #if !defined( NO_STEAM ) && !defined( NO_STEAM_GAMECOORDINATOR )
  9. #include "gcsdk/gcclientsdk.h"
  10. //-----------------------------------------------------------------------------
  11. // Purpose: Sends an update of title-global stats to the GC
  12. //-----------------------------------------------------------------------------
  13. class CGCClientJobUpdateStats : public GCSDK::CGCClientJob
  14. {
  15. public:
  16. CGCClientJobUpdateStats( KeyValues *pKVStats );
  17. ~CGCClientJobUpdateStats();
  18. virtual bool BYieldingRunGCJob();
  19. private:
  20. KeyValues *m_pKVCmd;
  21. };
  22. //-----------------------------------------------------------------------------
  23. // Purpose: Retrieves the global state from the GC
  24. //-----------------------------------------------------------------------------
  25. class CGCClientJobDataRequest : public GCSDK::CGCClientJob
  26. {
  27. public:
  28. CGCClientJobDataRequest( );
  29. ~CGCClientJobDataRequest( );
  30. virtual bool BYieldingRunGCJob();
  31. bool BComplete() const { return m_bComplete; }
  32. bool BSuccess() const { return m_bSuccess; }
  33. KeyValues *GetResults() { return m_pKVResults; }
  34. void Finish() { m_bWaitForRead = false; }
  35. private:
  36. KeyValues *m_pKVRequest;
  37. KeyValues *m_pKVResults;
  38. bool m_bComplete;
  39. bool m_bSuccess;
  40. bool m_bWaitForRead;
  41. };
  42. #endif
  43. #endif