MythTV  master
Classes | Macros | Functions
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 "mythconfig.h"
#include <sys/stat.h>
#include <sys/param.h>
#include <QCoreApplication>
#include <QDateTime>
#include <QFile>
#include <QDir>
#include <QWaitCondition>
#include <QWriteLocker>
#include <QRegExp>
#include <QEvent>
#include <QTcpServer>
#include <QTimer>
#include <QNetworkInterface>
#include <QNetworkProxy>
#include <QHostAddress>
#include "previewgeneratorqueue.h"
#include "mythmiscutil.h"
#include "mythsystemlegacy.h"
#include "exitcodes.h"
#include "mythcontext.h"
#include "mythversion.h"
#include "mythdb.h"
#include "mainserver.h"
#include "server.h"
#include "mthread.h"
#include "scheduler.h"
#include "requesthandler/fileserverutil.h"
#include "programinfo.h"
#include "mythtimezone.h"
#include "recordinginfo.h"
#include "recordingrule.h"
#include "scheduledrecording.h"
#include "jobqueue.h"
#include "autoexpire.h"
#include "storagegroup.h"
#include "compat.h"
#include "ringbuffer.h"
#include "remotefile.h"
#include "mythsystemevent.h"
#include "tv.h"
#include "mythcorecontext.h"
#include "mythcoreutil.h"
#include "mythdirs.h"
#include "mythdownloadmanager.h"
#include "metadatafactory.h"
#include "videoutils.h"
#include "mythlogging.h"
#include "filesysteminfo.h"
#include "metaio.h"
#include "musicmetadata.h"
#include "imagemanager.h"
#include "cardutil.h"
#include "tv_rec.h"
#include "backendcontext.h"
Include dependency graph for mainserver.cpp:

Go to the source code of this file.

Classes

class  ProcessRequestRunnable
 
class  FreeSpaceUpdater
 

Macros

#define PRT_TIMEOUT   10
 Milliseconds to wait for an existing thread from process request thread pool. More...
 
#define PRT_STARTUP_THREAD_COUNT   5
 Number of threads in process request thread pool at startup. More...
 
#define LOC   QString("MainServer: ")
 
#define LOC_WARN   QString("MainServer, Warning: ")
 
#define LOC_ERR   QString("MainServer, Error: ")
 

Functions

static bool comp_livetvorder (const InputInfo &a, const InputInfo &b)
 
static QString cleanup (const QString &str)
 
static QString make_safe (const QString &str)
 

Macro Definition Documentation

◆ PRT_TIMEOUT

#define PRT_TIMEOUT   10

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

Definition at line 91 of file mainserver.cpp.

◆ PRT_STARTUP_THREAD_COUNT

#define PRT_STARTUP_THREAD_COUNT   5

Number of threads in process request thread pool at startup.

Definition at line 93 of file mainserver.cpp.

◆ LOC

#define LOC   QString("MainServer: ")

Definition at line 95 of file mainserver.cpp.

◆ LOC_WARN

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

Definition at line 96 of file mainserver.cpp.

◆ LOC_ERR

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

Definition at line 97 of file mainserver.cpp.

Function Documentation

◆ comp_livetvorder()

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

Definition at line 4352 of file mainserver.cpp.

Referenced by MainServer::HandleGetFreeInputInfo().

◆ cleanup()

static QString cleanup ( const QString &  str)
static

Definition at line 4470 of file mainserver.cpp.

Referenced by MainServer::HandleSetChannelInfo().

◆ make_safe()

static QString make_safe ( const QString &  str)
static

Definition at line 4477 of file mainserver.cpp.

Referenced by MainServer::HandleRecorderQuery().