File indexing completed on 2024-05-26 05:14:10

0001 /*
0002     SPDX-FileCopyrightText: 2020  Daniel Vrátil <dvratil@kde.org>
0003     SPDX-License-Identifier: LGPL-2.0-or-later
0004 */
0005 
0006 #pragma once
0007 
0008 #include "akonaditests_export.h"
0009 
0010 namespace Akonadi
0011 {
0012 class AKONADI_TESTS_EXPORT Config
0013 {
0014 public:
0015     explicit Config();
0016     ~Config() = default;
0017 
0018     static const Config &get();
0019 
0020     struct PayloadCompression {
0021         /**
0022          * Whether or not the payload compression feature should be enabled.
0023          * Default is false (currently).
0024          *
0025          * This only disables only compressing the payload. If the feature is disabled,
0026          * Akonadi can still decompress payloads that have been compressed previously.
0027          */
0028         bool enabled = false;
0029     };
0030 
0031     /**
0032      * Configures behavior of the payload compression feature.
0033      */
0034     PayloadCompression payloadCompression = {};
0035 };
0036 
0037 } // namespace Akonadi