LibreOffice Module vcl (master)  1
Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
DriverBlocklist::Parser Class Reference

#include <driverblocklist.hxx>

Public Member Functions

 Parser (const OUString &rURL, std::vector< DriverInfo > &rDriverList, VersionType versionType)
 
bool parse ()
 

Private Types

enum  BlockType {
  BlockType::ALLOWLIST,
  BlockType::DENYLIST,
  BlockType::UNKNOWN
}
 

Private Member Functions

void handleEntry (DriverInfo &rDriver, xmlreader::XmlReader &rReader)
 
void handleList (xmlreader::XmlReader &rReader)
 
void handleContent (xmlreader::XmlReader &rReader)
 
uint64_t getVersion (std::string_view rString)
 

Static Private Member Functions

static void handleDevices (DriverInfo &rDriver, xmlreader::XmlReader &rReader)
 

Private Attributes

BlockType meBlockType
 
std::vector< DriverInfo > & mrDriverList
 
OUString maURL
 
const VersionType mVersionType
 

Detailed Description

Definition at line 117 of file driverblocklist.hxx.

Member Enumeration Documentation

Enumerator
ALLOWLIST 
DENYLIST 
UNKNOWN 

Definition at line 130 of file driverblocklist.hxx.

Constructor & Destructor Documentation

DriverBlocklist::Parser::Parser ( const OUString &  rURL,
std::vector< DriverInfo > &  rDriverList,
VersionType  versionType 
)

Definition at line 182 of file driverblocklist.cxx.

References UNKNOWN.

Member Function Documentation

uint64_t DriverBlocklist::Parser::getVersion ( std::string_view  rString)
private

Definition at line 314 of file driverblocklist.cxx.

References mVersionType, nVersion, and DriverBlocklist::ParseDriverVersion().

Referenced by handleEntry().

void DriverBlocklist::Parser::handleContent ( xmlreader::XmlReader rReader)
private
void DriverBlocklist::Parser::handleDevices ( DriverInfo rDriver,
xmlreader::XmlReader rReader 
)
staticprivate
void DriverBlocklist::Parser::handleEntry ( DriverInfo rDriver,
xmlreader::XmlReader rReader 
)
private
void DriverBlocklist::Parser::handleList ( xmlreader::XmlReader rReader)
private
bool DriverBlocklist::Parser::parse ( )

Definition at line 190 of file driverblocklist.cxx.

References handleContent(), maURL, and mrDriverList.

Referenced by DriverBlocklist::IsDeviceBlocked().

Member Data Documentation

OUString DriverBlocklist::Parser::maURL
private

Definition at line 139 of file driverblocklist.hxx.

Referenced by parse().

BlockType DriverBlocklist::Parser::meBlockType
private

Definition at line 137 of file driverblocklist.hxx.

Referenced by handleContent(), and handleEntry().

std::vector<DriverInfo>& DriverBlocklist::Parser::mrDriverList
private

Definition at line 138 of file driverblocklist.hxx.

Referenced by handleList(), and parse().

const VersionType DriverBlocklist::Parser::mVersionType
private

Definition at line 140 of file driverblocklist.hxx.

Referenced by getVersion().


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