LibreOffice Module ucb (master) 1
|
#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 | |
ReconnectingFile & | operator= (ReconnectingFile const &)=delete |
Private Attributes | |
::osl::File | m_aFile |
sal_uInt32 | m_nFlags |
bool | m_bFlagsSet |
bool | m_bDisconnect |
Definition at line 26 of file filrec.hxx.
|
privatedelete |
|
inlineexplicit |
Definition at line 40 of file filrec.hxx.
|
inline |
Definition at line 47 of file filrec.hxx.
References close().
osl::FileBase::RC fileaccess::ReconnectingFile::close | ( | ) |
Definition at line 64 of file filrec.cxx.
References m_aFile, m_bDisconnect, m_bFlagsSet, and m_nFlags.
Referenced by fileaccess::XInputStream_impl::closeInput(), fileaccess::XStream_impl::closeStream(), fileaccess::XStream_impl::readBytes(), fileaccess::XInputStream_impl::XInputStream_impl(), fileaccess::XStream_impl::XStream_impl(), and ~ReconnectingFile().
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 | ) |
Definition at line 104 of file filrec.cxx.
References m_aFile, and m_bDisconnect.
Referenced by fileaccess::XInputStream_impl::getPosition(), and fileaccess::XStream_impl::getPosition().
osl::FileBase::RC fileaccess::ReconnectingFile::getSize | ( | sal_uInt64 & | rSize | ) |
Definition at line 143 of file filrec.cxx.
References disconnect(), m_aFile, m_bDisconnect, and reconnect().
Referenced by fileaccess::XInputStream_impl::getLength(), and fileaccess::XStream_impl::getLength().
osl::FileBase::RC fileaccess::ReconnectingFile::open | ( | sal_uInt32 | uFlags | ) |
Definition at line 48 of file filrec.cxx.
References m_aFile, m_bFlagsSet, and m_nFlags.
Referenced by fileaccess::XInputStream_impl::XInputStream_impl(), and fileaccess::XStream_impl::XStream_impl().
|
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(), and fileaccess::XStream_impl::readSomeBytes().
bool fileaccess::ReconnectingFile::reconnect | ( | ) |
Definition at line 31 of file filrec.cxx.
References disconnect(), m_aFile, m_bDisconnect, m_bFlagsSet, and m_nFlags.
osl::FileBase::RC fileaccess::ReconnectingFile::setPos | ( | sal_uInt32 | uHow, |
sal_Int64 | uPos | ||
) |
Definition at line 73 of file filrec.cxx.
References m_aFile, m_bDisconnect, and reconnect().
Referenced by fileaccess::XInputStream_impl::seek(), fileaccess::XStream_impl::seek(), fileaccess::XInputStream_impl::skipBytes(), fileaccess::XStream_impl::skipBytes(), and fileaccess::XStream_impl::truncate().
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().
|
private |
Definition at line 28 of file filrec.hxx.
Referenced by close(), disconnect(), getPos(), getSize(), open(), read(), reconnect(), setPos(), setSize(), sync(), and write().
|
private |
Definition at line 33 of file filrec.hxx.
Referenced by close(), disconnect(), getPos(), getSize(), read(), reconnect(), setPos(), setSize(), sync(), and write().
|
private |
Definition at line 31 of file filrec.hxx.
Referenced by close(), open(), and reconnect().
|
private |
Definition at line 30 of file filrec.hxx.
Referenced by close(), open(), and reconnect().