aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpstarter.h
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/qmmpstarter.h
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/qmmpstarter.h')
-rw-r--r--src/qmmpstarter.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/qmmpstarter.h b/src/qmmpstarter.h
index b3094eb69..c859496cf 100644
--- a/src/qmmpstarter.h
+++ b/src/qmmpstarter.h
@@ -25,14 +25,14 @@
#include <QAbstractSocket>
#include <QStringList>
-class QTcpSocket;
+class UnixDomainSocket;
class MainWindow;
/*!
* QMMPStarter represents wrapper object that is responsible
* for proper QMMP initialization(only one instance of running
- * MainWindow) and passing command line args to the TcpServer.
+ * MainWindow) and passing command line args to application.
* @author Vladimir Kuznetsov <vovanec@gmail.com>
*/
class QMMPStarter : public QObject
@@ -42,15 +42,13 @@ public:
QMMPStarter(int argc,char ** argv,QObject* parent = 0);
~QMMPStarter();
protected slots:
- /*!
- * Displays error message.
- */
- void displayError(QAbstractSocket::SocketError socketError);
/*!
- * Passes command args to the running TCP server
+ * Passes command args to the running application
*/
void writeCommand();
+
+ void readCommand();
private:
/*!
* Prints usage
@@ -61,9 +59,11 @@ private:
* Prints version of program
*/
void printVersion();
+
+ void startMainWindow();
private:
MainWindow* mw;
- QTcpSocket* m_tcpSocket;
+ UnixDomainSocket* m_sock;
QString argString;
};