factoryjob.h

00001 /***************************************************************************
00002 **
00003 ** Copyright (C) 2004-2006 Trolltech AS. All rights reserved.
00004 **
00005 ** This file is part of the example classes of the Qt Toolkit.
00006 **
00007 ** This file may be used under the terms of the GNU General Public
00008 ** License version 2.0 as published by the Free Software Foundation
00009 ** and appearing in the file LICENSE.GPL included in the packaging of
00010 ** this file.  Please review the following information to ensure GNU
00011 ** General Public Licensing requirements will be met:
00012 ** http://www.trolltech.com/products/qt/opensource.html
00013 **
00014 ** If you are unsure which license is appropriate for your use, please
00015 ** review the following information:
00016 ** http://www.trolltech.com/products/qt/licensing.html or contact the
00017 ** sales department at sales@trolltech.com.
00018 **
00019 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00020 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00021 **
00022 ****************************************************************************/
00023 
00047 #ifndef FACTORYJOB_H
00048 #define FACTORYJOB_H
00049 
00050 #include <QtGui>
00051 #include <QString>
00052 #include <QProcess>
00053 #include <QStandardItemModel>
00054 #include <QTimer>
00055 
00056 #include "utilities.h"
00057 
00058 class FactoryJob : public QWidget
00059 {
00060         Q_OBJECT
00061         public:
00062                 FactoryJob(QString, QTime);
00063                 ~FactoryJob();
00064                 QStandardItemModel *getSIM();
00065                 void setSIM(QStandardItemModel *);
00066 //              void setHeaderData(QStandardItemModel *,QList <QString>);
00067                 int headerData(QStandardItemModel *,QString);
00068                 void setHeaderData(QStandardItemModel *, QStringList);
00069                 
00070         private:
00072                 QProcess *m_proc;
00074                 QStandardItemModel *m_model;
00076                 int m_numRowSchedd;
00078                 int m_numRow;
00080                 int m_numRowChild;
00081                 
00082                 QStringList readJob();
00083                 bool removeChilds(QModelIndex, int, int);
00084                 
00086                 QStringList m_paths;
00088                 int m_time;
00090                 int m_numColumns;
00091         public slots:
00092                 void updateTable();
00093                 void createProcess();
00094                 void createAutoProcess();
00095                 void procesaTrabajo();
00096                 void errorControl();
00097                 void reconfigPaths(QStringList);
00098 
00099 };
00100 #endif

Generated on Sun Jan 14 23:38:42 2007 for QCondor by  doxygen 1.4.7