-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDevice.h
More file actions
149 lines (135 loc) · 3.58 KB
/
Device.h
File metadata and controls
149 lines (135 loc) · 3.58 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
/*
* Copyright (C) 10/01/2020 VX STATS <sales@vxstats.com>
*
* This document is property of VX STATS. It is strictly prohibited
* to modify, sell or publish it in any way. In case you have access
* to this document, you are obligated to ensure its nondisclosure.
* Noncompliances will be prosecuted.
*
* Diese Datei ist Eigentum der VX STATS. Jegliche Änderung, Verkauf
* oder andere Verbreitung und Veröffentlichung ist strikt untersagt.
* Falls Sie Zugang zu dieser Datei haben, sind Sie verpflichtet,
* alles in Ihrer Macht stehende für deren Geheimhaltung zu tun.
* Zuwiderhandlungen werden strafrechtlich verfolgt.
*/
/* modules */
@import Foundation;
/**
* @~english
* @brief The Device class.
* Delivers information about current device.
*
* @~german
* @brief Die Klasse Device.
* Liefert Informationen zum aktuellen Gerät.
*/
@interface Device : NSObject {
@private
/**
* @~english
* @brief Internal description of the platform.
*
* @~german
* @brief Interne Bezeichnung der Plattform.
*/
NSString *m_platform;
/**
* @~english
* @brief The unique device identifier.
*
* @~german
* @brief Die eindeutige Id des Geräts.
*/
NSString *m_uniqueIdentifier;
}
/**
* @~english
* @brief Returns true, if the device run in dark mode.
* @return True, if the device run in dark mode - otherwise false.
*
* @~german
* @brief Gibt wahr zurück, wenn die Plattform den Darkmode verwendet.
* @return Wahr, wenn die Plattform den Darkmode verwendet - sonst falsch.
*/
+ (BOOL)useDarkMode;
/**
* @~english
* @brief Returns true, if the device is jailbroken - otherwiese false.
* @return True, if the device is jailbroken - otherweise false.
*
* @~german
* @brief Gibt wahr zurück, wenn das Gerät gejailbreakt ist - sonst falsch.
* @return Wahr, wenn das Gerät gejailbreakt ist - sonst falsch.
*/
+ (BOOL)isJailbroken;
/**
* @~english
* @brief Returns the internal string for the platform.
* @return The internal string for the platform.
*
* @~german
* @brief Gibt den internen String für die Plattform zurück.
* @return Der interne String für die Plattform.
*/
- (NSString *)platformString;
/**
* @~english
* @brief Returns the device model. E.g. iPhone
* @return The device model.
*
* @~german
* @brief Gibt das Gerätemodell zurück. Bsp.: iPhone
* @return Das Gerätemodell.
*/
- (NSString *)model;
/**
* @~english
* @brief Returns the device version. E.g. 8,1
* @return The device version.
*
* @~english
* @brief Gibt die Geräteversion zurück. Bsp.: 8,1
* @return Die Geräteversion.
*/
- (NSString *)version;
/**
* @~english
* @brief Returns the name of the operating system, e.g. iOS
* @return The name of the operating system.
*
* @~german
* @brief Gibt den Namen des Betriebssystems zurück, z.B. iOS
* @return Der Name des Betriebssystems.
*/
+ (NSString *)osName;
/**
* @~english
* @brief Returns the version of the operating system, e.g. 9.3.3
* @return The version of the operating system.
*
* @~german
* @brief Gibt die Version des Betriebssystems zurück, z.B. 9.3.3
* @return Die Version des Betriebssystems.
*/
+ (NSString *)osVersion;
/**
* @~english
* @brief Unique identifier for current device.
* @return The unique identifier for the current device.
*
* @~german
* @brief Eindeutige Id des Geräts.
* @return Eindeutige Id des Geräts.
*/
- (NSString *)uniqueIdentifier;
/**
* @~english
* @brief Instance of Device. C++11 Singleton thread-safe.
* @return Singleton of Device.
*
* @~german
* @brief Instanz von Device.
* @return Einzige Instanz von Device.
*/
+ (Device *)currentDevice;
@end