LLXfer_File Class Reference

#include <llxfer_file.h>

Inheritance diagram for LLXfer_File:

Inheritance graph
[legend]
Collaboration diagram for LLXfer_File:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLXfer_File (S32 chunk_size)
 LLXfer_File (const LLString &local_filename, BOOL delete_local_on_completion, S32 chunk_size)
virtual ~LLXfer_File ()
virtual void init (const LLString &local_filename, BOOL delete_local_on_completion, S32 chunk_size)
virtual void free ()
virtual S32 initializeRequest (U64 xfer_id, const LLString &local_filename, const LLString &remote_filename, ELLPath remote_path, const LLHost &remote_host, BOOL delete_remote_on_completion, void(*callback)(void **, S32, LLExtStat), void **user_data)
virtual S32 startDownload ()
virtual S32 processEOF ()
virtual S32 startSend (U64 xfer_id, const LLHost &remote_host)
virtual S32 suck (S32 start_position)
virtual S32 flush ()
virtual BOOL matchesLocalFilename (const LLString &filename)
virtual BOOL matchesRemoteFilename (const LLString &filename, ELLPath remote_path)
virtual S32 getMaxBufferSize ()
virtual U32 getXferTypeTag ()
virtual const char * getName ()

Protected Attributes

LLFILEmFp
char mLocalFilename [LL_MAX_PATH]
char mRemoteFilename [LL_MAX_PATH]
ELLPath mRemotePath
char mTempFilename [LL_MAX_PATH]
BOOL mDeleteLocalOnCompletion
BOOL mDeleteRemoteOnCompletion


Detailed Description

Definition at line 38 of file llxfer_file.h.


Constructor & Destructor Documentation

LLXfer_File::LLXfer_File ( S32  chunk_size  ) 

Definition at line 54 of file llxfer_file.cpp.

References FALSE, init(), and LLStringBase< char >::null.

Here is the call graph for this function:

LLXfer_File::LLXfer_File ( const LLString local_filename,
BOOL  delete_local_on_completion,
S32  chunk_size 
)

Definition at line 60 of file llxfer_file.cpp.

References init().

Here is the call graph for this function:

LLXfer_File::~LLXfer_File (  )  [virtual]

Definition at line 68 of file llxfer_file.cpp.

References free().

Here is the call graph for this function:


Member Function Documentation

void LLXfer_File::init ( const LLString local_filename,
BOOL  delete_local_on_completion,
S32  chunk_size 
) [virtual]

Definition at line 75 of file llxfer_file.cpp.

References FALSE, LL_MAX_PATH, LL_PATH_NONE, mDeleteLocalOnCompletion, mDeleteRemoteOnCompletion, mFp, mLocalFilename, mRemoteFilename, mRemotePath, mTempFilename, and NULL.

Referenced by LLXfer_File().

Here is the caller graph for this function:

void LLXfer_File::free ( void   )  [virtual]

Reimplemented from LLXfer.

Definition at line 98 of file llxfer_file.cpp.

References LLXfer::free(), lldebugs, llendl, mDeleteLocalOnCompletion, mFp, mLocalFilename, mTempFilename, NULL, and LLFile::remove().

Referenced by ~LLXfer_File().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLXfer_File::initializeRequest ( U64  xfer_id,
const LLString local_filename,
const LLString remote_filename,
ELLPath  remote_path,
const LLHost remote_host,
BOOL  delete_remote_on_completion,
void(*)(void **, S32, LLExtStat callback,
void **  user_data 
) [virtual]

S32 LLXfer_File::startDownload (  )  [virtual]

S32 LLXfer_File::processEOF (  )  [virtual]

Reimplemented from LLXfer.

Definition at line 317 of file llxfer_file.cpp.

References copy_file(), e_LL_XFER_COMPLETE, flush(), llendl, llinfos, llwarns, LLXfer::mCallbackResult, mFp, mLocalFilename, LLXfer::mStatus, mTempFilename, NULL, LLXfer::processEOF(), LLFile::remove(), LLFile::rename(), and S32.

Here is the call graph for this function:

S32 LLXfer_File::startSend ( U64  xfer_id,
const LLHost remote_host 
) [virtual]

S32 LLXfer_File::suck ( S32  start_position  )  [virtual]

S32 LLXfer_File::flush (  )  [virtual]

Reimplemented from LLXfer.

Definition at line 282 of file llxfer_file.cpp.

References LLFile::fopen(), LL_ERR_CANNOT_OPEN_FILE, llendl, llerrs, llwarns, LLXfer::mBuffer, LLXfer::mBufferLength, mFp, mTempFilename, NULL, and S32.

Referenced by processEOF().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLXfer_File::matchesLocalFilename ( const LLString filename  )  [virtual]

Definition at line 387 of file llxfer_file.cpp.

References mLocalFilename.

BOOL LLXfer_File::matchesRemoteFilename ( const LLString filename,
ELLPath  remote_path 
) [virtual]

Definition at line 394 of file llxfer_file.cpp.

References mRemoteFilename, and mRemotePath.

S32 LLXfer_File::getMaxBufferSize (  )  [virtual]

Reimplemented from LLXfer.

Definition at line 244 of file llxfer_file.cpp.

References LL_MAX_XFER_FILE_BUFFER.

U32 LLXfer_File::getXferTypeTag (  )  [virtual]

Reimplemented from LLXfer.

Definition at line 411 of file llxfer_file.cpp.

References LLXfer::XFER_FILE.

const char * LLXfer_File::getName ( void   )  [virtual]

Reimplemented from LLXfer.

Definition at line 402 of file llxfer_file.cpp.

References mLocalFilename.


Member Data Documentation

LLFILE* LLXfer_File::mFp [protected]

Definition at line 41 of file llxfer_file.h.

Referenced by flush(), free(), init(), processEOF(), startDownload(), startSend(), and suck().

Definition at line 43 of file llxfer_file.h.

Referenced by init(), initializeRequest(), matchesRemoteFilename(), and startDownload().

Definition at line 44 of file llxfer_file.h.

Referenced by init(), initializeRequest(), matchesRemoteFilename(), and startDownload().

Definition at line 45 of file llxfer_file.h.

Referenced by flush(), free(), init(), initializeRequest(), processEOF(), and startDownload().

Definition at line 47 of file llxfer_file.h.

Referenced by free(), and init().

Definition at line 48 of file llxfer_file.h.

Referenced by init(), initializeRequest(), and startDownload().


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

Generated on Fri May 16 09:40:46 2008 for SecondLife by  doxygen 1.5.5