2021-10-21 14:29:15 -05:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
|
|
|
|
/*
|
|
|
|
* 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/.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
class DocumentBroker;
|
|
|
|
namespace Quarantine
|
|
|
|
{
|
2023-05-07 17:07:48 -05:00
|
|
|
void createQuarantineMap(const std::string& path);
|
2021-10-21 14:29:15 -05:00
|
|
|
|
2022-02-02 17:14:56 -06:00
|
|
|
bool quarantineFile(DocumentBroker* docBroker, const std::string& docName);
|
2023-04-21 18:28:23 -05:00
|
|
|
|
|
|
|
/// Removes the quarantined files for the given DocKey when we unload gracefully.
|
|
|
|
void removeQuarantinedFiles(const std::string& docKey);
|
2021-10-21 14:29:15 -05:00
|
|
|
}
|