LLTransferSource Class Reference

#include <lltransfermanager.h>

Inheritance diagram for LLTransferSource:

Inheritance graph
[legend]
Collaboration diagram for LLTransferSource:

Collaboration graph
[legend]

List of all members.

Public Member Functions

LLUUID getID ()

Protected Types

typedef std::map
< LLTransferSourceType,
LLTransferSourceCreateFunc
stype_scfunc_map

Protected Member Functions

 LLTransferSource (const LLTransferSourceType source_type, const LLUUID &request_id, const F32 priority)
virtual ~LLTransferSource ()
void sendTransferStatus (LLTSCode status)
virtual void initTransfer ()=0
virtual F32 updatePriority ()=0
virtual LLTSCode dataCallback (const S32 packet_id, const S32 max_bytes, U8 **datap, S32 &returned_bytes, BOOL &delete_returned)=0
virtual void completionCallback (const LLTSCode status)=0
virtual void packParams (LLDataPacker &dp) const =0
virtual BOOL unpackParams (LLDataPacker &dp)=0
virtual S32 getNextPacketID ()
virtual void setLastPacketID (const S32 packet_id)
F32 getPriority ()
void setPriority (const F32 pri)
virtual void abortTransfer ()

Static Protected Member Functions

static LLTransferSourcecreateSource (const LLTransferSourceType stype, const LLUUID &request_id, const F32 priority)
static void registerSourceType (const LLTransferSourceType stype, LLTransferSourceCreateFunc)
static void sSetPriority (LLTransferSource *&tsp, const F32 priority)
static F32 sGetPriority (LLTransferSource *&tsp)

Protected Attributes

LLTransferSourceType mType
LLUUID mID
LLTransferSourceChannelmChannelp
F32 mPriority
S32 mSize
S32 mLastPacketID

Static Protected Attributes

static stype_scfunc_map sSourceCreateMap

Friends

class LLTransferManager
class LLTransferSourceChannel


Detailed Description

Definition at line 285 of file lltransfermanager.h.


Member Typedef Documentation

Definition at line 334 of file lltransfermanager.h.


Constructor & Destructor Documentation

LLTransferSource::LLTransferSource ( const LLTransferSourceType  source_type,
const LLUUID request_id,
const F32  priority 
) [protected]

Definition at line 1037 of file lltransfermanager.cpp.

References setPriority().

Here is the call graph for this function:

LLTransferSource::~LLTransferSource (  )  [protected, virtual]

Definition at line 1051 of file lltransfermanager.cpp.


Member Function Documentation

LLUUID LLTransferSource::getID (  )  [inline]

void LLTransferSource::sendTransferStatus ( LLTSCode  status  )  [protected]

virtual void LLTransferSource::initTransfer (  )  [protected, pure virtual]

Implemented in LLTransferSourceAsset, and LLTransferSourceFile.

Referenced by LLTransferManager::processTransferRequest().

Here is the caller graph for this function:

virtual F32 LLTransferSource::updatePriority (  )  [protected, pure virtual]

virtual LLTSCode LLTransferSource::dataCallback ( const S32  packet_id,
const S32  max_bytes,
U8 **  datap,
S32 returned_bytes,
BOOL delete_returned 
) [protected, pure virtual]

Implemented in LLTransferSourceAsset, and LLTransferSourceFile.

Referenced by LLTransferSourceChannel::updateTransfers().

Here is the caller graph for this function:

virtual void LLTransferSource::completionCallback ( const LLTSCode  status  )  [protected, pure virtual]

Implemented in LLTransferSourceAsset, and LLTransferSourceFile.

Referenced by abortTransfer(), sendTransferStatus(), and LLTransferSourceChannel::updateTransfers().

Here is the caller graph for this function:

virtual void LLTransferSource::packParams ( LLDataPacker dp  )  const [protected, pure virtual]

Implemented in LLTransferSourceAsset, and LLTransferSourceFile.

Referenced by sendTransferStatus().

Here is the caller graph for this function:

virtual BOOL LLTransferSource::unpackParams ( LLDataPacker dp  )  [protected, pure virtual]

Implemented in LLTransferSourceAsset, and LLTransferSourceFile.

Referenced by LLTransferManager::processTransferRequest().

Here is the caller graph for this function:

virtual S32 LLTransferSource::getNextPacketID (  )  [inline, protected, virtual]

Definition at line 316 of file lltransfermanager.h.

References mLastPacketID.

Referenced by LLTransferSourceChannel::updateTransfers().

Here is the caller graph for this function:

virtual void LLTransferSource::setLastPacketID ( const S32  packet_id  )  [inline, protected, virtual]

Definition at line 317 of file lltransfermanager.h.

References mLastPacketID.

Referenced by LLTransferSourceChannel::updateTransfers().

Here is the caller graph for this function:

F32 LLTransferSource::getPriority (  )  [inline, protected]

Definition at line 321 of file lltransfermanager.h.

References mPriority.

Referenced by LLTransferSourceChannel::addTransferSource(), and sGetPriority().

Here is the caller graph for this function:

void LLTransferSource::setPriority ( const F32  pri  )  [inline, protected]

Definition at line 322 of file lltransfermanager.h.

References mPriority.

Referenced by LLTransferSource(), and sSetPriority().

Here is the caller graph for this function:

void LLTransferSource::abortTransfer (  )  [protected, virtual]

LLTransferSource * LLTransferSource::createSource ( const LLTransferSourceType  stype,
const LLUUID request_id,
const F32  priority 
) [static, protected]

Definition at line 1117 of file lltransfermanager.cpp.

References llendl, LLTST_ASSET, llwarns, NULL, and sSourceCreateMap.

Referenced by LLTransferManager::processTransferRequest().

Here is the caller graph for this function:

void LLTransferSource::registerSourceType ( const LLTransferSourceType  stype,
LLTransferSourceCreateFunc  func 
) [static, protected]

Definition at line 1102 of file lltransfermanager.cpp.

References llendl, llerrs, and sSourceCreateMap.

void LLTransferSource::sSetPriority ( LLTransferSource *&  tsp,
const F32  priority 
) [static, protected]

Definition at line 1146 of file lltransfermanager.cpp.

References setPriority().

Here is the call graph for this function:

F32 LLTransferSource::sGetPriority ( LLTransferSource *&  tsp  )  [static, protected]

Definition at line 1153 of file lltransfermanager.cpp.

References getPriority().

Here is the call graph for this function:


Friends And Related Function Documentation

friend class LLTransferManager [friend]

Definition at line 291 of file lltransfermanager.h.

friend class LLTransferSourceChannel [friend]

Definition at line 292 of file lltransfermanager.h.


Member Data Documentation

Definition at line 335 of file lltransfermanager.h.

Referenced by createSource(), and registerSourceType().

Definition at line 337 of file lltransfermanager.h.

Definition at line 338 of file lltransfermanager.h.

Referenced by getID().

Definition at line 340 of file lltransfermanager.h.

Referenced by getPriority(), and setPriority().


The documentation for this class was generated from the following files:

Generated on Fri May 16 09:18:44 2008 for SecondLife by  doxygen 1.5.5