From 0e7791ae8f4c9ecb5fa2b133a647f856d60e5936 Mon Sep 17 00:00:00 2001 From: olf Date: Sun, 16 Jun 2024 17:53:24 +0200 Subject: [PATCH] =?UTF-8?q?[src/utils.cpp]=20Remove=20function=20`startMaf?= =?UTF-8?q?w`=20=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …, because it appears to be dead code; for details see issue #101. --- src/utils.cpp | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/src/utils.cpp b/src/utils.cpp index 84a82fa..6e93691 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -43,40 +43,6 @@ void Utils::favSong(QString filename, bool fav) executeQuery(QString("update tracks set fav=%1 where url='%2'").arg(val).arg(filename)); } -void Utils::startMafw(QString artist, QString title) -{ - - /*QDBusInterface iface("com.nokia.maemo.meegotouch.MusicSuiteInterface", "/", - "com.nokia.maemo.meegotouch.MusicSuiteInterface", - QDBusConnection::systemBus(), this); - - qDebug() << "SENDING DBUS SIGNAL " << title << artist; - iface.call("mediaChanged", "0", title, artist); - - QString RENDERER_UUID = "mafw_gst_renderer"; - qDebug() << "HELLO WORLD"; - //MafwMessageHandler::initMafwLogging(true); - MafwRegistry* registry = MafwRegistry::instance(); - MafwShared* shared = MafwShared::instance(); - bool initialized = shared->initTracking(registry); - qDebug() << "MafwShared initialization result was: " << initialized; - - QList sources = MafwRegistry::instance()->sources(); - qDebug() << sources.count() << " sources found."; - //Then list names and uuids for each source. - qDebug() << "Name - Uuid"; - - registry = MafwRegistry::instance(); - MafwRenderer* renderer = registry->renderer(RENDERER_UUID); - if (renderer) - { - renderer->play(QUrl("file:///home/nemo/MyDocs/Music/Alexisonfire/Alexisonfire/Adelleda.mp3")); - }*/ - - - -} - void Utils::readLyrics(QString artist, QString song) { QString art = cleanItem(artist);