libkleo
qgpgmecryptoconfig.cpp
Go to the documentation of this file.
65 static const int GPGCONF_FLAG_NOARG_DESC = 64; // option with optional arg; special meaning if no arg set
72 return info.fileName() ? QFile::decodeName( info.fileName() ) : KStandardDirs::findExe( QLatin1String("gpgconf") );
138 const std::pair<QString,QGpgMECryptoConfigComponent*> pair( lst[0], new QGpgMECryptoConfigComponent( this, lst[0], lst[1] ) );
191 QGpgMECryptoConfigComponent::QGpgMECryptoConfigComponent( QGpgMECryptoConfig*, const QString& name, const QString& description )
236 kWarning(5150) <<"Running 'gpgconf --list-options" << mName <<"' failed." << strerror( rc ) <<", but try that command to see the real output";
238 if ( mCurrentGroup && !mCurrentGroup->mEntriesNaturalOrder.empty() ) { // only add non-empty groups
264 if ( mCurrentGroup && !mCurrentGroup->mEntriesNaturalOrder.empty() ) { // only add non-empty groups
285 // dirmngr[31465]: error opening `/home/dfaure/.gnupg/dirmngr_ldapservers.conf': No such file or directory
332 const QByteArray line8bit = line.toUtf8(); // encode with utf8, and K3ProcIO uses utf8 when reading.
367 QString wmsg = i18n( "Could not start gpgconf.\nCheck that gpgconf is in the PATH and that it can be started." );
373 QString wmsg = i18n( "Error from gpgconf while saving configuration: %1", QString::fromLocal8Bit( strerror( rc ) ) );
388 QGpgMECryptoConfigGroup::QGpgMECryptoConfigGroup( QGpgMECryptoConfigComponent * comp, const QString & name, const QString& description, int level )
428 QString enc = QLatin1String(KUrl::toPercentEncoding( str )); // and convert to utf8 first (to get %12%34 for one special char)
470 QGpgMECryptoConfigEntry::QGpgMECryptoConfigEntry( QGpgMECryptoConfigGroup * group, const QStringList& parsedLine )
490 kWarning(5150) <<"Unsupported datatype:" << parsedLine[4] <<" :" << *it <<" for" << parsedLine[0];
530 for( QStringList::const_iterator valit = items.constBegin(); valit != items.constEnd(); ++valit ) {
658 ( url.port() != -1 ? QString::number( url.port() ) : QString() ) + QLatin1Char(':') + // -1 is used for default ports, omit
760 // Being set means mSet==true + mValue==true, being unset means resetToDefault(), i.e. both false
unsigned int numberOfTimesSet() const
Definition: qgpgmecryptoconfig.cpp:682
QVariant stringToValue(const QString &value, bool unescape) const
Definition: qgpgmecryptoconfig.cpp:516
Definition: cryptoconfig.h:87
QStringList stringValueList() const
Definition: qgpgmecryptoconfig.cpp:689
iterator insert(const Key &key, const T &value)
~QGpgMECryptoConfigGroup()
Definition: qgpgmecryptoconfig.cpp:397
QString toString(bool escape) const
Definition: qgpgmecryptoconfig.cpp:867
QList< QVariant > toList() const
QObject * sender() const
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
static const int GPGCONF_FLAG_DEFAULT_DESC
Definition: qgpgmecryptoconfig.cpp:64
QString & prepend(QChar ch)
Definition: cryptoconfig.h:82
void setStringValueList(const QStringList &)
Definition: qgpgmecryptoconfig.cpp:815
static KUrl parseURL(int mRealArgType, const QString &str)
Definition: qgpgmecryptoconfig.cpp:621
QString join(const QString &separator) const
static QString urlpart_decode(const QString &str)
Definition: qgpgmecryptoconfig.cpp:443
void chop(int n)
static QString gpgconf_unescape(const QString &str)
Definition: qgpgmecryptoconfig.cpp:419
static QString urlpart_encode(const QString &str)
Definition: qgpgmecryptoconfig.cpp:434
int size() const
Definition: cryptoconfig.h:85
~QGpgMECryptoConfigComponent()
Definition: qgpgmecryptoconfig.cpp:197
QString number(int n, int base)
int count(const T &value) const
QString fromLocal8Bit(const char *str, int size)
void setUIntValueList(const std::vector< unsigned int > &)
Definition: qgpgmecryptoconfig.cpp:839
void append(const T &value)
QString fromUtf8(const char *str, int size)
uint toUInt(bool *ok) const
int toInt(bool *ok) const
bool isNull() const
QList< Key > uniqueKeys() const
bool isStringType() const
Definition: qgpgmecryptoconfig.cpp:918
static QString splitURL(int mRealArgType, const KUrl &url)
Definition: qgpgmecryptoconfig.cpp:652
static const int GPGCONF_FLAG_NOARG_DESC
Definition: qgpgmecryptoconfig.cpp:65
bool isEmpty() const
void setURLValue(const KUrl &)
Definition: qgpgmecryptoconfig.cpp:795
bool isEmpty() const
void setNumberOfTimesSet(unsigned int)
Definition: qgpgmecryptoconfig.cpp:806
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
~QGpgMECryptoConfigEntry()
Definition: qgpgmecryptoconfig.cpp:561
KUrl::List urlValueList() const
Definition: qgpgmecryptoconfig.cpp:722
static QString gpgconf_escape(const QString &str)
Definition: qgpgmecryptoconfig.cpp:425
void clear()
iterator end()
const T value(const Key &key) const
CryptoConfig implementation around the gpgconf command-line tool For method docu, see kleo/cryptoconf...
Definition: qgpgmecryptoconfig.h:54
void setIntValueList(const std::vector< int > &)
Definition: qgpgmecryptoconfig.cpp:825
QString stringValue() const
Definition: qgpgmecryptoconfig.cpp:602
QString & replace(int position, int n, QChar after)
virtual ~QGpgMECryptoConfig()
Definition: qgpgmecryptoconfig.cpp:80
unsigned int uintValue() const
Definition: qgpgmecryptoconfig.cpp:614
QByteArray toLatin1() const
Definition: qgpgmecryptoconfig.h:117
QString mid(int position, int n) const
void setStringValue(const QString &)
Definition: qgpgmecryptoconfig.cpp:766
QStringList toStringList() const
virtual Kleo::CryptoConfigComponent * component(const QString &name) const
Definition: qgpgmecryptoconfig.cpp:166
void setUIntValue(unsigned int)
Definition: qgpgmecryptoconfig.cpp:788
QGpgMECryptoConfigGroup(QGpgMECryptoConfigComponent *comp, const QString &name, const QString &description, int level)
Definition: qgpgmecryptoconfig.cpp:388
QGpgMECryptoConfigComponent(QGpgMECryptoConfig *, const QString &name, const QString &description)
Definition: qgpgmecryptoconfig.cpp:191
Definition: cryptoconfig.h:84
Definition: qgpgmecryptoconfig.h:141
Definition: cryptoconfig.h:86
QGpgMECryptoConfigEntry(QGpgMECryptoConfigGroup *group, const QStringList &parsedLine)
Definition: qgpgmecryptoconfig.cpp:470
Kleo::CryptoConfigGroup * group(const QString &name) const
Definition: qgpgmecryptoconfig.cpp:300
bool toBool() const
std::vector< unsigned int > uintValueList() const
Definition: qgpgmecryptoconfig.cpp:709
QStringList entryList() const
Definition: qgpgmecryptoconfig.cpp:404
static Kleo::CryptoConfigEntry::ArgType knownArgType(int argType, bool &ok)
Definition: qgpgmecryptoconfig.cpp:449
QString fromLatin1(const char *str, int size)
Definition: cryptoconfig.h:81
Kleo::CryptoConfigEntry * entry(const QString &name) const
Definition: qgpgmecryptoconfig.cpp:412
Definition: cryptoconfig.h:83
const_iterator constEnd() const
const_iterator constBegin() const
virtual QStringList componentList() const
Definition: qgpgmecryptoconfig.cpp:156
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
std::vector< int > intValueList() const
Definition: qgpgmecryptoconfig.cpp:696
void setURLValueList(const KUrl::List &)
Definition: qgpgmecryptoconfig.cpp:853
QString toString() const
QStringList groupList() const
Definition: qgpgmecryptoconfig.cpp:292
iterator begin()
QString outputString() const
Definition: qgpgmecryptoconfig.cpp:912
QString decodeName(const QByteArray &localFileName)
uint toUInt(bool *ok, int base) const
QByteArray toUtf8() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:38 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:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.