Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
CPDF_ReadValidator Class Reference

#include <cpdf_read_validator.h>

+ Inheritance diagram for CPDF_ReadValidator:
+ Collaboration diagram for CPDF_ReadValidator:

Classes

class  ScopedSession
 

Public Member Functions

void SetDownloadHints (CPDF_DataAvail::DownloadHints *hints)
 
bool read_error () const
 
bool has_unavailable_data () const
 
bool has_read_problems () const
 
void ResetErrors ()
 
bool IsWholeFileAvailable ()
 
bool CheckDataRangeAndRequestIfUnavailable (FX_FILESIZE offset, size_t size)
 
bool CheckWholeFileAndRequestIfUnavailable ()
 
bool ReadBlockAtOffset (pdfium::span< uint8_t > buffer, FX_FILESIZE offset) override
 
FX_FILESIZE GetSize () override
 
- Public Member Functions inherited from IFX_SeekableReadStream
virtual bool IsEOF ()
 
virtual FX_FILESIZE GetPosition ()
 
virtual size_t ReadBlock (pdfium::span< uint8_t > buffer)
 
- Public Member Functions inherited from fxcrt::Retainable
 Retainable ()=default
 
bool HasOneRef () const
 
- Public Member Functions inherited from IFX_StreamWithSize

Public Attributes

 CONSTRUCT_VIA_MAKE_RETAIN
 

Protected Member Functions

 CPDF_ReadValidator (RetainPtr< IFX_SeekableReadStream > file_read, CPDF_DataAvail::FileAvail *file_avail)
 
 ~CPDF_ReadValidator () override
 
- Protected Member Functions inherited from fxcrt::Retainable
virtual ~Retainable ()=default
 

Additional Inherited Members

- Static Public Member Functions inherited from IFX_SeekableReadStream
static RetainPtr< IFX_SeekableReadStreamCreateFromFilename (const char *filename)
 

Detailed Description

Definition at line 14 of file cpdf_read_validator.h.

Constructor & Destructor Documentation

◆ CPDF_ReadValidator()

CPDF_ReadValidator::CPDF_ReadValidator ( RetainPtr< IFX_SeekableReadStream > file_read,
CPDF_DataAvail::FileAvail * file_avail )
protected

Definition at line 43 of file cpdf_read_validator.cpp.

References CPDF_ReadValidator().

Referenced by CPDF_ReadValidator().

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

◆ ~CPDF_ReadValidator()

CPDF_ReadValidator::~CPDF_ReadValidator ( )
overrideprotecteddefault

Member Function Documentation

◆ CheckDataRangeAndRequestIfUnavailable()

bool CPDF_ReadValidator::CheckDataRangeAndRequestIfUnavailable ( FX_FILESIZE offset,
size_t size )

Definition at line 125 of file cpdf_read_validator.cpp.

References CPDF_Stream::kFileBufSize.

◆ CheckWholeFileAndRequestIfUnavailable()

bool CPDF_ReadValidator::CheckWholeFileAndRequestIfUnavailable ( )

Definition at line 155 of file cpdf_read_validator.cpp.

References IsWholeFileAvailable().

+ Here is the call graph for this function:

◆ GetSize()

FX_FILESIZE CPDF_ReadValidator::GetSize ( )
overridevirtual

Implements IFX_StreamWithSize.

Definition at line 82 of file cpdf_read_validator.cpp.

◆ has_read_problems()

bool CPDF_ReadValidator::has_read_problems ( ) const
inline

Definition at line 38 of file cpdf_read_validator.h.

References has_unavailable_data(), and read_error().

+ Here is the call graph for this function:

◆ has_unavailable_data()

bool CPDF_ReadValidator::has_unavailable_data ( ) const
inline

Definition at line 37 of file cpdf_read_validator.h.

Referenced by has_read_problems().

+ Here is the caller graph for this function:

◆ IsWholeFileAvailable()

bool CPDF_ReadValidator::IsWholeFileAvailable ( )

Definition at line 116 of file cpdf_read_validator.cpp.

Referenced by CheckWholeFileAndRequestIfUnavailable().

+ Here is the caller graph for this function:

◆ read_error()

bool CPDF_ReadValidator::read_error ( ) const
inline

Definition at line 36 of file cpdf_read_validator.h.

Referenced by has_read_problems().

+ Here is the caller graph for this function:

◆ ReadBlockAtOffset()

bool CPDF_ReadValidator::ReadBlockAtOffset ( pdfium::span< uint8_t > buffer,
FX_FILESIZE offset )
overridevirtual

Implements IFX_SeekableReadStream.

Definition at line 57 of file cpdf_read_validator.cpp.

◆ ResetErrors()

void CPDF_ReadValidator::ResetErrors ( )

Definition at line 52 of file cpdf_read_validator.cpp.

◆ SetDownloadHints()

void CPDF_ReadValidator::SetDownloadHints ( CPDF_DataAvail::DownloadHints * hints)
inline

Definition at line 33 of file cpdf_read_validator.h.

Member Data Documentation

◆ CONSTRUCT_VIA_MAKE_RETAIN

CPDF_ReadValidator::CONSTRUCT_VIA_MAKE_RETAIN

Definition at line 31 of file cpdf_read_validator.h.


The documentation for this class was generated from the following files: