libkleo
qgpgmenewcryptoconfig.cpp
Go to the documentation of this file.
99 const QString wmsg = i18n("<qt>Failed to execute gpgconf:<p>%1</p></qt>", QString::fromLocal8Bit( error.asString() ) );
166 const shared_ptr<QGpgMENewCryptoConfigEntry> entry( new QGpgMENewCryptoConfigEntry( group, o ) );
210 const QString wmsg = i18n( "Error from gpgconf while saving configuration: %1", QString::fromLocal8Bit( err.asString() ) );
219 QGpgMENewCryptoConfigGroup::QGpgMENewCryptoConfigGroup( const shared_ptr<QGpgMENewCryptoConfigComponent> & comp, const Option & option )
275 QString enc = KUrl::toPercentEncoding( str ); // and convert to utf8 first (to get %12%34 for one special char)
318 QGpgMENewCryptoConfigEntry::QGpgMENewCryptoConfigEntry( const shared_ptr<QGpgMENewCryptoConfigGroup> & group, const Option & option )
338 for( QStringList::const_iterator valit = items.constBegin(); valit != items.constEnd(); ++valit ) {
374 kWarning(5150) <<"Deleting a QGpgMENewCryptoConfigEntry that was modified (" << m_option.description() <<")"
504 ( url.port() != -1 ? QString::number( url.port() ) : QString() ) + QLatin1Char(':') + // -1 is used for default ports, omit
bool isReadOnly() const
Definition: qgpgmenewcryptoconfig.cpp:402
void setNumberOfTimesSet(unsigned int)
Definition: qgpgmenewcryptoconfig.cpp:639
Definition: cryptoconfig.h:87
void setURLValue(const KUrl &)
Definition: qgpgmenewcryptoconfig.cpp:624
void setUIntValue(unsigned int)
Definition: qgpgmenewcryptoconfig.cpp:617
QStringList groupList() const
Definition: qgpgmenewcryptoconfig.cpp:190
QGpgMENewCryptoConfigGroup(const boost::shared_ptr< QGpgMENewCryptoConfigComponent > &parent, const GpgME::Configuration::Option &option)
Definition: qgpgmenewcryptoconfig.cpp:219
~QGpgMENewCryptoConfigGroup()
Definition: qgpgmenewcryptoconfig.cpp:226
void push_back(const T &value)
void setBoolValue(bool)
Definition: qgpgmenewcryptoconfig.cpp:585
CryptoConfig implementation around the gpgconf command-line tool For method docu, see kleo/cryptoconf...
Definition: qgpgmenewcryptoconfig.h:159
QGpgMENewCryptoConfigEntry(const boost::shared_ptr< QGpgMENewCryptoConfigGroup > &group, const GpgME::Configuration::Option &option)
Definition: qgpgmenewcryptoconfig.cpp:318
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
static KUrl parseURL(int mRealArgType, const QString &str)
Definition: qgpgmenewcryptoconfig.cpp:467
void reserve(int alloc)
void setComponent(const GpgME::Configuration::Component &component)
Definition: qgpgmenewcryptoconfig.cpp:152
QString & prepend(QChar ch)
QString description() const
Definition: qgpgmenewcryptoconfig.cpp:384
int size() const
Definition: cryptoconfig.h:82
~QGpgMENewCryptoConfigEntry()
Definition: qgpgmenewcryptoconfig.cpp:370
Kleo::CryptoConfigEntry::Level level() const
Definition: qgpgmenewcryptoconfig.cpp:246
QString join(const QString &separator) const
QGpgMENewCryptoConfigComponent * component(const QString &name) const
Definition: qgpgmenewcryptoconfig.cpp:122
QString stringValue() const
Definition: qgpgmenewcryptoconfig.cpp:445
bool isRuntime() const
Definition: qgpgmenewcryptoconfig.cpp:412
QStringList entryList() const
Definition: qgpgmenewcryptoconfig.cpp:252
static QString gpgconf_unescape(const QString &str)
Definition: qgpgmecryptoconfig.cpp:419
~QGpgMENewCryptoConfig()
Definition: qgpgmenewcryptoconfig.cpp:77
int size() const
Definition: cryptoconfig.h:85
QString description() const
Definition: qgpgmenewcryptoconfig.cpp:185
QString number(int n, int base)
int count(const T &value) const
QString fromLocal8Bit(const char *str, int size)
void sync(bool runtime)
Definition: qgpgmenewcryptoconfig.cpp:205
QString fromUtf8(const char *str, int size)
void setIntValueList(const std::vector< int > &)
Definition: qgpgmenewcryptoconfig.cpp:661
QGpgMENewCryptoConfigEntry * entry(const QString &name) const
Definition: qgpgmenewcryptoconfig.cpp:257
static QString splitURL(int mRealArgType, const KUrl &url)
Definition: qgpgmenewcryptoconfig.cpp:498
bool isEmpty() const
void setURLValueList(const KUrl::List &)
Definition: qgpgmenewcryptoconfig.cpp:675
const char * constData() const
iterator begin()
ArgType argType() const
Definition: qgpgmenewcryptoconfig.cpp:423
QGpgMENewCryptoConfigGroup * group(const QString &name) const
Definition: qgpgmenewcryptoconfig.cpp:200
QStringList stringValueList() const
Definition: qgpgmenewcryptoconfig.cpp:535
static Kleo::CryptoConfigEntry::ArgType knownArgType(int argType, bool &ok)
Definition: qgpgmenewcryptoconfig.cpp:297
void setIntValue(int)
Definition: qgpgmenewcryptoconfig.cpp:610
static QString urlpart_encode(const QString &str)
Definition: qgpgmenewcryptoconfig.cpp:282
QString description() const
Definition: qgpgmenewcryptoconfig.cpp:233
static QString gpgconf_escape(const QString &str)
Definition: qgpgmecryptoconfig.cpp:425
void clear()
iterator end()
const T value(const Key &key) const
~QGpgMENewCryptoConfigComponent()
Definition: qgpgmenewcryptoconfig.cpp:178
QString & replace(int position, int n, QChar after)
bool boolValue() const
Definition: qgpgmenewcryptoconfig.cpp:438
void setStringValueList(const QStringList &)
Definition: qgpgmenewcryptoconfig.cpp:646
For docu, see kleo/cryptoconfig.h.
Definition: qgpgmenewcryptoconfig.h:135
QByteArray toLatin1() const
QString mid(int position, int n) const
char * toString(const T &value)
void setStringValue(const QString &)
Definition: qgpgmenewcryptoconfig.cpp:594
KUrl::List urlValueList() const
Definition: qgpgmenewcryptoconfig.cpp:561
unsigned int uintValue() const
Definition: qgpgmenewcryptoconfig.cpp:460
bool isOptional() const
Definition: qgpgmenewcryptoconfig.cpp:397
Definition: cryptoconfig.h:84
Definition: cryptoconfig.h:86
QStringList componentList() const
Definition: qgpgmenewcryptoconfig.cpp:111
void setUIntValueList(const std::vector< unsigned int > &)
Definition: qgpgmenewcryptoconfig.cpp:668
void resetToDefault()
Definition: qgpgmenewcryptoconfig.cpp:580
QString fromLatin1(const char *str, int size)
Definition: cryptoconfig.h:81
Definition: cryptoconfig.h:83
iterator end()
const_iterator constEnd() const
const_iterator constBegin() const
static QString urlpart_decode(const QString &str)
Definition: qgpgmenewcryptoconfig.cpp:291
unsigned int numberOfTimesSet() const
Definition: qgpgmenewcryptoconfig.cpp:528
QGpgMENewCryptoConfigComponent()
Definition: qgpgmenewcryptoconfig.cpp:145
std::vector< int > intValueList() const
Definition: qgpgmenewcryptoconfig.cpp:547
iterator begin()
QByteArray encodeName(const QString &fileName)
QString decodeName(const QByteArray &localFileName)
std::vector< unsigned int > uintValueList() const
Definition: qgpgmenewcryptoconfig.cpp:554
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.