killpoco: remove lots of redundant JSON includes.
Signed-off-by: Michael Meeks <michael.meeks@collabora.com> Change-Id: I976c5b8d6763cbbf0ee5cadfa2f7335ec719fe85pull/8871/head
parent
4f01c7e4de
commit
1b6af5e28d
|
@ -20,8 +20,10 @@
|
|||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <Poco/Dynamic/Var.h>
|
||||
#include <Poco/JSON/Object.h>
|
||||
#include <Poco/JSON/Parser.h>
|
||||
|
||||
namespace JsonUtil
|
||||
{
|
||||
|
||||
|
|
|
@ -18,9 +18,7 @@
|
|||
#include <string_view>
|
||||
#include <iostream>
|
||||
|
||||
#include <Poco/JSON/JSON.h>
|
||||
#include <Poco/JSON/Object.h>
|
||||
#include <Poco/JSON/Parser.h>
|
||||
#include "JsonUtil.hpp"
|
||||
|
||||
#include "Protocol.hpp"
|
||||
#include "Log.hpp"
|
||||
|
|
|
@ -19,8 +19,7 @@
|
|||
#include <sysexits.h>
|
||||
#include <thread>
|
||||
|
||||
#include <Poco/JSON/Object.h>
|
||||
#include <Poco/JSON/Parser.h>
|
||||
#include "JsonUtil.hpp"
|
||||
#include <Poco/Util/LayeredConfiguration.h>
|
||||
#include <Poco/Util/Application.h>
|
||||
|
||||
|
|
|
@ -62,14 +62,13 @@
|
|||
#include <Poco/ConsoleChannel.h>
|
||||
#include <Poco/Exception.h>
|
||||
#include <Poco/Format.h>
|
||||
#include <Poco/JSON/JSON.h>
|
||||
#include <Poco/JSON/Object.h>
|
||||
#include <Poco/JSON/Parser.h>
|
||||
|
||||
#include <Poco/TemporaryFile.h>
|
||||
#include <Poco/Util/Application.h>
|
||||
#include <Poco/URI.h>
|
||||
|
||||
#include "Log.hpp"
|
||||
#include "JsonUtil.hpp"
|
||||
#include "Protocol.hpp"
|
||||
#include "TraceEvent.hpp"
|
||||
|
||||
|
|
|
@ -24,8 +24,6 @@
|
|||
#define LOK_USE_UNSTABLE_API
|
||||
#include <LibreOfficeKit/LibreOfficeKitEnums.h>
|
||||
|
||||
#include <Poco/JSON/Object.h>
|
||||
#include <Poco/JSON/Parser.h>
|
||||
#include <Poco/StreamCopier.h>
|
||||
#include <Poco/URI.h>
|
||||
#include <Poco/BinaryReader.h>
|
||||
|
|
|
@ -57,8 +57,6 @@
|
|||
|
||||
#include <Poco/File.h>
|
||||
#include <Poco/Exception.h>
|
||||
#include <Poco/JSON/Object.h>
|
||||
#include <Poco/JSON/Parser.h>
|
||||
#include <Poco/URI.h>
|
||||
|
||||
#include "ChildSession.hpp"
|
||||
|
@ -76,6 +74,7 @@
|
|||
#include <Unit.hpp>
|
||||
#include <UserMessages.hpp>
|
||||
#include <Util.hpp>
|
||||
#include <JsonUtil.hpp>
|
||||
#include "Watermark.hpp"
|
||||
#include "RenderTiles.hpp"
|
||||
#include "KitWebSocket.hpp"
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
#include "StringVector.hpp"
|
||||
#include "lokassert.hpp"
|
||||
|
||||
#include <Poco/JSON/Object.h>
|
||||
#include <JsonUtil.hpp>
|
||||
#include <Poco/URI.h>
|
||||
#include <Poco/Util/LayeredConfiguration.h>
|
||||
|
||||
|
|
|
@ -23,9 +23,7 @@
|
|||
#include <wsd/TileDesc.hpp>
|
||||
|
||||
#include <Poco/BinaryReader.h>
|
||||
#include <Poco/Dynamic/Var.h>
|
||||
#include <Poco/JSON/JSON.h>
|
||||
#include <Poco/JSON/Parser.h>
|
||||
#include <JsonUtil.hpp>
|
||||
#include <Poco/Net/HTTPClientSession.h>
|
||||
#include <Poco/Net/HTTPRequest.h>
|
||||
#include <Poco/Net/HTTPResponse.h>
|
||||
|
|
|
@ -19,8 +19,6 @@
|
|||
#include <cstring>
|
||||
|
||||
#include <Poco/Dynamic/Var.h>
|
||||
#include <Poco/JSON/JSON.h>
|
||||
#include <Poco/JSON/Parser.h>
|
||||
#include <Poco/Net/AcceptCertificateHandler.h>
|
||||
#include <Poco/Net/HTTPResponse.h>
|
||||
#include <Poco/Net/InvalidCertificateHandler.h>
|
||||
|
|
|
@ -21,8 +21,6 @@
|
|||
#include <Poco/Crypto/RSADigestEngine.h>
|
||||
#include <Poco/Crypto/RSAKey.h>
|
||||
#include <Poco/Dynamic/Var.h>
|
||||
#include <Poco/JSON/Object.h>
|
||||
#include <Poco/JSON/Parser.h>
|
||||
#include <Poco/LineEndingConverter.h>
|
||||
#include <Poco/Net/HTTPClientSession.h>
|
||||
#include <Poco/Net/HTTPRequest.h>
|
||||
|
@ -31,6 +29,7 @@
|
|||
#include <Poco/URI.h>
|
||||
|
||||
#include <Log.hpp>
|
||||
#include <JsonUtil.hpp>
|
||||
#include <Util.hpp>
|
||||
#include <Protocol.hpp>
|
||||
#include "COOLWSD.hpp"
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#include <Poco/Net/HTTPResponse.h>
|
||||
#include <Poco/StreamCopier.h>
|
||||
#include <Poco/URI.h>
|
||||
#include <Poco/JSON/Object.h>
|
||||
|
||||
#include "DocumentBroker.hpp"
|
||||
#include "COOLWSD.hpp"
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
|
||||
#include <Poco/DigestStream.h>
|
||||
#include <Poco/Exception.h>
|
||||
#include <Poco/JSON/Object.h>
|
||||
#include <Poco/Path.h>
|
||||
#include <Poco/SHA1Engine.h>
|
||||
#include <Poco/StreamCopier.h>
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
#include <Poco/SharedPtr.h>
|
||||
#include <Poco/URI.h>
|
||||
|
||||
#include "Log.hpp"
|
||||
|
@ -48,6 +49,13 @@ struct LockContext;
|
|||
class TileCache;
|
||||
class Message;
|
||||
|
||||
namespace Poco {
|
||||
namespace JSON {
|
||||
class Object;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
class UrpHandler : public SimpleSocketHandler
|
||||
{
|
||||
public:
|
||||
|
@ -366,7 +374,7 @@ public:
|
|||
/// Handle the save response from Core and upload to storage as necessary.
|
||||
/// Also notifies clients of the result.
|
||||
void handleSaveResponse(const std::shared_ptr<ClientSession>& session,
|
||||
const Poco::JSON::Object::Ptr& json);
|
||||
const Poco::SharedPtr<Poco::JSON::Object>& json);
|
||||
|
||||
/// Check if uploading is needed, and start uploading.
|
||||
/// The current state of uploading must be introspected separately.
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include <Log.hpp>
|
||||
#include <Protocol.hpp>
|
||||
#include <Util.hpp>
|
||||
#include <JsonUtil.hpp>
|
||||
#include <common/ConfigUtil.hpp>
|
||||
#include <common/LangUtil.hpp>
|
||||
#if !MOBILEAPP
|
||||
|
@ -38,7 +39,6 @@
|
|||
#include <Poco/DateTimeFormatter.h>
|
||||
#include <Poco/Exception.h>
|
||||
#include <Poco/FileStream.h>
|
||||
#include <Poco/JSON/Object.h>
|
||||
#include <Poco/MemoryStream.h>
|
||||
#include <Poco/Net/HTMLForm.h>
|
||||
#include <Poco/Net/HTTPBasicCredentials.h>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include "FileServer.hpp"
|
||||
#include "StringVector.hpp"
|
||||
|
||||
#include <Poco/JSON/Object.h>
|
||||
#include <JsonUtil.hpp>
|
||||
|
||||
#include <cctype>
|
||||
|
||||
|
|
|
@ -14,11 +14,7 @@
|
|||
#include "common/SigUtil.hpp"
|
||||
#include "Log.hpp"
|
||||
#include "TileDesc.hpp"
|
||||
|
||||
#include <Poco/Dynamic/Var.h>
|
||||
#include <Poco/JSON/JSON.h>
|
||||
#include <Poco/JSON/Object.h>
|
||||
#include <Poco/JSON/Parser.h>
|
||||
#include "JsonUtil.hpp"
|
||||
|
||||
#include <deque>
|
||||
#include <mutex>
|
||||
|
|
|
@ -17,8 +17,6 @@
|
|||
#include <string>
|
||||
|
||||
#include <Poco/Exception.h>
|
||||
#include <Poco/JSON/Object.h>
|
||||
#include <Poco/JSON/Parser.h>
|
||||
|
||||
#if !MOBILEAPP
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
|
||||
#include <Poco/URI.h>
|
||||
#include <Poco/Util/Application.h>
|
||||
#include <Poco/JSON/Object.h>
|
||||
|
||||
#include "HttpRequest.hpp"
|
||||
#include "COOLWSD.hpp"
|
||||
|
|
|
@ -48,9 +48,6 @@
|
|||
#endif
|
||||
|
||||
#include <Poco/Exception.h>
|
||||
#include <Poco/JSON/Object.h>
|
||||
#include <Poco/JSON/Parser.h>
|
||||
#include <Poco/StreamCopier.h>
|
||||
#include <Poco/URI.h>
|
||||
|
||||
#include <iconv.h>
|
||||
|
|
|
@ -24,8 +24,6 @@
|
|||
#include <wopi/StorageConnectionManager.hpp>
|
||||
#include <wopi/WopiStorage.hpp>
|
||||
|
||||
#include <Poco/JSON/Object.h>
|
||||
|
||||
void WopiProxy::handleRequest([[maybe_unused]] const std::shared_ptr<TerminatingPoll>& poll,
|
||||
SocketDisposition& disposition)
|
||||
{
|
||||
|
|
|
@ -29,8 +29,6 @@
|
|||
#include <common/TraceEvent.hpp>
|
||||
|
||||
#include <Poco/Exception.h>
|
||||
#include <Poco/JSON/Object.h>
|
||||
#include <Poco/JSON/Parser.h>
|
||||
#include <Poco/Net/AcceptCertificateHandler.h>
|
||||
#include <Poco/Net/Context.h>
|
||||
#include <Poco/Net/DNS.h>
|
||||
|
|
Loading…
Reference in New Issue