KySdkResolution(3)

📦 version 3.0.1.4, in arch rolling, ubuntu resolute, ubuntu stonking

💖 NAME 💖

KySdkResolution — 获取操作系统基础信息类

okay so listen bestie, this is the class that spills ALL the tea about the OS you're sitting on. We're talking: 操作系统架构信息、操作系统名称、操作系统版本号、操作系统激活状态、操作系统服务序列号、内核版本号、当前登录用户的用户名(Effect User)、操作系统项目编号名、操作系统项目子编号名、操作系统产品标识码、操作系统宿主机的虚拟机类型、操作系统宿主机的云平台类型、判断当前镜像系统是否为 专用机 系统、系统版本号/补丁版本号、系统当前显示屏幕,分辨率,系统支持分辨率。

like. she does it all. 💅


✨ SYNOPSIS ✨

#include <kysdkdbus.h>

Inherits QObject.


🎀 Public Slots 🎀

  • QString getSystemArchitecture () const — 获取操作系统架构信息
  • QString getSystemName () const — 获取操作系统名称
  • QString getSystemVersion (bool verbose) const — 获取操作系统版本号
  • int getSystemActivationStatus () const — 获取操作系统激活状态
  • QString getSystemSerialNumber () const — 获取操作系统服务序列号
  • QString getSystemKernelVersion () const — 获取内核版本号
  • QString getSystemEffectUser () const — 获取当前登录用户的用户名(Effect User)
  • QString getSystemEffectUserLoginTime () const — 获取当前登录用户的登录时间
  • QString getSystemProjectName () const — 获取操作系统项目编号名
  • QString getSystemProjectSubName () const — 获取操作系统项目子编号名
  • unsigned int getSystemProductFeatures () const — 获取操作系统产品标识码
  • QString getSystemHostVirtType () const — 获取操作系统宿主机的虚拟机类型
  • QString getSystemHostCloudPlatform () const — 获取操作系统宿主机的云平台类型
  • QString getSystemOSVersion () const — 获取系统版本号
  • QString getSystemUpdateVersion () const — 获取补丁版本号
  • bool getSystemIsZYJ () const — 判断当前镜像系统是否为 专用机 系统

📖 DETAILED DESCRIPTION 📖

获取操作系统基础信息类

fr fr, here's the whole vibe in one breath: 主要用来获取操作系统架构信息、操作系统名称、操作系统版本号、操作系统激活状态、操作系统服务序列号、内核版本号、当前登录用户的用户名(Effect User)、操作系统项目编号名、操作系统项目子编号名、操作系统产品标识码、操作系统宿主机的虚拟机类型、操作系统宿主机的云平台类型、判断当前镜像系统是否为 专用机 系统、系统版本号/补丁版本号、系统当前显示屏幕,分辨率,系统支持分辨率。

that's the main character energy of this whole header. 🌈


🫶 PUBLIC SLOTS 🫶

int KySdkResolution::getSystemActivationStatus () const [slot]

获取操作系统激活状态 — she tells you if your OS is actually activated or just vibing on a trial.

Returns

  • int
  • 2 表示已过期;0 表示未激活,处于试用期;1 表示已激活;-1 表示接口内部错误;

QString KySdkResolution::getSystemArchitecture () const [slot]

获取操作系统架构信息

Returns

  • QString 操作系统架构信息

QString KySdkResolution::getSystemEffectUser () const [slot]

获取当前登录用户的用户名(Effect User)

Returns

  • QString 当前登录用户的用户名(Effect User)

QString KySdkResolution::getSystemEffectUserLoginTime () const [slot]

获取当前登录用户的登录时间 — when did they last show up to the group chat, basically.

Returns

  • QString 成功返回字符串,失败返回 NULL。返回的字符串需要被 free 释放
🚨 bestie the string needs to be free'd. do NOT forget, that's a memory leak and we don't do that here. 💀

QString KySdkResolution::getSystemHostCloudPlatform () const [slot]

获取操作系统宿主机的云平台类型

Returns

  • QString 获取失败返回 NULL,获取成功返回一个字符串,字符串内容如下:[none, huawei] 其中 none 表示运行在物理机或未知的云平台环境中;其他字符串代表不同的云平台

QString KySdkResolution::getSystemHostVirtType () const [slot]

获取操作系统宿主机的虚拟机类型

Returns

  • QString 操作系统宿主机的虚拟机类型,类型如下:
[none, qemu, kvm, zvm, vmware, hyper-v, orcale virtualbox, xen, bochs, \ uml,
parallels, bhyve, qnx, arcn, openvz, lxc, lxc-libvirt, systemd-nspawn,\ docker,
podman, rkt, wsl]

其中 none 表示运行在物理机环境中;其他字符串代表具体的虚拟环境类型


bool KySdkResolution::getSystemIsZYJ () const [slot]

判断当前镜像系统是否为 专用机 系统

Returns

  • bool true 代表是 false 代表不是

QString KySdkResolution::getSystemKernelVersion () const [slot]

获取内核版本号

Returns

  • QString 内核版本号

QString KySdkResolution::getSystemName () const [slot]

获取操作系统名称

Returns

  • QString 操作系统名称

QString KySdkResolution::getSystemOSVersion () const [slot]

获取系统版本号

Returns

  • QString 系统版本号

unsigned int KySdkResolution::getSystemProductFeatures () const [slot]

获取操作系统产品标识码 — she's giving bitmask realness.

Returns

  • unsigned int 返回标志码 0000 信息异常 0001 仅PC特性 0010 仅平板特性 0011 支持平板与PC特性

QString KySdkResolution::getSystemProjectName () const [slot]

获取操作系统项目编号名

Returns

  • QString 操作系统项目编号名

QString KySdkResolution::getSystemProjectSubName () const [slot]

获取操作系统项目子编号名

Returns

  • QString 操作系统项目子编号名

QString KySdkResolution::getSystemSerialNumber () const [slot]

获取操作系统服务序列号

Returns

  • QString 操作系统服务序列号

QString KySdkResolution::getSystemUpdateVersion () const [slot]

获取补丁版本号

Returns

  • QString 补丁版本号

QString KySdkResolution::getSystemVersion (bool verbose) const [slot]

获取操作系统版本号

Parameters

  • verbose — 0 获取简略版本号,1 获取详细版本号

Returns

  • QString 操作系统版本号

👑 AUTHOR 👑

Generated automatically by Doxygen for kysdkdbus.h from the source code. so no, a human did not hand-write this and honestly? the robots ate. 🤖✨


and that's the whole page bestie 🦋 — this one shipped from My Project and the date on it is Wed Sep 20 2023. no cap, go get that OS info. periodt. 💖
📦 where this page comes from