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 26 of file filrec.hxx.

Constructor & Destructor Documentation

◆ ReconnectingFile() [1/2]

fileaccess::ReconnectingFile::ReconnectingFile ( ReconnectingFile const &  )
privatedelete

◆ ReconnectingFile() [2/2]

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

Definition at line 40 of file filrec.hxx.

◆ ~ReconnectingFile()

fileaccess::ReconnectingFile::~ReconnectingFile ( )
inline

Definition at line 47 of file filrec.hxx.

References close().

Member Function Documentation

◆ close()

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

◆ disconnect()

void fileaccess::ReconnectingFile::disconnect ( )

Definition at line 25 of file filrec.cxx.

References m_aFile, and m_bDisconnect.

Referenced by getSize(), and reconnect().

◆ getPos()

osl::FileBase::RC fileaccess::ReconnectingFile::getPos ( sal_uInt64 &  uPos)

◆ getSize()

osl::FileBase::RC fileaccess::ReconnectingFile::getSize ( sal_uInt64 &  rSize)

◆ open()

osl::FileBase::RC fileaccess::ReconnectingFile::open ( sal_uInt32  uFlags)

◆ operator=()

ReconnectingFile & fileaccess::ReconnectingFile::operator= ( ReconnectingFile const &  )
privatedelete

◆ read()

osl::FileBase::RC fileaccess::ReconnectingFile::read ( void *  pBuffer,
sal_uInt64  uBytesRequested,
sal_uInt64 &  rBytesRead 
)

◆ reconnect()

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

◆ setPos()

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

◆ setSize()

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

◆ sync()

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

◆ write()

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

◆ m_aFile

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

Definition at line 28 of file filrec.hxx.

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

◆ m_bDisconnect

bool fileaccess::ReconnectingFile::m_bDisconnect
private

Definition at line 33 of file filrec.hxx.

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

◆ m_bFlagsSet

bool fileaccess::ReconnectingFile::m_bFlagsSet
private

Definition at line 31 of file filrec.hxx.

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

◆ m_nFlags

sal_uInt32 fileaccess::ReconnectingFile::m_nFlags
private

Definition at line 30 of file filrec.hxx.

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


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