libkleo
checksumdefinition.cpp
Go to the documentation of this file.
72 qWarning( "checksumdefinition.cpp: installPath() called before QCoreApplication was constructed" );
105 : Kleo::Exception( GPG_ERR_INV_PARAMETER, i18n("Error in checksum definition %1: %2", id, message ), MessageOnly ),
131 QString * command, QStringList * prefix, QStringList * suffix, ChecksumDefinition::ArgumentPassingMethod * method )
156 l = l.replaceInStrings( QLatin1String("__path_goes_here__"), ChecksumDefinition::installPath() );
181 qDebug() << "ChecksumDefinition[" << id << ']' << *command << *prefix << FILE_PLACEHOLDER << *suffix;
242 ChecksumDefinition::ChecksumDefinition( const QString & id, const QString & label, const QString & outputFileName, const QStringList & patterns )
297 qDebug( "[%p] Starting %s %s", p, qPrintable( cmd ), qPrintable( args.join(QLatin1String(" ")) ) );
343 std::vector< shared_ptr<ChecksumDefinition> > ChecksumDefinition::getChecksumDefinitions( QStringList & errors ) {
346 const QStringList groups = config->groupList().filter( QRegExp(QLatin1String("^Checksum Definition #")) );
350 const shared_ptr<ChecksumDefinition> ad( new KConfigBasedChecksumDefinition( KConfigGroup( config, group ) ) );
363 shared_ptr<ChecksumDefinition> ChecksumDefinition::getDefaultChecksumDefinition( const std::vector< shared_ptr<ChecksumDefinition> > & checksumDefinitions ) {
377 void ChecksumDefinition::setDefaultChecksumDefinition( const shared_ptr<ChecksumDefinition> & checksumDefinition ) {
bool startCreateCommand(QProcess *process, const QStringList &files) const
Definition: checksumdefinition.cpp:320
static void parse_command(QString cmdline, const QString &id, const QString &whichCommand, QString *command, QStringList *prefix, QStringList *suffix, ChecksumDefinition::ArgumentPassingMethod *method)
Definition: checksumdefinition.cpp:130
ArgumentPassingMethod
Definition: checksumdefinition.h:57
QString verifyCommand() const
Definition: checksumdefinition.cpp:259
static const QLatin1String CREATE_COMMAND_ENTRY("create-command")
static const QLatin1String ID_ENTRY("id")
static const QLatin1String NAME_ENTRY("Name")
static bool start_command(QProcess *p, const char *functionName, const QString &cmd, const QStringList &args, const QStringList &files, ChecksumDefinition::ArgumentPassingMethod method)
Definition: checksumdefinition.cpp:282
static std::vector< boost::shared_ptr< ChecksumDefinition > > getChecksumDefinitions()
Definition: checksumdefinition.cpp:337
static CryptoBackendFactory * instance()
Definition: cryptobackendfactory.cpp:102
static const QLatin1String FILE_PATTERNS_ENTRY("file-patterns")
static const QLatin1String FILE_PLACEHOLDER("%f")
Definition: checksumdefinition.h:51
QString createCommand() const
Definition: checksumdefinition.cpp:255
ChecksumDefinition(const QString &id, const QString &label, const QString &outputFileName, const QStringList &extensions)
Definition: checksumdefinition.cpp:242
static void setInstallPath(const QString &ip)
Definition: checksumdefinition.cpp:77
bool startVerifyCommand(QProcess *process, const QStringList &files) const
Definition: checksumdefinition.cpp:328
static const QLatin1String INSTALLPATH_PLACEHOLDER("%I")
static const QLatin1String CHECKSUM_DEFINITION_ID_ENTRY("checksum-definition-id")
static void setDefaultChecksumDefinition(const boost::shared_ptr< ChecksumDefinition > &checksumDefinition)
Definition: checksumdefinition.cpp:377
static const QLatin1String VERIFY_COMMAND_ENTRY("verify-command")
static const QLatin1Char NEWLINE_SEPARATED_STDIN_INDICATOR( '|')
static QByteArray make_input(const QStringList &files, char sep)
Definition: checksumdefinition.cpp:273
static const QLatin1String OUTPUT_FILE_ENTRY("output-file")
Definition: exception.h:45
virtual ~ChecksumDefinition()
Definition: checksumdefinition.cpp:253
static QString installPath()
Definition: checksumdefinition.cpp:65
static boost::shared_ptr< ChecksumDefinition > getDefaultChecksumDefinition(const std::vector< boost::shared_ptr< ChecksumDefinition > > &available)
Definition: checksumdefinition.cpp:363
static QString try_extensions(const QString &path)
Definition: checksumdefinition.cpp:117
static const QLatin1String NULL_SEPARATED_STDIN_INDICATOR("0|")
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:57:48 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:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.