Skip to content

Commit

Permalink
Merge pull request #104 from sailfishos-applications/Olf0-patch-2
Browse files Browse the repository at this point in the history
Remove function `startMafw` …
  • Loading branch information
dcaliste authored Jul 5, 2024
2 parents e0b2924 + b2e0ee3 commit d889a6d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 36 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
2 changes: 0 additions & 2 deletions src/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,6 @@ public slots:

void setOrientation(QString val);

void startMafw(QString artist, QString title);

void createAlbumArt(QString imagepath);
void removeAlbumArt();

Expand Down

0 comments on commit d889a6d

Please sign in to comment.