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
~QGpgMECryptoConfigGroup()
Definition: qgpgmecryptoconfig.cpp:397
QString toString(bool escape) const
Definition: qgpgmecryptoconfig.cpp:867
static const int GPGCONF_FLAG_DEFAULT_DESC
Definition: qgpgmecryptoconfig.cpp:64
Definition: cryptoconfig.h:82
void setStringValueList(const QStringList &)
Definition: qgpgmecryptoconfig.cpp:815
static KUrl parseURL(int mRealArgType, const QString &str)
Definition: qgpgmecryptoconfig.cpp:621
static QString urlpart_decode(const QString &str)
Definition: qgpgmecryptoconfig.cpp:443
static QString gpgconf_unescape(const QString &str)
Definition: qgpgmecryptoconfig.cpp:419
static QString urlpart_encode(const QString &str)
Definition: qgpgmecryptoconfig.cpp:434
Definition: cryptoconfig.h:85
~QGpgMECryptoConfigComponent()
Definition: qgpgmecryptoconfig.cpp:197
void setUIntValueList(const std::vector< unsigned int > &)
Definition: qgpgmecryptoconfig.cpp:839
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
void setURLValue(const KUrl &)
Definition: qgpgmecryptoconfig.cpp:795
void setNumberOfTimesSet(unsigned int)
Definition: qgpgmecryptoconfig.cpp:806
~QGpgMECryptoConfigEntry()
Definition: qgpgmecryptoconfig.cpp:561
KUrl::List urlValueList() const
Definition: qgpgmecryptoconfig.cpp:722
static QString gpgconf_escape(const QString &str)
Definition: qgpgmecryptoconfig.cpp:425
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
virtual ~QGpgMECryptoConfig()
Definition: qgpgmecryptoconfig.cpp:80
unsigned int uintValue() const
Definition: qgpgmecryptoconfig.cpp:614
Definition: qgpgmecryptoconfig.h:117
void setStringValue(const QString &)
Definition: qgpgmecryptoconfig.cpp:766
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
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
Definition: cryptoconfig.h:81
Kleo::CryptoConfigEntry * entry(const QString &name) const
Definition: qgpgmecryptoconfig.cpp:412
Definition: cryptoconfig.h:83
virtual QStringList componentList() const
Definition: qgpgmecryptoconfig.cpp:156
std::vector< int > intValueList() const
Definition: qgpgmecryptoconfig.cpp:696
void setURLValueList(const KUrl::List &)
Definition: qgpgmecryptoconfig.cpp:853
QStringList groupList() const
Definition: qgpgmecryptoconfig.cpp:292
QString outputString() const
Definition: qgpgmecryptoconfig.cpp:912
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:57:49 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:57:49 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.