MythTV  master
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
FileServerHandler Class Reference

#include <fileserverhandler.h>

Inheritance diagram for FileServerHandler:
Inheritance graph
[legend]
Collaboration diagram for FileServerHandler:
Collaboration graph
[legend]

Public Member Functions

bool HandleAnnounce (MythSocket *socket, QStringList &commands, QStringList &slist) override
 
bool HandleQuery (SocketHandler *socket, QStringList &commands, QStringList &slist) override
 
QString GetHandlerName (void) override
 
void connectionAnnounced (MythSocket *socket, QStringList &commands, QStringList &slist) override
 
void connectionClosed (MythSocket *socket) override
 
QList< FileSystemInfoQueryAllFileSystems (void)
 
- Public Member Functions inherited from SocketRequestHandler
 SocketRequestHandler ()=default
 
 ~SocketRequestHandler () override=default
 
virtual void SetParent (MythSocketManager *parent)
 
MythSocketManagerGetParent (void)
 

Static Public Member Functions

static bool DeleteFile (const QString &filename, const QString &storagegroup)
 
static QList< FileSystemInfoQueryFileSystems (void)
 

Private Member Functions

bool HandleQueryFreeSpaceList (SocketHandler *socket)
 
bool HandleQueryFreeSpaceSummary (SocketHandler *socket)
 
bool HandleQueryFileHash (SocketHandler *socket, QStringList &slist)
 
bool HandleDeleteFile (QString filename, QString storagegroup)
 
bool HandleGetFileList (SocketHandler *socket, QStringList &slist)
 
bool HandleFileQuery (SocketHandler *socket, QStringList &slist)
 
bool HandleQueryFileTransfer (SocketHandler *socket, QStringList &commands, QStringList &slist)
 
bool HandleDownloadFile (SocketHandler *socket, QStringList &slist)
 

Static Private Member Functions

static bool HandleQueryFreeSpace (SocketHandler *socket)
 
static bool HandleQueryCheckFile (SocketHandler *socket, QStringList &slist)
 
static bool HandleQueryFileExists (SocketHandler *socket, QStringList &slist)
 
static bool HandleDeleteFile (SocketHandler *socket, QStringList &slist)
 
static bool HandleDeleteFile (SocketHandler *socket, const QString &filename, const QString &storagegroup)
 
static bool HandleDeleteFile (DeleteHandler *handler)
 
static QString LocalFilePath (const QString &path, const QString &wantgroup)
 
static void RunDeleteThread (void)
 

Private Attributes

QMap< int, FileTransfer * > m_ftMap
 
QReadWriteLock m_ftLock
 
QMap< QString, SocketHandler * > m_fsMap
 
QReadWriteLock m_fsLock
 
QMutex m_downloadURLsLock
 
QMap< QString, QString > m_downloadURLs
 

Additional Inherited Members

- Protected Attributes inherited from SocketRequestHandler
MythSocketManagerm_parent { nullptr }
 

Detailed Description

Definition at line 13 of file fileserverhandler.h.

Member Function Documentation

◆ HandleAnnounce()

bool FileServerHandler::HandleAnnounce ( MythSocket socket,
QStringList &  commands,
QStringList &  slist 
)
overridevirtual

Reimplemented from SocketRequestHandler.

Definition at line 176 of file fileserverhandler.cpp.

◆ HandleQuery()

bool FileServerHandler::HandleQuery ( SocketHandler socket,
QStringList &  commands,
QStringList &  slist 
)
overridevirtual

Reimplemented from SocketRequestHandler.

Definition at line 377 of file fileserverhandler.cpp.

◆ GetHandlerName()

QString FileServerHandler::GetHandlerName ( void  )
inlineoverridevirtual

Reimplemented from SocketRequestHandler.

Definition at line 21 of file fileserverhandler.h.

◆ connectionAnnounced()

void FileServerHandler::connectionAnnounced ( MythSocket socket,
QStringList &  commands,
QStringList &  slist 
)
overridevirtual

Reimplemented from SocketRequestHandler.

Definition at line 357 of file fileserverhandler.cpp.

◆ connectionClosed()

void FileServerHandler::connectionClosed ( MythSocket socket)
overridevirtual

Reimplemented from SocketRequestHandler.

Definition at line 29 of file fileserverhandler.cpp.

◆ DeleteFile()

bool FileServerHandler::DeleteFile ( const QString &  filename,
const QString &  storagegroup 
)
static

Definition at line 741 of file fileserverhandler.cpp.

◆ QueryFileSystems()

QList< FileSystemInfo > FileServerHandler::QueryFileSystems ( void  )
static

Definition at line 478 of file fileserverhandler.cpp.

Referenced by HandleQueryFreeSpace(), and QueryAllFileSystems().

◆ QueryAllFileSystems()

QList< FileSystemInfo > FileServerHandler::QueryAllFileSystems ( void  )

Definition at line 549 of file fileserverhandler.cpp.

Referenced by HandleQueryFreeSpaceList(), and HandleQueryFreeSpaceSummary().

◆ HandleQueryFreeSpace()

bool FileServerHandler::HandleQueryFreeSpace ( SocketHandler socket)
staticprivate

Definition at line 408 of file fileserverhandler.cpp.

Referenced by HandleQuery().

◆ HandleQueryFreeSpaceList()

bool FileServerHandler::HandleQueryFreeSpaceList ( SocketHandler socket)
private

Definition at line 421 of file fileserverhandler.cpp.

Referenced by HandleQuery().

◆ HandleQueryFreeSpaceSummary()

bool FileServerHandler::HandleQueryFreeSpaceSummary ( SocketHandler socket)
private

Definition at line 457 of file fileserverhandler.cpp.

Referenced by HandleQuery().

◆ HandleQueryCheckFile()

bool FileServerHandler::HandleQueryCheckFile ( SocketHandler socket,
QStringList &  slist 
)
staticprivate

Definition at line 569 of file fileserverhandler.cpp.

Referenced by HandleQuery().

◆ HandleQueryFileExists()

bool FileServerHandler::HandleQueryFileExists ( SocketHandler socket,
QStringList &  slist 
)
staticprivate

Definition at line 597 of file fileserverhandler.cpp.

Referenced by HandleQuery().

◆ HandleQueryFileHash()

bool FileServerHandler::HandleQueryFileHash ( SocketHandler socket,
QStringList &  slist 
)
private

Definition at line 667 of file fileserverhandler.cpp.

Referenced by HandleQuery().

◆ HandleDeleteFile() [1/4]

bool FileServerHandler::HandleDeleteFile ( SocketHandler socket,
QStringList &  slist 
)
staticprivate

Definition at line 732 of file fileserverhandler.cpp.

Referenced by DeleteFile(), and HandleQuery().

◆ HandleDeleteFile() [2/4]

bool FileServerHandler::HandleDeleteFile ( SocketHandler socket,
const QString &  filename,
const QString &  storagegroup 
)
staticprivate

Definition at line 746 of file fileserverhandler.cpp.

◆ HandleDeleteFile() [3/4]

bool FileServerHandler::HandleDeleteFile ( QString  filename,
QString  storagegroup 
)
private

◆ HandleDeleteFile() [4/4]

bool FileServerHandler::HandleDeleteFile ( DeleteHandler handler)
staticprivate

Definition at line 808 of file fileserverhandler.cpp.

◆ HandleGetFileList()

bool FileServerHandler::HandleGetFileList ( SocketHandler socket,
QStringList &  slist 
)
private

Definition at line 814 of file fileserverhandler.cpp.

Referenced by HandleQuery().

◆ HandleFileQuery()

bool FileServerHandler::HandleFileQuery ( SocketHandler socket,
QStringList &  slist 
)
private

Definition at line 886 of file fileserverhandler.cpp.

Referenced by HandleQuery().

◆ HandleQueryFileTransfer()

bool FileServerHandler::HandleQueryFileTransfer ( SocketHandler socket,
QStringList &  commands,
QStringList &  slist 
)
private

Definition at line 946 of file fileserverhandler.cpp.

Referenced by HandleQuery().

◆ HandleDownloadFile()

bool FileServerHandler::HandleDownloadFile ( SocketHandler socket,
QStringList &  slist 
)
private

Definition at line 1066 of file fileserverhandler.cpp.

Referenced by HandleQuery().

◆ LocalFilePath()

QString FileServerHandler::LocalFilePath ( const QString &  path,
const QString &  wantgroup 
)
staticprivate

Definition at line 64 of file fileserverhandler.cpp.

Referenced by HandleAnnounce().

◆ RunDeleteThread()

void FileServerHandler::RunDeleteThread ( void  )
staticprivate

Definition at line 161 of file fileserverhandler.cpp.

Referenced by HandleDeleteFile().

Member Data Documentation

◆ m_ftMap

QMap<int, FileTransfer*> FileServerHandler::m_ftMap
private

Definition at line 57 of file fileserverhandler.h.

Referenced by connectionClosed(), HandleAnnounce(), and HandleQueryFileTransfer().

◆ m_ftLock

QReadWriteLock FileServerHandler::m_ftLock
private

Definition at line 58 of file fileserverhandler.h.

Referenced by connectionClosed(), HandleAnnounce(), and HandleQueryFileTransfer().

◆ m_fsMap

QMap<QString, SocketHandler*> FileServerHandler::m_fsMap
private

◆ m_fsLock

QReadWriteLock FileServerHandler::m_fsLock
private

◆ m_downloadURLsLock

QMutex FileServerHandler::m_downloadURLsLock
private

Definition at line 63 of file fileserverhandler.h.

Referenced by HandleDownloadFile().

◆ m_downloadURLs

QMap<QString, QString> FileServerHandler::m_downloadURLs
private

Definition at line 64 of file fileserverhandler.h.

Referenced by HandleDownloadFile().


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