aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorvovanec <vovanec@90c681e8-e032-0410-971d-27865f9a5e38>2007-09-27 21:24:44 +0000
committervovanec <vovanec@90c681e8-e032-0410-971d-27865f9a5e38>2007-09-27 21:24:44 +0000
commit381f4fed30fe4e5408cddf7e540ce2deca1b3baf (patch)
treec830e6dc158db0f6e4fb70c45435b91122108823 /src/mainwindow.cpp
parent0521ee9675e9434c240094a6c9e5ee15eaa9ee43 (diff)
downloadqmmp-381f4fed30fe4e5408cddf7e540ce2deca1b3baf.tar.gz
qmmp-381f4fed30fe4e5408cddf7e540ce2deca1b3baf.tar.bz2
qmmp-381f4fed30fe4e5408cddf7e540ce2deca1b3baf.zip
redesigned command line interface
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@162 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 36d672175..1e8280875 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -39,7 +39,6 @@
#include "eqwidget.h"
#include "mainvisual.h"
#include "playlistformat.h"
-#include "tcpserver.h"
#include "jumptotrackdialog.h"
#include "aboutdialog.h"
#include <addurldialog.h>
@@ -138,10 +137,6 @@ MainWindow::MainWindow(const QStringList& args, QWidget *parent)
updateEQ();
updateSkin();
- // Starting the TcpServer
-
- new TcpServer(this);
-
FileDialog::registerBuiltinFactories();
FileDialog::registerExternalFactories();
@@ -764,9 +759,17 @@ bool MainWindow::processCommandArgs(const QStringList &slist,const QString& cwd)
else if (str == "--pause")
pause();
else if (str == "--next")
+ {
next();
+ if(!m_core->isInitialized())
+ play();
+ }
else if (str == "--previous")
+ {
previous();
+ if(!m_core->isInitialized())
+ play();
+ }
else if (str == "--play-pause")
playPause();
else
@@ -781,8 +784,6 @@ bool MainWindow::processCommandArgs(const QStringList &slist,const QString& cwd)
full_path_list << s;
else
full_path_list << cwd + "/" + s;
- //qWarning("Current working dir: %s",qPrintable(workingDir));
- //qWarning("Full path to play: %s",qPrintable(workingDir + "/" + s));
}
setFileList(full_path_list);
}