/***************************************************************************
                            kde_KShellProcess.h -  description
                             -------------------
    begin                : Sun Nov 24 16:54:36 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Sun Nov 24 16:54:36 2002, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This library is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Library General Public License as       *
 *   published by the Free Software Foundation; either version 2 of the    *
 *   License, or (at your option) any later version.                       *
 *                                                                         *
 ***************************************************************************/

#ifndef KDE_KSHELLPROCESS
#define KDE_KSHELLPROCESS

#include <qtc/qtc_types.h>

#include <kdec/kde_types.h>

/**
*
 @obsolete

 This class is obsolete. Use KProcess and KProcess::setUseShell(true)
 instead.

 @author Christian Czezakte <e9025461@student.tuwien.ac.at>

 @version $Id: kde_KShellProcess.h,v 1.4 2002/11/25 12:24:35 rdale Exp $

 @short A class derived from @ref KProcess to start child
   	processes through a shell.

*/

/** *
 Constructor

 By specifying the name of a shell (like "/bin/bash") you can override
 the mechanism for finding a valid shell as described in KProcess::searchShell()
   
*/
kde_KShellProcess * kde_new_KShellProcess(char* shellname);

/** *
 Destructor.
   
*/
void kde_del_KShellProcess( kde_KShellProcess* p );

/** *
 Starts up the process. -- For a detailed description
 have a look at the "start" member function and the detailed
 description of @ref KProcess .
   
*/
int kde_KShellProcess_start(kde_KShellProcess* instPointer,int runmode, int comm);

/** *
 This function can be used to quote an argument string such that
 the shell processes it properly. This is e. g. necessary for
 user-provided file names which may contain spaces or quotes.
 It also prevents expansion of wild cards and environment variables.
   
*/
qt_QString * kde_KShellProcess_quote( qt_QString * arg);
void kde_KShellProcess_virtual_hook(kde_KShellProcess* instPointer,int identifier, void* data);

#endif
