Rabbit Remote Control 0.1.0-bate14
Loading...
Searching...
No Matches
CBackendFtpServer Class Reference
Inheritance diagram for CBackendFtpServer:
Collaboration diagram for CBackendFtpServer:

Public Slots

void slotDisconnect (const QString &szIp, const quint16 port) override
Public Slots inherited from CBackendServer
virtual void slotDisconnect (const QString &szIp, const quint16 port)=0
 Disconnect client.

Public Member Functions

 CBackendFtpServer (COperateFtpServer *pOperate=nullptr, bool bStopSignal=true)
virtual int WakeUp () override
 Wake up backend thread(background thread).
virtual bool onFilter (QSslSocket *socket) override
Public Member Functions inherited from CBackendServer
 CBackendServer (COperateServer *pOperate=nullptr, bool bStopSignal=true)
Public Member Functions inherited from CBackend
 CBackend (COperate *pOperate=nullptr, bool bStopSignal=true)
 CBackend.
virtual int Start ()
 Start.
virtual int Stop ()
 Stop.

Protected Member Functions

virtual OnInitReturnValue OnInit () override
 Initialization.
virtual int OnClean () override
 Clean.
Protected Member Functions inherited from CBackend
virtual int OnProcess ()
 Specific operation processing of plug-in.

Private Slots

void slotDisconnected ()

Private Attributes

COperateFtpServerm_pOperate
CParameterFtpServerm_pPara
CFtpServer * m_pServer
QList< QSslSocket * > m_Sockets

Additional Inherited Members

Signals inherited from CBackendServer
void sigConnected (const QString &szIp, const quint16 port)
 emit when new client connected
void sigDisconnected (const QString &szIp, const quint16 port)
 emit when the client disconnected
Signals inherited from CBackend
void sigRunning ()
 Emitted when the plugin is successfully started.
void sigStop ()
 Notify the user to stop.
void sigFinished ()
 Successful stopped signal.
void sigError (const int nError, const QString &szError=QString())
 Triggered when an error is generated.
void sigInformation (const QString &szInfo)
 Triggering from a background thread displays information in the main thread without blocking the background thread.
void sigShowMessageBox (const QString &szTitle, const QString &szMessage, const QMessageBox::Icon &icon=QMessageBox::Information)
 Trigger the display of a message dialog (QMessageBox) in the main thread from a background thread without blocking the background thread.
void sigBlockShowMessageBox (const QString &szTitle, const QString &szMessage, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton &nRet, bool &checkBox, QString checkBoxContext=QString())
 Block background threads and display message dialogs in foreground threads (QMessageBox).
void sigBlockInputDialog (const QString &szTitle, const QString &szLable, const QString &szMessage, QString &szText)
 Block background threads and display input dialogs in foreground threads (QInputDialog).
void sigBlockShowWidget (const QString &className, int &nRet, void *pContext)
 Blocks the background thread and displays the window in the foreground thread.
void sigSecurityLevel (CSecurityLevel::Levels level)
 Triggered when the security level changes.
Protected Types inherited from CBackend
enum class  OnInitReturnValue { Fail = -1 , Success = 0 , UseOnProcess = Success , NotUseOnProcess = 1 }
Protected Slots inherited from CBackend
virtual void slotTimeOut ()
 a non-Qt event loop (that is, normal loop processing), It call OnProcess(), and start timer.

Detailed Description

Definition at line 10 of file BackendFtpServer.h.

Constructor & Destructor Documentation

◆ ~CBackendFtpServer()

CBackendFtpServer::~CBackendFtpServer ( )
virtual

Definition at line 20 of file BackendFtpServer.cpp.

Member Function Documentation

◆ OnClean()

int CBackendFtpServer::OnClean ( )
overrideprotectedvirtual

Clean.

See also
Stop()

Implements CBackend.

Definition at line 125 of file BackendFtpServer.cpp.

◆ onFilter()

bool CBackendFtpServer::onFilter ( QSslSocket * socket)
overridevirtual

Definition at line 135 of file BackendFtpServer.cpp.

◆ OnInit()

CBackend::OnInitReturnValue CBackendFtpServer::OnInit ( )
overrideprotectedvirtual

Initialization.

Returns
CBackend::OnInitReturnValue
  • OnInitReturnValue::Fail: error
  • OnInitReturnValue::Success/OnInitReturnValue::UseOnProcess: Use OnProcess() (non-Qt event loop)
  • OnInitReturnValue::NotUseOnProcess: Don't use OnProcess() (qt event loop)
See also
Start()

Implements CBackend.

Definition at line 46 of file BackendFtpServer.cpp.

◆ slotDisconnect

void CBackendFtpServer::slotDisconnect ( const QString & szIp,
const quint16 port )
overrideslot

Definition at line 202 of file BackendFtpServer.cpp.

◆ slotDisconnected

void CBackendFtpServer::slotDisconnected ( )
privateslot

Definition at line 190 of file BackendFtpServer.cpp.

◆ WakeUp()

int CBackendFtpServer::WakeUp ( )
overridevirtual

Wake up backend thread(background thread).

When it is block(a non-Qt event loop)

Note
The caller is main thread(UI thread)

Implements CBackend.

Definition at line 25 of file BackendFtpServer.cpp.

Member Data Documentation

◆ m_pOperate

COperateFtpServer* CBackendFtpServer::m_pOperate
private

Definition at line 33 of file BackendFtpServer.h.

◆ m_pPara

CParameterFtpServer* CBackendFtpServer::m_pPara
private

Definition at line 34 of file BackendFtpServer.h.

◆ m_pServer

CFtpServer* CBackendFtpServer::m_pServer
private

Definition at line 35 of file BackendFtpServer.h.

◆ m_Sockets

QList<QSslSocket*> CBackendFtpServer::m_Sockets
private

Definition at line 36 of file BackendFtpServer.h.


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