玉兔远程控制 0.1.0-bate11
载入中...
搜索中...
未找到
CChannelSFTP类 参考
类 CChannelSFTP 继承关系图:
CChannelSFTP 的协作图:

struct  DIR_READER
struct  _AIO
struct  _AFILE

Public 槽

void slotGetDir (const QString &szPath, CRemoteFileSystem *p)
 Get the directory asynchronously
void slotStartFileTransfer (QSharedPointer< CFileTransfer > f)
void slotStopFileTransfer (QSharedPointer< CFileTransfer > f)

信号

void sigGetDir (CRemoteFileSystem *p, QVector< QSharedPointer< CRemoteFileSystem > > contents, bool bEnd)
void sigFileTransferUpdate (QSharedPointer< CFileTransfer > f)
信号 继承自 CChannel
void sigConnected ()
 emit when the channel is connected.
void sigDisconnected ()
 emit when the channel is disconnected
void sigError (int nErr, const QString &szErr)
 emit when the channel is error
void sigSecurityLevel (CSecurityLevel::Levels level)
 当安全级别改变时触发
void sigSend (quint64 counts)
 Send data counts
void sigReceive (quint64 counts)
 Receive data counts

Public 成员函数

 CChannelSFTP (CBackend *pBackend, CParameterSSH *pPara, bool bWakeUp=true, QObject *parent=nullptr)
int GetDir (CRemoteFileSystem *p)
 Synchronize to get the directory
int MakeDir (const QString &dir)
int RemoveDir (const QString &dir)
int RemoveFile (const QString &file)
int Rename (const QString &oldPath, const QString &newPath)
int Process ()
Public 成员函数 继承自 CChannelSSH
 CChannelSSH (CBackend *pBackend, CParameterSSH *pPara, bool bWakeUp=true, QObject *parent=nullptr)
virtual bool open (OpenMode mode) override
virtual void close () override
virtual int WakeUp ()
virtual QString GetDetails () override
 依赖信息
Public 成员函数 继承自 CChannel
 CChannel (QTcpSocket *pSocket, QObject *parent=nullptr)
 CChannel

Protected 成员函数

virtual qint64 readData (char *data, qint64 maxlen) override
virtual qint64 writeData (const char *data, qint64 len) override
Protected 成员函数 继承自 CChannel
 CChannel (QObject *parent=nullptr)
virtual bool isSequential () const override

Private 类型

enum class  STATE {
  OPEN , READ , CLOSE , FINISH ,
  ERR
}

Private 成员函数

virtual int OnOpen (ssh_session session) override
virtual void OnClose () override
QSharedPointer< CRemoteFileSystemGetFileNode (const QString &szPath, sftp_attributes attributes)
int AsyncReadDir ()
int AsyncFile ()
int CleanFileAIO (QSharedPointer< _AFILE > aio)

Private 属性

sftp_session m_SessionSftp
QVector< QSharedPointer< DIR_READER > > m_vDirs
QVector< QSharedPointer< _AFILE > > m_vFiles

额外继承的成员函数

静态 Public 成员函数 继承自 CChannel
static int InitTranslation ()
 Initial translation
static int RemoveTranslation ()
 Remove translation
Protected 属性 继承自 CChannelSSH
ssh_session m_Session
ssh_channel m_Channel
CBackendm_pBackend
CParameterSSHm_pParameter
Channel::CEventm_pEvent

详细描述

在文件 ChannelSFTP.h13 行定义.

成员枚举类型说明

◆ STATE

enum class CChannelSFTP::STATE
strongprivate

在文件 ChannelSFTP.h53 行定义.

成员函数说明

◆ AsyncFile()

int CChannelSFTP::AsyncFile ( )
private

在文件 ChannelSFTP.cpp535 行定义.

◆ AsyncReadDir()

int CChannelSFTP::AsyncReadDir ( )
private

在文件 ChannelSFTP.cpp404 行定义.

◆ CleanFileAIO()

int CChannelSFTP::CleanFileAIO ( QSharedPointer< _AFILE > aio)
private

在文件 ChannelSFTP.cpp888 行定义.

◆ GetDir()

int CChannelSFTP::GetDir ( CRemoteFileSystem * p)

Synchronize to get the directory

参数
szPath
返回

在文件 ChannelSFTP.cpp142 行定义.

◆ GetFileNode()

QSharedPointer< CRemoteFileSystem > CChannelSFTP::GetFileNode ( const QString & szPath,
sftp_attributes attributes )
private

在文件 ChannelSFTP.cpp101 行定义.

◆ MakeDir()

int CChannelSFTP::MakeDir ( const QString & dir)

在文件 ChannelSFTP.cpp195 行定义.

◆ OnClose()

void CChannelSFTP::OnClose ( )
overrideprivatevirtual

重载 CChannelSSH .

在文件 ChannelSFTP.cpp354 行定义.

◆ OnOpen()

int CChannelSFTP::OnOpen ( ssh_session session)
overrideprivatevirtual

重载 CChannelSSH .

在文件 ChannelSFTP.cpp326 行定义.

◆ Process()

int CChannelSFTP::Process ( )

在文件 ChannelSFTP.cpp44 行定义.

◆ readData()

qint64 CChannelSFTP::readData ( char * data,
qint64 maxlen )
overrideprotectedvirtual

重载 CChannel .

在文件 ChannelSFTP.cpp312 行定义.

◆ RemoveDir()

int CChannelSFTP::RemoveDir ( const QString & dir)

在文件 ChannelSFTP.cpp216 行定义.

◆ RemoveFile()

int CChannelSFTP::RemoveFile ( const QString & file)

在文件 ChannelSFTP.cpp278 行定义.

◆ Rename()

int CChannelSFTP::Rename ( const QString & oldPath,
const QString & newPath )

在文件 ChannelSFTP.cpp292 行定义.

◆ slotGetDir

void CChannelSFTP::slotGetDir ( const QString & szPath,
CRemoteFileSystem * p )
slot

Get the directory asynchronously

在文件 ChannelSFTP.cpp380 行定义.

◆ slotStartFileTransfer

void CChannelSFTP::slotStartFileTransfer ( QSharedPointer< CFileTransfer > f)
slot

在文件 ChannelSFTP.cpp497 行定义.

◆ slotStopFileTransfer

void CChannelSFTP::slotStopFileTransfer ( QSharedPointer< CFileTransfer > f)
slot

在文件 ChannelSFTP.cpp515 行定义.

◆ writeData()

qint64 CChannelSFTP::writeData ( const char * data,
qint64 len )
overrideprotectedvirtual

重载 CChannel .

在文件 ChannelSFTP.cpp319 行定义.

类成员变量说明

◆ m_SessionSftp

sftp_session CChannelSFTP::m_SessionSftp
private

在文件 ChannelSFTP.h107 行定义.

◆ m_vDirs

QVector<QSharedPointer<DIR_READER> > CChannelSFTP::m_vDirs
private

在文件 ChannelSFTP.h108 行定义.

◆ m_vFiles

QVector<QSharedPointer<_AFILE> > CChannelSFTP::m_vFiles
private

在文件 ChannelSFTP.h109 行定义.


该类的文档由以下文件生成: