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 (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 (qt_socket_fd_t 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 (QStringList &slist, PlaybackSock *pbs)
 
void HandleMoveFile (PlaybackSock *pbs, const QString &storagegroup, const QString &src, const QString &dst)
 
bool HandleDeleteFile (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 expirer=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 (QStringList &slist, PlaybackSock *pbs)
 
void HandleSetLogLevel (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 (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 (QStringList &tokens, PlaybackSock *pbs)
 
void HandleSetSetting (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 uint kMasterServerReconnectTimeout = 1000
 

Friends

class DeleteThread
 
class TruncateThread
 
class FreeSpaceUpdater
 
class RenameThread
 

Detailed Description

Definition at line 114 of file mainserver.h.

Member Typedef Documentation

◆ RequestedBy

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

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

◆ ~MainServer()

MainServer::~MainServer ( )
override

Definition at line 353 of file mainserver.cpp.

Member Function Documentation

◆ Stop()

void MainServer::Stop ( void  )

Definition at line 359 of file mainserver.cpp.

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

◆ customEvent()

void MainServer::customEvent ( QEvent *  e)
override

Definition at line 1113 of file mainserver.cpp.

◆ isClientConnected()

bool MainServer::isClientConnected ( bool  onlyBlockingClients = false)

Definition at line 8237 of file mainserver.cpp.

Referenced by Scheduler::HandleIdleShutdown().

◆ ShutSlaveBackendsDown()

void MainServer::ShutSlaveBackendsDown ( QString &  haltcmd)

Sends the Slavebackends the request to shut down using haltcmd.

Definition at line 8266 of file mainserver.cpp.

Referenced by Scheduler::ShutdownServer().

◆ ProcessRequest()

void MainServer::ProcessRequest ( MythSocket sock)

Definition at line 453 of file mainserver.cpp.

◆ readyRead()

void MainServer::readyRead ( MythSocket socket)
overridevirtual

Implements MythSocketCBs.

Definition at line 444 of file mainserver.cpp.

◆ connectionClosed()

void MainServer::connectionClosed ( MythSocket socket)
overridevirtual

Implements MythSocketCBs.

Definition at line 7755 of file mainserver.cpp.

◆ connectionFailed()

void MainServer::connectionFailed ( MythSocket socket)
inlineoverridevirtual

Implements MythSocketCBs.

Definition at line 140 of file mainserver.h.

◆ connected()

void MainServer::connected ( MythSocket socket)
inlineoverridevirtual

Implements MythSocketCBs.

Definition at line 142 of file mainserver.h.

◆ DeletePBS()

void MainServer::DeletePBS ( PlaybackSock sock)

Definition at line 7743 of file mainserver.cpp.

◆ GetCurrentMaxBitrate()

size_t MainServer::GetCurrentMaxBitrate ( void  )

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

Referenced by run_backend().

◆ UpdateSystemdStatus()

void MainServer::UpdateSystemdStatus ( void  )

Definition at line 8313 of file mainserver.cpp.

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

◆ reconnectTimeout

void MainServer::reconnectTimeout ( void  )
protectedslot

Definition at line 8153 of file mainserver.cpp.

Referenced by MainServer().

◆ deferredDeleteSlot

void MainServer::deferredDeleteSlot ( void  )
protectedslot

Definition at line 7725 of file mainserver.cpp.

Referenced by MainServer().

◆ autoexpireUpdate

void MainServer::autoexpireUpdate ( void  )
staticprotectedslot

Definition at line 429 of file mainserver.cpp.

Referenced by MainServer().

◆ NewConnection

void MainServer::NewConnection ( qt_socket_fd_t  socketDescriptor)
privateslot

Definition at line 434 of file mainserver.cpp.

Referenced by MainServer().

◆ ProcessRequestWork()

void MainServer::ProcessRequestWork ( MythSocket sock)
private

Definition at line 462 of file mainserver.cpp.

Referenced by ProcessRequest().

◆ HandleAnnounce()

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

Definition at line 1738 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleDone()

void MainServer::HandleDone ( MythSocket socket)
private

Definition at line 2102 of file mainserver.cpp.

Referenced by HandleVersion(), and ProcessRequestWork().

◆ GetActiveBackends()

void MainServer::GetActiveBackends ( QStringList &  hosts)
private

Definition at line 5060 of file mainserver.cpp.

Referenced by HandleActiveBackendsQuery(), and HandleScanVideos().

◆ HandleActiveBackendsQuery()

void MainServer::HandleActiveBackendsQuery ( PlaybackSock pbs)
private

Definition at line 5078 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleIsActiveBackendQuery()

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

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

Referenced by ProcessRequestWork().

◆ HandleDeleteFile() [1/2]

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

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

◆ HandleQueryRecordings()

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

Definition at line 2161 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryRecording()

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

Definition at line 2290 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleStopRecording()

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

Definition at line 2860 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ DoHandleStopRecording()

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

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

Referenced by ProcessRequestWork().

◆ HandleDeleteRecording() [2/2]

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

Definition at line 3006 of file mainserver.cpp.

◆ DoHandleDeleteRecording()

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

Definition at line 3021 of file mainserver.cpp.

Referenced by customEvent(), and HandleDeleteRecording().

◆ HandleUndeleteRecording()

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

Definition at line 3167 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ DoHandleUndeleteRecording()

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

Definition at line 3185 of file mainserver.cpp.

Referenced by customEvent(), and HandleUndeleteRecording().

◆ HandleForgetRecording()

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

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

Referenced by ProcessRequestWork().

◆ HandleAddChildInput()

bool MainServer::HandleAddChildInput ( uint  inputid)
private

Definition at line 3256 of file mainserver.cpp.

Referenced by customEvent(), and ProcessRequestWork().

◆ HandleGoToSleep()

void MainServer::HandleGoToSleep ( PlaybackSock pbs)
private

Definition at line 3386 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryFreeSpace()

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

Definition at line 3417 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryFreeSpaceSummary()

void MainServer::HandleQueryFreeSpaceSummary ( PlaybackSock pbs)
private

Definition at line 3449 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryCheckFile()

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

Definition at line 3603 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryFileExists()

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

Definition at line 3721 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryFindFile()

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

Definition at line 3984 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryFileHash()

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

Definition at line 3654 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryGuideDataThrough()

void MainServer::HandleQueryGuideDataThrough ( PlaybackSock pbs)
private

Definition at line 3794 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleGetPendingRecordings()

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

Definition at line 3810 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleGetScheduledRecordings()

void MainServer::HandleGetScheduledRecordings ( PlaybackSock pbs)
private

Definition at line 3862 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleGetConflictingRecordings()

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

Definition at line 3876 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleGetExpiringRecordings()

void MainServer::HandleGetExpiringRecordings ( PlaybackSock pbs)
private

Definition at line 3894 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSGGetFileList()

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

Definition at line 3908 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSGFileQuery()

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

Definition at line 4191 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleGetFreeInputInfo()

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

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

Referenced by ProcessRequestWork().

◆ HandleSetNextLiveTVDir()

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

Definition at line 4884 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 ( QStringList &  slist,
PlaybackSock pbs 
)
private

Definition at line 7279 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSetLogLevel()

void MainServer::HandleSetLogLevel ( 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 7511 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandlePixmapGetIfModified()

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

Definition at line 7575 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleIsRecording()

void MainServer::HandleIsRecording ( 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 2821 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleFillProgramInfo()

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

Definition at line 2335 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSetChannelInfo()

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

Definition at line 4911 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleRemoteEncoder()

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

Definition at line 4946 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleLockTuner()

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

Definition at line 4264 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleFreeTuner()

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

Definition at line 4345 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 5623 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 5664 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleCutlistQuery()

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

Definition at line 5679 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleBookmarkQuery()

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

Definition at line 5695 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSetBookmark()

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

Definition at line 5721 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSettingQuery()

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

Definition at line 5756 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSetSetting()

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

Definition at line 5850 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleScanVideos()

void MainServer::HandleScanVideos ( PlaybackSock pbs)
private

Definition at line 5872 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleScanMusic()

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

Definition at line 5892 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicTagUpdateVolatile()

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

Definition at line 5961 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicTagUpdateMetadata()

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

Definition at line 6078 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicFindAlbumArt()

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

Definition at line 6165 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicTagGetImage()

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

Definition at line 6317 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicTagAddImage()

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

Definition at line 6538 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicTagRemoveImage()

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

Definition at line 6693 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicTagChangeImage()

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

Definition at line 6371 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicCalcTrackLen()

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

Definition at line 6021 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicFindLyrics()

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

Definition at line 6819 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 6911 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 1673 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleBackendRefresh()

void MainServer::HandleBackendRefresh ( MythSocket socket)
private

Definition at line 7710 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryLoad()

void MainServer::HandleQueryLoad ( PlaybackSock pbs)
private

Definition at line 3492 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryUptime()

void MainServer::HandleQueryUptime ( PlaybackSock pbs)
private

Definition at line 3523 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryHostname()

void MainServer::HandleQueryHostname ( PlaybackSock pbs)
private

Definition at line 3545 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryMemStats()

void MainServer::HandleQueryMemStats ( PlaybackSock pbs)
private

Definition at line 3560 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryTimeZone()

void MainServer::HandleQueryTimeZone ( PlaybackSock pbs)
private

Definition at line 3588 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleBlockShutdown()

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

Definition at line 7716 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleDownloadFile()

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

Definition at line 5776 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSlaveDisconnectedEvent()

void MainServer::HandleSlaveDisconnectedEvent ( const MythEvent event)
private

Definition at line 8285 of file mainserver.cpp.

Referenced by customEvent().

◆ SendResponse()

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

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

Referenced by ProcessRequestWork(), and SendErrorResponse().

◆ SendErrorResponse() [2/2]

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

Definition at line 2108 of file mainserver.cpp.

◆ SendSlaveDisconnectedEvent()

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

Definition at line 8298 of file mainserver.cpp.

Referenced by connectionClosed().

◆ getGuideDataThrough()

void MainServer::getGuideDataThrough ( QDateTime &  GuideDataThrough)
staticprivate

Definition at line 3783 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 7968 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 7977 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 7986 of file mainserver.cpp.

Referenced by SendResponse().

◆ LocalFilePath()

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

Definition at line 8058 of file mainserver.cpp.

Referenced by HandleAnnounce().

◆ GetfsID()

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

Definition at line 5109 of file mainserver.cpp.

Referenced by BackendQueryDiskSpace().

◆ DoTruncateThread()

void MainServer::DoTruncateThread ( DeleteStruct ds)
private

Definition at line 5530 of file mainserver.cpp.

Referenced by TruncateThread::run().

◆ DoDeleteThread()

void MainServer::DoDeleteThread ( DeleteStruct ds)
private

Definition at line 2374 of file mainserver.cpp.

◆ DeleteRecordedFiles()

void MainServer::DeleteRecordedFiles ( DeleteStruct ds)
staticprivate

Definition at line 2522 of file mainserver.cpp.

Referenced by DoDeleteThread().

◆ DoDeleteInDB()

void MainServer::DoDeleteInDB ( DeleteStruct ds)
staticprivate

Definition at line 2595 of file mainserver.cpp.

Referenced by DoDeleteThread().

◆ GetExistingChain() [1/2]

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

Definition at line 7994 of file mainserver.cpp.

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

◆ GetExistingChain() [2/2]

LiveTVChain * MainServer::GetExistingChain ( MythSocket sock)
private

Definition at line 8004 of file mainserver.cpp.

◆ GetChainWithRecording()

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

Definition at line 8014 of file mainserver.cpp.

Referenced by DoDeleteThread().

◆ AddToChains()

void MainServer::AddToChains ( LiveTVChain chain)
private

Definition at line 8024 of file mainserver.cpp.

Referenced by HandleRecorderQuery().

◆ DeleteChain()

void MainServer::DeleteChain ( LiveTVChain chain)
private

Definition at line 8032 of file mainserver.cpp.

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

◆ SetExitCode()

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

Definition at line 8051 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 2661 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 2718 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 2748 of file mainserver.cpp.

Referenced by DoDeleteThread(), and DoTruncateThread().

Friends And Related Function Documentation

◆ DeleteThread

friend class DeleteThread
friend

Definition at line 118 of file mainserver.h.

Referenced by DoHandleDeleteRecording().

◆ TruncateThread

friend class TruncateThread
friend

Definition at line 119 of file mainserver.h.

Referenced by HandleDeleteFile().

◆ FreeSpaceUpdater

friend class FreeSpaceUpdater
friend

Definition at line 120 of file mainserver.h.

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

◆ RenameThread

friend class RenameThread
friend

Definition at line 121 of file mainserver.h.

Referenced by HandleMoveFile().

Member Data Documentation

◆ m_liveTVChains

vector<LiveTVChain*> MainServer::m_liveTVChains
private

Definition at line 312 of file mainserver.h.

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

◆ m_liveTVChainsLock

QMutex MainServer::m_liveTVChainsLock
private

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

Referenced by MainServer(), and Stop().

◆ m_metadatafactory

MetadataFactory* MainServer::m_metadatafactory {nullptr}
private

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

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

◆ m_masterFreeSpaceListLock

QMutex MainServer::m_masterFreeSpaceListLock
private

Definition at line 326 of file mainserver.h.

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

◆ m_masterFreeSpaceListUpdater

FreeSpaceUpdater* volatile MainServer::m_masterFreeSpaceListUpdater {nullptr}
private

Definition at line 327 of file mainserver.h.

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

◆ m_masterFreeSpaceListWait

QWaitCondition MainServer::m_masterFreeSpaceListWait
private

Definition at line 328 of file mainserver.h.

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

◆ m_masterFreeSpaceList

QStringList MainServer::m_masterFreeSpaceList
private

Definition at line 329 of file mainserver.h.

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

◆ m_masterServerReconnect

QTimer* MainServer::m_masterServerReconnect {nullptr}
private

Definition at line 331 of file mainserver.h.

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

◆ m_masterServer

PlaybackSock* MainServer::m_masterServer {nullptr}
private

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

Referenced by DoDeleteThread(), and DoTruncateThread().

◆ m_threadPool

MThreadPool MainServer::m_threadPool
private

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

Referenced by HandleGetExpiringRecordings(), and Stop().

◆ m_addChildInputLock

QMutex MainServer::m_addChildInputLock
private

Definition at line 343 of file mainserver.h.

Referenced by HandleAddChildInput().

◆ m_deferredDeleteLock

QMutex MainServer::m_deferredDeleteLock
private

Definition at line 351 of file mainserver.h.

Referenced by deferredDeleteSlot(), and DeletePBS().

◆ m_deferredDeleteTimer

QTimer* MainServer::m_deferredDeleteTimer {nullptr}
private

Definition at line 352 of file mainserver.h.

Referenced by MainServer().

◆ m_deferredDeleteList

MythDeque<DeferredDeleteStruct> MainServer::m_deferredDeleteList
private

Definition at line 353 of file mainserver.h.

Referenced by deferredDeleteSlot(), and DeletePBS().

◆ m_autoexpireUpdateTimer

QTimer* MainServer::m_autoexpireUpdateTimer {nullptr}
private

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

Referenced by TruncateAndClose().

◆ m_fsIDcache

QMap<QString, int> MainServer::m_fsIDcache
private

Definition at line 358 of file mainserver.h.

Referenced by GetfsID().

◆ m_fsIDcacheLock

QMutex MainServer::m_fsIDcacheLock
private

Definition at line 359 of file mainserver.h.

Referenced by GetfsID().

◆ m_fsInfosCache

QList<FileSystemInfo> MainServer::m_fsInfosCache
private

Definition at line 360 of file mainserver.h.

Referenced by GetFilesystemInfos().

◆ m_fsInfosCacheLock

QMutex MainServer::m_fsInfosCacheLock
private

Definition at line 361 of file mainserver.h.

Referenced by GetFilesystemInfos().

◆ m_downloadURLsLock

QMutex MainServer::m_downloadURLsLock
private

Definition at line 363 of file mainserver.h.

Referenced by customEvent(), and HandleDownloadFile().

◆ m_downloadURLs

QMap<QString, QString> MainServer::m_downloadURLs
private

Definition at line 364 of file mainserver.h.

Referenced by customEvent(), and HandleDownloadFile().

◆ m_exitCode

int MainServer::m_exitCode {GENERIC_EXIT_OK}
private

Definition at line 366 of file mainserver.h.

Referenced by SetExitCode().

◆ m_previewRequestedBy

RequestedBy MainServer::m_previewRequestedBy
private

Definition at line 369 of file mainserver.h.

Referenced by customEvent(), and HandleGenPreviewPixmap().

◆ m_stopped

bool MainServer::m_stopped {false}
private

Definition at line 371 of file mainserver.h.

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

◆ kMasterServerReconnectTimeout

const uint MainServer::kMasterServerReconnectTimeout = 1000
staticprivate

Definition at line 373 of file mainserver.h.

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


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