remotegenerator.h 648 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef REMOTEGENERATOR_H
  2. #define REMOTEGENERATOR_H
  3. #include <QObject>
  4. #include <QDebug>
  5. #include <QtCore>
  6. #include <QMessageBox>
  7. class MainWindow;
  8. class RemoteGenerator : public QObject
  9. {
  10. Q_OBJECT
  11. public:
  12. RemoteGenerator(MainWindow *mainWindow);
  13. ~RemoteGenerator();
  14. public:
  15. void getPage(QUrl url, QString name, bool waitForFinished = false);
  16. signals:
  17. void message(QString message);
  18. void finished();
  19. private slots:
  20. void debugProcess();
  21. void processFinished(int exitCode, QProcess::ExitStatus exitStatus);
  22. private:
  23. MainWindow *m_mainWindow;
  24. QDir m_outputDir;
  25. };
  26. #endif // REMOTEGENERATOR_H