ewmscp
..
|
#include <outputHandlerLibssh.h>
Classes | |
class | writerLibssh |
Public Member Functions | |
libssh () | |
~libssh () override=default | |
std::unique_ptr< writer > | newWriter (const std::string &path, bool mightAppend, size_t sourceSize, size_t readBlockSize, copyRequest::stateType &state, bool noWrite, std::unique_ptr< ioHandle::attrDataType > attrData, std::unique_ptr< acl::list > aclData) override |
void | ensureParentDirs (const std::string &path, const std::string &srcPath, inputHandler::base *InputHandler) override |
void | remove (const std::string &path, copyRequest::stateType &state) override |
bool | renameSimple (const std::string &fromPath, const std::string &toPath) override |
base::renameRetvalType | rename (const std::string &fromPath, const std::unique_ptr< const genericStat > &readInitialStat, const std::string &toPath, copyRequest::stateType &state) override |
void | createSymlink (const std::vector< char > &target, const std::string &path, uid_t uid, gid_t gid) override |
size_t | getMaxNameLength (const std::string &dirPath) override |
![]() | |
~base () override=default | |
virtual std::unique_ptr< writer > | newTmpWriter (std::string &path, size_t sourceSize, bool noWrite, std::unique_ptr< ioHandle::attrDataType > attrData, std::unique_ptr< acl::list > aclData) |
virtual void | doAttributePreservations (const std::string &, const genericStat &) |
template<class C > | |
void | shortenNameToMax (const std::string &path, C &pathBuf, const std::string &suffix) |
![]() | |
virtual | ~pathHandler ()=default |
virtual std::string | getXattr (const std::string &, const std::string &) |
![]() | |
void | reconnectSessions () |
template<typename T > | |
std::unique_ptr< T, void(*)(T *)> | getUniquePtr (T *obj, void(*deleter)(T *)) |
libsshCommon (sshOptions &aOpt) | |
~libsshCommon () override | |
bool | pathExists (const std::string &path) override |
std::unique_ptr< const genericStat > | getStat (const std::string &path, bool followLink) override |
const sftp_statvfs_struct & | getVfsStat (const std::string &path) |
Static Private Attributes | |
static factoryTemplate< libssh > | factory |
Additional Inherited Members | |
![]() | |
enum | renameRetvalType { renameRetvalType::ok, renameRetvalType::fileChanged, renameRetvalType::fileVanished, renameRetvalType::cantHappen } |
![]() | |
static base * | newHandler (const std::string &name) |
template<class T > | |
static void | addAllowedNamesToOption (T &option) |
![]() | |
ssh_session | session |
sftp_session | sftp |
![]() | |
base ()=default | |
![]() | |
void | openSessions () |
void | closeSessions () |
![]() | |
static std::map< std::string, factoryClass * > & | getFactoryMap () |
![]() | |
sshOptions & | opt |
bool | reconnecting |
Definition at line 10 of file outputHandlerLibssh.h.
outputHandler::libssh::libssh | ( | ) |
Definition at line 21 of file outputHandlerLibssh.cpp.
|
overridedefault |
|
overridevirtual |
Reimplemented from outputHandler::base.
Definition at line 201 of file outputHandlerLibssh.cpp.
References gid, throwcall::sftp::good0(), libsshCommon::sftp, timerInst, and uid.
|
overridevirtual |
Implements outputHandler::base.
Definition at line 43 of file outputHandlerLibssh.cpp.
References errMsg::emit(), libsshCommon::getUniquePtr(), gid, throwcall::sftp::good0(), errMsg::info, libsshCommon::sftp, timer::instanceUnscoped::stop(), timerInst, and uid.
|
overridevirtual |
Reimplemented from outputHandler::base.
Definition at line 398 of file outputHandlerLibssh.cpp.
References libsshCommon::getVfsStat().
|
overridevirtual |
Implements outputHandler::base.
Definition at line 27 of file outputHandlerLibssh.cpp.
|
overridevirtual |
Implements outputHandler::base.
Definition at line 83 of file outputHandlerLibssh.cpp.
References copyRequest::done, errMsg::emit(), copyRequest::failed, libsshCommon::getUniquePtr(), throwcall::sftp::good0(), errMsg::info, libsshCommon::sftp, and copyRequest::vanished.
|
overridevirtual |
Implements outputHandler::base.
Definition at line 140 of file outputHandlerLibssh.cpp.
References throwcall::sftp::badval(), outputHandler::base::cantHappen, copyRequest::done, errMsg::emit(), outputHandler::base::fileChanged, outputHandler::base::fileVanished, genericStat::getMtime(), libsshCommon::getUniquePtr(), libsshCommon::getVfsStat(), throwcall::good0(), copyRequest::ignore, errMsg::info, genericStat::isDir(), genericStat::isSameMtimeAs(), outputHandler::base::ok, libsshCommon::sftp, and genericStat::size.
|
overridevirtual |
Implements outputHandler::base.
Definition at line 119 of file outputHandlerLibssh.cpp.
References errMsg::emit(), throwcall::sftp::good0(), errMsg::notice, libsshCommon::pathExists(), and libsshCommon::sftp.
|
staticprivate |
Definition at line 11 of file outputHandlerLibssh.h.