File indexing completed on 2024-12-22 04:52:51
0001 /* 0002 SPDX-FileCopyrightText: 2009 Igor Trindade Oliveira <igor_trindade@yahoo.com.br> 0003 based on kdepimlibs/akonadi/tests/benchmarker.cpp wrote by Robert Zwerus <arzie@dds.nl> 0004 0005 SPDX-License-Identifier: LGPL-2.0-or-later 0006 */ 0007 0008 #include "maildirimport.h" 0009 #include <QDebug> 0010 #include <QTest> 0011 0012 #define WAIT_TIME 100 0013 0014 MailDirImport::MailDirImport(const QString &dir) 0015 : MailDir(dir) 0016 { 0017 } 0018 0019 void MailDirImport::runTest() 0020 { 0021 done = false; 0022 timer.start(); 0023 qDebug() << " Synchronising resource."; 0024 currentInstance.synchronize(); 0025 while (!done) { 0026 QTest::qWait(WAIT_TIME); 0027 } 0028 outputStats(QStringLiteral("import")); 0029 } 0030 0031 #include "moc_maildirimport.cpp"