Files
libreoffice/vcl/opengl/win/blocklist_parser.hxx
Markus Mohrhard 0f5b7dfea9 finally enable the blacklist parser
Change-Id: I8346872a3e5bc7443524e5039f66eea0d3d381cd
Reviewed-on: https://gerrit.libreoffice.org/16335
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2015-06-17 12:48:48 +00:00

46 lines
1.0 KiB
C++

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include "opengl/win/WinDeviceInfo.hxx"
#include <xmlreader/xmlreader.hxx>
#include <vector>
class InvalidFileException
{
};
class WinBlocklistParser
{
public:
WinBlocklistParser(const OUString& rURL, std::vector<wgl::DriverInfo>& rDriverList);
void parse();
private:
void handleDevice(wgl::DriverInfo& rDriver, xmlreader::XmlReader& rReader);
void handleList(xmlreader::XmlReader& rReader);
void handleContent(xmlreader::XmlReader& rReader);
enum class BlockType
{
WHITELIST,
BLACKLIST,
UNKNOWN
};
BlockType meBlockType;
std::vector<wgl::DriverInfo>& mrDriverList;
OUString maURL;
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */