|
Hi!
I am trying to use loadPlaylist function using dcop interface. I don\'t get it to work. I thought i have to put the filename of the playlist as argument. I tried also without the path information and with single or double quotes. Neither worked out. E.g. /music/01 Ballads/01 Ballads.m3u \'/music/01 Ballads/01 Ballads.m3u\' \"/music/01 Ballads/01 Ballads.m3u\" It is not a problem with the white spaces! I also tried to load a playlist from a C++ programm using DCOPClient member function call like the following [code:1] QString newPlaylist = \"/music/01 Ballads/01 Ballads.m3u\"; QByteArray myData; QDataStream writeStream(myData, IO_WriteOnly); writeStream << newPlaylist; // use the QByteArray as last argument if (!myDCOPClient.send(\"amarok\", \"playlistbrowser\", \"loadPlaylist(QString)\", myData) ) { qDebug(\"loadPlaylist using DCOP failed.\"«»); } // use the QString as last argument if (!myDCOPClient.send(\"amarok\", \"playlistbrowser\", \"loadPlaylist(QString)\", myData) ) { qDebug(\"loadPlaylist using DCOP failed.\"«»); } [/code:1] Can anyone please help me out. I think it should not be so difficult to load a playlist using DCOP. thanks for any hints schdefan |
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]