TObexFilenameBackedBuffer Class Reference
class TObexFilenameBackedBuffer : public TObexBufferingDetails
|
Provides alternate behaviour for a
CObexBufObject
, allowing use of a file to hold the object in its entirety. Writes to this object are buffered through the supplied
CBufBase
derived object, which is never enlarged. Once it is full, the data is flushed to the file.
Inherits from
-
TObexFilenameBackedBuffer
Constructor & Destructor Documentation
TObexFilenameBackedBuffer(CBufBase &, const TPtrC &, CObexBufObject::TFileBuffering)
Build a variant of
TObexBufferingDetails
which instructs the
CObexBufObject
to use a file as the main data store, buffering writes to this in chunks. Writes are buffered into the supplied
CBufBase
derived object, which is not resized. Once it is full, the data contained is written to file. Double buffering can be specified by setting aBufferingStrategy appropriately. If the file cannot be opened for read/write access it will be opened in read only mode. In this situation, attempts to store data in this object will cause an Obex error to be signalled in response to the Obex packet which carried the body data.
Parameters
CBufBase
& aBuffer
|
The buffer to use as a temporary store. This is ignored when reading from the file.
|
const
TPtrC
& aFilename
|
The filename to use to permanently store the object.
|
CObexBufObject::TFileBuffering
aBufferingStrategy
|
Use double or single buffering.
|
Member Functions Documentation
Filename()
const
TPtrC
&
|
Filename
|
(
|
)
|
|
Member Data Documentation
CObexBufObject::TFileBuffering
iBufferingStrategy
const TPtrC & iFilename
const
TPtrC
&
|
iFilename
|
[private]
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.