mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added new SystemStats::getDeviceManufacturer()
This commit is contained in:
parent
59d260c809
commit
d8d2f5d0f4
6 changed files with 26 additions and 0 deletions
|
|
@ -116,6 +116,7 @@ static String getAllSystemInfo()
|
|||
<< "Operating system: " << SystemStats::getOperatingSystemName() << newLine
|
||||
<< "Host name: " << SystemStats::getComputerName() << newLine
|
||||
<< "Device type: " << SystemStats::getDeviceDescription() << newLine
|
||||
<< "Manufacturer: " << SystemStats::getDeviceManufacturer() << newLine
|
||||
<< "User logon name: " << SystemStats::getLogonName() << newLine
|
||||
<< "Full user name: " << SystemStats::getFullUserName() << newLine
|
||||
<< "User region: " << SystemStats::getUserRegion() << newLine
|
||||
|
|
|
|||
|
|
@ -380,6 +380,11 @@ String SystemStats::getDeviceDescription()
|
|||
+ "-" + AndroidStatsHelpers::getAndroidOsBuildValue ("SERIAL");
|
||||
}
|
||||
|
||||
String SystemStats::getDeviceManufacturer()
|
||||
{
|
||||
return AndroidStatsHelpers::getAndroidOsBuildValue ("MANUFACTURER");
|
||||
}
|
||||
|
||||
bool SystemStats::isOperatingSystem64Bit()
|
||||
{
|
||||
#if JUCE_64BIT
|
||||
|
|
|
|||
|
|
@ -60,6 +60,11 @@ String SystemStats::getDeviceDescription()
|
|||
return getCpuInfo ("Hardware");
|
||||
}
|
||||
|
||||
String SystemStats::getDeviceManufacturer()
|
||||
{
|
||||
return {};
|
||||
}
|
||||
|
||||
String SystemStats::getCpuVendor()
|
||||
{
|
||||
auto v = getCpuInfo ("vendor_id");
|
||||
|
|
|
|||
|
|
@ -153,6 +153,11 @@ String SystemStats::getDeviceDescription()
|
|||
#endif
|
||||
}
|
||||
|
||||
String SystemStats::getDeviceManufacturer()
|
||||
{
|
||||
return "Apple";
|
||||
}
|
||||
|
||||
bool SystemStats::isOperatingSystem64Bit()
|
||||
{
|
||||
#if JUCE_IOS
|
||||
|
|
|
|||
|
|
@ -253,6 +253,11 @@ String SystemStats::getDeviceDescription()
|
|||
#endif
|
||||
}
|
||||
|
||||
String SystemStats::getDeviceManufacturer()
|
||||
{
|
||||
return {};
|
||||
}
|
||||
|
||||
bool SystemStats::isOperatingSystem64Bit()
|
||||
{
|
||||
#if JUCE_64BIT
|
||||
|
|
|
|||
|
|
@ -129,6 +129,11 @@ public:
|
|||
*/
|
||||
static String getDeviceDescription();
|
||||
|
||||
/** This will attempt to return the manufacturer of the device.
|
||||
If no description is available, it'll just return an empty string.
|
||||
*/
|
||||
static String getDeviceManufacturer();
|
||||
|
||||
/** This method calculates some IDs to uniquely identify the device.
|
||||
|
||||
The first choice for an ID is a filesystem ID for the user's home folder or
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue