Skip to content

Commit

Permalink
[src/utils.cpp] Remove function startMafw
Browse files Browse the repository at this point in the history
…, because it appears to be dead code; for details see issue #101.
  • Loading branch information
Olf0 authored Jun 16, 2024
1 parent 19a9ec1 commit 0e7791a
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<MafwSource*> 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);
Expand Down

0 comments on commit 0e7791a

Please sign in to comment.