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 ()
 
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)
 
void autoexpireUpdate (void)
 

Private Types

typedef QHash< QString, QString > RequestedBy
 

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)
 This function processes the received network protocol message to reschedule recordings. More...
 
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)
 This function processes the received network protocol message to get the names of all scripts the grab music lyrics. More...
 
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)
 
void SendSlaveDisconnectedEvent (const QList< uint > &offlineEncoderIDs, bool needsReschedule)
 
void getGuideDataThrough (QDateTime &GuideDataThrough)
 
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...
 
QString LocalFilePath (const QString &path, const QString &wantgroup)
 
int GetfsID (const QList< FileSystemInfo >::iterator &fsInfo)
 
void DoTruncateThread (DeleteStruct *ds)
 
void DoDeleteThread (DeleteStruct *ds)
 
void DeleteRecordedFiles (DeleteStruct *ds)
 
void DoDeleteInDB (DeleteStruct *ds)
 
LiveTVChainGetExistingChain (const QString &id)
 
LiveTVChainGetExistingChain (const 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 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 111 of file mainserver.h.

Member Typedef Documentation

◆ RequestedBy

typedef QHash<QString,QString> MainServer::RequestedBy
private

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

◆ ~MainServer()

MainServer::~MainServer ( )

Definition at line 352 of file mainserver.cpp.

Member Function Documentation

◆ Stop()

void MainServer::Stop ( void  )

Definition at line 358 of file mainserver.cpp.

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

◆ customEvent()

void MainServer::customEvent ( QEvent *  e)
override

Definition at line 1111 of file mainserver.cpp.

◆ isClientConnected()

bool MainServer::isClientConnected ( bool  onlyBlockingClients = false)

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

Referenced by Scheduler::ShutdownServer().

◆ ProcessRequest()

void MainServer::ProcessRequest ( MythSocket sock)

Definition at line 452 of file mainserver.cpp.

◆ readyRead()

void MainServer::readyRead ( MythSocket socket)
overridevirtual

Implements MythSocketCBs.

Definition at line 443 of file mainserver.cpp.

◆ connectionClosed()

void MainServer::connectionClosed ( MythSocket socket)
overridevirtual

Implements MythSocketCBs.

Definition at line 7740 of file mainserver.cpp.

◆ connectionFailed()

void MainServer::connectionFailed ( MythSocket socket)
inlineoverridevirtual

Implements MythSocketCBs.

Definition at line 137 of file mainserver.h.

◆ connected()

void MainServer::connected ( MythSocket socket)
inlineoverridevirtual

Implements MythSocketCBs.

Definition at line 139 of file mainserver.h.

◆ DeletePBS()

void MainServer::DeletePBS ( PlaybackSock sock)

Definition at line 7728 of file mainserver.cpp.

◆ GetCurrentMaxBitrate()

size_t MainServer::GetCurrentMaxBitrate ( void  )

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

Referenced by run_backend().

◆ UpdateSystemdStatus()

void MainServer::UpdateSystemdStatus ( void  )

Definition at line 8335 of file mainserver.cpp.

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

◆ reconnectTimeout

void MainServer::reconnectTimeout ( void  )
protectedslot

Definition at line 8174 of file mainserver.cpp.

Referenced by MainServer().

◆ deferredDeleteSlot

void MainServer::deferredDeleteSlot ( void  )
protectedslot

Definition at line 7710 of file mainserver.cpp.

Referenced by MainServer().

◆ autoexpireUpdate

void MainServer::autoexpireUpdate ( void  )
protectedslot

Definition at line 428 of file mainserver.cpp.

Referenced by MainServer().

◆ NewConnection

void MainServer::NewConnection ( qt_socket_fd_t  socketDescriptor)
privateslot

Definition at line 433 of file mainserver.cpp.

Referenced by MainServer().

◆ ProcessRequestWork()

void MainServer::ProcessRequestWork ( MythSocket sock)
private

Definition at line 461 of file mainserver.cpp.

Referenced by ProcessRequest().

◆ HandleAnnounce()

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

Definition at line 1700 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleDone()

void MainServer::HandleDone ( MythSocket socket)
private

Definition at line 2066 of file mainserver.cpp.

Referenced by HandleVersion(), and ProcessRequestWork().

◆ GetActiveBackends()

void MainServer::GetActiveBackends ( QStringList &  hosts)
private

Definition at line 5009 of file mainserver.cpp.

Referenced by HandleActiveBackendsQuery(), and HandleScanVideos().

◆ HandleActiveBackendsQuery()

void MainServer::HandleActiveBackendsQuery ( PlaybackSock pbs)
private

Definition at line 5027 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleIsActiveBackendQuery()

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

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

Referenced by ProcessRequestWork().

◆ HandleDeleteFile() [1/2]

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

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

◆ HandleQueryRecordings()

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

Definition at line 2125 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryRecording()

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

Definition at line 2253 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleStopRecording()

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

Definition at line 2822 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ DoHandleStopRecording()

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

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

Referenced by ProcessRequestWork().

◆ HandleDeleteRecording() [2/2]

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

Definition at line 2967 of file mainserver.cpp.

◆ DoHandleDeleteRecording()

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

Definition at line 2982 of file mainserver.cpp.

Referenced by customEvent(), and HandleDeleteRecording().

◆ HandleUndeleteRecording()

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

Definition at line 3128 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ DoHandleUndeleteRecording()

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

Definition at line 3146 of file mainserver.cpp.

Referenced by customEvent(), and HandleUndeleteRecording().

◆ HandleForgetRecording()

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

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

Referenced by ProcessRequestWork().

◆ HandleAddChildInput()

bool MainServer::HandleAddChildInput ( uint  inputid)
private

Definition at line 3217 of file mainserver.cpp.

Referenced by customEvent(), and ProcessRequestWork().

◆ HandleGoToSleep()

void MainServer::HandleGoToSleep ( PlaybackSock pbs)
private

Definition at line 3341 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryFreeSpace()

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

Definition at line 3372 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryFreeSpaceSummary()

void MainServer::HandleQueryFreeSpaceSummary ( PlaybackSock pbs)
private

Definition at line 3404 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryCheckFile()

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

Definition at line 3551 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryFileExists()

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

Definition at line 3669 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryFindFile()

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

Definition at line 3933 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryFileHash()

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

Definition at line 3602 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryGuideDataThrough()

void MainServer::HandleQueryGuideDataThrough ( PlaybackSock pbs)
private

Definition at line 3742 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleGetPendingRecordings()

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

Definition at line 3758 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleGetScheduledRecordings()

void MainServer::HandleGetScheduledRecordings ( PlaybackSock pbs)
private

Definition at line 3811 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleGetConflictingRecordings()

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

Definition at line 3825 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleGetExpiringRecordings()

void MainServer::HandleGetExpiringRecordings ( PlaybackSock pbs)
private

Definition at line 3843 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSGGetFileList()

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

Definition at line 3857 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSGFileQuery()

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

Definition at line 4138 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleGetFreeInputInfo()

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

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

Referenced by ProcessRequestWork().

◆ HandleSetNextLiveTVDir()

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

Definition at line 4829 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleFileTransferQuery()

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

Definition at line 7035 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleGetRecorderNum()

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

Definition at line 7132 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleGetRecorderFromNum()

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

Definition at line 7180 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMessage()

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

Definition at line 7217 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSetVerbose()

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

Definition at line 7245 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSetLogLevel()

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

Definition at line 7272 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleGenPreviewPixmap()

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

Definition at line 7336 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandlePixmapLastModified()

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

Definition at line 7478 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandlePixmapGetIfModified()

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

Definition at line 7550 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleIsRecording()

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

Definition at line 7305 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleCheckRecordingActive()

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

Definition at line 2783 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleFillProgramInfo()

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

Definition at line 2298 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSetChannelInfo()

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

Definition at line 4856 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleRemoteEncoder()

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

Definition at line 4891 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleLockTuner()

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

Definition at line 4211 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleFreeTuner()

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

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

Referenced by ProcessRequestWork().

◆ HandleCutlistQuery()

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

Definition at line 5638 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleBookmarkQuery()

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

Definition at line 5654 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSetBookmark()

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

Definition at line 5685 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSettingQuery()

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

Definition at line 5724 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSetSetting()

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

Definition at line 5818 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleScanVideos()

void MainServer::HandleScanVideos ( PlaybackSock pbs)
private

Definition at line 5840 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleScanMusic()

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

Definition at line 5860 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicTagUpdateVolatile()

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

Definition at line 5929 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicTagUpdateMetadata()

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

Definition at line 6046 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicFindAlbumArt()

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

Definition at line 6133 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicTagGetImage()

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

Definition at line 6285 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicTagAddImage()

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

Definition at line 6506 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicTagRemoveImage()

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

Definition at line 6661 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicTagChangeImage()

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

Definition at line 6339 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicCalcTrackLen()

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

Definition at line 5989 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicFindLyrics()

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

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

Referenced by ProcessRequestWork().

◆ HandleMusicSaveLyrics()

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

Definition at line 6963 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleVersion()

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

Definition at line 1635 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleBackendRefresh()

void MainServer::HandleBackendRefresh ( MythSocket socket)
private

Definition at line 7695 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryLoad()

void MainServer::HandleQueryLoad ( PlaybackSock pbs)
private

Definition at line 3447 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryUptime()

void MainServer::HandleQueryUptime ( PlaybackSock pbs)
private

Definition at line 3476 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryHostname()

void MainServer::HandleQueryHostname ( PlaybackSock pbs)
private

Definition at line 3498 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryMemStats()

void MainServer::HandleQueryMemStats ( PlaybackSock pbs)
private

Definition at line 3513 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryTimeZone()

void MainServer::HandleQueryTimeZone ( PlaybackSock pbs)
private

Definition at line 3536 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleBlockShutdown()

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

Definition at line 7701 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleDownloadFile()

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

Definition at line 5744 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSlaveDisconnectedEvent()

void MainServer::HandleSlaveDisconnectedEvent ( const MythEvent event)
private

Definition at line 8307 of file mainserver.cpp.

Referenced by customEvent().

◆ SendResponse()

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

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

Referenced by ProcessRequestWork(), and SendErrorResponse().

◆ SendErrorResponse() [2/2]

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

Definition at line 2072 of file mainserver.cpp.

◆ SendSlaveDisconnectedEvent()

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

Definition at line 8320 of file mainserver.cpp.

Referenced by connectionClosed().

◆ getGuideDataThrough()

void MainServer::getGuideDataThrough ( QDateTime &  GuideDataThrough)
private

Definition at line 3731 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 7957 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 7974 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 7991 of file mainserver.cpp.

Referenced by SendResponse().

◆ LocalFilePath()

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

Definition at line 8080 of file mainserver.cpp.

Referenced by HandleAnnounce().

◆ GetfsID()

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

Definition at line 5058 of file mainserver.cpp.

Referenced by BackendQueryDiskSpace().

◆ DoTruncateThread()

void MainServer::DoTruncateThread ( DeleteStruct ds)
private

Definition at line 5484 of file mainserver.cpp.

Referenced by TruncateThread::run().

◆ DoDeleteThread()

void MainServer::DoDeleteThread ( DeleteStruct ds)
private

Definition at line 2336 of file mainserver.cpp.

◆ DeleteRecordedFiles()

void MainServer::DeleteRecordedFiles ( DeleteStruct ds)
private

Definition at line 2484 of file mainserver.cpp.

Referenced by DoDeleteThread().

◆ DoDeleteInDB()

void MainServer::DoDeleteInDB ( DeleteStruct ds)
private

Definition at line 2557 of file mainserver.cpp.

Referenced by DoDeleteThread().

◆ GetExistingChain() [1/2]

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

Definition at line 8007 of file mainserver.cpp.

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

◆ GetExistingChain() [2/2]

LiveTVChain * MainServer::GetExistingChain ( const MythSocket sock)
private

Definition at line 8020 of file mainserver.cpp.

◆ GetChainWithRecording()

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

Definition at line 8033 of file mainserver.cpp.

Referenced by DoDeleteThread().

◆ AddToChains()

void MainServer::AddToChains ( LiveTVChain chain)
private

Definition at line 8046 of file mainserver.cpp.

Referenced by HandleRecorderQuery().

◆ DeleteChain()

void MainServer::DeleteChain ( LiveTVChain chain)
private

Definition at line 8054 of file mainserver.cpp.

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

◆ SetExitCode()

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

Definition at line 8073 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 2623 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 2680 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 2710 of file mainserver.cpp.

Referenced by DoDeleteThread(), and DoTruncateThread().

Friends And Related Function Documentation

◆ DeleteThread

friend class DeleteThread
friend

Definition at line 115 of file mainserver.h.

Referenced by DoHandleDeleteRecording().

◆ TruncateThread

friend class TruncateThread
friend

Definition at line 116 of file mainserver.h.

Referenced by HandleDeleteFile().

◆ FreeSpaceUpdater

friend class FreeSpaceUpdater
friend

Definition at line 117 of file mainserver.h.

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

◆ RenameThread

friend class RenameThread
friend

Definition at line 118 of file mainserver.h.

Referenced by HandleMoveFile().

Member Data Documentation

◆ m_liveTVChains

vector<LiveTVChain*> MainServer::m_liveTVChains
private

Definition at line 309 of file mainserver.h.

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

◆ m_liveTVChainsLock

QMutex MainServer::m_liveTVChainsLock
private

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

Referenced by MainServer(), and Stop().

◆ m_metadatafactory

MetadataFactory* MainServer::m_metadatafactory {nullptr}
private

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

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

◆ m_masterFreeSpaceListLock

QMutex MainServer::m_masterFreeSpaceListLock
private

Definition at line 323 of file mainserver.h.

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

◆ m_masterFreeSpaceListUpdater

FreeSpaceUpdater* volatile MainServer::m_masterFreeSpaceListUpdater {nullptr}
private

Definition at line 324 of file mainserver.h.

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

◆ m_masterFreeSpaceListWait

QWaitCondition MainServer::m_masterFreeSpaceListWait
private

Definition at line 325 of file mainserver.h.

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

◆ m_masterFreeSpaceList

QStringList MainServer::m_masterFreeSpaceList
private

Definition at line 326 of file mainserver.h.

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

◆ m_masterServerReconnect

QTimer* MainServer::m_masterServerReconnect {nullptr}
private

Definition at line 328 of file mainserver.h.

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

◆ m_masterServer

PlaybackSock* MainServer::m_masterServer {nullptr}
private

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

Referenced by DoDeleteThread(), and DoTruncateThread().

◆ m_threadPool

MThreadPool MainServer::m_threadPool
private

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

Referenced by HandleGetExpiringRecordings(), and Stop().

◆ m_addChildInputLock

QMutex MainServer::m_addChildInputLock
private

Definition at line 340 of file mainserver.h.

Referenced by HandleAddChildInput().

◆ m_deferredDeleteLock

QMutex MainServer::m_deferredDeleteLock
private

Definition at line 348 of file mainserver.h.

Referenced by deferredDeleteSlot(), and DeletePBS().

◆ m_deferredDeleteTimer

QTimer* MainServer::m_deferredDeleteTimer {nullptr}
private

Definition at line 349 of file mainserver.h.

Referenced by MainServer().

◆ m_deferredDeleteList

MythDeque<DeferredDeleteStruct> MainServer::m_deferredDeleteList
private

Definition at line 350 of file mainserver.h.

Referenced by deferredDeleteSlot(), and DeletePBS().

◆ m_autoexpireUpdateTimer

QTimer* MainServer::m_autoexpireUpdateTimer {nullptr}
private

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

Referenced by TruncateAndClose().

◆ m_fsIDcache

QMap<QString, int> MainServer::m_fsIDcache
private

Definition at line 355 of file mainserver.h.

Referenced by GetfsID().

◆ m_fsIDcacheLock

QMutex MainServer::m_fsIDcacheLock
private

Definition at line 356 of file mainserver.h.

Referenced by GetfsID().

◆ m_fsInfosCache

QList<FileSystemInfo> MainServer::m_fsInfosCache
private

Definition at line 357 of file mainserver.h.

Referenced by GetFilesystemInfos().

◆ m_fsInfosCacheLock

QMutex MainServer::m_fsInfosCacheLock
private

Definition at line 358 of file mainserver.h.

Referenced by GetFilesystemInfos().

◆ m_downloadURLsLock

QMutex MainServer::m_downloadURLsLock
private

Definition at line 360 of file mainserver.h.

Referenced by customEvent(), and HandleDownloadFile().

◆ m_downloadURLs

QMap<QString, QString> MainServer::m_downloadURLs
private

Definition at line 361 of file mainserver.h.

Referenced by customEvent(), and HandleDownloadFile().

◆ m_exitCode

int MainServer::m_exitCode {GENERIC_EXIT_OK}
private

Definition at line 363 of file mainserver.h.

Referenced by SetExitCode().

◆ m_previewRequestedBy

RequestedBy MainServer::m_previewRequestedBy
private

Definition at line 366 of file mainserver.h.

Referenced by customEvent(), and HandleGenPreviewPixmap().

◆ m_stopped

bool MainServer::m_stopped {false}
private

Definition at line 368 of file mainserver.h.

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

◆ kMasterServerReconnectTimeout

const uint MainServer::kMasterServerReconnectTimeout = 1000
staticprivate

Definition at line 370 of file mainserver.h.

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


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