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 (OUString aURL, 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 116 of file driverblocklist.hxx.

Member Enumeration Documentation

◆ BlockType

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

Definition at line 129 of file driverblocklist.hxx.

Constructor & Destructor Documentation

◆ Parser()

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

Definition at line 183 of file driverblocklist.cxx.

References aURL, maURL, and UNKNOWN.

Member Function Documentation

◆ getVersion()

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

Definition at line 315 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 489 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 453 of file driverblocklist.cxx.

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

Referenced by handleContent().

◆ parse()

bool DriverBlocklist::Parser::parse ( )

Definition at line 191 of file driverblocklist.cxx.

References handleContent(), maURL, and mrDriverList.

Member Data Documentation

◆ maURL

OUString DriverBlocklist::Parser::maURL
private

Definition at line 138 of file driverblocklist.hxx.

Referenced by parse().

◆ meBlockType

BlockType DriverBlocklist::Parser::meBlockType
private

Definition at line 136 of file driverblocklist.hxx.

Referenced by handleContent(), and handleEntry().

◆ mrDriverList

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

Definition at line 137 of file driverblocklist.hxx.

Referenced by handleList(), and parse().

◆ mVersionType

const VersionType DriverBlocklist::Parser::mVersionType
private

Definition at line 139 of file driverblocklist.hxx.

Referenced by getVersion().


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