| @@ -192,6 +192,11 @@ String SystemStats::getOperatingSystemName() | |||||
| return "Android " + AndroidStatsHelpers::getSystemProperty ("os.version"); | return "Android " + AndroidStatsHelpers::getSystemProperty ("os.version"); | ||||
| } | } | ||||
| String SystemStats::getDeviceDescription() | |||||
| { | |||||
| return String::empty; | |||||
| } | |||||
| bool SystemStats::isOperatingSystem64Bit() | bool SystemStats::isOperatingSystem64Bit() | ||||
| { | { | ||||
| #if JUCE_64BIT | #if JUCE_64BIT | ||||
| @@ -42,6 +42,11 @@ String SystemStats::getOperatingSystemName() | |||||
| return "Linux"; | return "Linux"; | ||||
| } | } | ||||
| String SystemStats::getDeviceDescription() | |||||
| { | |||||
| return String::empty; | |||||
| } | |||||
| bool SystemStats::isOperatingSystem64Bit() | bool SystemStats::isOperatingSystem64Bit() | ||||
| { | { | ||||
| #if JUCE_64BIT | #if JUCE_64BIT | ||||
| @@ -143,6 +143,15 @@ String SystemStats::getOperatingSystemName() | |||||
| #endif | #endif | ||||
| } | } | ||||
| String SystemStats::getDeviceDescription() | |||||
| { | |||||
| #if JUCE_IOS | |||||
| return nsStringToJuce ([[UIDevice currentDevice] model]); | |||||
| #else | |||||
| return String::empty; | |||||
| #endif | |||||
| } | |||||
| bool SystemStats::isOperatingSystem64Bit() | bool SystemStats::isOperatingSystem64Bit() | ||||
| { | { | ||||
| #if JUCE_IOS | #if JUCE_IOS | ||||
| @@ -197,6 +197,11 @@ String SystemStats::getOperatingSystemName() | |||||
| return name; | return name; | ||||
| } | } | ||||
| String SystemStats::getDeviceDescription() | |||||
| { | |||||
| return String::empty; | |||||
| } | |||||
| bool SystemStats::isOperatingSystem64Bit() | bool SystemStats::isOperatingSystem64Bit() | ||||
| { | { | ||||
| #if JUCE_64BIT | #if JUCE_64BIT | ||||
| @@ -83,8 +83,7 @@ public: | |||||
| */ | */ | ||||
| static String getOperatingSystemName(); | static String getOperatingSystemName(); | ||||
| /** Returns true if the OS is 64-bit, or false for a 32-bit OS. | |||||
| */ | |||||
| /** Returns true if the OS is 64-bit, or false for a 32-bit OS. */ | |||||
| static bool isOperatingSystem64Bit(); | static bool isOperatingSystem64Bit(); | ||||
| /** Returns an environment variable. | /** Returns an environment variable. | ||||
| @@ -122,6 +121,12 @@ public: | |||||
| */ | */ | ||||
| static String getDisplayLanguage(); | static String getDisplayLanguage(); | ||||
| /** This will attempt to return some kind of string describing the device. | |||||
| If no description is available, it'll just return an empty string. You may | |||||
| want to use this for things like determining the type of phone/iPad, etc. | |||||
| */ | |||||
| static String getDeviceDescription(); | |||||
| //============================================================================== | //============================================================================== | ||||
| // CPU and memory information.. | // CPU and memory information.. | ||||