MythTV  master
Macros | Functions
mythcommandlineparser.cpp File Reference
#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"
Include dependency graph for mythcommandlineparser.cpp:

Go to the source code of this file.

Macros

#define QT_ENDL   Qt::endl
 
#define TERMWIDTH   79
 

Functions

bool openPidfile (std::ofstream &pidfs, const QString &pidfile)
 
bool setUser (const QString &username)
 Drop permissions to the specified user. More...
 
int GetTermWidth (void)
 returns terminal width, or 79 on error More...
 
QByteArray strip_quotes (QByteArray val)
 

Macro Definition Documentation

◆ QT_ENDL

#define QT_ENDL   Qt::endl

Definition at line 68 of file mythcommandlineparser.cpp.

◆ TERMWIDTH

#define TERMWIDTH   79

Definition at line 81 of file mythcommandlineparser.cpp.

Function Documentation

◆ openPidfile()

bool openPidfile ( std::ofstream &  pidfs,
const QString &  pidfile 
)

Definition at line 2675 of file mythcommandlineparser.cpp.

Referenced by MythCommandLineParser::Daemonize().

◆ setUser()

bool setUser ( const QString &  username)

Drop permissions to the specified user.

Definition at line 2691 of file mythcommandlineparser.cpp.

Referenced by MythCommandLineParser::Daemonize().

◆ GetTermWidth()

int GetTermWidth ( void  )

returns terminal width, or 79 on error

Definition at line 91 of file mythcommandlineparser.cpp.

Referenced by CommandLineArg::GetHelpString(), and CommandLineArg::GetLongHelpString().

◆ strip_quotes()

QByteArray strip_quotes ( QByteArray  val)