Improved encoding support for browsing and adding.
[vlc-remote] / playermainwindow.cpp
index b4b2ed4..2e42289 100644 (file)
 
   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()
   {
   }
   void PlayerMainWindow::volDown()
   {
-
       mNetManager->get(QNetworkRequest(QUrl("http://"+mIp+"/requests/status.xml?command=volume&val=-20")));
-
   }
   void PlayerMainWindow::volMute()
   {
       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()
       mPlayListMainWindow->init();
       mBrowserMainWindow->init();
       mTimer->start(5000);
+      askStatus();
   }
   void PlayerMainWindow::showAbout()
   {
       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);