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 *pbs)
 
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 (QString filename, QString storagegroup, PlaybackSock *pbs=nullptr)
 
void HandleQueryRecordings (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 allBackends)
 
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, 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 (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 * > liveTVChains
 
QMutex liveTVChainsLock
 
QMap< int, EncoderLink * > * encoderList
 
MythServermythserver
 
MetadataFactorymetadatafactory
 
QReadWriteLock sockListLock
 
vector< PlaybackSock * > playbackList
 
vector< FileTransfer * > fileTransferList
 
QSet< MythSocket * > controlSocketList
 
vector< MythSocket * > decrRefSocketList
 
QMutex masterFreeSpaceListLock
 
FreeSpaceUpdater *volatile masterFreeSpaceListUpdater
 
QWaitCondition masterFreeSpaceListWait
 
QStringList masterFreeSpaceList
 
QTimer * masterServerReconnect
 
PlaybackSockmasterServer
 
bool ismaster
 
QMutex deletelock
 
MThreadPool threadPool
 
bool masterBackendOverride
 
Schedulerm_sched
 
AutoExpirem_expirer
 
QMutex m_addChildInputLock
 
QMutex deferredDeleteLock
 
QTimer * deferredDeleteTimer
 
MythDeque< DeferredDeleteStructdeferredDeleteList
 
QTimer * autoexpireUpdateTimer
 
QMap< QString, int > fsIDcache
 
QMutex fsIDcacheLock
 
QList< FileSystemInfofsInfosCache
 
QMutex fsInfosCacheLock
 
QMutex m_downloadURLsLock
 
QMap< QString, QString > m_downloadURLs
 
int m_exitCode
 
RequestedBy m_previewRequestedBy
 
bool m_stopped
 

Static Private Attributes

static QMutex truncate_and_close_lock
 
static const uint kMasterServerReconnectTimeout = 1000
 

Friends

class DeleteThread
 
class TruncateThread
 
class FreeSpaceUpdater
 
class RenameThread
 

Detailed Description

Definition at line 110 of file mainserver.h.

Member Typedef Documentation

◆ RequestedBy

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

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

◆ ~MainServer()

MainServer::~MainServer ( )

Definition at line 362 of file mainserver.cpp.

Member Function Documentation

◆ Stop()

void MainServer::Stop ( void  )

Definition at line 368 of file mainserver.cpp.

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

◆ customEvent()

void MainServer::customEvent ( QEvent *  e)
override

Definition at line 1124 of file mainserver.cpp.

◆ isClientConnected()

bool MainServer::isClientConnected ( bool  onlyBlockingClients = false)

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

Referenced by Scheduler::ShutdownServer().

◆ ProcessRequest()

void MainServer::ProcessRequest ( MythSocket sock)

Definition at line 465 of file mainserver.cpp.

◆ readyRead()

void MainServer::readyRead ( MythSocket socket)
overridevirtual

Implements MythSocketCBs.

Definition at line 456 of file mainserver.cpp.

◆ connectionClosed()

void MainServer::connectionClosed ( MythSocket socket)
overridevirtual

Implements MythSocketCBs.

Definition at line 7822 of file mainserver.cpp.

◆ connectionFailed()

void MainServer::connectionFailed ( MythSocket socket)
inlineoverridevirtual

Implements MythSocketCBs.

Definition at line 136 of file mainserver.h.

◆ connected()

void MainServer::connected ( MythSocket socket)
inlineoverridevirtual

Implements MythSocketCBs.

Definition at line 138 of file mainserver.h.

◆ DeletePBS()

void MainServer::DeletePBS ( PlaybackSock pbs)

Definition at line 7810 of file mainserver.cpp.

◆ GetCurrentMaxBitrate()

size_t MainServer::GetCurrentMaxBitrate ( void  )

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

Referenced by run_backend().

◆ UpdateSystemdStatus()

void MainServer::UpdateSystemdStatus ( void  )

Definition at line 8431 of file mainserver.cpp.

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

◆ reconnectTimeout

void MainServer::reconnectTimeout ( void  )
protectedslot

Definition at line 8268 of file mainserver.cpp.

Referenced by MainServer().

◆ deferredDeleteSlot

void MainServer::deferredDeleteSlot ( void  )
protectedslot

Definition at line 7792 of file mainserver.cpp.

Referenced by MainServer().

◆ autoexpireUpdate

void MainServer::autoexpireUpdate ( void  )
protectedslot

Definition at line 441 of file mainserver.cpp.

Referenced by MainServer().

◆ NewConnection

void MainServer::NewConnection ( qt_socket_fd_t  socketDescriptor)
privateslot

Definition at line 446 of file mainserver.cpp.

Referenced by MainServer().

◆ ProcessRequestWork()

void MainServer::ProcessRequestWork ( MythSocket sock)
private

Definition at line 474 of file mainserver.cpp.

Referenced by ProcessRequest().

◆ HandleAnnounce()

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

Definition at line 1714 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleDone()

void MainServer::HandleDone ( MythSocket socket)
private

Definition at line 2080 of file mainserver.cpp.

Referenced by HandleVersion(), and ProcessRequestWork().

◆ GetActiveBackends()

void MainServer::GetActiveBackends ( QStringList &  hosts)
private

Definition at line 5036 of file mainserver.cpp.

Referenced by HandleActiveBackendsQuery(), and HandleScanVideos().

◆ HandleActiveBackendsQuery()

void MainServer::HandleActiveBackendsQuery ( PlaybackSock pbs)
private

Definition at line 5055 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleIsActiveBackendQuery()

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

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

Referenced by ProcessRequestWork().

◆ HandleDeleteFile() [1/2]

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

Definition at line 5528 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleDeleteFile() [2/2]

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

Definition at line 5533 of file mainserver.cpp.

◆ HandleQueryRecordings()

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

Definition at line 2139 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryRecording()

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

Definition at line 2268 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleStopRecording()

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

Definition at line 2841 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ DoHandleStopRecording()

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

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

Referenced by ProcessRequestWork().

◆ HandleDeleteRecording() [2/2]

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

Definition at line 2990 of file mainserver.cpp.

◆ DoHandleDeleteRecording()

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

Definition at line 3005 of file mainserver.cpp.

Referenced by customEvent(), and HandleDeleteRecording().

◆ HandleUndeleteRecording()

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

Definition at line 3149 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ DoHandleUndeleteRecording()

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

Definition at line 3167 of file mainserver.cpp.

Referenced by customEvent(), and HandleUndeleteRecording().

◆ HandleForgetRecording()

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

Definition at line 3342 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleRescheduleRecordings()

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

This function processes the received network protocol message to reschedule recordings.

It ignores the parameters supplied by the caller and always asks the scheduling system to reschedule all recordings.

The network message should look like this:

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

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

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

Definition at line 3220 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleAddChildInput()

bool MainServer::HandleAddChildInput ( uint  inputid)
private

Definition at line 3240 of file mainserver.cpp.

Referenced by customEvent(), and ProcessRequestWork().

◆ HandleGoToSleep()

void MainServer::HandleGoToSleep ( PlaybackSock pbs)
private

Definition at line 3364 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryFreeSpace()

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

Definition at line 3395 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryFreeSpaceSummary()

void MainServer::HandleQueryFreeSpaceSummary ( PlaybackSock pbs)
private

Definition at line 3427 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryCheckFile()

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

Definition at line 3574 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryFileExists()

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

Definition at line 3692 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryFindFile()

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

Definition at line 3956 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryFileHash()

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

Definition at line 3625 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryGuideDataThrough()

void MainServer::HandleQueryGuideDataThrough ( PlaybackSock pbs)
private

Definition at line 3765 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleGetPendingRecordings()

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

Definition at line 3781 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleGetScheduledRecordings()

void MainServer::HandleGetScheduledRecordings ( PlaybackSock pbs)
private

Definition at line 3834 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleGetConflictingRecordings()

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

Definition at line 3848 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleGetExpiringRecordings()

void MainServer::HandleGetExpiringRecordings ( PlaybackSock pbs)
private

Definition at line 3866 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSGGetFileList()

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

Definition at line 3880 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSGFileQuery()

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

Definition at line 4161 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleGetFreeInputInfo()

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

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

Referenced by ProcessRequestWork().

◆ HandleSetNextLiveTVDir()

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

Definition at line 4855 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleFileTransferQuery()

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

Definition at line 7113 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleGetRecorderNum()

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

Definition at line 7210 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleGetRecorderFromNum()

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

Definition at line 7259 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMessage()

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

Definition at line 7296 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSetVerbose()

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

Definition at line 7324 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSetLogLevel()

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

Definition at line 7351 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleGenPreviewPixmap()

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

Definition at line 7416 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandlePixmapLastModified()

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

Definition at line 7558 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandlePixmapGetIfModified()

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

Definition at line 7632 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleIsRecording()

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

Definition at line 7384 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleCheckRecordingActive()

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

Definition at line 2799 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleFillProgramInfo()

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

Definition at line 2313 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSetChannelInfo()

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

Definition at line 4882 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleRemoteEncoder()

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

Definition at line 4918 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleLockTuner()

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

Definition at line 4234 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleFreeTuner()

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

Definition at line 4319 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 5609 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 5656 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleCutlistQuery()

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

Definition at line 5671 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleBookmarkQuery()

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

Definition at line 5687 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSetBookmark()

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

Definition at line 5720 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSettingQuery()

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

Definition at line 5761 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSetSetting()

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

Definition at line 5857 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleScanVideos()

void MainServer::HandleScanVideos ( PlaybackSock pbs)
private

Definition at line 5881 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleScanMusic()

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

Definition at line 5901 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicTagUpdateVolatile()

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

Definition at line 5970 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicTagUpdateMetadata()

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

Definition at line 6095 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicFindAlbumArt()

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

Definition at line 6186 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicTagGetImage()

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

Definition at line 6342 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicTagAddImage()

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

Definition at line 6571 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicTagRemoveImage()

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

Definition at line 6731 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicTagChangeImage()

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

Definition at line 6398 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicCalcTrackLen()

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

Definition at line 6034 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleMusicFindLyrics()

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

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

Referenced by ProcessRequestWork().

◆ HandleMusicSaveLyrics()

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

Definition at line 7039 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleVersion()

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

Definition at line 1649 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleBackendRefresh()

void MainServer::HandleBackendRefresh ( MythSocket socket)
private

Definition at line 7777 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryLoad()

void MainServer::HandleQueryLoad ( PlaybackSock pbs)
private

Definition at line 3470 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryUptime()

void MainServer::HandleQueryUptime ( PlaybackSock pbs)
private

Definition at line 3499 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryHostname()

void MainServer::HandleQueryHostname ( PlaybackSock pbs)
private

Definition at line 3521 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryMemStats()

void MainServer::HandleQueryMemStats ( PlaybackSock pbs)
private

Definition at line 3536 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleQueryTimeZone()

void MainServer::HandleQueryTimeZone ( PlaybackSock pbs)
private

Definition at line 3559 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleBlockShutdown()

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

Definition at line 7783 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleDownloadFile()

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

Definition at line 5783 of file mainserver.cpp.

Referenced by ProcessRequestWork().

◆ HandleSlaveDisconnectedEvent()

void MainServer::HandleSlaveDisconnectedEvent ( const MythEvent event)
private

Definition at line 8403 of file mainserver.cpp.

Referenced by customEvent().

◆ SendResponse()

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

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

Referenced by ProcessRequestWork(), and SendErrorResponse().

◆ SendErrorResponse() [2/2]

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

Definition at line 2086 of file mainserver.cpp.

◆ SendSlaveDisconnectedEvent()

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

Definition at line 8416 of file mainserver.cpp.

Referenced by connectionClosed().

◆ getGuideDataThrough()

void MainServer::getGuideDataThrough ( QDateTime &  GuideDataThrough)
private

Definition at line 3754 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 8044 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 8062 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 8080 of file mainserver.cpp.

Referenced by SendResponse().

◆ LocalFilePath()

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

Definition at line 8174 of file mainserver.cpp.

Referenced by HandleAnnounce().

◆ GetfsID()

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

Definition at line 5086 of file mainserver.cpp.

Referenced by BackendQueryDiskSpace().

◆ DoTruncateThread()

void MainServer::DoTruncateThread ( DeleteStruct ds)
private

Definition at line 5515 of file mainserver.cpp.

Referenced by TruncateThread::run().

◆ DoDeleteThread()

void MainServer::DoDeleteThread ( DeleteStruct ds)
private

Definition at line 2351 of file mainserver.cpp.

◆ DeleteRecordedFiles()

void MainServer::DeleteRecordedFiles ( DeleteStruct ds)
private

Definition at line 2497 of file mainserver.cpp.

Referenced by DoDeleteThread().

◆ DoDeleteInDB()

void MainServer::DoDeleteInDB ( DeleteStruct ds)
private

Definition at line 2573 of file mainserver.cpp.

Referenced by DoDeleteThread().

◆ GetExistingChain() [1/2]

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

Definition at line 8097 of file mainserver.cpp.

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

◆ GetExistingChain() [2/2]

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

Definition at line 8111 of file mainserver.cpp.

◆ GetChainWithRecording()

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

Definition at line 8125 of file mainserver.cpp.

Referenced by DoDeleteThread().

◆ AddToChains()

void MainServer::AddToChains ( LiveTVChain chain)
private

Definition at line 8139 of file mainserver.cpp.

Referenced by HandleRecorderQuery().

◆ DeleteChain()

void MainServer::DeleteChain ( LiveTVChain chain)
private

Definition at line 8147 of file mainserver.cpp.

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

◆ SetExitCode()

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

Definition at line 8167 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 2639 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 2696 of file mainserver.cpp.

Referenced by DeleteFile().

◆ TruncateAndClose()

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

Repeatedly truncate an open file in small increments.

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

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

Definition at line 2726 of file mainserver.cpp.

Referenced by DoDeleteThread(), and DoTruncateThread().

Friends And Related Function Documentation

◆ DeleteThread

friend class DeleteThread
friend

Definition at line 114 of file mainserver.h.

Referenced by DoHandleDeleteRecording().

◆ TruncateThread

friend class TruncateThread
friend

Definition at line 115 of file mainserver.h.

Referenced by HandleDeleteFile().

◆ FreeSpaceUpdater

friend class FreeSpaceUpdater
friend

Definition at line 116 of file mainserver.h.

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

◆ RenameThread

friend class RenameThread
friend

Definition at line 117 of file mainserver.h.

Referenced by HandleMoveFile().

Member Data Documentation

◆ liveTVChains

vector<LiveTVChain*> MainServer::liveTVChains
private

Definition at line 308 of file mainserver.h.

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

◆ liveTVChainsLock

QMutex MainServer::liveTVChainsLock
private

Definition at line 309 of file mainserver.h.

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

◆ encoderList

QMap<int, EncoderLink *>* MainServer::encoderList
private

◆ mythserver

MythServer* MainServer::mythserver
private

Definition at line 313 of file mainserver.h.

Referenced by MainServer(), and Stop().

◆ metadatafactory

MetadataFactory* MainServer::metadatafactory
private

Definition at line 314 of file mainserver.h.

Referenced by HandleScanVideos(), and MainServer().

◆ sockListLock

QReadWriteLock MainServer::sockListLock
private

◆ playbackList

vector<PlaybackSock *> MainServer::playbackList
private

◆ fileTransferList

vector<FileTransfer *> MainServer::fileTransferList
private

◆ controlSocketList

QSet<MythSocket*> MainServer::controlSocketList
private

◆ decrRefSocketList

vector<MythSocket*> MainServer::decrRefSocketList
private

Definition at line 320 of file mainserver.h.

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

◆ masterFreeSpaceListLock

QMutex MainServer::masterFreeSpaceListLock
private

Definition at line 322 of file mainserver.h.

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

◆ masterFreeSpaceListUpdater

FreeSpaceUpdater* volatile MainServer::masterFreeSpaceListUpdater
private

Definition at line 323 of file mainserver.h.

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

◆ masterFreeSpaceListWait

QWaitCondition MainServer::masterFreeSpaceListWait
private

Definition at line 324 of file mainserver.h.

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

◆ masterFreeSpaceList

QStringList MainServer::masterFreeSpaceList
private

Definition at line 325 of file mainserver.h.

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

◆ masterServerReconnect

QTimer* MainServer::masterServerReconnect
private

Definition at line 327 of file mainserver.h.

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

◆ masterServer

PlaybackSock* MainServer::masterServer
private

Definition at line 328 of file mainserver.h.

Referenced by connectionClosed(), and reconnectTimeout().

◆ ismaster

bool MainServer::ismaster
private

◆ deletelock

QMutex MainServer::deletelock
private

Definition at line 332 of file mainserver.h.

Referenced by DoDeleteThread(), and DoTruncateThread().

◆ threadPool

MThreadPool MainServer::threadPool
private

Definition at line 333 of file mainserver.h.

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

◆ masterBackendOverride

bool MainServer::masterBackendOverride
private

◆ m_sched

Scheduler* MainServer::m_sched
private

◆ m_expirer

AutoExpire* MainServer::m_expirer
private

Definition at line 338 of file mainserver.h.

Referenced by HandleGetExpiringRecordings(), and Stop().

◆ m_addChildInputLock

QMutex MainServer::m_addChildInputLock
private

Definition at line 339 of file mainserver.h.

Referenced by HandleAddChildInput().

◆ deferredDeleteLock

QMutex MainServer::deferredDeleteLock
private

Definition at line 347 of file mainserver.h.

Referenced by deferredDeleteSlot(), and DeletePBS().

◆ deferredDeleteTimer

QTimer* MainServer::deferredDeleteTimer
private

Definition at line 348 of file mainserver.h.

Referenced by MainServer().

◆ deferredDeleteList

MythDeque<DeferredDeleteStruct> MainServer::deferredDeleteList
private

Definition at line 349 of file mainserver.h.

Referenced by deferredDeleteSlot(), and DeletePBS().

◆ autoexpireUpdateTimer

QTimer* MainServer::autoexpireUpdateTimer
private

Definition at line 351 of file mainserver.h.

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

◆ truncate_and_close_lock

QMutex MainServer::truncate_and_close_lock
staticprivate

Definition at line 352 of file mainserver.h.

Referenced by TruncateAndClose().

◆ fsIDcache

QMap<QString, int> MainServer::fsIDcache
private

Definition at line 354 of file mainserver.h.

Referenced by GetfsID().

◆ fsIDcacheLock

QMutex MainServer::fsIDcacheLock
private

Definition at line 355 of file mainserver.h.

Referenced by GetfsID().

◆ fsInfosCache

QList<FileSystemInfo> MainServer::fsInfosCache
private

Definition at line 356 of file mainserver.h.

Referenced by GetFilesystemInfos().

◆ fsInfosCacheLock

QMutex MainServer::fsInfosCacheLock
private

Definition at line 357 of file mainserver.h.

Referenced by GetFilesystemInfos().

◆ m_downloadURLsLock

QMutex MainServer::m_downloadURLsLock
private

Definition at line 359 of file mainserver.h.

Referenced by customEvent(), and HandleDownloadFile().

◆ m_downloadURLs

QMap<QString, QString> MainServer::m_downloadURLs
private

Definition at line 360 of file mainserver.h.

Referenced by customEvent(), and HandleDownloadFile().

◆ m_exitCode

int MainServer::m_exitCode
private

Definition at line 362 of file mainserver.h.

Referenced by SetExitCode().

◆ m_previewRequestedBy

RequestedBy MainServer::m_previewRequestedBy
private

Definition at line 365 of file mainserver.h.

Referenced by customEvent(), and HandleGenPreviewPixmap().

◆ m_stopped

bool MainServer::m_stopped
private

Definition at line 367 of file mainserver.h.

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

◆ kMasterServerReconnectTimeout

const uint MainServer::kMasterServerReconnectTimeout = 1000
staticprivate

Definition at line 369 of file mainserver.h.

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


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