2
* Copyright 2016 Canonical Ltd.
4
* This program is free software: you can redistribute it and/or modify it under
5
* the terms of the GNU General Public License, version 3, as published by the
6
* Free Software Foundation.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
#include <QStringList>
24
explicit Blacklist(std::string const& data_directory);
25
virtual ~Blacklist() = default;
27
virtual bool app_is_blacklisted(QString const& app_id, std::string const& container_id) const;
30
void parse_blacklist(QString const& blacklist_file_name);
32
QStringList blacklist_;
33
QStringList whitelist_;