QtPass 2.0.0
Developer documentation
Loading...
Searching...
No Matches
util.cpp File Reference

Implements Util; the staged, link-safe store writes (stageFileReplacing() and its helpers) and the store walk (walkStore()) live here. More...

#include "util.h"
#include "appsettings.h"
#include "executor.h"
#include <QCoreApplication>
#include <QDebug>
#include <QDir>
#include <QFile>
#include <QFileDevice>
#include <QFileInfo>
#include <QHash>
#include <QRegularExpression>
#include <QRegularExpressionMatchIterator>
#include <QScopeGuard>
#include <QStandardPaths>
#include <QTemporaryFile>
#include <QUrl>
#include <algorithm>
#include <array>
#include <cstring>
#include <memory>
#include <optional>
#include <utility>
#include <vector>
#include <cerrno>
#include <cstdio>
#include <dirent.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <unistd.h>
#include "qtpasslogging.h"
Include dependency graph for util.cpp:

Go to the source code of this file.

Variables

std::function< void(const QString &)> s_beforePlacingForTests
 setBeforePlacingForTests(): called between staging and the rename.

Detailed Description

Implements Util; the staged, link-safe store writes (stageFileReplacing() and its helpers) and the store walk (walkStore()) live here.

Definition in file util.cpp.

Variable Documentation

◆ s_beforePlacingForTests

std::function<void(const QString &)> s_beforePlacingForTests

setBeforePlacingForTests(): called between staging and the rename.

Definition at line 391 of file util.cpp.