2018-02-08 12:51:54 -06: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/.
|
|
|
|
*/
|
|
|
|
|
2021-03-25 08:47:10 -05:00
|
|
|
#include <config.h>
|
|
|
|
|
2022-02-05 17:14:38 -06:00
|
|
|
#include "WOPIUploadConflictCommon.hpp"
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
#include <Poco/Net/HTTPRequest.h>
|
2018-02-08 12:51:54 -06:00
|
|
|
|
2022-02-05 17:14:38 -06:00
|
|
|
#include "Util.hpp"
|
2018-02-08 12:51:54 -06:00
|
|
|
#include "Log.hpp"
|
|
|
|
#include "UnitHTTP.hpp"
|
|
|
|
#include "helpers.hpp"
|
2020-12-22 18:08:57 -06:00
|
|
|
#include "lokassert.hpp"
|
2018-02-08 12:51:54 -06:00
|
|
|
|
2022-02-05 17:14:38 -06:00
|
|
|
class UnitWOPIDocumentConflict : public WOPIUploadConflictCommon
|
2018-02-08 12:51:54 -06:00
|
|
|
{
|
2022-02-10 05:45:22 -06:00
|
|
|
using WOPIUploadConflictCommon::Phase;
|
|
|
|
using WOPIUploadConflictCommon::Scenario;
|
2018-02-08 12:51:54 -06:00
|
|
|
|
2022-02-10 05:45:22 -06:00
|
|
|
using WOPIUploadConflictCommon::ConflictingDocContent;
|
|
|
|
using WOPIUploadConflictCommon::ModifiedOriginalDocContent;
|
|
|
|
using WOPIUploadConflictCommon::OriginalDocContent;
|
2020-12-22 18:08:57 -06:00
|
|
|
|
2018-02-08 12:51:54 -06:00
|
|
|
public:
|
2020-10-21 06:37:34 -05:00
|
|
|
UnitWOPIDocumentConflict()
|
2022-02-05 17:14:38 -06:00
|
|
|
: WOPIUploadConflictCommon("UnitWOPIDocumentConflict", OriginalDocContent)
|
2018-02-08 12:51:54 -06:00
|
|
|
{
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2020-12-22 18:08:57 -06:00
|
|
|
UnitBase* unit_create_wsd(void) { return new UnitWOPIDocumentConflict(); }
|
2018-02-08 12:51:54 -06:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|