#include <UserReport.h>
Definition at line 23 of file UserReport.h.
CUserReporter::CUserReporter |
( |
| ) |
|
CUserReporter::~CUserReporter |
( |
| ) |
|
void CUserReporter::Deinitialize |
( |
| ) |
|
std::string CUserReporter::GetStatus |
( |
| ) |
|
void CUserReporter::Initialize |
( |
| ) |
|
bool CUserReporter::IsReportingEnabled |
( |
| ) |
|
std::string CUserReporter::LoadUserID |
( |
| ) |
|
|
private |
void CUserReporter::SetReportingEnabled |
( |
bool |
enabled | ) |
|
void CUserReporter::SubmitReport |
( |
const char * |
type, |
|
|
int |
version, |
|
|
const std::string & |
data |
|
) |
| |
Submit a report to be transmitted to the online server.
Nothing will be transmitted until reporting is enabled by the user, so you don't need to check for that first.
- Parameters
-
type | short string identifying the type of data ("hwdetect", "message", etc) |
version | positive integer that should be incremented if the data is changed in a non-compatible way and the server will have to distinguish old and new formats |
data | the actual data (typically UTF-8-encoded text, or JSON, but could be binary) |
Definition at line 616 of file UserReport.cpp.
void CUserReporter::Update |
( |
| ) |
|
Must be called frequently (preferably every frame), to update some internal reconnection timers.
Definition at line 610 of file UserReport.cpp.
The documentation for this class was generated from the following files: