Hi there, A long long time ago I thought about coding a Kopete Now Listening support in Gnome's Listen audio player. Listen is aimed to be the Gnome alternative for Amarok. Today, I'm proud to announce that Listen support is implemented! :P
The communication is done, of course, using DBUS. I actually think that this
is the first now listening interface to use DBUS, mainly because I had no
other way: Listen is a gnome application, build in Python, and it doesn't
support dcop.
I started working on this extension using the 0.12.2 source code. I just
couldn't get a SVN version working. Therefore, some new SVN changes might
not appear in the diff files. I'll list the few changes in the
nowlistening*.cpp files here, so the developer who puts it in won't hate me.
:) Most of the work is done in new files anyway, nllisten.cpp, nllisten.h.
Changes:
In nowlisteningpreferences.cpp:
preferencesDialog->kcfg_SelectedMediaPlayer->insertItem(QString::fromUtf8("Kaffeine"));
+
preferencesDialog->kcfg_SelectedMediaPlayer->insertItem(QString::fromUtf8("Listen"));
In nowlisteningplugin.cpp:
+#include "nllisten.h"
d->m_mediaPlayerList.append( new NLKaffeine() );
+ d->m_mediaPlayerList.append( new NLlisten() );
In nowlisteningguiclient.cpp:
- i18n( "None of the supported media players (KsCD, JuK, amaroK,
Noatun or Kaffeine) are playing anything." ),
+ i18n( "None of the supported media players (KsCD, JuK, amaroK,
Noatun, Listen or Kaffeine) are playing anything." ),
That's it, folks! diff files and cpp files for nllisten.cpp, h are attached
in a compressed file (tar.gz).
Have a nice day!
nowlistening-listenpatch.tar.gz
Description: GNU Zip compressed data
_______________________________________________ kopete-devel mailing list [email protected] https://mail.kde.org/mailman/listinfo/kopete-devel
