LeechCraft 0.6.70-17335-ge406ffdcaf
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
sysinfo.h
Go to the documentation of this file.
1/**********************************************************************
2 * LeechCraft - modular cross-platform feature rich internet client.
3 * Copyright (C) 2006-2014 Georg Rudoy
4 *
5 * Distributed under the Boost Software License, Version 1.0.
6 * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7 **********************************************************************/
8
9#pragma once
10
11#include <QString>
12#include "sysconfig.h"
13
14namespace LC::Util::SysInfo
15{
20 UTIL_SYS_API QString GetOSName ();
21
24 struct OSInfo
25 {
32 QString Arch_;
33
48 QString Name_;
49
55 QString Version_;
56
70 QString Flavour_;
71 };
72
79}
OSInfo GetOSInfo()
Returns more precise information about OS name and version.
Definition sysinfo.cpp:122
QString GetOSName()
Returns a string of OS name and version joined together.
Definition sysinfo.cpp:21
Describes the OS running LeechCraft.
Definition sysinfo.h:25
QString Flavour_
The OS flavour, or name of the OS without any distribution.
Definition sysinfo.h:70
QString Name_
The name of the OS, including the distribution.
Definition sysinfo.h:48
QString Arch_
Describes the CPU architecture of the OS.
Definition sysinfo.h:32
QString Version_
The full version of the OS.
Definition sysinfo.h:55
#define UTIL_SYS_API
Definition sysconfig.h:16