MythTV  master
Classes | Namespaces | Macros | Functions | Variables
mainserver.cpp File Reference
#include <algorithm>
#include <cerrno>
#include <chrono>
#include <cmath>
#include <cstdlib>
#include <fcntl.h>
#include <iostream>
#include <list>
#include <memory>
#include <thread>
#include "libmythbase/mythconfig.h"
#include <sys/stat.h>
#include <sys/param.h>
#include <QtGlobal>
#include <QCoreApplication>
#include <QDateTime>
#include <QFile>
#include <QDir>
#include <QWaitCondition>
#include <QWriteLocker>
#include <QProcess>
#include <QRegularExpression>
#include <QEvent>
#include <QTcpServer>
#include <QTimer>
#include <QNetworkInterface>
#include <QNetworkProxy>
#include <QHostAddress>
#include "libmyth/mythcontext.h"
#include "libmythbase/compat.h"
#include "libmythbase/filesysteminfo.h"
#include "libmythbase/mthread.h"
#include "libmythbase/mythcorecontext.h"
#include "libmythbase/mythcoreutil.h"
#include "libmythbase/mythdb.h"
#include "libmythbase/mythdirs.h"
#include "libmythbase/mythdownloadmanager.h"
#include "libmythbase/mythlogging.h"
#include "libmythbase/mythmiscutil.h"
#include "libmythbase/mythrandom.h"
#include "libmythbase/mythsystemlegacy.h"
#include "libmythbase/mythtimezone.h"
#include "libmythbase/mythversion.h"
#include "libmythbase/programinfo.h"
#include "libmythbase/remotefile.h"
#include "libmythbase/serverpool.h"
#include "libmythbase/storagegroup.h"
#include "libmythmetadata/imagemanager.h"
#include "libmythmetadata/metadatafactory.h"
#include "libmythmetadata/metaio.h"
#include "libmythmetadata/musicmetadata.h"
#include "libmythmetadata/videoutils.h"
#include "libmythprotoserver/requesthandler/fileserverutil.h"
#include "libmythtv/cardutil.h"
#include "libmythtv/io/mythmediabuffer.h"
#include "libmythtv/jobqueue.h"
#include "libmythtv/mythsystemevent.h"
#include "libmythtv/previewgeneratorqueue.h"
#include "libmythtv/recordinginfo.h"
#include "libmythtv/recordingrule.h"
#include "libmythtv/scheduledrecording.h"
#include "libmythtv/tv.h"
#include "libmythtv/tv_rec.h"
#include "autoexpire.h"
#include "backendcontext.h"
#include "mainserver.h"
#include "scheduler.h"
Include dependency graph for mainserver.cpp:

Go to the source code of this file.

Classes

class  BEProcessRequestRunnable
 
class  FreeSpaceUpdater
 

Namespaces

 anonymous_namespace{mainserver.cpp}
 

Macros

#define LOC   QString("MainServer: ")
 
#define LOC_WARN   QString("MainServer, Warning: ")
 
#define LOC_ERR   QString("MainServer, Error: ")
 

Functions

bool anonymous_namespace{mainserver.cpp}::delete_file_immediately (const QString &filename, bool followLinks, bool checkexists)
 
static bool comp_livetvorder (const InputInfo &a, const InputInfo &b)
 
static QString cleanup (const QString &str)
 
static QString make_safe (const QString &str)
 

Variables

static constexpr std::chrono::milliseconds PRT_TIMEOUT { 10ms }
 Milliseconds to wait for an existing thread from process request thread pool. More...
 
static constexpr int PRT_STARTUP_THREAD_COUNT { 5 }
 Number of threads in process request thread pool at startup. More...
 

Macro Definition Documentation

◆ LOC

#define LOC   QString("MainServer: ")

Definition at line 99 of file mainserver.cpp.

◆ LOC_WARN

#define LOC_WARN   QString("MainServer, Warning: ")

Definition at line 100 of file mainserver.cpp.

◆ LOC_ERR

#define LOC_ERR   QString("MainServer, Error: ")

Definition at line 101 of file mainserver.cpp.

Function Documentation

◆ comp_livetvorder()

static bool comp_livetvorder ( const InputInfo a,
const InputInfo b 
)
static

Definition at line 4381 of file mainserver.cpp.

Referenced by MainServer::HandleGetFreeInputInfo().

◆ cleanup()

static QString cleanup ( const QString &  str)
static

Definition at line 4494 of file mainserver.cpp.

Referenced by MainServer::HandleSetChannelInfo().

◆ make_safe()

static QString make_safe ( const QString &  str)
static

Definition at line 4501 of file mainserver.cpp.

Referenced by MainServer::HandleRecorderQuery().

Variable Documentation

◆ PRT_TIMEOUT

constexpr std::chrono::milliseconds PRT_TIMEOUT { 10ms }
staticconstexpr

Milliseconds to wait for an existing thread from process request thread pool.

Definition at line 95 of file mainserver.cpp.

Referenced by MainServer::readyRead().

◆ PRT_STARTUP_THREAD_COUNT

constexpr int PRT_STARTUP_THREAD_COUNT { 5 }
staticconstexpr

Number of threads in process request thread pool at startup.

Definition at line 97 of file mainserver.cpp.

Referenced by MainServer::MainServer().