MythTV
master
|
#include <algorithm>
#include <csignal>
#include <cstdio>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <unistd.h>
#include <sys/types.h>
#include <QtGlobal>
#include <QCoreApplication>
#include <QDateTime>
#include <QDir>
#include <QFile>
#include <QFileInfo>
#include <QRegularExpression>
#include <QSize>
#include <QString>
#include <QTextStream>
#include <QVariant>
#include <QVariantList>
#include <QVariantMap>
#include <utility>
#include "mythcommandlineparser.h"
#include "mythcorecontext.h"
#include "exitcodes.h"
#include "mythconfig.h"
#include "mythlogging.h"
#include "mythversion.h"
#include "logging.h"
#include "mythmiscutil.h"
#include "mythdate.h"
Go to the source code of this file.
Macros | |
#define | QT_ENDL Qt::endl |
Functions | |
static int | GetTermWidth (void) |
returns terminal width, or 79 on error More... | |
static QByteArray | strip_quotes (const QByteArray &array) |
static void | wrapList (QStringList &list, int width) |
static bool | openPidfile (std::ofstream &pidfs, const QString &pidfile) |
static bool | setUser (const QString &username) |
Drop permissions to the specified user. More... | |
Variables | |
static constexpr int | k_defaultWidth = 79 |
#define QT_ENDL Qt::endl |
Definition at line 68 of file mythcommandlineparser.cpp.
|
static |
returns terminal width, or 79 on error
Definition at line 87 of file mythcommandlineparser.cpp.
Referenced by CommandLineArg::GetHelpString(), and CommandLineArg::GetLongHelpString().
|
static |
Definition at line 101 of file mythcommandlineparser.cpp.
Referenced by MythCommandLineParser::getOpt(), and CommandLineArg::Set().
|
static |
Definition at line 108 of file mythcommandlineparser.cpp.
Referenced by CommandLineArg::GetHelpString(), and CommandLineArg::GetLongHelpString().
|
static |
Definition at line 2951 of file mythcommandlineparser.cpp.
Referenced by MythCommandLineParser::Daemonize().
|
static |
Drop permissions to the specified user.
Definition at line 2967 of file mythcommandlineparser.cpp.
Referenced by MythCommandLineParser::Daemonize().
|
staticconstexpr |
Definition at line 82 of file mythcommandlineparser.cpp.
Referenced by CommandLineArg::GetHelpString(), and GetTermWidth().