| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 | /*= StarPU-Top for StarPU =Copyright (C) 2011 William BraikYann CourtoisJean-Marie CouteyenAnthony RoyThis library is free software; you can redistribute it and/ormodify it under the terms of the GNU Lesser General PublicLicense as published by the Free Software Foundation; eitherversion 2.1 of the License, or (at your option) any later version.This library is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNULesser General Public License for more details.You should have received a copy of the GNU Lesser General PublicLicense along with this library; if not, write to the Free SoftwareFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA*/#ifndef COMMUNICATIONTHREAD_H#define COMMUNICATIONTHREAD_Hclass MainWindow;class ConfigurationManager;class CommunicationManager;#include <QThread>#include <QProcess>#include <QTcpSocket>class CommunicationThread : public QThread{    Q_OBJECTpublic:    CommunicationThread(            MainWindow *mainWindow,            ConfigurationManager *configurationManager);    ~CommunicationThread();    // Thread execution loop    void run();private:    // Linked components    MainWindow *_mainWindow;    ConfigurationManager *_configurationManager;    CommunicationManager *_communicationManager;    QProcess * _SSHProcess;    int _connectionAttemptsCount;    void createNewCommunicationManager(void);private slots:    void connectionError(QAbstractSocket::SocketError error);    void connectionSucceeded();    void connectionDisconnected();signals:    void SocketError(QAbstractSocket::SocketError);    void progress(QString message);    void abort(QString message);    void disconnected();};#endif // COMMUNICATIONTHREAD_H
 |