File indexing completed on 2024-05-12 05:28:18

0001 // SPDX-FileCopyrightText: 2004 Marc Mutz <mutz@kde.org>
0002 // SPDX-FileCopyrightText: 2004 Ingo Kloecker <kloecker@kde.org>
0003 // SPDX-License-Identifier: GPL-2.0-or-later
0004 
0005 #pragma once
0006 
0007 #include "bodypartformatterbasefactory.h"
0008 #include <memory>
0009 #include <optional>
0010 
0011 namespace MimeTreeParser
0012 {
0013 class BodyPartFormatterBaseFactory;
0014 class ObjectTreeParser;
0015 
0016 class BodyPartFormatterBaseFactoryPrivate
0017 {
0018 public:
0019     BodyPartFormatterBaseFactoryPrivate(BodyPartFormatterBaseFactory *factory);
0020     ~BodyPartFormatterBaseFactoryPrivate();
0021 
0022     void setup();
0023     void messageviewer_create_builtin_bodypart_formatters(); // defined in bodypartformatter.cpp
0024     void insert(const char *type, const char *subtype, Interface::BodyPartFormatter *formatter);
0025 
0026     BodyPartFormatterBaseFactory *q;
0027     std::optional<TypeRegistry> all;
0028     ObjectTreeParser *mOtp;
0029 };
0030 
0031 }