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 class  BlockType {
  ALLOWLIST ,
  DENYLIST ,
  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

◆ BlockType

enum class DriverBlocklist::Parser::BlockType
strongprivate
Enumerator
ALLOWLIST 
DENYLIST 
UNKNOWN 

Definition at line 130 of file driverblocklist.hxx.

Constructor & Destructor Documentation

◆ Parser()

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

◆ getVersion()

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().

◆ handleContent()

void DriverBlocklist::Parser::handleContent ( xmlreader::XmlReader rReader)
private

Definition at line 488 of file driverblocklist.cxx.

References ALLOWLIST, DENYLIST, handleList(), meBlockType, name, xmlreader::XmlReader::nextItem(), and UNKNOWN.

Referenced by parse().

◆ handleDevices()

void DriverBlocklist::Parser::handleDevices ( DriverInfo rDriver,
xmlreader::XmlReader rReader 
)
staticprivate

◆ handleEntry()

void DriverBlocklist::Parser::handleEntry ( DriverInfo rDriver,
xmlreader::XmlReader rReader 
)
private

◆ handleList()

void DriverBlocklist::Parser::handleList ( xmlreader::XmlReader rReader)
private

Definition at line 452 of file driverblocklist.cxx.

References handleEntry(), mrDriverList, name, and xmlreader::XmlReader::nextItem().

Referenced by handleContent().

◆ parse()

bool DriverBlocklist::Parser::parse ( )

Definition at line 190 of file driverblocklist.cxx.

References handleContent(), maURL, and mrDriverList.

Member Data Documentation

◆ maURL

OUString DriverBlocklist::Parser::maURL
private

Definition at line 139 of file driverblocklist.hxx.

Referenced by parse().

◆ meBlockType

BlockType DriverBlocklist::Parser::meBlockType
private

Definition at line 137 of file driverblocklist.hxx.

Referenced by handleContent(), and handleEntry().

◆ mrDriverList

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

Definition at line 138 of file driverblocklist.hxx.

Referenced by handleList(), and parse().

◆ mVersionType

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: