summaryrefslogtreecommitdiff
path: root/indra/llmessage/llmessagereader.cpp
blob: 996258af5219a252b79400061c55056895221218 (plain)
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
40
41
42
43
44
/** 
 * @file llmessagereader.cpp
 * @brief LLMessageReader class implementation
 *
 * Copyright (c) 2007-$CurrentYear$, Linden Research, Inc.
 * $License$
 */

#include "linden_common.h"
#include "llmessagereader.h"

static BOOL sTimeDecodes = FALSE;

static F32 sTimeDecodesSpamThreshold = 0.05f;

//virtual
LLMessageReader::~LLMessageReader()
{
	// even abstract base classes need a concrete destructor
}

//static 
void LLMessageReader::setTimeDecodes(BOOL b)
{
	sTimeDecodes = b;
}

//static 
void LLMessageReader::setTimeDecodesSpamThreshold(F32 seconds)
{
	sTimeDecodesSpamThreshold = seconds;
}

//static 
BOOL LLMessageReader::getTimeDecodes()
{
	return sTimeDecodes;
}

//static 
F32 LLMessageReader::getTimeDecodesSpamThreshold()
{
	return sTimeDecodesSpamThreshold;
}