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 ****************************************************************************/ 00038 #ifndef FACTORYMACHINE_H 00039 #define FACTORYMACHINE_H 00040 00041 #include <QtGui> 00042 #include <QString> 00043 #include <QProcess> 00044 #include <QStandardItemModel> 00045 #include <QTimer> 00046 #include <QFile> 00047 #include "utilities.h" 00048 00049 class FactoryMachine : public QWidget 00050 { 00051 Q_OBJECT 00052 public: 00053 FactoryMachine(QString, QTime); 00054 QStandardItemModel *getSIM(); 00055 void setSIM(QStandardItemModel *); 00056 void setHeaderData(QStandardItemModel *, QStringList); 00057 int headerData(QStandardItemModel *,QString); 00058 00059 private: 00061 QProcess *m_proc; 00063 QStandardItemModel *m_model; 00065 int m_numRow; 00067 QStringList m_paths; 00069 int m_time; 00071 int m_numColumns; 00072 00073 //QFile file; 00074 public slots: 00075 void updateTable(); 00076 void createProcess(); 00077 void createAutoProcess(); 00078 void procesaMaquina(); 00079 void errorControl(); 00080 void reconfigPaths(QStringList); 00081 void reconfigRefresh(QTime); 00082 00083 }; 00084 #endif