Rabbit Remote Control 0.1.0-bate6
Loading...
Searching...
No Matches
Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Slots | Private Attributes | List of all members
CBackendFtpServer Class Reference
Inheritance diagram for CBackendFtpServer:
Inheritance graph
[legend]
Collaboration diagram for CBackendFtpServer:
Collaboration graph
[legend]

Public Slots

void slotDisconnect (const QString &szIp, const quint16 port)
 

Signals

void sigConnectCount (int nTotal, int nConnect, int nDisconnect)
 
void sigConnected (const QString &szIp, const quint16 port)
 
void sigDisconnected (const QString &szIp, const quint16 port)
 
- 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.
 

Public Member Functions

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

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

CFtpServer * m_pServer
 
QSharedPointer< CParameterFtpServerm_Para
 
QList< QSslSocket * > m_Sockets
 
int m_nTotal
 
int m_nDisconnect
 

Additional Inherited Members

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

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 69 of file BackendFtpServer.cpp.

◆ onFilter()

bool CBackendFtpServer::onFilter ( QSslSocket *  socket)
overridevirtual

Definition at line 79 of file BackendFtpServer.cpp.

◆ OnInit()

CBackend::OnInitReturnValue CBackendFtpServer::OnInit ( )
overrideprotectedvirtual

Initialization.

Returns
See also
Start()

Implements CBackend.

Definition at line 25 of file BackendFtpServer.cpp.

◆ slotDisconnect

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

Definition at line 146 of file BackendFtpServer.cpp.

◆ slotDisconnected

void CBackendFtpServer::slotDisconnected ( )
privateslot

Definition at line 132 of file BackendFtpServer.cpp.

Member Data Documentation

◆ m_nDisconnect

int CBackendFtpServer::m_nDisconnect
private

Definition at line 39 of file BackendFtpServer.h.

◆ m_nTotal

int CBackendFtpServer::m_nTotal
private

Definition at line 38 of file BackendFtpServer.h.

◆ m_Para

QSharedPointer<CParameterFtpServer> CBackendFtpServer::m_Para
private

Definition at line 36 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 37 of file BackendFtpServer.h.


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