summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm25
1 files changed, 25 insertions, 0 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index b6a51d5..ddec663 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -3954,6 +3954,9 @@ static NSString *Warning_;
return [NSArray arrayWithObjects:
@"device",
@"ecid",
+ @"firmware",
+ @"hostname",
+ @"idiom",
@"model",
@"plmn",
@"role",
@@ -3973,6 +3976,28 @@ static NSString *Warning_;
return [[UIDevice currentDevice] uniqueIdentifier];
}
+- (NSString *) firmware {
+ return [[UIDevice currentDevice] systemVersion];
+}
+
+- (NSString *) hostname {
+ return [[UIDevice currentDevice] name];
+}
+
+- (NSString *) idiom {
+ UIDevice *device([UIDevice currentDevice]);
+ if (![device respondsToSelector:@selector(userInterfaceIdiom)])
+ return @"iphone";
+
+ UIUserInterfaceIdiom idiom([device userInterfaceIdiom]);
+ if (idiom == UIUserInterfaceIdiomPhone)
+ return @"iphone";
+ else if (idiom == UIUserInterfaceIdiomPad)
+ return @"ipad";
+ else
+ return @"unknown";
+}
+
- (NSString *) plmn {
return PLMN_;
}