kleopatra
createchecksumscontroller.cpp
Go to the documentation of this file.
85 ResultDialog( const QStringList & created, const QStringList & errors, QWidget * parent=0, Qt::WindowFlags f=0 )
165 static const Qt::CaseSensitivity fs_cs = HAVE_UNIX ? Qt::CaseSensitive : Qt::CaseInsensitive ; // can we use QAbstractFileEngine::caseSensitive()?
185 static QList<QRegExp> get_patterns( const std::vector< shared_ptr<ChecksumDefinition> > & checksumDefinitions )
289 CreateChecksumsController::CreateChecksumsController( const shared_ptr<const ExecutionContext> & ctx, QObject * p )
305 throw Exception( gpg_error( GPG_ERR_INV_ARG ), i18n("Create Checksums: input files must be either all checksum files or all files to be checksummed, not a mixture of both.") );
496 static std::vector<Dir> find_dirs_by_input_files( const QStringList & files, const shared_ptr<ChecksumDefinition> & checksumDefinition, bool allowAddition,
535 for ( std::map<QDir,QStringList,less_dir>::const_iterator it = dirs2files.begin(), end = dirs2files.end() ; it != end ; ++it ) {
592 return s << "Dir(" << dir.dir << "->" << dir.sumFile << "<-(" << dir.totalSize << ')' << dir.inputFiles << ")\n";
601 const std::vector< shared_ptr<ChecksumDefinition> > checksumDefinitions = this->checksumDefinitions;
628 const function<void(int)> progressCb = boost::bind( &Private::progress, this, _1, 0, scanning );
631 : find_dirs_by_input_files( files, checksumDefinition, allowAddition, progressCb, checksumDefinitions ) ;
bool isValid() const
static std::vector< File > parse_sum_file(const QString &fileName)
Definition: createchecksumscontroller.cpp:403
QString cap(int nth) const
QString readLine(qint64 maxlen)
QByteArray trimmed() const
void push_back(const T &value)
static QList< QRegExp > get_patterns(const std::vector< shared_ptr< ChecksumDefinition > > &checksumDefinitions)
Definition: createchecksumscontroller.cpp:185
QString errorString() const
QProcess::ProcessError error() const
int size() const
static QStringList fs_intersect(QStringList l1, QStringList l2)
Definition: createchecksumscontroller.cpp:173
iterator erase(iterator pos)
QString join(const QString &separator) const
CreateChecksumsController(QObject *parent=0)
Definition: createchecksumscontroller.cpp:283
int size() const
void start()
Definition: createchecksumscontroller.cpp:321
QString fromLocal8Bit(const char *str, int size)
bool atEnd() const
bool empty() const
bool allowAddition() const
Definition: createchecksumscontroller.cpp:316
bool isDir() const
void setStandardOutputFile(const QString &fileName, QFlags< QIODevice::OpenModeFlag > mode)
QString fileName() const
static quint64 aggregate_size(const QDir &dir, const QStringList &files)
Definition: createchecksumscontroller.cpp:425
static QString process(const Dir &dir, bool *fatal)
Definition: createchecksumscontroller.cpp:557
static QStringList remove_checksum_files(QStringList l, const QList< QRegExp > &rxs)
Definition: createchecksumscontroller.cpp:362
QString absoluteFilePath() const
bool isEmpty() const
const char * constData() const
QDebug operator<<(QDebug debug, const std::vector< T, A > &v)
Definition: headerview.cpp:78
void cancel()
Definition: createchecksumscontroller.cpp:344
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
QFuture< T > run(Function function,...)
static std::vector< Dir > find_dirs_by_input_files(const QStringList &files, const shared_ptr< ChecksumDefinition > &checksumDefinition, bool allowAddition, const function< void(int)> &progress, const std::vector< shared_ptr< ChecksumDefinition > > &checksumDefinitions)
Definition: createchecksumscontroller.cpp:496
QDir dir() const
Definition: commands/command.h:46
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
iterator end()
void setWorkingDirectory(const QString &dir)
char toLatin1() const
void setAllowAddition(bool allow)
Definition: createchecksumscontroller.cpp:310
QByteArray toLatin1() const
int width() const
static std::vector< Dir > find_dirs_by_sum_files(const QStringList &files, bool allowAddition, const function< void(int)> &progress, const std::vector< shared_ptr< ChecksumDefinition > > &checksumDefinitions)
Definition: createchecksumscontroller.cpp:443
QString absolutePath() const
Definition: setinitialpindialog.cpp:61
QStringList entryList(QFlags< QDir::Filter > filters, QFlags< QDir::SortFlag > sort) const
void setFiles(const QStringList &files)
Definition: createchecksumscontroller.cpp:299
QString absoluteFilePath(const QString &fileName) const
void reserve(int size)
typedef WindowFlags
~CreateChecksumsController()
Definition: createchecksumscontroller.cpp:295
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
int compare(const QString &other) const
bool exactMatch(const QString &str) const
QRect united(const QRect &rectangle) const
QProcess::ExitStatus exitStatus() const
iterator begin()
Definition: controller.h:52
int exitCode() const
QByteArray readAllStandardError()
static shared_ptr< ChecksumDefinition > filename2definition(const QString &fileName, const std::vector< shared_ptr< ChecksumDefinition > > &checksumDefinitions)
Definition: createchecksumscontroller.cpp:432
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:10 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:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.