LLTransferTarget Class Reference

#include <lltransfermanager.h>

Inheritance diagram for LLTransferTarget:

Inheritance graph
[legend]
Collaboration diagram for LLTransferTarget:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLTransferTarget (LLTransferTargetType target_type, const LLUUID &transfer_id, LLTransferSourceType source_type)
virtual ~LLTransferTarget ()
LLUUID getID () const
LLTransferTargetType getType () const
LLTransferTargetChannelgetChannel () const
LLTransferSourceType getSourceType () const

Static Public Member Functions

static LLTransferTargetcreateTarget (LLTransferTargetType target_type, const LLUUID &request_id, LLTransferSourceType source_type)

Protected Types

typedef std::map< S32,
LLTransferPacket * > 
transfer_packet_map
typedef std::map< S32,
LLTransferPacket * >::iterator 
tpm_iter

Protected Member Functions

virtual bool unpackParams (LLDataPacker &dp)=0
virtual void applyParams (const LLTransferTargetParams &params)=0
virtual LLTSCode dataCallback (const S32 packet_id, U8 *in_datap, const S32 in_size)=0
virtual void completionCallback (const LLTSCode status)=0
void abortTransfer ()
virtual S32 getNextPacketID ()
virtual void setLastPacketID (const S32 packet_id)
void setSize (const S32 size)
void setGotInfo (const BOOL got_info)
BOOL gotInfo () const
bool addDelayedPacket (const S32 packet_id, const LLTSCode status, U8 *datap, const S32 size)

Protected Attributes

LLTransferTargetType mType
LLTransferSourceType mSourceType
LLUUID mID
LLTransferTargetChannelmChannelp
BOOL mGotInfo
S32 mSize
S32 mLastPacketID
transfer_packet_map mDelayedPacketMap

Friends

class LLTransferManager
class LLTransferTargetChannel


Detailed Description

Definition at line 376 of file lltransfermanager.h.


Member Typedef Documentation

Definition at line 426 of file lltransfermanager.h.

typedef std::map<S32, LLTransferPacket *>::iterator LLTransferTarget::tpm_iter [protected]

Definition at line 427 of file lltransfermanager.h.


Constructor & Destructor Documentation

LLTransferTarget::LLTransferTarget ( LLTransferTargetType  target_type,
const LLUUID transfer_id,
LLTransferSourceType  source_type 
)

Definition at line 1190 of file lltransfermanager.cpp.

LLTransferTarget::~LLTransferTarget (  )  [virtual]

Definition at line 1203 of file lltransfermanager.cpp.

References mDelayedPacketMap.


Member Function Documentation

LLUUID LLTransferTarget::getID (  )  const [inline]

Definition at line 386 of file lltransfermanager.h.

References mID.

Referenced by abortTransfer(), LLTransferTargetChannel::findTransferTarget(), and LLTransferTargetChannel::sendTransferRequest().

Here is the caller graph for this function:

LLTransferTargetType LLTransferTarget::getType (  )  const [inline]

Definition at line 387 of file lltransfermanager.h.

References mType.

LLTransferTargetChannel* LLTransferTarget::getChannel (  )  const [inline]

Definition at line 388 of file lltransfermanager.h.

References mChannelp.

Referenced by LLTransferTargetChannel::sendTransferRequest().

Here is the caller graph for this function:

LLTransferSourceType LLTransferTarget::getSourceType (  )  const [inline]

Definition at line 389 of file lltransfermanager.h.

References mSourceType.

LLTransferTarget * LLTransferTarget::createTarget ( LLTransferTargetType  target_type,
const LLUUID request_id,
LLTransferSourceType  source_type 
) [static]

Definition at line 1263 of file lltransfermanager.cpp.

References llendl, LLTTT_FILE, LLTTT_VFILE, llwarns, and NULL.

Referenced by LLTransferTargetChannel::requestTransfer().

Here is the caller graph for this function:

virtual bool LLTransferTarget::unpackParams ( LLDataPacker dp  )  [protected, pure virtual]

Implemented in LLTransferTargetFile, and LLTransferTargetVFile.

Referenced by LLTransferManager::processTransferInfo().

Here is the caller graph for this function:

virtual void LLTransferTarget::applyParams ( const LLTransferTargetParams params  )  [protected, pure virtual]

Implemented in LLTransferTargetFile, and LLTransferTargetVFile.

Referenced by LLTransferTargetChannel::requestTransfer().

Here is the caller graph for this function:

virtual LLTSCode LLTransferTarget::dataCallback ( const S32  packet_id,
U8 in_datap,
const S32  in_size 
) [protected, pure virtual]

Implemented in LLTransferTargetFile, and LLTransferTargetVFile.

Referenced by LLTransferManager::processTransferInfo(), and LLTransferManager::processTransferPacket().

Here is the caller graph for this function:

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

Implemented in LLTransferTargetFile, and LLTransferTargetVFile.

Referenced by abortTransfer(), LLTransferManager::processTransferInfo(), and LLTransferManager::processTransferPacket().

Here is the caller graph for this function:

void LLTransferTarget::abortTransfer (  )  [protected]

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

Definition at line 413 of file lltransfermanager.h.

References mLastPacketID.

Referenced by LLTransferManager::processTransferInfo(), and LLTransferManager::processTransferPacket().

Here is the caller graph for this function:

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

Definition at line 414 of file lltransfermanager.h.

References mLastPacketID.

Referenced by LLTransferManager::processTransferInfo(), and LLTransferManager::processTransferPacket().

Here is the caller graph for this function:

void LLTransferTarget::setSize ( const S32  size  )  [inline, protected]

Definition at line 415 of file lltransfermanager.h.

References mSize.

Referenced by LLTransferManager::processTransferInfo().

Here is the caller graph for this function:

void LLTransferTarget::setGotInfo ( const BOOL  got_info  )  [inline, protected]

Definition at line 416 of file lltransfermanager.h.

References mGotInfo.

Referenced by LLTransferManager::processTransferInfo().

Here is the caller graph for this function:

BOOL LLTransferTarget::gotInfo (  )  const [inline, protected]

Definition at line 417 of file lltransfermanager.h.

References mGotInfo.

Referenced by LLTransferManager::processTransferPacket().

Here is the caller graph for this function:

bool LLTransferTarget::addDelayedPacket ( const S32  packet_id,
const LLTSCode  status,
U8 datap,
const S32  size 
) [protected]

Definition at line 1232 of file lltransfermanager.cpp.

References llendl, llerrs, and mDelayedPacketMap.

Referenced by LLTransferManager::processTransferPacket().

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class LLTransferManager [friend]

Definition at line 398 of file lltransfermanager.h.

friend class LLTransferTargetChannel [friend]

Definition at line 399 of file lltransfermanager.h.


Member Data Documentation

Definition at line 430 of file lltransfermanager.h.

Referenced by getSourceType(), and LLTransferTargetVFile::unpackParams().

Definition at line 431 of file lltransfermanager.h.

Referenced by getID().

Definition at line 433 of file lltransfermanager.h.

Referenced by gotInfo(), and setGotInfo().

Definition at line 434 of file lltransfermanager.h.

Referenced by LLTransferTargetVFile::dataCallback(), and setSize().

Definition at line 435 of file lltransfermanager.h.

Referenced by getNextPacketID(), and setLastPacketID().


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

Generated on Fri May 16 09:19:00 2008 for SecondLife by  doxygen 1.5.5