/* SPDX-FileCopyrightText: 2015 (c) Matthieu Gallien SPDX-License-Identifier: LGPL-3.0-or-later */ #include "config-upnp-qt.h" #include "musiclistenersmanager.h" #include "elisaimportapplication.h" #include "elisa_settings.h" #include #include #include int main(int argc, char *argv[]) { QCoreApplication app(argc, argv); qRegisterMetaType>("QHash"); qRegisterMetaType>("QList"); qRegisterMetaType>("QHash"); qRegisterMetaType>(); qRegisterMetaType>("QMap"); qRegisterMetaType>("QHash"); qRegisterMetaType("DataTypes::ListTrackDataType"); QCommandLineParser parser; parser.addHelpOption(); parser.addVersionOption(); parser.process(app); auto configurationFileName = QStandardPaths::writableLocation(QStandardPaths::ConfigLocation); configurationFileName += QStringLiteral("/elisarc"); Elisa::ElisaConfiguration::instance(configurationFileName); Elisa::ElisaConfiguration::self()->load(); Elisa::ElisaConfiguration::self()->save(); MusicListenersManager myMusicManager; ElisaImportApplication myApplication; QObject::connect(&myMusicManager, &MusicListenersManager::indexerBusyChanged, &myApplication, &ElisaImportApplication::indexingChanged); return app.exec(); }