X-Git-Url: http://git.maemo.org/git/?p=vlc-remote;a=blobdiff_plain;f=playermainwindow.cpp;h=2e4228924eef3b9b098545e8dbfc0e885027e7ba;hp=b4b2ed4c79abbf6f430df59004abe54c7eec95a1;hb=2b5ac4716899e468d31fbdcd244aa36d44f82ed7;hpb=7a3af78191e1b704547268be27b20e02fed677d4 diff --git a/playermainwindow.cpp b/playermainwindow.cpp index b4b2ed4..2e42289 100644 --- a/playermainwindow.cpp +++ b/playermainwindow.cpp @@ -116,34 +116,27 @@ void PlayerMainWindow::play() { - mNetManager->get(QNetworkRequest(QUrl("http://"+mIp+"/requests/status.xml?command=pl_play"))); - } void PlayerMainWindow::stop() { mNetManager->get(QNetworkRequest(QUrl("http://"+mIp+"/requests/status.xml?command=pl_stop"))); - } void PlayerMainWindow::pause() { mNetManager->get(QNetworkRequest(QUrl("http://"+mIp+"/requests/status.xml?command=pl_pause"))); - } void PlayerMainWindow::previous() { mNetManager->get(QNetworkRequest(QUrl("http://"+mIp+"/requests/status.xml?command=pl_previous"))); - } void PlayerMainWindow::next() { mNetManager->get(QNetworkRequest(QUrl("http://"+mIp+"/requests/status.xml?command=pl_next"))); - } void PlayerMainWindow::fullscreen() { mNetManager->get(QNetworkRequest(QUrl("http://"+mIp+"/requests/status.xml?command=fullscreen"))); - } void PlayerMainWindow::volUp() { @@ -153,9 +146,7 @@ } void PlayerMainWindow::volDown() { - mNetManager->get(QNetworkRequest(QUrl("http://"+mIp+"/requests/status.xml?command=volume&val=-20"))); - } void PlayerMainWindow::volMute() { @@ -166,12 +157,10 @@ else { mNetManager->get(QNetworkRequest(QUrl("http://"+mIp+"/requests/status.xml?command=volume&val="+QString::number(this->mVolume)))); } - } void PlayerMainWindow::slide(int value) { mNetManager->get(QNetworkRequest(QUrl("http://"+mIp+"/requests/status.xml?command=seek&val="+QString::number(value)+"%25"))); - } void PlayerMainWindow::showConfig() @@ -185,6 +174,7 @@ mPlayListMainWindow->init(); mBrowserMainWindow->init(); mTimer->start(5000); + askStatus(); } void PlayerMainWindow::showAbout() { @@ -227,12 +217,12 @@ QTime timeLength(0,0,0) ; timeLength = timeLength.addSecs(time); - ui->timeLabel->setText(timeLength.toString("mm:ss")); + ui->timeLabel->setText(timeLength.toString("h:mm:ss")); QDomNode infoNode = docElem.namedItem("information"); QDomNode metaInfoNode = infoNode.namedItem("meta-information"); - QString title = metaInfoNode.namedItem("title").toElement().text(); + QString title = metaInfoNode.namedItem("title").toElement().text().replace("\\\\", "\\"); if ( position >= 0 && position <=100) ui->slider->setValue(position);