blob: 2a19ce118a03ee6e862eb314be3a8f7846504cf3 (
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 "Overlay.h"
#include "win.h"
#include <QString>
#include <QStringList>
#include <QProcess>
#include <QTimer>
#include <QElapsedTimer>
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
|