From 381f4fed30fe4e5408cddf7e540ce2deca1b3baf Mon Sep 17 00:00:00 2001 From: vovanec Date: Thu, 27 Sep 2007 21:24:44 +0000 Subject: redesigned command line interface git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@162 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpstarter.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/qmmpstarter.h') 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 #include -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 */ 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; }; -- cgit v1.2.3-13-gbd6f