/***************************************************************************
 *   Copyright (C) 2005 by Sevin Roland                                    *
 *   ro@vaio_ro                                                            *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/
//#include <qmessagebox.h>
#include <qprocess.h>
#include <qstring.h>
#include "../../MedinTuxTools/CGestIni.h"
//-------------------------------------------------------------------------- main -------------------------------------------------------------------------------------
int main( int argc, char ** argv )
{   //................ Lancer le process .................................................................
    QProcess  proc;
    QString pathExe  = CGestIni::Construct_Name_Exe("drtux", QFileInfo (argv[0]).dirPath (true));
    proc.addArgument( pathExe);
    int i=1 ;
    while ( i<argc)
        {proc.addArgument( argv[i]);   
         //qDebug(argv[i] );
          ++i;
        }
    if ( !proc.start() )
       {qDebug("ListView_Patient_doubleClicked(): Echec de l'ouverture du process");
       }
    return 0;
}
