LibreOffice Module vcl (master)  1
blocklist_parser.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  */
9 
10 #include <vcl/dllapi.h>
11 #include <xmlreader/xmlreader.hxx>
12 #include <vector>
14 
16 {
17 };
18 
20 {
21 public:
22  WinBlocklistParser(const OUString& rURL, std::vector<wgl::DriverInfo>& rDriverList);
23  void parse();
24 
25 private:
26  void handleEntry(wgl::DriverInfo& rDriver, xmlreader::XmlReader& rReader);
27  void handleList(xmlreader::XmlReader& rReader);
28  void handleContent(xmlreader::XmlReader& rReader);
29 
30  enum class BlockType
31  {
32  WHITELIST,
33  BLACKLIST,
34  UNKNOWN
35  };
36 
38  std::vector<wgl::DriverInfo>& mrDriverList;
39  OUString maURL;
40 };
41 
42 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
#define VCL_DLLPUBLIC
Definition: dllapi.h:29
std::vector< wgl::DriverInfo > & mrDriverList
UNKNOWN
bool parse(OUString const &uri, SourceProviderScannerData *data)