mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-26 02:14:22 +00:00
Added a SystemStats::getDeviceDescription() method.
This commit is contained in:
parent
b45fc0f664
commit
6018f1df3d
5 changed files with 31 additions and 2 deletions
|
|
@ -192,6 +192,11 @@ String SystemStats::getOperatingSystemName()
|
|||
return "Android " + AndroidStatsHelpers::getSystemProperty ("os.version");
|
||||
}
|
||||
|
||||
String SystemStats::getDeviceDescription()
|
||||
{
|
||||
return String::empty;
|
||||
}
|
||||
|
||||
bool SystemStats::isOperatingSystem64Bit()
|
||||
{
|
||||
#if JUCE_64BIT
|
||||
|
|
|
|||
|
|
@ -42,6 +42,11 @@ String SystemStats::getOperatingSystemName()
|
|||
return "Linux";
|
||||
}
|
||||
|
||||
String SystemStats::getDeviceDescription()
|
||||
{
|
||||
return String::empty;
|
||||
}
|
||||
|
||||
bool SystemStats::isOperatingSystem64Bit()
|
||||
{
|
||||
#if JUCE_64BIT
|
||||
|
|
|
|||
|
|
@ -143,6 +143,15 @@ String SystemStats::getOperatingSystemName()
|
|||
#endif
|
||||
}
|
||||
|
||||
String SystemStats::getDeviceDescription()
|
||||
{
|
||||
#if JUCE_IOS
|
||||
return nsStringToJuce ([[UIDevice currentDevice] model]);
|
||||
#else
|
||||
return String::empty;
|
||||
#endif
|
||||
}
|
||||
|
||||
bool SystemStats::isOperatingSystem64Bit()
|
||||
{
|
||||
#if JUCE_IOS
|
||||
|
|
|
|||
|
|
@ -197,6 +197,11 @@ String SystemStats::getOperatingSystemName()
|
|||
return name;
|
||||
}
|
||||
|
||||
String SystemStats::getDeviceDescription()
|
||||
{
|
||||
return String::empty;
|
||||
}
|
||||
|
||||
bool SystemStats::isOperatingSystem64Bit()
|
||||
{
|
||||
#if JUCE_64BIT
|
||||
|
|
|
|||
|
|
@ -83,8 +83,7 @@ public:
|
|||
*/
|
||||
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();
|
||||
|
||||
/** Returns an environment variable.
|
||||
|
|
@ -122,6 +121,12 @@ public:
|
|||
*/
|
||||
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..
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue