LeechCraft  0.6.70-18450-gabe19ee3b0
Modular cross-platform feature rich live environment.
LC::Util::ConsistencyChecker Namespace Reference

Classes

struct  Failed
 
struct  RecoverFinished
 
struct  RecoverNoSpace
 
struct  RecoverOtherFailure
 
struct  RecoverTargetExists
 
struct  Succeeded
 

Typedefs

using CheckResult_t = Either< Failed, Succeeded >
 
using RecoverFailed = std::variant< RecoverNoSpace, RecoverTargetExists, RecoverOtherFailure >
 
using RecoverResult_t = Either< RecoverFailed, RecoverFinished >
 

Functions

Task< CheckResult_tCheck (QString dbPath)
 
Task< RecoverResult_tRecover (QString dbPath)
 
Task< RecoverResult_tRecoverWithUserInteraction (QString dbPath, QString diaTitle)
 

Typedef Documentation

◆ CheckResult_t

◆ RecoverFailed

◆ RecoverResult_t

Function Documentation

◆ Check()

UTIL_DB_API Task< CheckResult_t > LC::Util::ConsistencyChecker::Check ( QString  dbPath)

Definition at line 79 of file consistencychecker.cpp.

Referenced by LC::Util::CustomCookieJar::setCookiesFromUrl().

+ Here is the caller graph for this function:

◆ Recover()

UTIL_DB_API Task< RecoverResult_t > LC::Util::ConsistencyChecker::Recover ( QString  dbPath)

Definition at line 84 of file consistencychecker.cpp.

References LC::Util::DumpSqlite(), LC::Util::ConsistencyChecker::RecoverFinished::OldFileSize_, and LC::Util::WithHandler().

Referenced by RecoverWithUserInteraction().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RecoverWithUserInteraction()

UTIL_DB_API Task< RecoverResult_t > LC::Util::ConsistencyChecker::RecoverWithUserInteraction ( QString  dbPath,
QString  diaTitle 
)

Definition at line 139 of file consistencychecker.cpp.

References LC::Util::FormatName(), and Recover().

+ Here is the call graph for this function: