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.
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 |
|
static |
returns terminal width, or 79 on error
Definition at line 81 of file mythcommandlineparser.cpp.
Referenced by CommandLineArg::GetHelpString(), and CommandLineArg::GetLongHelpString().
|
static |
Definition at line 95 of file mythcommandlineparser.cpp.
Referenced by MythCommandLineParser::getOpt(), and CommandLineArg::Set().
|
static |
Definition at line 102 of file mythcommandlineparser.cpp.
Referenced by CommandLineArg::GetHelpString(), and CommandLineArg::GetLongHelpString().
|
static |
Definition at line 2935 of file mythcommandlineparser.cpp.
Referenced by MythCommandLineParser::Daemonize().
|
static |
Drop permissions to the specified user.
Definition at line 2951 of file mythcommandlineparser.cpp.
Referenced by MythCommandLineParser::Daemonize().
|
staticconstexpr |
Definition at line 76 of file mythcommandlineparser.cpp.
Referenced by CommandLineArg::GetHelpString(), and GetTermWidth().