From kopete-devel Thu Dec 04 16:29:55 2008 From: Michael Larouche Date: Thu, 04 Dec 2008 16:29:55 +0000 To: kopete-devel Subject: Re: [kopete-devel] Native nowlistening support Message-Id: <200812041129.56315.larouche () kde ! org> X-MARC-Message: https://marc.info/?l=kopete-devel&m=122840823707822 Le décembre 3, 2008 10:53:17 AM Tiago Salem Herrmann, vous avez écrit : > Olivier Goffart escreveu: > > Le dimanche 30 novembre 2008, Tiago Salem Herrmann a écrit : > >> Hi all, > >> > >> I've been playing with nowlistening to WLM last days. > >> WLM protocol supports "listening to" in a native way, so we dont need to > >> append strings to the "personal message", which I consider very bad. > >> > >> I'm sending a patch, and it is just an initial idea, as I know we should > >> not add setCurrentSong() method in Account class, but as we have > >> setStatusMessage() there, it was my only idea. > >> > >> Unfortunately I don't know kopete internals and at least for the moment > >> I have no idea how to do this in a better way. > >> Any ideas? > >> > >> Thanks > >> > >> Tiago Salem Herrmann > > > > The old MSN plugin already did tha. > > It used the StatusMessage metaData > > > > http://api.kde.org/4.1-api/kdenetwork-apidocs/kopete/libkopete/html/class > >Kopete_1_1StatusMessage.html > > > > this could be improved, but at least allow you to do what you want i > > think. > > Ah, ok.. the only problem is that if we do not set nowlistening to > append or to replace the status message with the current song, the > protocol will never receive a notification, and then we cant handle > metadata, and if we set to append or replace we do receive metadata but > the personal status message is replaced as well. > Is there a solution for that? > > > _______________________________________________ > kopete-devel mailing list > kopete-devel@kde.org > https://mail.kde.org/mailman/listinfo/kopete-devel the NowListening plugin should be modified to not include metadata when it is in "append to status message" mode. Then in your protocol, test if the metadata are present. -- Michaël Larouche KDE developer -------------------------------------- Website: http://www.tehbisnatch.org/ MSN: michael.larouche@kdemail.net IRC: irc.freenode.org/DarkShock Jabber/email: larouche@kde.org _______________________________________________ kopete-devel mailing list kopete-devel@kde.org https://mail.kde.org/mailman/listinfo/kopete-devel