generated from general-packages/pika-pkg-template
a8e7e301c1
Some checks failed
PikaOS Package Build & Release (Canary) (amd64-v3) / build (push) Failing after 12s
30 lines
644 B
C++
30 lines
644 B
C++
/*
|
|
SPDX-FileCopyrightText: 2009 Igor Trindade Oliveira <igor_trindade@yahoo.com.br>
|
|
based on kdepimlibs/akonadi/tests/benchmarker.cpp wrote by Robert Zwerus <arzie@dds.nl>
|
|
|
|
SPDX-License-Identifier: LGPL-2.0-or-later
|
|
*/
|
|
|
|
#include "maildirimport.h"
|
|
#include <QDebug>
|
|
#include <QTest>
|
|
|
|
#define WAIT_TIME 100
|
|
|
|
MailDirImport::MailDirImport(const QString &dir)
|
|
: MailDir(dir)
|
|
{
|
|
}
|
|
|
|
void MailDirImport::runTest()
|
|
{
|
|
done = false;
|
|
timer.start();
|
|
qDebug() << " Synchronising resource.";
|
|
currentInstance.synchronize();
|
|
while (!done) {
|
|
QTest::qWait(WAIT_TIME);
|
|
}
|
|
outputStats(QStringLiteral("import"));
|
|
}
|