MythTV  master
Classes | Public Member Functions | Protected Slots | Private Types | Private Slots | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
MainServer Class Reference

#include <mythbackend/mainserver.h>

Inheritance diagram for MainServer:
[legend]
Collaboration diagram for MainServer:
[legend]

Classes

struct  DeferredDeleteStruct
 

Public Member Functions

 MainServer (bool master, int port, QMap< int, EncoderLink * > *tvList, Scheduler *sched, AutoExpire *expirer)
 
 ~MainServer () override
 
void Stop (void)
 
void customEvent (QEvent *e) override
 
bool isClientConnected (bool onlyBlockingClients=false)
 
void ShutSlaveBackendsDown (const QString &haltcmd)
 Sends the Slavebackends the request to shut down using haltcmd. More...
 
void ProcessRequest (MythSocket *sock)
 
void readyRead (MythSocket *socket) override
 
void connectionClosed (MythSocket *socket) override
 
void connectionFailed ([[maybe_unused]] MythSocket *socket) override
 
void connected ([[maybe_unused]] MythSocket *socket) override
 
void DeletePBS (PlaybackSock *sock)
 
size_t GetCurrentMaxBitrate (void)
 
void BackendQueryDiskSpace (QStringList &strlist, bool consolidated, bool allHosts)
 
void GetFilesystemInfos (QList< FileSystemInfo > &fsInfos, bool useCache=true)
 
int GetExitCode () const
 
void UpdateSystemdStatus (void)
 
void GetActiveBackends (QStringList &hosts)
 
PlaybackSockGetMediaServerByHostname (const QString &hostname)
 
- Public Member Functions inherited from MythSocketCBs
virtual ~MythSocketCBs ()=default
 
virtual void connected (MythSocket *)=0
 
virtual void error (MythSocket *, int)
 
virtual void connectionFailed (MythSocket *)=0
 

Protected Slots

void reconnectTimeout (void)
 
void deferredDeleteSlot (void)
 
static void autoexpireUpdate (void)
 

Private Types

using RequestedBy = QHash< QString, QString >
 

Private Slots

void NewConnection (qintptr socketDescriptor)
 

Private Member Functions

void ProcessRequestWork (MythSocket *sock)
 
void HandleAnnounce (QStringList &slist, QStringList commands, MythSocket *socket)
 
void HandleDone (MythSocket *socket)
 
void HandleActiveBackendsQuery (PlaybackSock *pbs)
 
void HandleIsActiveBackendQuery (const QStringList &slist, PlaybackSock *pbs)
 
void HandleMoveFile (PlaybackSock *pbs, const QString &storagegroup, const QString &src, const QString &dst)
 
bool HandleDeleteFile (const QStringList &slist, PlaybackSock *pbs)
 
bool HandleDeleteFile (const QString &filename, const QString &storagegroup, PlaybackSock *pbs=nullptr)
 
void HandleQueryRecordings (const QString &type, PlaybackSock *pbs)
 
void HandleQueryRecording (QStringList &slist, PlaybackSock *pbs)
 
void HandleStopRecording (QStringList &slist, PlaybackSock *pbs)
 
void DoHandleStopRecording (RecordingInfo &recinfo, PlaybackSock *pbs)
 
void HandleDeleteRecording (QString &chanid, QString &starttime, PlaybackSock *pbs, bool forceMetadataDelete, bool forgetHistory)
 
void HandleDeleteRecording (QStringList &slist, PlaybackSock *pbs, bool forceMetadataDelete)
 
void DoHandleDeleteRecording (RecordingInfo &recinfo, PlaybackSock *pbs, bool forceMetadataDelete, bool lexpirer=false, bool forgetHistory=false)
 
void HandleUndeleteRecording (QStringList &slist, PlaybackSock *pbs)
 
void DoHandleUndeleteRecording (RecordingInfo &recinfo, PlaybackSock *pbs)
 
void HandleForgetRecording (QStringList &slist, PlaybackSock *pbs)
 
void HandleRescheduleRecordings (const QStringList &request, PlaybackSock *pbs)
 
bool HandleAddChildInput (uint inputid)
 
void HandleGoToSleep (PlaybackSock *pbs)
 
void HandleQueryFreeSpace (PlaybackSock *pbs, bool allHosts)
 
void HandleQueryFreeSpaceSummary (PlaybackSock *pbs)
 
void HandleQueryCheckFile (QStringList &slist, PlaybackSock *pbs)
 
void HandleQueryFileExists (QStringList &slist, PlaybackSock *pbs)
 
void HandleQueryFindFile (QStringList &slist, PlaybackSock *pbs)
 
void HandleQueryFileHash (QStringList &slist, PlaybackSock *pbs)
 
void HandleQueryGuideDataThrough (PlaybackSock *pbs)
 
void HandleGetPendingRecordings (PlaybackSock *pbs, const QString &table="", int recordid=-1)
 
void HandleGetScheduledRecordings (PlaybackSock *pbs)
 
void HandleGetConflictingRecordings (QStringList &slist, PlaybackSock *pbs)
 
void HandleGetExpiringRecordings (PlaybackSock *pbs)
 
void HandleSGGetFileList (QStringList &sList, PlaybackSock *pbs)
 
void HandleSGFileQuery (QStringList &sList, PlaybackSock *pbs)
 
void HandleGetFreeInputInfo (PlaybackSock *pbs, uint excluded_input)
 
void HandleGetNextFreeRecorder (QStringList &slist, PlaybackSock *pbs)
 
void HandleGetFreeRecorder (PlaybackSock *pbs)
 
void HandleGetFreeRecorderCount (PlaybackSock *pbs)
 
void HandleGetFreeRecorderList (PlaybackSock *pbs)
 
void HandleGetConnectedRecorderList (PlaybackSock *pbs)
 
void HandleRecorderQuery (QStringList &slist, QStringList &commands, PlaybackSock *pbs)
 
void HandleSetNextLiveTVDir (QStringList &commands, PlaybackSock *pbs)
 
void HandleFileTransferQuery (QStringList &slist, QStringList &commands, PlaybackSock *pbs)
 
void HandleGetRecorderNum (QStringList &slist, PlaybackSock *pbs)
 
void HandleGetRecorderFromNum (QStringList &slist, PlaybackSock *pbs)
 
void HandleMessage (QStringList &slist, PlaybackSock *pbs)
 
void HandleSetVerbose (const QStringList &slist, PlaybackSock *pbs)
 
void HandleSetLogLevel (const QStringList &slist, PlaybackSock *pbs)
 
void HandleGenPreviewPixmap (QStringList &slist, PlaybackSock *pbs)
 
void HandlePixmapLastModified (QStringList &slist, PlaybackSock *pbs)
 
void HandlePixmapGetIfModified (const QStringList &slist, PlaybackSock *pbs)
 
void HandleIsRecording (const QStringList &slist, PlaybackSock *pbs)
 
void HandleCheckRecordingActive (QStringList &slist, PlaybackSock *pbs)
 
void HandleFillProgramInfo (QStringList &slist, PlaybackSock *pbs)
 
void HandleSetChannelInfo (QStringList &slist, PlaybackSock *pbs)
 
void HandleRemoteEncoder (QStringList &slist, QStringList &commands, PlaybackSock *pbs)
 
void HandleLockTuner (PlaybackSock *pbs, int cardid=-1)
 
void HandleFreeTuner (int cardid, PlaybackSock *pbs)
 
void HandleCutMapQuery (const QString &chanid, const QString &starttime, PlaybackSock *pbs, bool commbreak)
 
void HandleCommBreakQuery (const QString &chanid, const QString &starttime, PlaybackSock *pbs)
 
void HandleCutlistQuery (const QString &chanid, const QString &starttime, PlaybackSock *pbs)
 
void HandleBookmarkQuery (const QString &chanid, const QString &starttime, PlaybackSock *pbs)
 
void HandleSetBookmark (QStringList &tokens, PlaybackSock *pbs)
 
void HandleSettingQuery (const QStringList &tokens, PlaybackSock *pbs)
 
void HandleSetSetting (const QStringList &tokens, PlaybackSock *pbs)
 
void HandleScanVideos (PlaybackSock *pbs)
 
void HandleScanMusic (const QStringList &slist, PlaybackSock *pbs)
 
void HandleMusicTagUpdateVolatile (const QStringList &slist, PlaybackSock *pbs)
 
void HandleMusicTagUpdateMetadata (const QStringList &slist, PlaybackSock *pbs)
 
void HandleMusicFindAlbumArt (const QStringList &slist, PlaybackSock *pbs)
 
void HandleMusicTagGetImage (const QStringList &slist, PlaybackSock *pbs)
 
void HandleMusicTagAddImage (const QStringList &slist, PlaybackSock *pbs)
 
void HandleMusicTagRemoveImage (const QStringList &slist, PlaybackSock *pbs)
 
void HandleMusicTagChangeImage (const QStringList &slist, PlaybackSock *pbs)
 
void HandleMusicCalcTrackLen (const QStringList &slist, PlaybackSock *pbs)
 
void HandleMusicFindLyrics (const QStringList &slist, PlaybackSock *pbs)
 
void HandleMusicGetLyricGrabbers (const QStringList &slist, PlaybackSock *pbs)
 
void HandleMusicSaveLyrics (const QStringList &slist, PlaybackSock *pbs)
 
void HandleVersion (MythSocket *socket, const QStringList &slist)
 
void HandleBackendRefresh (MythSocket *socket)
 
void HandleQueryLoad (PlaybackSock *pbs)
 
void HandleQueryUptime (PlaybackSock *pbs)
 
void HandleQueryHostname (PlaybackSock *pbs)
 
void HandleQueryMemStats (PlaybackSock *pbs)
 
void HandleQueryTimeZone (PlaybackSock *pbs)
 
void HandleBlockShutdown (bool blockShutdown, PlaybackSock *pbs)
 
void HandleDownloadFile (const QStringList &command, PlaybackSock *pbs)
 
void HandleSlaveDisconnectedEvent (const MythEvent &event)
 
void SendResponse (MythSocket *sock, QStringList &commands)
 
void SendErrorResponse (MythSocket *sock, const QString &error)
 
void SendErrorResponse (PlaybackSock *pbs, const QString &error)
 
PlaybackSockGetSlaveByHostname (const QString &hostname)
 
PlaybackSockGetPlaybackBySock (MythSocket *socket)
 Warning you must hold a sockListLock lock before calling this. More...
 
BEFileTransferGetFileTransferByID (int id)
 Warning you must hold a sockListLock lock before calling this. More...
 
BEFileTransferGetFileTransferBySock (MythSocket *socket)
 Warning you must hold a sockListLock lock before calling this. More...
 
int GetfsID (const QList< FileSystemInfo >::iterator &fsInfo)
 
void DoTruncateThread (DeleteStruct *ds)
 
void DoDeleteThread (DeleteStruct *ds)
 
LiveTVChainGetExistingChain (const QString &id)
 
LiveTVChainGetExistingChain (MythSocket *sock)
 
LiveTVChainGetChainWithRecording (const ProgramInfo &pginfo)
 
void AddToChains (LiveTVChain *chain)
 
void DeleteChain (LiveTVChain *chain)
 
void SetExitCode (int exitCode, bool closeApplication)
 

Static Private Member Functions

static void SendSlaveDisconnectedEvent (const QList< uint > &offlineEncoderIDs, bool needsReschedule)
 
static void getGuideDataThrough (QDateTime &GuideDataThrough)
 
static QString LocalFilePath (const QString &path, const QString &wantgroup)
 
static void DeleteRecordedFiles (DeleteStruct *ds)
 
static void DoDeleteInDB (DeleteStruct *ds)
 
static int DeleteFile (const QString &filename, bool followLinks, bool deleteBrokenSymlinks=false)
 Deletes links and unlinks the main file and returns the descriptor. More...
 
static int OpenAndUnlink (const QString &filename)
 Opens a file, unlinks it and returns the file descriptor. More...
 
static bool TruncateAndClose (ProgramInfo *pginfo, int fd, const QString &filename, off_t fsize)
 Repeatedly truncate an open file in small increments. More...
 

Private Attributes

std::vector< LiveTVChain * > m_liveTVChains
 
QMutex m_liveTVChainsLock
 
QMap< int, EncoderLink * > * m_encoderList {nullptr}
 
MythServerm_mythserver {nullptr}
 
MetadataFactorym_metadatafactory {nullptr}
 
QReadWriteLock m_sockListLock
 
std::vector< PlaybackSock * > m_playbackList
 
std::vector< BEFileTransfer * > m_fileTransferList
 
QSet< MythSocket * > m_controlSocketList
 
std::vector< MythSocket * > m_decrRefSocketList
 
QMutex m_masterFreeSpaceListLock
 
FreeSpaceUpdater *volatile m_masterFreeSpaceListUpdater {nullptr}
 
QWaitCondition m_masterFreeSpaceListWait
 
QStringList m_masterFreeSpaceList
 
QTimer * m_masterServerReconnect {nullptr}
 
PlaybackSockm_masterServer {nullptr}
 
bool m_ismaster
 
QMutex m_deletelock
 
MThreadPool m_threadPool
 
bool m_masterBackendOverride {false}
 
Schedulerm_sched {nullptr}
 
AutoExpirem_expirer {nullptr}
 
QMutex m_addChildInputLock
 
QMutex m_deferredDeleteLock
 
QTimer * m_deferredDeleteTimer {nullptr}
 
MythDeque< DeferredDeleteStructm_deferredDeleteList
 
QTimer * m_autoexpireUpdateTimer {nullptr}
 
QMap< QString, int > m_fsIDcache
 
QMutex m_fsIDcacheLock
 
QList< FileSystemInfom_fsInfosCache
 
QMutex m_fsInfosCacheLock
 
QMutex m_downloadURLsLock
 
QMap< QString, QString > m_downloadURLs
 
int m_exitCode {GENERIC_EXIT_OK}
 
RequestedBy m_previewRequestedBy
 
bool m_stopped {false}
 

Static Private Attributes

static QMutex s_truncate_and_close_lock
 
static const std::chrono::milliseconds kMasterServerReconnectTimeout { 1s }
 

Friends

class DeleteThread
 
class TruncateThread
 
class FreeSpaceUpdater
 
class RenameThread
 

Detailed Description

Definition at line 115 of file mainserver.h.

Member Typedef Documentation

◆ RequestedBy

using MainServer::RequestedBy = QHash<QString,QString>
private

Definition at line 366 of file mainserver.h.

Constructor & Destructor Documentation

◆ MainServer()

MainServer::MainServer ( bool  master,
int  port,
QMap< int, EncoderLink * > *  tvList,
Scheduler sched,
AutoExpire expirer 
)

Definition at line 246 of file mainserver.cpp.

◆ ~MainServer()

MainServer::~MainServer ( )
override

Definition at line 360 of file mainserver.cpp.

Member Function Documentation

◆ Stop()

void MainServer::Stop ( void  )

Definition at line 366 of file mainserver.cpp.

Referenced by cleanup(), and ~MainServer().

◆ customEvent()

void MainServer::customEvent ( QEvent *  e)
override

Definition at line 1116 of file mainserver.cpp.

◆ isClientConnected()

bool MainServer::isClientConnected ( bool  onlyBlockingClients = false)

Definition at line 8239 of file mainserver.cpp.

Referenced by Scheduler::HandleIdleShutdown().

◆ ShutSlaveBackendsDown()

void MainServer::ShutSlaveBackendsDown ( const QString &  haltcmd)

Sends the Slavebackends the request to shut down using haltcmd.

Definition at line 8268 of file mainserver.cpp.

Referenced by Scheduler::ShutdownServer().

◆ ProcessRequest()

void MainServer::ProcessRequest ( MythSocket sock)

Definition at line 460 of file mainserver.cpp.

Referenced by BEProcessRequestRunnable::run().

◆ readyRead()

void MainServer::readyRead ( MythSocket socket)
overridevirtual

Implements MythSocketCBs.

Definition at line 451 of file mainserver.cpp.

◆ connectionClosed()

void MainServer::connectionClosed ( MythSocket socket)
overridevirtual

Implements MythSocketCBs.

Definition at line 7758 of file mainserver.cpp.

◆ connectionFailed()

void MainServer::connectionFailed ( [[maybe_unused] ] MythSocket socket)
inlineoverride

Definition at line 141 of file mainserver.h.

◆ connected()

void MainServer::connected ( [[maybe_unused] ] MythSocket socket)
inlineoverride

Definition at line 142 of file mainserver.h.

◆ DeletePBS()

void MainServer::DeletePBS ( PlaybackSock sock)

Definition at line 7746 of file mainserver.cpp.

◆ GetCurrentMaxBitrate()

size_t MainServer::GetCurrentMaxBitrate ( void  )

Definition at line 5099 of file mainserver.cpp.

Referenced by BackendQueryDiskSpace(), and GetFilesystemInfos().

◆ BackendQueryDiskSpace()

void MainServer::BackendQueryDiskSpace ( QStringList &  strlist,
bool  consolidated,
bool  allHosts 
)

◆ GetFilesystemInfos()

void MainServer::GetFilesystemInfos ( QList< FileSystemInfo > &  fsInfos,
bool  useCache = true 
)

◆ GetExitCode()

int MainServer::GetExitCode ( ) const
inline

Definition at line 152 of file mainserver.h.

Referenced by run_backend().

◆ UpdateSystemdStatus()

void MainServer::UpdateSystemdStatus ( void  )

Definition at line 8315 of file mainserver.cpp.

Referenced by connectionClosed(), customEvent(), HandleAnnounce(), and HandleDone().

◆ GetActiveBackends()

void MainServer::GetActiveBackends ( QStringList &  hosts)

◆ GetMediaServerByHostname()

PlaybackSock * MainServer::GetMediaServerByHostname ( const QString &  hostname)

◆ reconnectTimeout

void MainServer::reconnectTimeout ( void  )
protectedslot

Definition at line 8155 of file mainserver.cpp.

Referenced by MainServer().

◆ deferredDeleteSlot

void MainServer::deferredDeleteSlot ( void  )
protectedslot

Definition at line 7728 of file mainserver.cpp.

Referenced by MainServer().

◆ autoexpireUpdate

void MainServer::autoexpireUpdate ( void  )
staticprotectedslot

Definition at line 436 of file mainserver.cpp.

Referenced by MainServer().

◆ NewConnection

void MainServer::NewConnection ( qintptr  socketDescriptor)
privateslot

Definition at line 441 of file mainserver.cpp.

Referenced by MainServer().

◆ ProcessRequestWork()

void MainServer::ProcessRequestWork ( MythSocket sock)
private

Definition at line 469 of file mainserver.cpp.

Referenced by ProcessRequest().

◆ HandleAnnounce()

void MainServer::HandleAnnounce ( QStringList &  slist,
QStringList  commands,
MythSocket socket 
)
private

Definition at line 1709 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleDone()

void MainServer::HandleDone ( MythSocket socket)
private

Definition at line 2073 of file mainserver.cpp.

Referenced by HandleVersion(), and ProcessRequestWork().

◆ HandleActiveBackendsQuery()

void MainServer::HandleActiveBackendsQuery ( PlaybackSock pbs)
private

Definition at line 5058 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleIsActiveBackendQuery()

void MainServer::HandleIsActiveBackendQuery ( const QStringList &  slist,
PlaybackSock pbs 
)
private

Definition at line 5066 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMoveFile()

void MainServer::HandleMoveFile ( PlaybackSock pbs,
const QString &  storagegroup,
const QString &  src,
const QString &  dst 
)
private

Definition at line 5429 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleDeleteFile() [1/2]

bool MainServer::HandleDeleteFile ( const QStringList &  slist,
PlaybackSock pbs 
)
private

Definition at line 5522 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleDeleteFile() [2/2]

bool MainServer::HandleDeleteFile ( const QString &  filename,
const QString &  storagegroup,
PlaybackSock pbs = nullptr 
)
private

Definition at line 5527 of file mainserver.cpp.

◆ HandleQueryRecordings()

void MainServer::HandleQueryRecordings ( const QString &  type,
PlaybackSock pbs 
)
private

Definition at line 2132 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryRecording()

void MainServer::HandleQueryRecording ( QStringList &  slist,
PlaybackSock pbs 
)
private

Definition at line 2259 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleStopRecording()

void MainServer::HandleStopRecording ( QStringList &  slist,
PlaybackSock pbs 
)
private

Definition at line 2838 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ DoHandleStopRecording()

void MainServer::DoHandleStopRecording ( RecordingInfo recinfo,
PlaybackSock pbs 
)
private

Definition at line 2867 of file mainserver.cpp.

Referenced by customEvent(), DoHandleDeleteRecording(), and HandleStopRecording().

◆ HandleDeleteRecording() [1/2]

void MainServer::HandleDeleteRecording ( QString &  chanid,
QString &  starttime,
PlaybackSock pbs,
bool  forceMetadataDelete,
bool  forgetHistory 
)
private

Definition at line 2956 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleDeleteRecording() [2/2]

void MainServer::HandleDeleteRecording ( QStringList &  slist,
PlaybackSock pbs,
bool  forceMetadataDelete 
)
private

Definition at line 2984 of file mainserver.cpp.

◆ DoHandleDeleteRecording()

void MainServer::DoHandleDeleteRecording ( RecordingInfo recinfo,
PlaybackSock pbs,
bool  forceMetadataDelete,
bool  lexpirer = false,
bool  forgetHistory = false 
)
private

Definition at line 2999 of file mainserver.cpp.

Referenced by customEvent(), and HandleDeleteRecording().

◆ HandleUndeleteRecording()

void MainServer::HandleUndeleteRecording ( QStringList &  slist,
PlaybackSock pbs 
)
private

Definition at line 3145 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ DoHandleUndeleteRecording()

void MainServer::DoHandleUndeleteRecording ( RecordingInfo recinfo,
PlaybackSock pbs 
)
private

Definition at line 3163 of file mainserver.cpp.

Referenced by customEvent(), and HandleUndeleteRecording().

◆ HandleForgetRecording()

void MainServer::HandleForgetRecording ( QStringList &  slist,
PlaybackSock pbs 
)
private

Definition at line 3342 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleRescheduleRecordings()

void MainServer::HandleRescheduleRecordings ( const QStringList &  request,
PlaybackSock pbs 
)
private

This function processes the received network protocol message to reschedule recordings. It ignores the parameters supplied by the caller and always asks the scheduling system to reschedule all recordings.

The network message should look like this:

RESCHEDULE_RECORDINGS[]:[]MATCH 0 0 0 - MythUtilCommand

The five values after the 'MATCH' keyword control which recordings should be rescheduled. They are described in the BuildMatchRequest function.

See also
ScheduledRecording::BuildMatchRequest
Parameters
requestIgnored. This function doesn't parse any additional parameters.
pbsThe socket used to send the response.

Definition at line 3214 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleAddChildInput()

bool MainServer::HandleAddChildInput ( uint  inputid)
private

Definition at line 3234 of file mainserver.cpp.

Referenced by customEvent(), and ProcessRequestWork().

◆ HandleGoToSleep()

void MainServer::HandleGoToSleep ( PlaybackSock pbs)
private

Definition at line 3364 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryFreeSpace()

void MainServer::HandleQueryFreeSpace ( PlaybackSock pbs,
bool  allHosts 
)
private

Definition at line 3395 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryFreeSpaceSummary()

void MainServer::HandleQueryFreeSpaceSummary ( PlaybackSock pbs)
private

Definition at line 3427 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryCheckFile()

void MainServer::HandleQueryCheckFile ( QStringList &  slist,
PlaybackSock pbs 
)
private

Definition at line 3581 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryFileExists()

void MainServer::HandleQueryFileExists ( QStringList &  slist,
PlaybackSock pbs 
)
private

Definition at line 3699 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryFindFile()

void MainServer::HandleQueryFindFile ( QStringList &  slist,
PlaybackSock pbs 
)
private

Definition at line 3962 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryFileHash()

void MainServer::HandleQueryFileHash ( QStringList &  slist,
PlaybackSock pbs 
)
private

Definition at line 3632 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryGuideDataThrough()

void MainServer::HandleQueryGuideDataThrough ( PlaybackSock pbs)
private

Definition at line 3772 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleGetPendingRecordings()

void MainServer::HandleGetPendingRecordings ( PlaybackSock pbs,
const QString &  table = "",
int  recordid = -1 
)
private

Definition at line 3788 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleGetScheduledRecordings()

void MainServer::HandleGetScheduledRecordings ( PlaybackSock pbs)
private

Definition at line 3840 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleGetConflictingRecordings()

void MainServer::HandleGetConflictingRecordings ( QStringList &  slist,
PlaybackSock pbs 
)
private

Definition at line 3854 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleGetExpiringRecordings()

void MainServer::HandleGetExpiringRecordings ( PlaybackSock pbs)
private

Definition at line 3872 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSGGetFileList()

void MainServer::HandleSGGetFileList ( QStringList &  sList,
PlaybackSock pbs 
)
private

Definition at line 3886 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSGFileQuery()

void MainServer::HandleSGFileQuery ( QStringList &  sList,
PlaybackSock pbs 
)
private

Definition at line 4171 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleGetFreeInputInfo()

void MainServer::HandleGetFreeInputInfo ( PlaybackSock pbs,
uint  excluded_input 
)
private

Definition at line 4365 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleGetNextFreeRecorder()

void MainServer::HandleGetNextFreeRecorder ( QStringList &  slist,
PlaybackSock pbs 
)
private

◆ HandleGetFreeRecorder()

void MainServer::HandleGetFreeRecorder ( PlaybackSock pbs)
private

◆ HandleGetFreeRecorderCount()

void MainServer::HandleGetFreeRecorderCount ( PlaybackSock pbs)
private

◆ HandleGetFreeRecorderList()

void MainServer::HandleGetFreeRecorderList ( PlaybackSock pbs)
private

◆ HandleGetConnectedRecorderList()

void MainServer::HandleGetConnectedRecorderList ( PlaybackSock pbs)
private

◆ HandleRecorderQuery()

void MainServer::HandleRecorderQuery ( QStringList &  slist,
QStringList &  commands,
PlaybackSock pbs 
)
private

Definition at line 4485 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSetNextLiveTVDir()

void MainServer::HandleSetNextLiveTVDir ( QStringList &  commands,
PlaybackSock pbs 
)
private

Definition at line 4862 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleFileTransferQuery()

void MainServer::HandleFileTransferQuery ( QStringList &  slist,
QStringList &  commands,
PlaybackSock pbs 
)
private

Definition at line 7047 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleGetRecorderNum()

void MainServer::HandleGetRecorderNum ( QStringList &  slist,
PlaybackSock pbs 
)
private

Definition at line 7144 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleGetRecorderFromNum()

void MainServer::HandleGetRecorderFromNum ( QStringList &  slist,
PlaybackSock pbs 
)
private

Definition at line 7192 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMessage()

void MainServer::HandleMessage ( QStringList &  slist,
PlaybackSock pbs 
)
private

Definition at line 7229 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSetVerbose()

void MainServer::HandleSetVerbose ( const QStringList &  slist,
PlaybackSock pbs 
)
private

Definition at line 7257 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSetLogLevel()

void MainServer::HandleSetLogLevel ( const QStringList &  slist,
PlaybackSock pbs 
)
private

Definition at line 7284 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleGenPreviewPixmap()

void MainServer::HandleGenPreviewPixmap ( QStringList &  slist,
PlaybackSock pbs 
)
private

Definition at line 7346 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandlePixmapLastModified()

void MainServer::HandlePixmapLastModified ( QStringList &  slist,
PlaybackSock pbs 
)
private

Definition at line 7510 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandlePixmapGetIfModified()

void MainServer::HandlePixmapGetIfModified ( const QStringList &  slist,
PlaybackSock pbs 
)
private

Definition at line 7574 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleIsRecording()

void MainServer::HandleIsRecording ( const QStringList &  slist,
PlaybackSock pbs 
)
private

Definition at line 7317 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleCheckRecordingActive()

void MainServer::HandleCheckRecordingActive ( QStringList &  slist,
PlaybackSock pbs 
)
private

Definition at line 2799 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleFillProgramInfo()

void MainServer::HandleFillProgramInfo ( QStringList &  slist,
PlaybackSock pbs 
)
private

Definition at line 2304 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSetChannelInfo()

void MainServer::HandleSetChannelInfo ( QStringList &  slist,
PlaybackSock pbs 
)
private

Definition at line 4889 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleRemoteEncoder()

void MainServer::HandleRemoteEncoder ( QStringList &  slist,
QStringList &  commands,
PlaybackSock pbs 
)
private

Definition at line 4924 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleLockTuner()

void MainServer::HandleLockTuner ( PlaybackSock pbs,
int  cardid = -1 
)
private

Definition at line 4244 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleFreeTuner()

void MainServer::HandleFreeTuner ( int  cardid,
PlaybackSock pbs 
)
private

Definition at line 4325 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleCutMapQuery()

void MainServer::HandleCutMapQuery ( const QString &  chanid,
const QString &  starttime,
PlaybackSock pbs,
bool  commbreak 
)
private

Definition at line 5605 of file mainserver.cpp.

Referenced by HandleCommBreakQuery(), and HandleCutlistQuery().

◆ HandleCommBreakQuery()

void MainServer::HandleCommBreakQuery ( const QString &  chanid,
const QString &  starttime,
PlaybackSock pbs 
)
private

Definition at line 5646 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleCutlistQuery()

void MainServer::HandleCutlistQuery ( const QString &  chanid,
const QString &  starttime,
PlaybackSock pbs 
)
private

Definition at line 5661 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleBookmarkQuery()

void MainServer::HandleBookmarkQuery ( const QString &  chanid,
const QString &  starttime,
PlaybackSock pbs 
)
private

Definition at line 5677 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSetBookmark()

void MainServer::HandleSetBookmark ( QStringList &  tokens,
PlaybackSock pbs 
)
private

Definition at line 5703 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSettingQuery()

void MainServer::HandleSettingQuery ( const QStringList &  tokens,
PlaybackSock pbs 
)
private

Definition at line 5738 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSetSetting()

void MainServer::HandleSetSetting ( const QStringList &  tokens,
PlaybackSock pbs 
)
private

Definition at line 5832 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleScanVideos()

void MainServer::HandleScanVideos ( PlaybackSock pbs)
private

Definition at line 5854 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleScanMusic()

void MainServer::HandleScanMusic ( const QStringList &  slist,
PlaybackSock pbs 
)
private

Definition at line 5874 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicTagUpdateVolatile()

void MainServer::HandleMusicTagUpdateVolatile ( const QStringList &  slist,
PlaybackSock pbs 
)
private

Definition at line 5943 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicTagUpdateMetadata()

void MainServer::HandleMusicTagUpdateMetadata ( const QStringList &  slist,
PlaybackSock pbs 
)
private

Definition at line 6060 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicFindAlbumArt()

void MainServer::HandleMusicFindAlbumArt ( const QStringList &  slist,
PlaybackSock pbs 
)
private

Definition at line 6147 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicTagGetImage()

void MainServer::HandleMusicTagGetImage ( const QStringList &  slist,
PlaybackSock pbs 
)
private

Definition at line 6299 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicTagAddImage()

void MainServer::HandleMusicTagAddImage ( const QStringList &  slist,
PlaybackSock pbs 
)
private

Definition at line 6520 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicTagRemoveImage()

void MainServer::HandleMusicTagRemoveImage ( const QStringList &  slist,
PlaybackSock pbs 
)
private

Definition at line 6675 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicTagChangeImage()

void MainServer::HandleMusicTagChangeImage ( const QStringList &  slist,
PlaybackSock pbs 
)
private

Definition at line 6353 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicCalcTrackLen()

void MainServer::HandleMusicCalcTrackLen ( const QStringList &  slist,
PlaybackSock pbs 
)
private

Definition at line 6003 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicFindLyrics()

void MainServer::HandleMusicFindLyrics ( const QStringList &  slist,
PlaybackSock pbs 
)
private

Definition at line 6801 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicGetLyricGrabbers()

void MainServer::HandleMusicGetLyricGrabbers ( const QStringList &  slist,
PlaybackSock pbs 
)
private

This function processes the received network protocol message to get the names of all scripts the grab music lyrics. It will check for the existence of the script directory and of scripts. All scripts found are parsed for version numbers. The names and version numbers of all found scripts are returned to the caller.

Parameters
slistIgnored. This function doesn't parse any additional parameters.
pbsThe socket used to send the response.

Definition at line 6893 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicSaveLyrics()

void MainServer::HandleMusicSaveLyrics ( const QStringList &  slist,
PlaybackSock pbs 
)
private

Definition at line 6975 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleVersion()

void MainServer::HandleVersion ( MythSocket socket,
const QStringList &  slist 
)
private

Definition at line 1644 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleBackendRefresh()

void MainServer::HandleBackendRefresh ( MythSocket socket)
private

Definition at line 7713 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryLoad()

void MainServer::HandleQueryLoad ( PlaybackSock pbs)
private

Definition at line 3470 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryUptime()

void MainServer::HandleQueryUptime ( PlaybackSock pbs)
private

Definition at line 3501 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryHostname()

void MainServer::HandleQueryHostname ( PlaybackSock pbs)
private

Definition at line 3523 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryMemStats()

void MainServer::HandleQueryMemStats ( PlaybackSock pbs)
private

Definition at line 3538 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryTimeZone()

void MainServer::HandleQueryTimeZone ( PlaybackSock pbs)
private

Definition at line 3566 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleBlockShutdown()

void MainServer::HandleBlockShutdown ( bool  blockShutdown,
PlaybackSock pbs 
)
private

Definition at line 7719 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleDownloadFile()

void MainServer::HandleDownloadFile ( const QStringList &  command,
PlaybackSock pbs 
)
private

Definition at line 5758 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSlaveDisconnectedEvent()

void MainServer::HandleSlaveDisconnectedEvent ( const MythEvent event)
private

Definition at line 8287 of file mainserver.cpp.

Referenced by customEvent().

◆ SendResponse()

void MainServer::SendResponse ( MythSocket sock,
QStringList &  commands 
)
private

Definition at line 2094 of file mainserver.cpp.

Referenced by DoHandleDeleteRecording(), DoHandleStopRecording(), DoHandleUndeleteRecording(), HandleActiveBackendsQuery(), HandleBackendRefresh(), HandleBlockShutdown(), HandleBookmarkQuery(), HandleCheckRecordingActive(), HandleCutMapQuery(), HandleDeleteFile(), HandleDeleteRecording(), HandleDownloadFile(), HandleFileTransferQuery(), HandleFillProgramInfo(), HandleForgetRecording(), HandleFreeTuner(), HandleGenPreviewPixmap(), HandleGetConflictingRecordings(), HandleGetExpiringRecordings(), HandleGetFreeInputInfo(), HandleGetPendingRecordings(), HandleGetRecorderFromNum(), HandleGetRecorderNum(), HandleGetScheduledRecordings(), HandleGoToSleep(), HandleIsActiveBackendQuery(), HandleIsRecording(), HandleLockTuner(), HandleMessage(), HandleMoveFile(), HandleMusicCalcTrackLen(), HandleMusicFindAlbumArt(), HandleMusicFindLyrics(), HandleMusicGetLyricGrabbers(), HandleMusicSaveLyrics(), HandleMusicTagAddImage(), HandleMusicTagChangeImage(), HandleMusicTagGetImage(), HandleMusicTagRemoveImage(), HandleMusicTagUpdateMetadata(), HandleMusicTagUpdateVolatile(), HandlePixmapGetIfModified(), HandlePixmapLastModified(), HandleQueryCheckFile(), HandleQueryFileExists(), HandleQueryFileHash(), HandleQueryFindFile(), HandleQueryFreeSpace(), HandleQueryFreeSpaceSummary(), HandleQueryGuideDataThrough(), HandleQueryHostname(), HandleQueryLoad(), HandleQueryMemStats(), HandleQueryRecording(), HandleQueryRecordings(), HandleQueryTimeZone(), HandleQueryUptime(), HandleRecorderQuery(), HandleRemoteEncoder(), HandleRescheduleRecordings(), HandleScanMusic(), HandleScanVideos(), HandleSetBookmark(), HandleSetChannelInfo(), HandleSetLogLevel(), HandleSetNextLiveTVDir(), HandleSetSetting(), HandleSettingQuery(), HandleSetVerbose(), HandleSGFileQuery(), HandleSGGetFileList(), ProcessRequestWork(), RenameThread::run(), and SendErrorResponse().

◆ SendErrorResponse() [1/2]

void MainServer::SendErrorResponse ( MythSocket sock,
const QString &  error 
)
private

Definition at line 2084 of file mainserver.cpp.

Referenced by ProcessRequestWork(), and SendErrorResponse().

◆ SendErrorResponse() [2/2]

void MainServer::SendErrorResponse ( PlaybackSock pbs,
const QString &  error 
)
private

Definition at line 2079 of file mainserver.cpp.

◆ SendSlaveDisconnectedEvent()

void MainServer::SendSlaveDisconnectedEvent ( const QList< uint > &  offlineEncoderIDs,
bool  needsReschedule 
)
staticprivate

Definition at line 8300 of file mainserver.cpp.

Referenced by connectionClosed().

◆ getGuideDataThrough()

void MainServer::getGuideDataThrough ( QDateTime &  GuideDataThrough)
staticprivate

Definition at line 3761 of file mainserver.cpp.

Referenced by HandleQueryGuideDataThrough().

◆ GetSlaveByHostname()

PlaybackSock * MainServer::GetSlaveByHostname ( const QString &  hostname)
private

◆ GetPlaybackBySock()

PlaybackSock * MainServer::GetPlaybackBySock ( MythSocket socket)
private

Warning you must hold a sockListLock lock before calling this.

Definition at line 7972 of file mainserver.cpp.

Referenced by connectionClosed(), ProcessRequestWork(), and SendResponse().

◆ GetFileTransferByID()

BEFileTransfer * MainServer::GetFileTransferByID ( int  id)
private

Warning you must hold a sockListLock lock before calling this.

Definition at line 7981 of file mainserver.cpp.

Referenced by HandleFileTransferQuery().

◆ GetFileTransferBySock()

BEFileTransfer * MainServer::GetFileTransferBySock ( MythSocket socket)
private

Warning you must hold a sockListLock lock before calling this.

Definition at line 7990 of file mainserver.cpp.

Referenced by SendResponse().

◆ LocalFilePath()

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

Definition at line 8062 of file mainserver.cpp.

Referenced by HandleAnnounce().

◆ GetfsID()

int MainServer::GetfsID ( const QList< FileSystemInfo >::iterator &  fsInfo)
private

Definition at line 5089 of file mainserver.cpp.

Referenced by BackendQueryDiskSpace().

◆ DoTruncateThread()

void MainServer::DoTruncateThread ( DeleteStruct ds)
private

Definition at line 5509 of file mainserver.cpp.

Referenced by TruncateThread::run().

◆ DoDeleteThread()

void MainServer::DoDeleteThread ( DeleteStruct ds)
private

Definition at line 2343 of file mainserver.cpp.

◆ DeleteRecordedFiles()

void MainServer::DeleteRecordedFiles ( DeleteStruct ds)
staticprivate

Definition at line 2490 of file mainserver.cpp.

Referenced by DoDeleteThread().

◆ DoDeleteInDB()

void MainServer::DoDeleteInDB ( DeleteStruct ds)
staticprivate

Definition at line 2562 of file mainserver.cpp.

Referenced by DoDeleteThread().

◆ GetExistingChain() [1/2]

LiveTVChain * MainServer::GetExistingChain ( const QString &  id)
private

Definition at line 7998 of file mainserver.cpp.

Referenced by connectionClosed(), customEvent(), and HandleRecorderQuery().

◆ GetExistingChain() [2/2]

LiveTVChain * MainServer::GetExistingChain ( MythSocket sock)
private

Definition at line 8008 of file mainserver.cpp.

◆ GetChainWithRecording()

LiveTVChain * MainServer::GetChainWithRecording ( const ProgramInfo pginfo)
private

Definition at line 8018 of file mainserver.cpp.

Referenced by DoDeleteThread().

◆ AddToChains()

void MainServer::AddToChains ( LiveTVChain chain)
private

Definition at line 8028 of file mainserver.cpp.

Referenced by HandleRecorderQuery().

◆ DeleteChain()

void MainServer::DeleteChain ( LiveTVChain chain)
private

Definition at line 8036 of file mainserver.cpp.

Referenced by connectionClosed(), customEvent(), and HandleRecorderQuery().

◆ SetExitCode()

void MainServer::SetExitCode ( int  exitCode,
bool  closeApplication 
)
private

Definition at line 8055 of file mainserver.cpp.

Referenced by MainServer().

◆ DeleteFile()

int MainServer::DeleteFile ( const QString &  filename,
bool  followLinks,
bool  deleteBrokenSymlinks = false 
)
staticprivate

Deletes links and unlinks the main file and returns the descriptor.

This is meant to be used with TruncateAndClose() to slowly shrink a large file and then eventually delete the file by closing the file descriptor.

Returns
fd for success, -1 for error, -2 for only a symlink deleted.

Definition at line 2628 of file mainserver.cpp.

Referenced by DoDeleteThread(), and HandleDeleteFile().

◆ OpenAndUnlink()

int MainServer::OpenAndUnlink ( const QString &  filename)
staticprivate

Opens a file, unlinks it and returns the file descriptor.

This is used by DeleteFile(const QString&,bool) to delete recordings. In order to actually delete the file from the filesystem the user of this function must close the return file descriptor.

Returns
fd for success, negative number for error.

Definition at line 2685 of file mainserver.cpp.

Referenced by DeleteFile().

◆ TruncateAndClose()

bool MainServer::TruncateAndClose ( ProgramInfo pginfo,
int  fd,
const QString &  filename,
off_t  fsize 
)
staticprivate

Repeatedly truncate an open file in small increments.

When the file is small enough this closes the file and returns.

NOTE: This acquires a lock so that only one instance of TruncateAndClose() is running at a time.

Definition at line 2726 of file mainserver.cpp.

Referenced by DoDeleteThread(), and DoTruncateThread().

Friends And Related Function Documentation

◆ DeleteThread

friend class DeleteThread
friend

Definition at line 119 of file mainserver.h.

Referenced by DoHandleDeleteRecording().

◆ TruncateThread

friend class TruncateThread
friend

Definition at line 120 of file mainserver.h.

Referenced by HandleDeleteFile().

◆ FreeSpaceUpdater

friend class FreeSpaceUpdater
friend

Definition at line 121 of file mainserver.h.

Referenced by HandleQueryFreeSpace(), HandleQueryFreeSpaceSummary(), and MainServer().

◆ RenameThread

friend class RenameThread
friend

Definition at line 122 of file mainserver.h.

Referenced by HandleMoveFile().

Member Data Documentation

◆ m_liveTVChains

std::vector<LiveTVChain*> MainServer::m_liveTVChains
private

Definition at line 310 of file mainserver.h.

Referenced by AddToChains(), DeleteChain(), GetChainWithRecording(), and GetExistingChain().

◆ m_liveTVChainsLock

QMutex MainServer::m_liveTVChainsLock
private

Definition at line 311 of file mainserver.h.

Referenced by AddToChains(), DeleteChain(), GetChainWithRecording(), and GetExistingChain().

◆ m_encoderList

QMap<int, EncoderLink *>* MainServer::m_encoderList {nullptr}
private

◆ m_mythserver

MythServer* MainServer::m_mythserver {nullptr}
private

Definition at line 315 of file mainserver.h.

Referenced by MainServer(), and Stop().

◆ m_metadatafactory

MetadataFactory* MainServer::m_metadatafactory {nullptr}
private

Definition at line 316 of file mainserver.h.

Referenced by HandleScanVideos(), and MainServer().

◆ m_sockListLock

QReadWriteLock MainServer::m_sockListLock
private

◆ m_playbackList

std::vector<PlaybackSock *> MainServer::m_playbackList
private

◆ m_fileTransferList

std::vector<BEFileTransfer *> MainServer::m_fileTransferList
private

◆ m_controlSocketList

QSet<MythSocket*> MainServer::m_controlSocketList
private

◆ m_decrRefSocketList

std::vector<MythSocket*> MainServer::m_decrRefSocketList
private

Definition at line 322 of file mainserver.h.

Referenced by connectionClosed(), customEvent(), and Stop().

◆ m_masterFreeSpaceListLock

QMutex MainServer::m_masterFreeSpaceListLock
private

◆ m_masterFreeSpaceListUpdater

FreeSpaceUpdater* volatile MainServer::m_masterFreeSpaceListUpdater {nullptr}
private

◆ m_masterFreeSpaceListWait

QWaitCondition MainServer::m_masterFreeSpaceListWait
private

◆ m_masterFreeSpaceList

QStringList MainServer::m_masterFreeSpaceList
private

◆ m_masterServerReconnect

QTimer* MainServer::m_masterServerReconnect {nullptr}
private

Definition at line 329 of file mainserver.h.

Referenced by customEvent(), MainServer(), and reconnectTimeout().

◆ m_masterServer

PlaybackSock* MainServer::m_masterServer {nullptr}
private

Definition at line 330 of file mainserver.h.

Referenced by connectionClosed(), and reconnectTimeout().

◆ m_ismaster

bool MainServer::m_ismaster
private

◆ m_deletelock

QMutex MainServer::m_deletelock
private

Definition at line 334 of file mainserver.h.

Referenced by DoDeleteThread(), and DoTruncateThread().

◆ m_threadPool

MThreadPool MainServer::m_threadPool
private

Definition at line 335 of file mainserver.h.

Referenced by MainServer(), readyRead(), and Stop().

◆ m_masterBackendOverride

bool MainServer::m_masterBackendOverride {false}
private

◆ m_sched

Scheduler* MainServer::m_sched {nullptr}
private

◆ m_expirer

AutoExpire* MainServer::m_expirer {nullptr}
private

Definition at line 340 of file mainserver.h.

Referenced by HandleGetExpiringRecordings(), and Stop().

◆ m_addChildInputLock

QMutex MainServer::m_addChildInputLock
private

Definition at line 341 of file mainserver.h.

Referenced by HandleAddChildInput().

◆ m_deferredDeleteLock

QMutex MainServer::m_deferredDeleteLock
private

Definition at line 349 of file mainserver.h.

Referenced by deferredDeleteSlot(), and DeletePBS().

◆ m_deferredDeleteTimer

QTimer* MainServer::m_deferredDeleteTimer {nullptr}
private

Definition at line 350 of file mainserver.h.

Referenced by MainServer().

◆ m_deferredDeleteList

MythDeque<DeferredDeleteStruct> MainServer::m_deferredDeleteList
private

Definition at line 351 of file mainserver.h.

Referenced by deferredDeleteSlot(), and DeletePBS().

◆ m_autoexpireUpdateTimer

QTimer* MainServer::m_autoexpireUpdateTimer {nullptr}
private

Definition at line 353 of file mainserver.h.

Referenced by HandleAnnounce(), MainServer(), and reconnectTimeout().

◆ s_truncate_and_close_lock

QMutex MainServer::s_truncate_and_close_lock
staticprivate

Definition at line 354 of file mainserver.h.

Referenced by TruncateAndClose().

◆ m_fsIDcache

QMap<QString, int> MainServer::m_fsIDcache
private

Definition at line 356 of file mainserver.h.

Referenced by GetfsID().

◆ m_fsIDcacheLock

QMutex MainServer::m_fsIDcacheLock
private

Definition at line 357 of file mainserver.h.

Referenced by GetfsID().

◆ m_fsInfosCache

QList<FileSystemInfo> MainServer::m_fsInfosCache
private

Definition at line 358 of file mainserver.h.

Referenced by GetFilesystemInfos().

◆ m_fsInfosCacheLock

QMutex MainServer::m_fsInfosCacheLock
private

Definition at line 359 of file mainserver.h.

Referenced by GetFilesystemInfos().

◆ m_downloadURLsLock

QMutex MainServer::m_downloadURLsLock
private

Definition at line 361 of file mainserver.h.

Referenced by customEvent(), and HandleDownloadFile().

◆ m_downloadURLs

QMap<QString, QString> MainServer::m_downloadURLs
private

Definition at line 362 of file mainserver.h.

Referenced by customEvent(), and HandleDownloadFile().

◆ m_exitCode

int MainServer::m_exitCode {GENERIC_EXIT_OK}
private

Definition at line 364 of file mainserver.h.

Referenced by GetExitCode(), and SetExitCode().

◆ m_previewRequestedBy

RequestedBy MainServer::m_previewRequestedBy
private

Definition at line 367 of file mainserver.h.

Referenced by customEvent(), and HandleGenPreviewPixmap().

◆ m_stopped

bool MainServer::m_stopped {false}
private

Definition at line 369 of file mainserver.h.

Referenced by connectionClosed(), Stop(), and ~MainServer().

◆ kMasterServerReconnectTimeout

const std::chrono::milliseconds MainServer::kMasterServerReconnectTimeout { 1s }
staticprivate

Definition at line 371 of file mainserver.h.

Referenced by customEvent(), MainServer(), and reconnectTimeout().


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