Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Variables
UserReport.cpp File Reference
#include "precompiled.h"
#include "UserReport.h"
#include "lib/timer.h"
#include "lib/utf8.h"
#include "lib/external_libraries/curl.h"
#include "lib/external_libraries/libsdl.h"
#include "lib/external_libraries/zlib.h"
#include "lib/file/archive/stream.h"
#include "lib/sysdep/sysdep.h"
#include "ps/ConfigDB.h"
#include "ps/Filesystem.h"
#include "ps/Profiler2.h"
#include "ps/ThreadUtil.h"

Go to the source code of this file.

Classes

struct  CUserReport
 
class  CUserReporterWorker
 

Macros

#define DEBUG_UPLOADS   0
 

Variables

static const int REPORTER_VERSION = 1
 Version number stored in config file when the user agrees to the reporting. More...
 
static const double TIMER_CHECK_INTERVAL = 10.0
 Time interval (seconds) at which the worker thread will check its reconnection timers. More...
 
static const double RECONNECT_INVERVAL = 60.0
 Seconds we should wait before reconnecting to the server after a failure. More...
 
CUserReporter g_UserReporter
 

Macro Definition Documentation

#define DEBUG_UPLOADS   0

Definition at line 34 of file UserReport.cpp.

Variable Documentation

CUserReporter g_UserReporter

Definition at line 73 of file UserReport.cpp.

const double RECONNECT_INVERVAL = 60.0
static

Seconds we should wait before reconnecting to the server after a failure.

Definition at line 71 of file UserReport.cpp.

const int REPORTER_VERSION = 1
static

Version number stored in config file when the user agrees to the reporting.

Reporting will be disabled if the config value is missing or is less than this value. If we start reporting a lot more data, we should increase this value and get the user to re-confirm.

Definition at line 59 of file UserReport.cpp.

const double TIMER_CHECK_INTERVAL = 10.0
static

Time interval (seconds) at which the worker thread will check its reconnection timers.

(This should be relatively high so the thread doesn't waste much time continually waking up.)

Definition at line 66 of file UserReport.cpp.