File indexing completed on 2025-01-05 03:58:15
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2021-01-05 0007 * Description : an unit test to check text online-translators. 0008 * 0009 * SPDX-FileCopyrightText: 2021-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0010 * 0011 * SPDX-License-Identifier: GPL-2.0-or-later 0012 * 0013 * ============================================================ */ 0014 0015 // Qt includes 0016 0017 #include <QCoreApplication> 0018 #include <QTest> 0019 #include <QList> 0020 #include <QObject> 0021 #include <QUrl> 0022 0023 // Local includes 0024 0025 #include "digikam_debug.h" 0026 #include "donlinetranslator.h" 0027 0028 using namespace Digikam; 0029 0030 int main(int argc, char* argv[]) 0031 { 0032 QCoreApplication app(argc, argv); 0033 0034 DOnlineTts tts; 0035 tts.generateUrls(QLatin1String("Hello World!"), DOnlineTranslator::Google, DOnlineTranslator::English); 0036 QList<QUrl> urls = tts.media(); 0037 0038 qCDebug(DIGIKAM_TESTS_LOG) << urls; 0039 0040 return 0; 0041 }