kleopatra
gpgconfcheck.cpp
Go to the documentation of this file.
64 : SelfTestImplementation( i18nc("@title", "%1 Configuration Check", component && *component ? QLatin1String(component) : QLatin1String("gpgconf") ) ),
86 gpgconf.start( gpgConfPath(), QStringList() << QLatin1String("--list-dirs"), QIODevice::ReadOnly );
96 return QDir( QFile::decodeName( hexdecode( line.mid( strlen( "sysconfdir:" ) ) ) ) ).exists( QLatin1String("gpgconf.conf") );
118 const QString message = process.exitStatus() == QProcess::CrashExit ? i18n( "The process terminated prematurely" ) : process.errorString() ;
128 message, m_component.isEmpty() ? QLatin1String("GnuPG") : m_component, arguments().join(QLatin1String(" ") ) );
QList< QByteArray > split(char sep) const
QProcess::ProcessError error() const
void clear()
QString fromUtf8(const char *str, int size)
static QString process(const Dir &dir, bool *fatal)
Definition: createchecksumscontroller.cpp:557
bool isEmpty() const
QString trimmed() const
QByteArray readAll()
Definition: commands/command.h:46
QByteArray mid(int pos, int len) const
void setProcessChannelMode(ProcessChannelMode mode)
boost::shared_ptr< SelfTest > makeGpgConfCheckConfigurationSelfTest(const char *component=0)
Definition: gpgconfcheck.cpp:154
void setReadChannel(ProcessChannel channel)
QProcess::ExitStatus exitStatus() const
int exitCode() const
void start(const QString &program, const QStringList &arguments, QFlags< QIODevice::OpenModeFlag > mode)
QString decodeName(const QByteArray &localFileName)
bool waitForFinished(int msecs)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.