KySdkResolution(3)
💖 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
int2表示已过期;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
booltrue代表是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
- arch rolling: libkysdk-system 3.0.1.4-1 · LGPL-3.0-or-later AND LGPL-2.1-only OR LGPL-3.0-only AND LGPL-2.1-only WITH Qt-LGPL-exception-1.1 OR LGPL-3.0-only WITH Qt-LGPL-exception-1.1 AND MIT
- ubuntu resolute: libkysdk-system-dev 3.0.1.2-0ubuntu1 · LGPL-3.0-only
- ubuntu stonking: libkysdk-system-dev 3.0.1.3-0ubuntu1 · LGPL-3.0-or-later
- 💖 girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms