1 /* 2 SPDX-FileCopyrightText: 2009 Constantin Berzan <exit3219@gmail.com> 3 4 SPDX-License-Identifier: LGPL-2.0-or-later 5 */ 6 7 #pragma once 8 9 #include "akonadi-mimeprivate_export.h" 10 #include "specialmailcollections.h" 11 12 namespace Akonadi 13 { 14 /** 15 @internal 16 Class that exposes SpecialMailCollections' private methods for use in unit tests. 17 HACK Is there a better way to do this? 18 */ 19 class AKONADI_MIME_TEST_EXPORT SpecialMailCollectionsTesting 20 { 21 public: 22 static SpecialMailCollectionsTesting *_t_self(); 23 void _t_setDefaultResourceId(const QString &resourceId); 24 void _t_forgetFoldersForResource(const QString &resourceId); 25 void _t_beginBatchRegister(); 26 void _t_endBatchRegister(); 27 int _t_knownResourceCount() const; 28 int _t_knownFolderCount() const; 29 }; 30 } // namespace Akonadi 31 32