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.

122 lines
4.3 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef BUGREPORTER_H
  7. #define BUGREPORTER_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "interface.h"
  12. abstract_class IBugReporter : public IBaseInterface
  13. {
  14. public:
  15. // Initialize and login with default username/password for this computer (from resource/bugreporter.res)
  16. virtual bool Init( CreateInterfaceFn engineFactory ) = 0;
  17. virtual void Shutdown() = 0;
  18. virtual bool IsPublicUI() = 0;
  19. virtual char const *GetUserName() = 0;
  20. virtual char const *GetUserDisplayName() = 0;
  21. virtual int GetNameCount() = 0;
  22. virtual char const *GetName( int index ) = 0;
  23. virtual int GetDisplayNameCount() = 0;
  24. virtual char const *GetDisplayName( int index ) = 0;
  25. virtual char const *GetUserName( int index ) = 0;
  26. virtual char const *GetDisplayNameForUserName( char const *username ) = 0;
  27. virtual char const *GetUserNameForDisplayName( char const *display ) = 0;
  28. virtual int GetSeverityCount() = 0;
  29. virtual char const *GetSeverity( int index ) = 0;
  30. virtual int GetPriorityCount() = 0;
  31. virtual char const *GetPriority( int index ) = 0;
  32. virtual int GetAreaCount() = 0;
  33. virtual char const *GetArea( int index ) = 0;
  34. virtual int GetAreaMapCount() = 0;
  35. virtual char const *GetAreaMap( int index ) = 0;
  36. virtual int GetMapNumberCount() = 0;
  37. virtual char const *GetMapNumber( int index ) = 0;
  38. virtual int GetReportTypeCount() = 0;
  39. virtual char const *GetReportType( int index ) = 0;
  40. virtual char const *GetRepositoryURL( void ) = 0;
  41. virtual char const *GetSubmissionURL( void ) = 0;
  42. virtual int GetLevelCount(int area) = 0;
  43. virtual char const *GetLevel(int area, int index ) = 0;
  44. virtual int GetLevelOwnerCount(int area) = 0;
  45. virtual char const *GetLevelOwner(int area, int index ) = 0;
  46. // Submission API
  47. virtual void StartNewBugReport() = 0;
  48. virtual void CancelNewBugReport() = 0;
  49. virtual bool CommitBugReport( int& bugSubmissionId ) = 0;
  50. virtual void SetTitle( char const *title ) = 0;
  51. virtual void SetDescription( char const *description ) = 0;
  52. // NULL for current user
  53. virtual void SetSubmitter( char const *username = 0 ) = 0;
  54. virtual void SetOwner( char const *username ) = 0;
  55. virtual void SetSeverity( char const *severity ) = 0;
  56. virtual void SetPriority( char const *priority ) = 0;
  57. virtual void SetArea( char const *area ) = 0;
  58. virtual void SetMapNumber( char const *area ) = 0;
  59. virtual void SetReportType( char const *report_type ) = 0;
  60. virtual void SetLevel( char const *levelnamne ) = 0;
  61. virtual void SetPosition( char const *position ) = 0;
  62. virtual void SetOrientation( char const *pitch_yaw_roll ) = 0;
  63. virtual void SetBuildNumber( char const *build_num ) = 0;
  64. virtual void SetScreenShot( char const *screenshot_unc_address ) = 0;
  65. virtual void SetSaveGame( char const *savegame_unc_address ) = 0;
  66. virtual void SetBSPName( char const *bsp_unc_address ) = 0;
  67. virtual void SetVMFName( char const *vmf_unc_address ) = 0;
  68. virtual void AddIncludedFile( char const *filename ) = 0;
  69. virtual void ResetIncludedFiles() = 0;
  70. virtual void SetZipAttachmentName( char const *zipfilename ) = 0;
  71. virtual void SetDriverInfo( char const *info ) = 0;
  72. virtual void SetMiscInfo( char const *info ) = 0;
  73. virtual void SetCSERAddress( const struct netadr_s& adr ) = 0;
  74. virtual void SetExeName( char const *exename ) = 0;
  75. virtual void SetGameDirectory( char const *gamedir ) = 0;
  76. virtual void SetRAM( int ram ) = 0;
  77. virtual void SetCPU( int cpu ) = 0;
  78. virtual void SetProcessor( char const *processor ) = 0;
  79. virtual void SetDXVersion( unsigned int high, unsigned int low, unsigned int vendor, unsigned int device ) = 0;
  80. virtual void SetOSVersion( char const *osversion ) = 0;
  81. virtual void SetSteamUserID( void *steamid, int idsize ) = 0;
  82. virtual void SetConsoleHistory( char const *pchText ) = 0;
  83. };
  84. #define INTERFACEVERSION_BUGREPORTER "BugReporter005"
  85. abstract_class IBugReporterDefaultUsername
  86. {
  87. public:
  88. virtual char const *GetDefaultUsername() const = 0; // returns value of engine bugreporter_username convar since bugreporter .dlls don't have convars for now
  89. };
  90. #define INTERFACEVERSION_BUGREPORTER_DEFAULT_USER_NAME "BugReporterUserName001"
  91. #endif // BUGREPORTER_H