You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

rdesktoplauncher.h 696B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef RDESKTOPLAUNCHER_H
  2. #define RDESKTOPLAUNCHER_H
  3. #include <QProcess>
  4. #include <QWidget>
  5. #include <QTimer>
  6. #include "rdpoptions.h"
  7. class RDesktopLauncher : public QObject
  8. {
  9. Q_OBJECT
  10. public:
  11. RDesktopLauncher(QObject* parent = 0);
  12. void start(RdpOptions options);
  13. static QString getExitStatusString(int status);
  14. signals:
  15. void finished(int status);
  16. void windowFound(WId);
  17. public slots:
  18. void kill();
  19. private slots:
  20. void onProcessFinished(int, QProcess::ExitStatus);
  21. void lookUpWindow();
  22. void clearWindowLookUpTimer();
  23. private:
  24. QProcess* m_process;
  25. QTimer* m_windowLookUpTimer;
  26. RdpOptions m_options;
  27. };
  28. #endif // RDESKTOPLAUNCHER_H