Commit d696f171e272e4985f50be5e4e0da3fc1c0a3877
reverting previous wrong commit
svn path=/tags/amarok/1.3.8/multimedia/amarok/; revision=521392
| |   |
| 512 | 512 | |
| 513 | 513 | void DcopPlaylistHandler::playMedia( const KURL &url ) |
| 514 | 514 | { |
| Playlist::instance()->insertMedia( url, Playlist::DirectPlay | Playlist::Unique); |
| /* ContextBrowser::openURLRequest is necessary for konquisidebar */ |
| ContextBrowser::instance()->openURLRequest( url ); |
| 516 | 517 | } |
| 517 | 518 | |
| 518 | 519 | void DcopPlaylistHandler::popupMessage(const QString& msg) |
| |   |
| 100 | 100 | amarokDCOP->attach(); |
| 101 | 101 | playerStub=new AmarokPlayerInterface_stub( amarokDCOP, "amarok", "player"); |
| 102 | 102 | playlistStub=new AmarokPlaylistInterface_stub( amarokDCOP, "amarok", "playlist"); |
| contextStub = new AmarokContextBrowserInterface_stub (amarokDCOP, "amarok", "contextbrowser"); |
|
| 105 | 103 | |
| 106 | 104 | KToolBar* toolBar=new KToolBar(widget, "PlayerControls"); |
| 107 | 105 | // toolBar->setMaximumHeight(48); |
| |   |
| 78 | 78 | QSlider* vol_slider; |
| 79 | 79 | AmarokPlayerInterface_stub *playerStub; |
| 80 | 80 | AmarokPlaylistInterface_stub *playlistStub; |
| AmarokContextBrowserInterface_stub *contextStub; |
| 82 | 81 | |
| 83 | 82 | public slots: |
| 84 | 83 | void updateBrowser(const QString&); |
| … | … | |
| 91 | 91 | void volChanged(int vol); |
| 92 | 92 | void openURLRequest( const KURL & ); |
| 93 | 93 | void checkForAmarok(); |
| void lyrics() { contextStub->showLyrics(); } |
| void currentTrack() { contextStub->showCurrentTrack(); } |
| void wiki() { contextStub->showWiki(); } |
| void cbHome() { contextStub->showHome(); } |
| void cbHome() { openURLRequest( KURL("show:home") ) ; } |
| void lyrics() { openURLRequest( KURL("show:lyrics") ) ; } |
| void currentTrack() { openURLRequest( KURL("show:context") ) ; } |
| void wiki() { openURLRequest( KURL("show:wiki") ) ; } |
| 98 | 98 | }; |
| 99 | 99 | |
| 100 | 100 | #endif |