#include <llfloateravatarlist.h>
Inheritance diagram for LLAvatarListDatum< T >:
Public Member Functions | |
LLAvatarListDatum () | |
BOOL | retryNeeded () |
Determines whether a data re-request is needed. | |
void | requestStarted () |
Notifies the object that a request was started. | |
BOOL | requestIfNeeded () |
retryNeeded and requestStarted combined | |
DATA_STATUS | getStatus () |
Returns the request status. | |
T & | getValue () |
void | setValue (T val) |
void | setRequestDelay (F32 delay) |
void | setMaxPending (U32 count) |
Private Attributes | |
T | mValue |
DATA_STATUS | mStatus |
F32 | mRetryDelay |
How long to wait before trying to re-request the data. | |
F32 | mFirstRequestTimeout |
How long to wait on the first attempt to get data. | |
F32 | mMaxRequestTimeout |
Maximum delay between retries. | |
LLTimer | mRequestTimer |
Timer for the current request. | |
F32 | mRequestDelay |
Time between requests of the same type. | |
U32 | mMaxPending |
Maximum amount of pending requests. | |
Static Private Attributes | |
static LLTimer | mRequestDelayTimer |
Timer used to separate requests, to avoid flooding the server. | |
static U32 | mPending = 0 |
Amount of pending requests. | |
Friends | |
class | LLFloaterAvatarList |
This class handles the storage, retries and delays required to obtain a piece of data..
Definition at line 95 of file llfloateravatarlist.h.
LLAvatarListDatum< T >::LLAvatarListDatum | ( | ) | [inline] |
Definition at line 98 of file llfloateravatarlist.h.
DATA_STATUS LLAvatarListDatum< T >::getStatus | ( | ) | [inline] |
Returns the request status.
Definition at line 200 of file llfloateravatarlist.h.
Referenced by LLFloaterAvatarList::getAvatarColor(), and LLFloaterAvatarList::refreshAvatarList().
T& LLAvatarListDatum< T >::getValue | ( | ) | [inline] |
Definition at line 214 of file llfloateravatarlist.h.
Referenced by LLFloaterAvatarList::getAvatarColor(), LLAvatarListEntry::getIsLinden(), LLFloaterAvatarList::refreshAvatarList(), and LLAvatarListEntry::setAccountCustomTitle().
BOOL LLAvatarListDatum< T >::requestIfNeeded | ( | ) | [inline] |
retryNeeded and requestStarted combined
Definition at line 186 of file llfloateravatarlist.h.
Referenced by LLFloaterAvatarList::refreshAvatarList().
void LLAvatarListDatum< T >::requestStarted | ( | ) | [inline] |
Notifies the object that a request was started.
Definition at line 155 of file llfloateravatarlist.h.
Referenced by LLAvatarListDatum< LLAvatarInfo >::requestIfNeeded().
BOOL LLAvatarListDatum< T >::retryNeeded | ( | ) | [inline] |
Determines whether a data re-request is needed.
A FALSE return value doesn't mean that everything is OK, only that a retry shouldn't be made at this time.
Definition at line 124 of file llfloateravatarlist.h.
Referenced by LLAvatarListDatum< LLAvatarInfo >::requestIfNeeded().
void LLAvatarListDatum< T >::setMaxPending | ( | U32 | count | ) | [inline] |
Definition at line 235 of file llfloateravatarlist.h.
Referenced by LLAvatarListEntry::LLAvatarListEntry().
void LLAvatarListDatum< T >::setRequestDelay | ( | F32 | delay | ) | [inline] |
Definition at line 230 of file llfloateravatarlist.h.
Referenced by LLAvatarListEntry::LLAvatarListEntry().
void LLAvatarListDatum< T >::setValue | ( | T | val | ) | [inline] |
Definition at line 219 of file llfloateravatarlist.h.
Referenced by LLFloaterAvatarList::processAvatarPropertiesReply(), and LLFloaterAvatarList::processTrustNetReply().
friend class LLFloaterAvatarList [friend] |
Definition at line 240 of file llfloateravatarlist.h.
F32 LLAvatarListDatum< T >::mFirstRequestTimeout [private] |
How long to wait on the first attempt to get data.
Definition at line 254 of file llfloateravatarlist.h.
Referenced by LLAvatarListDatum< LLAvatarInfo >::LLAvatarListDatum(), and LLAvatarListDatum< LLAvatarInfo >::requestStarted().
U32 LLAvatarListDatum< T >::mMaxPending [private] |
Maximum amount of pending requests.
Definition at line 289 of file llfloateravatarlist.h.
Referenced by LLAvatarListDatum< LLAvatarInfo >::LLAvatarListDatum(), LLAvatarListDatum< LLAvatarInfo >::retryNeeded(), and LLAvatarListDatum< LLAvatarInfo >::setMaxPending().
F32 LLAvatarListDatum< T >::mMaxRequestTimeout [private] |
Maximum delay between retries.
On failure, timeout gets doubled until it reaches this value
Definition at line 261 of file llfloateravatarlist.h.
Referenced by LLAvatarListDatum< LLAvatarInfo >::LLAvatarListDatum(), and LLAvatarListDatum< LLAvatarInfo >::requestStarted().
U32 LLAvatarListDatum< T >::mPending = 0 [static, private] |
Amount of pending requests.
Definition at line 278 of file llfloateravatarlist.h.
Referenced by LLAvatarListDatum< LLAvatarInfo >::getStatus(), LLAvatarListDatum< LLAvatarInfo >::requestStarted(), LLAvatarListDatum< LLAvatarInfo >::retryNeeded(), and LLAvatarListDatum< LLAvatarInfo >::setValue().
F32 LLAvatarListDatum< T >::mRequestDelay [private] |
Time between requests of the same type.
Definition at line 284 of file llfloateravatarlist.h.
Referenced by LLAvatarListDatum< LLAvatarInfo >::LLAvatarListDatum(), LLAvatarListDatum< LLAvatarInfo >::retryNeeded(), and LLAvatarListDatum< LLAvatarInfo >::setRequestDelay().
LLTimer LLAvatarListDatum< T >::mRequestDelayTimer [static, private] |
Timer used to separate requests, to avoid flooding the server.
Definition at line 273 of file llfloateravatarlist.h.
Referenced by LLAvatarListDatum< LLAvatarInfo >::LLAvatarListDatum(), LLAvatarListDatum< LLAvatarInfo >::requestStarted(), and LLAvatarListDatum< LLAvatarInfo >::retryNeeded().
LLTimer LLAvatarListDatum< T >::mRequestTimer [private] |
Timer for the current request.
Definition at line 266 of file llfloateravatarlist.h.
Referenced by LLAvatarListDatum< LLAvatarInfo >::getStatus(), LLAvatarListDatum< LLAvatarInfo >::LLAvatarListDatum(), LLAvatarListDatum< LLAvatarInfo >::requestStarted(), and LLAvatarListDatum< LLAvatarInfo >::retryNeeded().
F32 LLAvatarListDatum< T >::mRetryDelay [private] |
How long to wait before trying to re-request the data.
Definition at line 249 of file llfloateravatarlist.h.
Referenced by LLAvatarListDatum< LLAvatarInfo >::getStatus(), LLAvatarListDatum< LLAvatarInfo >::LLAvatarListDatum(), LLAvatarListDatum< LLAvatarInfo >::requestStarted(), and LLAvatarListDatum< LLAvatarInfo >::retryNeeded().
DATA_STATUS LLAvatarListDatum< T >::mStatus [private] |
Definition at line 243 of file llfloateravatarlist.h.
Referenced by LLAvatarListDatum< LLAvatarInfo >::getStatus(), LLAvatarListDatum< LLAvatarInfo >::LLAvatarListDatum(), LLAvatarListDatum< LLAvatarInfo >::requestStarted(), LLAvatarListDatum< LLAvatarInfo >::retryNeeded(), and LLAvatarListDatum< LLAvatarInfo >::setValue().
T LLAvatarListDatum< T >::mValue [private] |
Definition at line 241 of file llfloateravatarlist.h.
Referenced by LLAvatarListDatum< LLAvatarInfo >::getValue(), and LLAvatarListDatum< LLAvatarInfo >::setValue().