projects
/
vlc-remote
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improved encoding support for browsing and adding.
[vlc-remote]
/
playermainwindow.cpp
diff --git
a/playermainwindow.cpp
b/playermainwindow.cpp
index
b4b2ed4
..
2e42289
100644
(file)
--- a/
playermainwindow.cpp
+++ b/
playermainwindow.cpp
@@
-116,34
+116,27
@@
void PlayerMainWindow::play()
{
void PlayerMainWindow::play()
{
-
mNetManager->get(QNetworkRequest(QUrl("http://"+mIp+"/requests/status.xml?command=pl_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::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::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::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::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::fullscreen()
{
mNetManager->get(QNetworkRequest(QUrl("http://"+mIp+"/requests/status.xml?command=fullscreen")));
-
}
void PlayerMainWindow::volUp()
{
}
void PlayerMainWindow::volUp()
{
@@
-153,9
+146,7
@@
}
void PlayerMainWindow::volDown()
{
}
void PlayerMainWindow::volDown()
{
-
mNetManager->get(QNetworkRequest(QUrl("http://"+mIp+"/requests/status.xml?command=volume&val=-20")));
mNetManager->get(QNetworkRequest(QUrl("http://"+mIp+"/requests/status.xml?command=volume&val=-20")));
-
}
void PlayerMainWindow::volMute()
{
}
void PlayerMainWindow::volMute()
{
@@
-166,12
+157,10
@@
else {
mNetManager->get(QNetworkRequest(QUrl("http://"+mIp+"/requests/status.xml?command=volume&val="+QString::number(this->mVolume))));
}
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::slide(int value)
{
mNetManager->get(QNetworkRequest(QUrl("http://"+mIp+"/requests/status.xml?command=seek&val="+QString::number(value)+"%25")));
-
}
void PlayerMainWindow::showConfig()
}
void PlayerMainWindow::showConfig()
@@
-185,6
+174,7
@@
mPlayListMainWindow->init();
mBrowserMainWindow->init();
mTimer->start(5000);
mPlayListMainWindow->init();
mBrowserMainWindow->init();
mTimer->start(5000);
+ askStatus();
}
void PlayerMainWindow::showAbout()
{
}
void PlayerMainWindow::showAbout()
{
@@
-227,12
+217,12
@@
QTime timeLength(0,0,0) ;
timeLength = timeLength.addSecs(time);
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");
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);
if ( position >= 0 && position <=100)
ui->slider->setValue(position);