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.

44 lines
1.0 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef ENGINEBUGREPORTER_H
  7. #define ENGINEBUGREPORTER_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. namespace vgui
  12. {
  13. class Panel;
  14. };
  15. abstract_class IEngineBugReporter
  16. {
  17. public:
  18. typedef enum
  19. {
  20. BR_AUTOSELECT = 0,
  21. BR_PUBLIC,
  22. BR_INTERNAL,
  23. } BR_TYPE;
  24. virtual void Init( void ) = 0;
  25. virtual void Shutdown( void ) = 0;
  26. virtual void InstallBugReportingUI( vgui::Panel *parent, BR_TYPE type ) = 0;
  27. virtual bool ShouldPause() const = 0;
  28. virtual bool IsVisible() const = 0; //< true iff the bug panel is active and on screen right now
  29. // Methods to get bug count for internal dev work stat tracking.
  30. // Will get the bug count and clear it every map transition
  31. virtual int GetBugSubmissionCount() const = 0;
  32. virtual void ClearBugSubmissionCount() = 0;
  33. };
  34. extern IEngineBugReporter *bugreporter;
  35. #endif // ENGINEBUGREPORTER_H