DtkCore
DTK Core module
|
Public 类型 | |
enum | ProductType { UnknownType = 0 , Deepin , ArchLinux , CentOS , Debian , Fedora , LinuxMint , Manjaro , openSUSE , SailfishOS , Ubuntu , Uos } |
enum | DeepinType { UnknownDeepin = 0 , DeepinDesktop , DeepinProfessional , DeepinServer , DeepinPersonal } |
enum | LogoType { Normal = 0 , Light , Symbolic , Transparent } |
enum | OrgType { Distribution , Distributor , Manufacturer } |
enum | UosType { UosTypeUnknown , UosDesktop , UosServer , UosDevice , UosTypeCount } |
enum | UosEdition { UosEditionUnknown , UosProfessional , UosHome , UosCommunity , UosMilitary , UosEnterprise , UosEnterpriseC , UosEuler , UosMilitaryS , UosDeviceEdition , UosEducation , UosEditionCount } |
enum | UosArch { UosArchUnknown , UosAMD64 = 1 << 0 , UosARM64 = 1 << 1 , UosMIPS64 = 1 << 2 , UosSW64 = 1 << 3 } |
静态 Public 成员函数 | |
static QString | distributionInfoPath () |
static QString | distributionInfoSectionName (OrgType type) |
static QString | distributionOrgName (OrgType type=Distribution, const QLocale &locale=QLocale::system()) |
static QPair< QString, QString > | distributionOrgWebsite (OrgType type=Distribution) |
static QString | distributionOrgLogo (OrgType orgType=Distribution, LogoType type=Normal, const QString &fallback=QString()) |
static QString | operatingSystemName () |
static ProductType | productType () |
static QString | productTypeString () |
static QString | productVersion () |
static bool | isCommunityEdition () |
Check if current edition is a community edition 更多... | |
static QString | computerName () |
static QString | cpuModelName () |
static qint64 | memoryInstalledSize () |
static qint64 | memoryTotalSize () |
static qint64 | systemDiskSize () |
Public 属性 | |
const QString & | fallback = QString()) |
|
static |
use type as Distribution to get the logo of current deepin distribution itself.
|
static |
use type as Distribution to get the name of current deepin distribution itself.
|
static |
use type as Distribution to get the name of current deepin distribution itself.
|
static |
Check if current edition is a community edition
Developer can use this way to check if we need enable or disable features for community or enterprise edition.
Current rule:
|
static |
|
static |