-
Notifications
You must be signed in to change notification settings - Fork 157
Expand file tree
/
Copy pathioscontroller.h
More file actions
50 lines (31 loc) · 1.24 KB
/
ioscontroller.h
File metadata and controls
50 lines (31 loc) · 1.24 KB
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
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef IOSCONTROLLER_H
#define IOSCONTROLLER_H
#include <QObject>
#include "controllerimpl.h"
class IOSController final : public ControllerImpl {
Q_DISABLE_COPY_MOVE(IOSController)
public:
IOSController();
~IOSController();
void initialize(const Device* device, const Keys* keys) override;
void activate(const InterfaceConfig& config,
Controller::Reason reason) override;
void deactivate() override;
void deleteOSTunnelConfig() override;
void checkStatus() override;
void forceDaemonSilentServerSwitch() override;
void getBackendLogs(QIODevice* device) override;
void cleanupBackendLogs() override;
bool silentServerSwitchingSupported() const override { return false; }
bool shouldSuppressNextNotification() override;
bool canSendUpdatedConfig() const override { return true; }
void sendUpdatedConfig(InterfaceConfig& entryConfig,
InterfaceConfig& exitConfig) override;
private:
bool m_checkingStatus = false;
QString m_serverPublicKey;
};
#endif // IOSCONTROLLER_H