File indexing completed on 2025-01-26 04:45:37

0001 /*
0002     SPDX-FileCopyrightText: 2009 Constantin Berzan <exit3219@gmail.com>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "akonadi-mimeprivate_export.h"
0010 #include "specialmailcollections.h"
0011 
0012 namespace Akonadi
0013 {
0014 /**
0015   @internal
0016   Class that exposes SpecialMailCollections' private methods for use in unit tests.
0017   HACK Is there a better way to do this?
0018 */
0019 class AKONADI_MIME_TEST_EXPORT SpecialMailCollectionsTesting
0020 {
0021 public:
0022     static SpecialMailCollectionsTesting *_t_self();
0023     void _t_setDefaultResourceId(const QString &resourceId);
0024     void _t_forgetFoldersForResource(const QString &resourceId);
0025     void _t_beginBatchRegister();
0026     void _t_endBatchRegister();
0027     int _t_knownResourceCount() const;
0028     int _t_knownFolderCount() const;
0029 };
0030 } // namespace Akonadi