killpoco: remove lots of redundant JSON includes.

Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: I976c5b8d6763cbbf0ee5cadfa2f7335ec719fe85
pull/8871/head
Michael Meeks 2024-04-18 19:47:57 +01:00
parent 4f01c7e4de
commit 1b6af5e28d
21 changed files with 22 additions and 40 deletions

View File

@ -20,8 +20,10 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include <Poco/Dynamic/Var.h>
#include <Poco/JSON/Object.h> #include <Poco/JSON/Object.h>
#include <Poco/JSON/Parser.h> #include <Poco/JSON/Parser.h>
namespace JsonUtil namespace JsonUtil
{ {

View File

@ -18,9 +18,7 @@
#include <string_view> #include <string_view>
#include <iostream> #include <iostream>
#include <Poco/JSON/JSON.h> #include "JsonUtil.hpp"
#include <Poco/JSON/Object.h>
#include <Poco/JSON/Parser.h>
#include "Protocol.hpp" #include "Protocol.hpp"
#include "Log.hpp" #include "Log.hpp"

View File

@ -19,8 +19,7 @@
#include <sysexits.h> #include <sysexits.h>
#include <thread> #include <thread>
#include <Poco/JSON/Object.h> #include "JsonUtil.hpp"
#include <Poco/JSON/Parser.h>
#include <Poco/Util/LayeredConfiguration.h> #include <Poco/Util/LayeredConfiguration.h>
#include <Poco/Util/Application.h> #include <Poco/Util/Application.h>

View File

@ -62,14 +62,13 @@
#include <Poco/ConsoleChannel.h> #include <Poco/ConsoleChannel.h>
#include <Poco/Exception.h> #include <Poco/Exception.h>
#include <Poco/Format.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/TemporaryFile.h>
#include <Poco/Util/Application.h> #include <Poco/Util/Application.h>
#include <Poco/URI.h> #include <Poco/URI.h>
#include "Log.hpp" #include "Log.hpp"
#include "JsonUtil.hpp"
#include "Protocol.hpp" #include "Protocol.hpp"
#include "TraceEvent.hpp" #include "TraceEvent.hpp"

View File

@ -24,8 +24,6 @@
#define LOK_USE_UNSTABLE_API #define LOK_USE_UNSTABLE_API
#include <LibreOfficeKit/LibreOfficeKitEnums.h> #include <LibreOfficeKit/LibreOfficeKitEnums.h>
#include <Poco/JSON/Object.h>
#include <Poco/JSON/Parser.h>
#include <Poco/StreamCopier.h> #include <Poco/StreamCopier.h>
#include <Poco/URI.h> #include <Poco/URI.h>
#include <Poco/BinaryReader.h> #include <Poco/BinaryReader.h>

View File

@ -57,8 +57,6 @@
#include <Poco/File.h> #include <Poco/File.h>
#include <Poco/Exception.h> #include <Poco/Exception.h>
#include <Poco/JSON/Object.h>
#include <Poco/JSON/Parser.h>
#include <Poco/URI.h> #include <Poco/URI.h>
#include "ChildSession.hpp" #include "ChildSession.hpp"
@ -76,6 +74,7 @@
#include <Unit.hpp> #include <Unit.hpp>
#include <UserMessages.hpp> #include <UserMessages.hpp>
#include <Util.hpp> #include <Util.hpp>
#include <JsonUtil.hpp>
#include "Watermark.hpp" #include "Watermark.hpp"
#include "RenderTiles.hpp" #include "RenderTiles.hpp"
#include "KitWebSocket.hpp" #include "KitWebSocket.hpp"

View File

@ -21,7 +21,7 @@
#include "StringVector.hpp" #include "StringVector.hpp"
#include "lokassert.hpp" #include "lokassert.hpp"
#include <Poco/JSON/Object.h> #include <JsonUtil.hpp>
#include <Poco/URI.h> #include <Poco/URI.h>
#include <Poco/Util/LayeredConfiguration.h> #include <Poco/Util/LayeredConfiguration.h>

View File

@ -23,9 +23,7 @@
#include <wsd/TileDesc.hpp> #include <wsd/TileDesc.hpp>
#include <Poco/BinaryReader.h> #include <Poco/BinaryReader.h>
#include <Poco/Dynamic/Var.h> #include <JsonUtil.hpp>
#include <Poco/JSON/JSON.h>
#include <Poco/JSON/Parser.h>
#include <Poco/Net/HTTPClientSession.h> #include <Poco/Net/HTTPClientSession.h>
#include <Poco/Net/HTTPRequest.h> #include <Poco/Net/HTTPRequest.h>
#include <Poco/Net/HTTPResponse.h> #include <Poco/Net/HTTPResponse.h>

View File

@ -19,8 +19,6 @@
#include <cstring> #include <cstring>
#include <Poco/Dynamic/Var.h> #include <Poco/Dynamic/Var.h>
#include <Poco/JSON/JSON.h>
#include <Poco/JSON/Parser.h>
#include <Poco/Net/AcceptCertificateHandler.h> #include <Poco/Net/AcceptCertificateHandler.h>
#include <Poco/Net/HTTPResponse.h> #include <Poco/Net/HTTPResponse.h>
#include <Poco/Net/InvalidCertificateHandler.h> #include <Poco/Net/InvalidCertificateHandler.h>

View File

@ -21,8 +21,6 @@
#include <Poco/Crypto/RSADigestEngine.h> #include <Poco/Crypto/RSADigestEngine.h>
#include <Poco/Crypto/RSAKey.h> #include <Poco/Crypto/RSAKey.h>
#include <Poco/Dynamic/Var.h> #include <Poco/Dynamic/Var.h>
#include <Poco/JSON/Object.h>
#include <Poco/JSON/Parser.h>
#include <Poco/LineEndingConverter.h> #include <Poco/LineEndingConverter.h>
#include <Poco/Net/HTTPClientSession.h> #include <Poco/Net/HTTPClientSession.h>
#include <Poco/Net/HTTPRequest.h> #include <Poco/Net/HTTPRequest.h>
@ -31,6 +29,7 @@
#include <Poco/URI.h> #include <Poco/URI.h>
#include <Log.hpp> #include <Log.hpp>
#include <JsonUtil.hpp>
#include <Util.hpp> #include <Util.hpp>
#include <Protocol.hpp> #include <Protocol.hpp>
#include "COOLWSD.hpp" #include "COOLWSD.hpp"

View File

@ -24,7 +24,6 @@
#include <Poco/Net/HTTPResponse.h> #include <Poco/Net/HTTPResponse.h>
#include <Poco/StreamCopier.h> #include <Poco/StreamCopier.h>
#include <Poco/URI.h> #include <Poco/URI.h>
#include <Poco/JSON/Object.h>
#include "DocumentBroker.hpp" #include "DocumentBroker.hpp"
#include "COOLWSD.hpp" #include "COOLWSD.hpp"

View File

@ -26,7 +26,6 @@
#include <Poco/DigestStream.h> #include <Poco/DigestStream.h>
#include <Poco/Exception.h> #include <Poco/Exception.h>
#include <Poco/JSON/Object.h>
#include <Poco/Path.h> #include <Poco/Path.h>
#include <Poco/SHA1Engine.h> #include <Poco/SHA1Engine.h>
#include <Poco/StreamCopier.h> #include <Poco/StreamCopier.h>

View File

@ -21,6 +21,7 @@
#include <string> #include <string>
#include <utility> #include <utility>
#include <Poco/SharedPtr.h>
#include <Poco/URI.h> #include <Poco/URI.h>
#include "Log.hpp" #include "Log.hpp"
@ -48,6 +49,13 @@ struct LockContext;
class TileCache; class TileCache;
class Message; class Message;
namespace Poco {
namespace JSON {
class Object;
};
};
class UrpHandler : public SimpleSocketHandler class UrpHandler : public SimpleSocketHandler
{ {
public: public:
@ -366,7 +374,7 @@ public:
/// Handle the save response from Core and upload to storage as necessary. /// Handle the save response from Core and upload to storage as necessary.
/// Also notifies clients of the result. /// Also notifies clients of the result.
void handleSaveResponse(const std::shared_ptr<ClientSession>& session, 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. /// Check if uploading is needed, and start uploading.
/// The current state of uploading must be introspected separately. /// The current state of uploading must be introspected separately.

View File

@ -26,6 +26,7 @@
#include <Log.hpp> #include <Log.hpp>
#include <Protocol.hpp> #include <Protocol.hpp>
#include <Util.hpp> #include <Util.hpp>
#include <JsonUtil.hpp>
#include <common/ConfigUtil.hpp> #include <common/ConfigUtil.hpp>
#include <common/LangUtil.hpp> #include <common/LangUtil.hpp>
#if !MOBILEAPP #if !MOBILEAPP
@ -38,7 +39,6 @@
#include <Poco/DateTimeFormatter.h> #include <Poco/DateTimeFormatter.h>
#include <Poco/Exception.h> #include <Poco/Exception.h>
#include <Poco/FileStream.h> #include <Poco/FileStream.h>
#include <Poco/JSON/Object.h>
#include <Poco/MemoryStream.h> #include <Poco/MemoryStream.h>
#include <Poco/Net/HTMLForm.h> #include <Poco/Net/HTMLForm.h>
#include <Poco/Net/HTTPBasicCredentials.h> #include <Poco/Net/HTTPBasicCredentials.h>

View File

@ -14,7 +14,7 @@
#include "FileServer.hpp" #include "FileServer.hpp"
#include "StringVector.hpp" #include "StringVector.hpp"
#include <Poco/JSON/Object.h> #include <JsonUtil.hpp>
#include <cctype> #include <cctype>

View File

@ -14,11 +14,7 @@
#include "common/SigUtil.hpp" #include "common/SigUtil.hpp"
#include "Log.hpp" #include "Log.hpp"
#include "TileDesc.hpp" #include "TileDesc.hpp"
#include "JsonUtil.hpp"
#include <Poco/Dynamic/Var.h>
#include <Poco/JSON/JSON.h>
#include <Poco/JSON/Object.h>
#include <Poco/JSON/Parser.h>
#include <deque> #include <deque>
#include <mutex> #include <mutex>

View File

@ -17,8 +17,6 @@
#include <string> #include <string>
#include <Poco/Exception.h> #include <Poco/Exception.h>
#include <Poco/JSON/Object.h>
#include <Poco/JSON/Parser.h>
#if !MOBILEAPP #if !MOBILEAPP

View File

@ -19,7 +19,6 @@
#include <Poco/URI.h> #include <Poco/URI.h>
#include <Poco/Util/Application.h> #include <Poco/Util/Application.h>
#include <Poco/JSON/Object.h>
#include "HttpRequest.hpp" #include "HttpRequest.hpp"
#include "COOLWSD.hpp" #include "COOLWSD.hpp"

View File

@ -48,9 +48,6 @@
#endif #endif
#include <Poco/Exception.h> #include <Poco/Exception.h>
#include <Poco/JSON/Object.h>
#include <Poco/JSON/Parser.h>
#include <Poco/StreamCopier.h>
#include <Poco/URI.h> #include <Poco/URI.h>
#include <iconv.h> #include <iconv.h>

View File

@ -24,8 +24,6 @@
#include <wopi/StorageConnectionManager.hpp> #include <wopi/StorageConnectionManager.hpp>
#include <wopi/WopiStorage.hpp> #include <wopi/WopiStorage.hpp>
#include <Poco/JSON/Object.h>
void WopiProxy::handleRequest([[maybe_unused]] const std::shared_ptr<TerminatingPoll>& poll, void WopiProxy::handleRequest([[maybe_unused]] const std::shared_ptr<TerminatingPoll>& poll,
SocketDisposition& disposition) SocketDisposition& disposition)
{ {

View File

@ -29,8 +29,6 @@
#include <common/TraceEvent.hpp> #include <common/TraceEvent.hpp>
#include <Poco/Exception.h> #include <Poco/Exception.h>
#include <Poco/JSON/Object.h>
#include <Poco/JSON/Parser.h>
#include <Poco/Net/AcceptCertificateHandler.h> #include <Poco/Net/AcceptCertificateHandler.h>
#include <Poco/Net/Context.h> #include <Poco/Net/Context.h>
#include <Poco/Net/DNS.h> #include <Poco/Net/DNS.h>