LibreOffice Module ucb (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
fileaccess::ReconnectingFile Class Reference

#include <filrec.hxx>

Public Member Functions

 ReconnectingFile (const OUString &aFileURL)
 
 ~ReconnectingFile ()
 
void disconnect ()
 
bool reconnect ()
 
::osl::FileBase::RC open (sal_uInt32 uFlags)
 
::osl::FileBase::RC close ()
 
::osl::FileBase::RC setPos (sal_uInt32 uHow, sal_Int64 uPos)
 
::osl::FileBase::RC getPos (sal_uInt64 &uPos)
 
::osl::FileBase::RC setSize (sal_uInt64 uSize)
 
::osl::FileBase::RC getSize (sal_uInt64 &rSize)
 
::osl::FileBase::RC read (void *pBuffer, sal_uInt64 uBytesRequested, sal_uInt64 &rBytesRead)
 
::osl::FileBase::RC write (const void *pBuffer, sal_uInt64 uBytesToWrite, sal_uInt64 &rBytesWritten)
 
::osl::FileBase::RC sync () const
 

Private Member Functions

 ReconnectingFile (ReconnectingFile const &)=delete
 
ReconnectingFileoperator= (ReconnectingFile const &)=delete
 

Private Attributes

::osl::File m_aFile
 
sal_uInt32 m_nFlags
 
bool m_bFlagsSet
 
bool m_bDisconnect
 

Detailed Description

Definition at line 27 of file filrec.hxx.

Constructor & Destructor Documentation

fileaccess::ReconnectingFile::ReconnectingFile ( ReconnectingFile const &  )
privatedelete
fileaccess::ReconnectingFile::ReconnectingFile ( const OUString &  aFileURL)
inlineexplicit

Definition at line 41 of file filrec.hxx.

fileaccess::ReconnectingFile::~ReconnectingFile ( )
inline

Definition at line 48 of file filrec.hxx.

References close().

Member Function Documentation

osl::FileBase::RC fileaccess::ReconnectingFile::close ( )
void fileaccess::ReconnectingFile::disconnect ( )

Definition at line 25 of file filrec.cxx.

References m_aFile, and m_bDisconnect.

Referenced by getSize(), and reconnect().

osl::FileBase::RC fileaccess::ReconnectingFile::getPos ( sal_uInt64 &  uPos)
osl::FileBase::RC fileaccess::ReconnectingFile::getSize ( sal_uInt64 &  rSize)
osl::FileBase::RC fileaccess::ReconnectingFile::open ( sal_uInt32  uFlags)
ReconnectingFile& fileaccess::ReconnectingFile::operator= ( ReconnectingFile const &  )
privatedelete
osl::FileBase::RC fileaccess::ReconnectingFile::read ( void pBuffer,
sal_uInt64  uBytesRequested,
sal_uInt64 &  rBytesRead 
)

Definition at line 166 of file filrec.cxx.

References m_aFile, and m_bDisconnect.

Referenced by fileaccess::XStream_impl::readBytes().

bool fileaccess::ReconnectingFile::reconnect ( )

Definition at line 31 of file filrec.cxx.

References disconnect(), m_aFile, m_bDisconnect, m_bFlagsSet, and m_nFlags.

Referenced by getSize(), setPos(), and setSize().

osl::FileBase::RC fileaccess::ReconnectingFile::setPos ( sal_uInt32  uHow,
sal_Int64  uPos 
)
osl::FileBase::RC fileaccess::ReconnectingFile::setSize ( sal_uInt64  uSize)

Definition at line 112 of file filrec.cxx.

References m_aFile, m_bDisconnect, and reconnect().

Referenced by fileaccess::XStream_impl::truncate().

osl::FileBase::RC fileaccess::ReconnectingFile::sync ( ) const

Definition at line 182 of file filrec.cxx.

References m_aFile, and m_bDisconnect.

Referenced by fileaccess::XStream_impl::waitForCompletion().

osl::FileBase::RC fileaccess::ReconnectingFile::write ( const void pBuffer,
sal_uInt64  uBytesToWrite,
sal_uInt64 &  rBytesWritten 
)

Definition at line 174 of file filrec.cxx.

References m_aFile, and m_bDisconnect.

Referenced by fileaccess::XStream_impl::writeBytes().

Member Data Documentation

::osl::File fileaccess::ReconnectingFile::m_aFile
private

Definition at line 29 of file filrec.hxx.

Referenced by close(), disconnect(), getPos(), getSize(), open(), read(), reconnect(), setPos(), setSize(), sync(), and write().

bool fileaccess::ReconnectingFile::m_bDisconnect
private

Definition at line 34 of file filrec.hxx.

Referenced by close(), disconnect(), getPos(), getSize(), read(), reconnect(), setPos(), setSize(), sync(), and write().

bool fileaccess::ReconnectingFile::m_bFlagsSet
private

Definition at line 32 of file filrec.hxx.

Referenced by close(), open(), and reconnect().

sal_uInt32 fileaccess::ReconnectingFile::m_nFlags
private

Definition at line 31 of file filrec.hxx.

Referenced by close(), open(), and reconnect().


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