summaryrefslogtreecommitdiff
path: root/engine/enginebugreporter.h
blob: 9f55b6e9ae12bef2cf9bd0b2b9886336e8b6a7d0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
//=============================================================================//

#ifndef ENGINEBUGREPORTER_H
#define ENGINEBUGREPORTER_H
#ifdef _WIN32
#pragma once
#endif

namespace vgui
{
	class Panel;
};

abstract_class IEngineBugReporter
{
public:
	typedef enum
	{
		BR_AUTOSELECT  = 0,
		BR_PUBLIC,
		BR_INTERNAL,
	} BR_TYPE;

	virtual void		Init( void ) = 0;
	virtual void		Shutdown( void ) = 0;

	virtual void		InstallBugReportingUI( vgui::Panel *parent, BR_TYPE type ) = 0;
	virtual bool		ShouldPause() const = 0;

	virtual bool		IsVisible() const = 0; //< true iff the bug panel is active and on screen right now
};

extern IEngineBugReporter *bugreporter;

#endif // ENGINEBUGREPORTER_H