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 <mainserver.h>

Inheritance diagram for MainServer:
Inheritance graph
[legend]
Collaboration diagram for MainServer:
Collaboration graph
[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 (MythSocket *socket) override
 
void connected (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)
 
- Public Member Functions inherited from MythSocketCBs
virtual ~MythSocketCBs ()=default
 
virtual void error (MythSocket *, int)
 

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 GetActiveBackends (QStringList &hosts)
 
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)
 
PlaybackSockGetMediaServerByHostname (const QString &hostname)
 
PlaybackSockGetPlaybackBySock (MythSocket *socket)
 Warning you must hold a sockListLock lock before calling this. More...
 
FileTransferGetFileTransferByID (int id)
 Warning you must hold a sockListLock lock before calling this. More...
 
FileTransferGetFileTransferBySock (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

vector< LiveTVChain * > m_liveTVChains
 
QMutex m_liveTVChainsLock
 
QMap< int, EncoderLink * > * m_encoderList {nullptr}
 
MythServerm_mythserver {nullptr}
 
MetadataFactorym_metadatafactory {nullptr}
 
QReadWriteLock m_sockListLock
 
vector< PlaybackSock * > m_playbackList
 
vector< FileTransfer * > m_fileTransferList
 
QSet< MythSocket * > m_controlSocketList
 
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 113 of file mainserver.h.

Member Typedef Documentation

◆ RequestedBy

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

Definition at line 367 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 236 of file mainserver.cpp.

◆ ~MainServer()

MainServer::~MainServer ( )
override

Definition at line 350 of file mainserver.cpp.

Member Function Documentation

◆ Stop()

void MainServer::Stop ( void  )

Definition at line 356 of file mainserver.cpp.

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

◆ customEvent()

void MainServer::customEvent ( QEvent *  e)
override

Definition at line 1110 of file mainserver.cpp.

◆ isClientConnected()

bool MainServer::isClientConnected ( bool  onlyBlockingClients = false)

Definition at line 8262 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 8291 of file mainserver.cpp.

Referenced by Scheduler::ShutdownServer().

◆ ProcessRequest()

void MainServer::ProcessRequest ( MythSocket sock)

Definition at line 450 of file mainserver.cpp.

◆ readyRead()

void MainServer::readyRead ( MythSocket socket)
overridevirtual

Implements MythSocketCBs.

Definition at line 441 of file mainserver.cpp.

◆ connectionClosed()

void MainServer::connectionClosed ( MythSocket socket)
overridevirtual

Implements MythSocketCBs.

Definition at line 7781 of file mainserver.cpp.

◆ connectionFailed()

void MainServer::connectionFailed ( MythSocket socket)
inlineoverridevirtual

Implements MythSocketCBs.

Definition at line 139 of file mainserver.h.

◆ connected()

void MainServer::connected ( MythSocket socket)
inlineoverridevirtual

Implements MythSocketCBs.

Definition at line 141 of file mainserver.h.

◆ DeletePBS()

void MainServer::DeletePBS ( PlaybackSock sock)

Definition at line 7769 of file mainserver.cpp.

◆ GetCurrentMaxBitrate()

size_t MainServer::GetCurrentMaxBitrate ( void  )

Definition at line 5124 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 8338 of file mainserver.cpp.

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

◆ reconnectTimeout

void MainServer::reconnectTimeout ( void  )
protectedslot

Definition at line 8178 of file mainserver.cpp.

Referenced by MainServer().

◆ deferredDeleteSlot

void MainServer::deferredDeleteSlot ( void  )
protectedslot

Definition at line 7751 of file mainserver.cpp.

Referenced by MainServer().

◆ autoexpireUpdate

void MainServer::autoexpireUpdate ( void  )
staticprotectedslot

Definition at line 426 of file mainserver.cpp.

Referenced by MainServer().

◆ NewConnection

void MainServer::NewConnection ( qintptr  socketDescriptor)
privateslot

Definition at line 431 of file mainserver.cpp.

Referenced by MainServer().

◆ ProcessRequestWork()

void MainServer::ProcessRequestWork ( MythSocket sock)
private

Definition at line 459 of file mainserver.cpp.

Referenced by ProcessRequest().

◆ HandleAnnounce()

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

Definition at line 1745 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleDone()

void MainServer::HandleDone ( MythSocket socket)
private

Definition at line 2109 of file mainserver.cpp.

Referenced by HandleVersion(), and ProcessRequestWork().

◆ GetActiveBackends()

void MainServer::GetActiveBackends ( QStringList &  hosts)
private

Definition at line 5065 of file mainserver.cpp.

Referenced by HandleActiveBackendsQuery(), and HandleScanVideos().

◆ HandleActiveBackendsQuery()

void MainServer::HandleActiveBackendsQuery ( PlaybackSock pbs)
private

Definition at line 5083 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleIsActiveBackendQuery()

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

Definition at line 5091 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 5454 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleDeleteFile() [1/2]

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

Definition at line 5547 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 5552 of file mainserver.cpp.

◆ HandleQueryRecordings()

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

Definition at line 2168 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryRecording()

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

Definition at line 2295 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleStopRecording()

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

Definition at line 2864 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ DoHandleStopRecording()

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

Definition at line 2893 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 2982 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleDeleteRecording() [2/2]

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

Definition at line 3010 of file mainserver.cpp.

◆ DoHandleDeleteRecording()

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

Definition at line 3025 of file mainserver.cpp.

Referenced by customEvent(), and HandleDeleteRecording().

◆ HandleUndeleteRecording()

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

Definition at line 3171 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ DoHandleUndeleteRecording()

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

Definition at line 3189 of file mainserver.cpp.

Referenced by customEvent(), and HandleUndeleteRecording().

◆ HandleForgetRecording()

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

Definition at line 3368 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 3240 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleAddChildInput()

bool MainServer::HandleAddChildInput ( uint  inputid)
private

Definition at line 3260 of file mainserver.cpp.

Referenced by customEvent(), and ProcessRequestWork().

◆ HandleGoToSleep()

void MainServer::HandleGoToSleep ( PlaybackSock pbs)
private

Definition at line 3390 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryFreeSpace()

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

Definition at line 3421 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryFreeSpaceSummary()

void MainServer::HandleQueryFreeSpaceSummary ( PlaybackSock pbs)
private

Definition at line 3453 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryCheckFile()

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

Definition at line 3607 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryFileExists()

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

Definition at line 3725 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryFindFile()

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

Definition at line 3988 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryFileHash()

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

Definition at line 3658 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryGuideDataThrough()

void MainServer::HandleQueryGuideDataThrough ( PlaybackSock pbs)
private

Definition at line 3798 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleGetPendingRecordings()

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

Definition at line 3814 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleGetScheduledRecordings()

void MainServer::HandleGetScheduledRecordings ( PlaybackSock pbs)
private

Definition at line 3866 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleGetConflictingRecordings()

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

Definition at line 3880 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleGetExpiringRecordings()

void MainServer::HandleGetExpiringRecordings ( PlaybackSock pbs)
private

Definition at line 3898 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSGGetFileList()

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

Definition at line 3912 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSGFileQuery()

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

Definition at line 4197 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleGetFreeInputInfo()

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

Definition at line 4391 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 4511 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSetNextLiveTVDir()

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

Definition at line 4888 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleFileTransferQuery()

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

Definition at line 7069 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleGetRecorderNum()

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

Definition at line 7166 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleGetRecorderFromNum()

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

Definition at line 7214 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMessage()

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

Definition at line 7251 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSetVerbose()

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

Definition at line 7279 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSetLogLevel()

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

Definition at line 7306 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleGenPreviewPixmap()

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

Definition at line 7369 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandlePixmapLastModified()

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

Definition at line 7533 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandlePixmapGetIfModified()

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

Definition at line 7597 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleIsRecording()

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

Definition at line 7339 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleCheckRecordingActive()

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

Definition at line 2825 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleFillProgramInfo()

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

Definition at line 2340 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSetChannelInfo()

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

Definition at line 4915 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleRemoteEncoder()

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

Definition at line 4950 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleLockTuner()

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

Definition at line 4270 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleFreeTuner()

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

Definition at line 4351 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 5627 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 5668 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleCutlistQuery()

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

Definition at line 5683 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleBookmarkQuery()

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

Definition at line 5699 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSetBookmark()

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

Definition at line 5725 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSettingQuery()

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

Definition at line 5760 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSetSetting()

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

Definition at line 5854 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleScanVideos()

void MainServer::HandleScanVideos ( PlaybackSock pbs)
private

Definition at line 5876 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleScanMusic()

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

Definition at line 5896 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicTagUpdateVolatile()

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

Definition at line 5965 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicTagUpdateMetadata()

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

Definition at line 6082 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicFindAlbumArt()

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

Definition at line 6169 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicTagGetImage()

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

Definition at line 6321 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicTagAddImage()

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

Definition at line 6542 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicTagRemoveImage()

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

Definition at line 6697 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicTagChangeImage()

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

Definition at line 6375 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicCalcTrackLen()

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

Definition at line 6025 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicFindLyrics()

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

Definition at line 6823 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 6915 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicSaveLyrics()

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

Definition at line 6997 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleVersion()

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

Definition at line 1680 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleBackendRefresh()

void MainServer::HandleBackendRefresh ( MythSocket socket)
private

Definition at line 7736 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryLoad()

void MainServer::HandleQueryLoad ( PlaybackSock pbs)
private

Definition at line 3496 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryUptime()

void MainServer::HandleQueryUptime ( PlaybackSock pbs)
private

Definition at line 3527 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryHostname()

void MainServer::HandleQueryHostname ( PlaybackSock pbs)
private

Definition at line 3549 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryMemStats()

void MainServer::HandleQueryMemStats ( PlaybackSock pbs)
private

Definition at line 3564 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryTimeZone()

void MainServer::HandleQueryTimeZone ( PlaybackSock pbs)
private

Definition at line 3592 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleBlockShutdown()

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

Definition at line 7742 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleDownloadFile()

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

Definition at line 5780 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSlaveDisconnectedEvent()

void MainServer::HandleSlaveDisconnectedEvent ( const MythEvent event)
private

Definition at line 8310 of file mainserver.cpp.

Referenced by customEvent().

◆ SendResponse()

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

Definition at line 2130 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 2120 of file mainserver.cpp.

Referenced by ProcessRequestWork(), and SendErrorResponse().

◆ SendErrorResponse() [2/2]

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

Definition at line 2115 of file mainserver.cpp.

◆ SendSlaveDisconnectedEvent()

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

Definition at line 8323 of file mainserver.cpp.

Referenced by connectionClosed().

◆ getGuideDataThrough()

void MainServer::getGuideDataThrough ( QDateTime &  GuideDataThrough)
staticprivate

Definition at line 3787 of file mainserver.cpp.

Referenced by HandleQueryGuideDataThrough().

◆ GetSlaveByHostname()

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

◆ GetMediaServerByHostname()

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

◆ GetPlaybackBySock()

PlaybackSock * MainServer::GetPlaybackBySock ( MythSocket socket)
private

Warning you must hold a sockListLock lock before calling this.

Definition at line 7995 of file mainserver.cpp.

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

◆ GetFileTransferByID()

FileTransfer * MainServer::GetFileTransferByID ( int  id)
private

Warning you must hold a sockListLock lock before calling this.

Definition at line 8004 of file mainserver.cpp.

Referenced by HandleFileTransferQuery().

◆ GetFileTransferBySock()

FileTransfer * MainServer::GetFileTransferBySock ( MythSocket socket)
private

Warning you must hold a sockListLock lock before calling this.

Definition at line 8013 of file mainserver.cpp.

Referenced by SendResponse().

◆ LocalFilePath()

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

Definition at line 8085 of file mainserver.cpp.

Referenced by HandleAnnounce().

◆ GetfsID()

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

Definition at line 5114 of file mainserver.cpp.

Referenced by BackendQueryDiskSpace().

◆ DoTruncateThread()

void MainServer::DoTruncateThread ( DeleteStruct ds)
private

Definition at line 5534 of file mainserver.cpp.

Referenced by TruncateThread::run().

◆ DoDeleteThread()

void MainServer::DoDeleteThread ( DeleteStruct ds)
private

Definition at line 2379 of file mainserver.cpp.

◆ DeleteRecordedFiles()

void MainServer::DeleteRecordedFiles ( DeleteStruct ds)
staticprivate

Definition at line 2527 of file mainserver.cpp.

Referenced by DoDeleteThread().

◆ DoDeleteInDB()

void MainServer::DoDeleteInDB ( DeleteStruct ds)
staticprivate

Definition at line 2599 of file mainserver.cpp.

Referenced by DoDeleteThread().

◆ GetExistingChain() [1/2]

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

Definition at line 8021 of file mainserver.cpp.

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

◆ GetExistingChain() [2/2]

LiveTVChain * MainServer::GetExistingChain ( MythSocket sock)
private

Definition at line 8031 of file mainserver.cpp.

◆ GetChainWithRecording()

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

Definition at line 8041 of file mainserver.cpp.

Referenced by DoDeleteThread().

◆ AddToChains()

void MainServer::AddToChains ( LiveTVChain chain)
private

Definition at line 8051 of file mainserver.cpp.

Referenced by HandleRecorderQuery().

◆ DeleteChain()

void MainServer::DeleteChain ( LiveTVChain chain)
private

Definition at line 8059 of file mainserver.cpp.

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

◆ SetExitCode()

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

Definition at line 8078 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 2665 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 2722 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 2752 of file mainserver.cpp.

Referenced by DoDeleteThread(), and DoTruncateThread().

Friends And Related Function Documentation

◆ DeleteThread

friend class DeleteThread
friend

Definition at line 117 of file mainserver.h.

Referenced by DoHandleDeleteRecording().

◆ TruncateThread

friend class TruncateThread
friend

Definition at line 118 of file mainserver.h.

Referenced by HandleDeleteFile().

◆ FreeSpaceUpdater

friend class FreeSpaceUpdater
friend

Definition at line 119 of file mainserver.h.

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

◆ RenameThread

friend class RenameThread
friend

Definition at line 120 of file mainserver.h.

Referenced by HandleMoveFile().

Member Data Documentation

◆ m_liveTVChains

vector<LiveTVChain*> MainServer::m_liveTVChains
private

Definition at line 311 of file mainserver.h.

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

◆ m_liveTVChainsLock

QMutex MainServer::m_liveTVChainsLock
private

Definition at line 312 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 316 of file mainserver.h.

Referenced by MainServer(), and Stop().

◆ m_metadatafactory

MetadataFactory* MainServer::m_metadatafactory {nullptr}
private

Definition at line 317 of file mainserver.h.

Referenced by HandleScanVideos(), and MainServer().

◆ m_sockListLock

QReadWriteLock MainServer::m_sockListLock
private

◆ m_playbackList

vector<PlaybackSock *> MainServer::m_playbackList
private

◆ m_fileTransferList

vector<FileTransfer *> MainServer::m_fileTransferList
private

◆ m_controlSocketList

QSet<MythSocket*> MainServer::m_controlSocketList
private

◆ m_decrRefSocketList

vector<MythSocket*> MainServer::m_decrRefSocketList
private

Definition at line 323 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 330 of file mainserver.h.

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

◆ m_masterServer

PlaybackSock* MainServer::m_masterServer {nullptr}
private

Definition at line 331 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 335 of file mainserver.h.

Referenced by DoDeleteThread(), and DoTruncateThread().

◆ m_threadPool

MThreadPool MainServer::m_threadPool
private

Definition at line 336 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 341 of file mainserver.h.

Referenced by HandleGetExpiringRecordings(), and Stop().

◆ m_addChildInputLock

QMutex MainServer::m_addChildInputLock
private

Definition at line 342 of file mainserver.h.

Referenced by HandleAddChildInput().

◆ m_deferredDeleteLock

QMutex MainServer::m_deferredDeleteLock
private

Definition at line 350 of file mainserver.h.

Referenced by deferredDeleteSlot(), and DeletePBS().

◆ m_deferredDeleteTimer

QTimer* MainServer::m_deferredDeleteTimer {nullptr}
private

Definition at line 351 of file mainserver.h.

Referenced by MainServer().

◆ m_deferredDeleteList

MythDeque<DeferredDeleteStruct> MainServer::m_deferredDeleteList
private

Definition at line 352 of file mainserver.h.

Referenced by deferredDeleteSlot(), and DeletePBS().

◆ m_autoexpireUpdateTimer

QTimer* MainServer::m_autoexpireUpdateTimer {nullptr}
private

Definition at line 354 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 355 of file mainserver.h.

Referenced by TruncateAndClose().

◆ m_fsIDcache

QMap<QString, int> MainServer::m_fsIDcache
private

Definition at line 357 of file mainserver.h.

Referenced by GetfsID().

◆ m_fsIDcacheLock

QMutex MainServer::m_fsIDcacheLock
private

Definition at line 358 of file mainserver.h.

Referenced by GetfsID().

◆ m_fsInfosCache

QList<FileSystemInfo> MainServer::m_fsInfosCache
private

Definition at line 359 of file mainserver.h.

Referenced by GetFilesystemInfos().

◆ m_fsInfosCacheLock

QMutex MainServer::m_fsInfosCacheLock
private

Definition at line 360 of file mainserver.h.

Referenced by GetFilesystemInfos().

◆ m_downloadURLsLock

QMutex MainServer::m_downloadURLsLock
private

Definition at line 362 of file mainserver.h.

Referenced by customEvent(), and HandleDownloadFile().

◆ m_downloadURLs

QMap<QString, QString> MainServer::m_downloadURLs
private

Definition at line 363 of file mainserver.h.

Referenced by customEvent(), and HandleDownloadFile().

◆ m_exitCode

int MainServer::m_exitCode {GENERIC_EXIT_OK}
private

Definition at line 365 of file mainserver.h.

Referenced by GetExitCode(), and SetExitCode().

◆ m_previewRequestedBy

RequestedBy MainServer::m_previewRequestedBy
private

Definition at line 368 of file mainserver.h.

Referenced by customEvent(), and HandleGenPreviewPixmap().

◆ m_stopped

bool MainServer::m_stopped {false}
private

Definition at line 370 of file mainserver.h.

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

◆ kMasterServerReconnectTimeout

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

Definition at line 372 of file mainserver.h.

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


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