LLLFSThread::Request Class Reference

#include <lllfsthread.h>

Collaboration diagram for LLLFSThread::Request:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Request (LLLFSThread *thread, handle_t handle, U32 priority, operation_t op, const LLString &filename, U8 *buffer, S32 offset, S32 numbytes, Responder *responder)
S32 getBytes ()
S32 getBytesRead ()
S32 getOperation ()
U8getBuffer ()
const LLStringgetFilename ()
bool processRequest ()
void finishRequest (bool completed)
void deleteRequest ()

Protected Member Functions

virtual ~Request ()

Private Attributes

LLLFSThreadmThread
operation_t mOperation
LLString mFileName
U8mBuffer
S32 mOffset
S32 mBytes
S32 mBytesRead
LLPointer< RespondermResponder

Detailed Description

Definition at line 70 of file lllfsthread.h.


Constructor & Destructor Documentation

LLLFSThread::Request::~Request (  )  [protected, virtual]

Definition at line 153 of file lllfsthread.cpp.

LLLFSThread::Request::Request ( LLLFSThread thread,
handle_t  handle,
U32  priority,
operation_t  op,
const LLString filename,
U8 buffer,
S32  offset,
S32  numbytes,
Responder responder 
)

Definition at line 132 of file lllfsthread.cpp.

References llendl, and llwarns.


Member Function Documentation

void LLLFSThread::Request::deleteRequest (  ) 

Definition at line 167 of file lllfsthread.cpp.

References LLQueuedThread::QueuedRequest::deleteRequest(), llendl, llerrs, mResponder, NULL, and LLQueuedThread::STATUS_QUEUED.

void LLLFSThread::Request::finishRequest ( bool  completed  ) 

Definition at line 158 of file lllfsthread.cpp.

References mBytesRead, mResponder, and NULL.

U8* LLLFSThread::Request::getBuffer (  )  [inline]

Definition at line 94 of file lllfsthread.h.

References mBuffer.

S32 LLLFSThread::Request::getBytes (  )  [inline]

Definition at line 82 of file lllfsthread.h.

References mBytes.

S32 LLLFSThread::Request::getBytesRead (  )  [inline]

Definition at line 86 of file lllfsthread.h.

References mBytesRead.

const LLString& LLLFSThread::Request::getFilename (  )  [inline]

Definition at line 98 of file lllfsthread.h.

References mFileName.

S32 LLLFSThread::Request::getOperation (  )  [inline]

Definition at line 90 of file lllfsthread.h.

References mOperation.

bool LLLFSThread::Request::processRequest (  ) 

Definition at line 181 of file lllfsthread.cpp.

References LLLFSThread::FILE_READ, LLLFSThread::FILE_WRITE, ll_apr_file_open(), ll_apr_file_read(), ll_apr_file_seek(), ll_apr_file_write(), LL_APR_RB, llassert, llassert_always, llendl, llerrs, llwarns, LLThread::mAPRPoolp, mBuffer, mBytes, mBytesRead, mFileName, mOffset, mOperation, mThread, and S32.


Member Data Documentation

U8* LLLFSThread::Request::mBuffer [private]

Definition at line 113 of file lllfsthread.h.

Referenced by getBuffer(), and processRequest().

S32 LLLFSThread::Request::mBytes [private]

Definition at line 115 of file lllfsthread.h.

Referenced by getBytes(), and processRequest().

S32 LLLFSThread::Request::mBytesRead [private]

Definition at line 116 of file lllfsthread.h.

Referenced by finishRequest(), getBytesRead(), and processRequest().

LLString LLLFSThread::Request::mFileName [private]

Definition at line 111 of file lllfsthread.h.

Referenced by getFilename(), and processRequest().

S32 LLLFSThread::Request::mOffset [private]

Definition at line 114 of file lllfsthread.h.

Referenced by processRequest().

operation_t LLLFSThread::Request::mOperation [private]

Definition at line 109 of file lllfsthread.h.

Referenced by getOperation(), and processRequest().

LLPointer<Responder> LLLFSThread::Request::mResponder [private]

Definition at line 118 of file lllfsthread.h.

Referenced by deleteRequest(), and finishRequest().

LLLFSThread* LLLFSThread::Request::mThread [private]

Definition at line 108 of file lllfsthread.h.

Referenced by processRequest().


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