Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Overlay_win.h « mumble « src - github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6eaeb29fc35ae31695dea85205012168bef4e528 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// Copyright 2005-2019 The Mumble Developers. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file at the root of the
// Mumble source tree or at <https://www.mumble.info/LICENSE>.

#ifndef MUMBLE_MUMBLE_OVERLAY_WIN_H_
#define MUMBLE_MUMBLE_OVERLAY_WIN_H_

#include <windows.h>

#include <QString>
#include <QStringList>
#include <QProcess>
#include <QTimer>
#include <QElapsedTimer>

#include "Overlay.h"

class OverlayPrivateWin : public OverlayPrivate {
	private:
		Q_OBJECT
		Q_DISABLE_COPY(OverlayPrivateWin)

	public:
		void setActive(bool);
		OverlayPrivateWin(QObject *);
		~OverlayPrivateWin();

	public slots:
		void onHelperProcessStarted();
		void onHelperProcessError(QProcess::ProcessError);
		void onHelperProcessExited(int exitCode, QProcess::ExitStatus exitStatus);
		void onDelayedRestartTimerTriggered();

	protected:
		QProcess *m_helper_process;
		QString m_helper_exe_path;
		QStringList m_helper_exe_args;
		QElapsedTimer m_helper_start_time;
		QTimer *m_helper_restart_timer;
		bool m_helper_enabled;

		QProcess *m_helper64_process;
		QString m_helper64_exe_path;
		QStringList m_helper64_exe_args;
		QElapsedTimer m_helper64_start_time;
		QTimer *m_helper64_restart_timer;
		bool m_helper64_enabled;

		HANDLE m_mumble_handle;
		bool m_active;

		void startHelper(QProcess *helper);
};

#endif