game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
Loading...
Searching...
No Matches
FileVerificationResult Struct Reference

Result of verifying a single file. More...

#include <file_verification_service.h>

Public Member Functions

bool isValid () const
bool needsRepair () const

Public Attributes

std::string actualChecksum
int64_t actualSize = -1
std::string checksumType
 "md5", "sha1", "sha256"
std::string expectedChecksum
int64_t expectedSize = -1
std::filesystem::path path
 File path (relative to game root).
VerificationStatus status = VerificationStatus::Unknown
int verificationTimeMs = 0

Detailed Description

Result of verifying a single file.

Definition at line 65 of file file_verification_service.h.

Member Function Documentation

◆ isValid()

bool FileVerificationResult::isValid ( ) const
inline

Definition at line 82 of file file_verification_service.h.

References status, and Valid.

◆ needsRepair()

bool FileVerificationResult::needsRepair ( ) const
inline

Definition at line 86 of file file_verification_service.h.

References Invalid, Missing, SizeMismatch, and status.

Member Data Documentation

◆ actualChecksum

std::string FileVerificationResult::actualChecksum

Definition at line 76 of file file_verification_service.h.

Referenced by FileVerificationService::verifyFile().

◆ actualSize

int64_t FileVerificationResult::actualSize = -1

Definition at line 77 of file file_verification_service.h.

Referenced by FileVerificationService::verifyFile().

◆ checksumType

std::string FileVerificationResult::checksumType

◆ expectedChecksum

std::string FileVerificationResult::expectedChecksum

◆ expectedSize

int64_t FileVerificationResult::expectedSize = -1

◆ path

std::filesystem::path FileVerificationResult::path

◆ status

VerificationStatus FileVerificationResult::status = VerificationStatus::Unknown

◆ verificationTimeMs

int FileVerificationResult::verificationTimeMs = 0

Definition at line 80 of file file_verification_service.h.

Referenced by FileVerificationService::verifyFile().


The documentation for this struct was generated from the following file: