Main Page | Class List | Directories | File List

konvprocess.h

00001 /***************************************************************************
00002  *   Copyright (C) 2004 by Marco Kraus                                     *
00003  *   marco@libsdl.de                                                       *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 #ifndef KONVPROCESS_H
00021 #define KONVPROCESS_H
00022 
00023 #include <qprocess.h>
00024 #include <qstring.h>
00025 #include <qstringlist.h>
00026 #include <qfileinfo.h>
00027 
00031 class KonvProcess : public QProcess
00032 {
00033 Q_OBJECT
00034 public:
00035     KonvProcess(QObject *parent = 0, const char *name = 0);
00036 
00037     ~KonvProcess();
00038     
00039     void setMencOpts( QStringList MencOpts ); //set mencoder options thru string list
00040     void setMencOpts( QString MencOpts ); //set mencoder options thru strings with slashes
00041     void setInFile( QString IFile );//set in file
00042     void setOutFile( QString OFile );//set out file
00043     QString getCommand();//returns the mencoder command that will be executed
00044     QStringList getOptions();//returns the mencoder command that will be executed without files
00045     QString inFile();//returns input file
00046     QString outFile();//returns output file
00047     QString outDir();//returns output dir
00048     void addOption( QString opt);
00049     void setDevNull(bool devNull);//sets to use /dev/null as an -o file
00050     
00051 private:
00052     void UpdateCommand();//Updates QProcess command
00053     QString CheckSlashes( QString Slashes );
00054     QStringList Options;
00055     QString OutFile;
00056     QString InFile;
00057     bool UseDevNull;
00058 };
00059 
00060 #endif

Generated on Fri Jun 24 14:53:37 2005 for konverter.kdevelop by  doxygen 1.4.3-20050530