From 8a3a0f5a529a95c7511436051b63887dff158c50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Thu, 8 May 2014 21:20:10 +0200 Subject: Reorganize logic code. --- logic/JavaChecker.h | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 logic/JavaChecker.h (limited to 'logic/JavaChecker.h') diff --git a/logic/JavaChecker.h b/logic/JavaChecker.h deleted file mode 100644 index e19895f7..00000000 --- a/logic/JavaChecker.h +++ /dev/null @@ -1,42 +0,0 @@ -#pragma once -#include -#include -#include - -class JavaChecker; - - -struct JavaCheckResult -{ - QString path; - QString mojangPlatform; - QString realPlatform; - QString javaVersion; - bool valid = false; - bool is_64bit = false; - int id; -}; - -typedef std::shared_ptr QProcessPtr; -typedef std::shared_ptr JavaCheckerPtr; -class JavaChecker : public QObject -{ - Q_OBJECT -public: - explicit JavaChecker(QObject *parent = 0); - void performCheck(); - - QString path; - int id; - -signals: - void checkFinished(JavaCheckResult result); -private: - QProcessPtr process; - QTimer killTimer; -public -slots: - void timeout(); - void finished(int exitcode, QProcess::ExitStatus); - void error(QProcess::ProcessError); -}; -- cgit v1.2.3