#include <map>
#include "llviewercommunication.h"
#include "llviewerprecompiledheaders.h"
#include "lluuid.h"
#include "lltimer.h"
Include dependency graph for lltrustnet.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Classes | |
class | LLTrustNetCallbackEntry |
Callback entry. More... | |
class | LLTrustNetRequest |
Represents a request to the TrustNet server Requests need to be queued up and slowed down if needed to avoid overwhelming the adapter script. Longer term this will be replaced with a direct connection to the TrustNet server, but the queueing system will remain. More... | |
class | LLTrustNetScoreRequest |
TrustNet score request. More... | |
class | LLTrustNetRateRequest |
TrustNet rating submission. More... | |
class | LLTrustNetExplainRequest |
TrustNet explain request This request is sent to ask the server to explain why somebody has the rating they do. More... | |
class | LLTrustNetDatum |
Represents a piece of data retrieved from the TrustNet server. More... | |
class | LLTrustNetScore |
TrustNet score. More... | |
class | LLTrustNetAvatarData |
Cached data about an avatar. More... | |
class | LLTrustNet |
Interface to the TrustNet database. More... | |
Typedefs | |
typedef enum e_trustnet_operation | ETrustNetOperation |
TrustNet operations. | |
typedef enum e_trustnet_result | ETrustNetResult |
Operation result. | |
typedef void(*) | trustnet_callback_t (ETrustNetOperation operation, ETrustNetResult result, const LLUUID &avatar, void *user_data) |
Callback for a TrustNet request Checking the operation, result and avatar arguments is only needed if you use the same callback function for multiple requests. The callback will only be called for the request it was specified for. The callback will only be called once for every time it's set. | |
typedef enum e_trustnet_state | ETrustNetState |
State of the connection to the TrustNet server. | |
typedef enum e_trustnet_datum_state | ETrustNetDatumState |
State of a TrustNet score. | |
Enumerations | |
enum | e_trustnet_operation { TN_UNKNOWN, TN_GET_SCORE, TN_EXPLAIN, TN_RATE } |
TrustNet operations. More... | |
enum | e_trustnet_result { TN_OK, TN_TIMEOUT, TN_INTERNAL_ERROR, TN_ERROR } |
Operation result. More... | |
enum | e_trustnet_state { TRUSTNET_NO_ADAPTER, TRUSTNET_NO_CONNECTION, TRUSTNET_CONNECTING, TRUSTNET_LOGGING_IN, TRUSTNET_LOGIN_ERROR, TRUSTNET_CONNECTED } |
State of the connection to the TrustNet server. More... | |
enum | e_trustnet_datum_state { TNS_UNKNOWN, TNS_FETCHING, TNS_RETRIEVED } |
State of a TrustNet score. More... | |
Variables | |
LLTrustNet * | gTrustNet |
typedef enum e_trustnet_datum_state ETrustNetDatumState |
State of a TrustNet score.
typedef enum e_trustnet_operation ETrustNetOperation |
TrustNet operations.
typedef enum e_trustnet_result ETrustNetResult |
Operation result.
typedef enum e_trustnet_state ETrustNetState |
State of the connection to the TrustNet server.
typedef void(*) trustnet_callback_t(ETrustNetOperation operation, ETrustNetResult result, const LLUUID &avatar, void *user_data) |
Callback for a TrustNet request Checking the operation, result and avatar arguments is only needed if you use the same callback function for multiple requests. The callback will only be called for the request it was specified for. The callback will only be called once for every time it's set.
operation | Operation that was completed | |
result | Result of the operation | |
avatar | Avatar the request was for, if applies. LLUUID::null otherwise | |
user_data | Pointer to whatever data was passed when the callback was registered |
Definition at line 71 of file lltrustnet.h.
enum e_trustnet_operation |
enum e_trustnet_result |
enum e_trustnet_state |
State of the connection to the TrustNet server.
TRUSTNET_NO_ADAPTER | |
TRUSTNET_NO_CONNECTION | |
TRUSTNET_CONNECTING | |
TRUSTNET_LOGGING_IN | |
TRUSTNET_LOGIN_ERROR | |
TRUSTNET_CONNECTED |
Definition at line 92 of file lltrustnet.h.
Definition at line 35 of file lltrustnet.cpp.
Referenced by idle(), idle_startup(), LLVOAvatar::idleUpdate(), and LLTrustNet::viewerCommCallback().