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

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

Definition at line 427 of file lltransfermanager.h.

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

Definition at line 426 of file lltransfermanager.h.


Constructor & Destructor Documentation

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

Definition at line 1175 of file lltransfermanager.cpp.

LLTransferTarget::~LLTransferTarget (  )  [virtual]

Definition at line 1188 of file lltransfermanager.cpp.

References mDelayedPacketMap.


Member Function Documentation

void LLTransferTarget::abortTransfer (  )  [protected]

Definition at line 1204 of file lltransfermanager.cpp.

References LLMessageSystem::addS32(), LLMessageSystem::addUUID(), completionCallback(), LLTransferTargetChannel::getChannelType(), LLTransferTargetChannel::getHost(), getID(), gMessageSystem, llendl, llinfos, LLTS_ABORT, mChannelp, LLMessageSystem::newMessage(), LLMessageSystem::nextBlock(), and LLMessageSystem::sendReliable().

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

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

Definition at line 1217 of file lltransfermanager.cpp.

References llendl, llerrs, and mDelayedPacketMap.

Referenced by LLTransferManager::processTransferPacket().

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

Implemented in LLTransferTargetFile, and LLTransferTargetVFile.

Referenced by LLTransferTargetChannel::requestTransfer().

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

Implemented in LLTransferTargetFile, and LLTransferTargetVFile.

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

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

Definition at line 1248 of file lltransfermanager.cpp.

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

Referenced by LLTransferTargetChannel::requestTransfer().

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().

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

Definition at line 388 of file lltransfermanager.h.

References mChannelp.

Referenced by LLTransferTargetChannel::sendTransferRequest().

LLUUID LLTransferTarget::getID (  )  const [inline]

Definition at line 386 of file lltransfermanager.h.

References mID.

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

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

Definition at line 413 of file lltransfermanager.h.

References mLastPacketID.

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

LLTransferSourceType LLTransferTarget::getSourceType (  )  const [inline]

Definition at line 389 of file lltransfermanager.h.

References mSourceType.

LLTransferTargetType LLTransferTarget::getType (  )  const [inline]

Definition at line 387 of file lltransfermanager.h.

References mType.

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

Definition at line 417 of file lltransfermanager.h.

References mGotInfo.

Referenced by LLTransferManager::processTransferPacket().

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

Definition at line 416 of file lltransfermanager.h.

References mGotInfo.

Referenced by LLTransferManager::processTransferInfo().

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().

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

Definition at line 415 of file lltransfermanager.h.

References mSize.

Referenced by LLTransferManager::processTransferInfo().

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

Implemented in LLTransferTargetFile, and LLTransferTargetVFile.

Referenced by LLTransferManager::processTransferInfo().


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

LLTransferTargetChannel* LLTransferTarget::mChannelp [protected]

Definition at line 432 of file lltransfermanager.h.

Referenced by abortTransfer(), LLTransferTargetChannel::addTransferTarget(), and getChannel().

transfer_packet_map LLTransferTarget::mDelayedPacketMap [protected]

Definition at line 437 of file lltransfermanager.h.

Referenced by addDelayedPacket(), LLTransferManager::processTransferInfo(), LLTransferManager::processTransferPacket(), and ~LLTransferTarget().

BOOL LLTransferTarget::mGotInfo [protected]

Definition at line 433 of file lltransfermanager.h.

Referenced by gotInfo(), and setGotInfo().

LLUUID LLTransferTarget::mID [protected]

Definition at line 431 of file lltransfermanager.h.

Referenced by getID().

S32 LLTransferTarget::mLastPacketID [protected]

Definition at line 435 of file lltransfermanager.h.

Referenced by getNextPacketID(), and setLastPacketID().

S32 LLTransferTarget::mSize [protected]

Definition at line 434 of file lltransfermanager.h.

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

LLTransferSourceType LLTransferTarget::mSourceType [protected]

Definition at line 430 of file lltransfermanager.h.

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

LLTransferTargetType LLTransferTarget::mType [protected]

Definition at line 429 of file lltransfermanager.h.

Referenced by LLTransferTargetVFile::applyParams(), LLTransferTargetFile::applyParams(), and getType().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:54 2010 for Second Life Viewer by  doxygen 1.4.7