1/*
2 SPDX-FileCopyrightText: 2010 Alex Merry <alex.merry@kdemail.net>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#ifndef SOLID_BACKENDS_UDEV_CPUINFO_H
8#define SOLID_BACKENDS_UDEV_CPUINFO_H
9
10#include <QString>
11
12namespace Solid
13{
14namespace Backends
15{
16namespace UDev
17{
18/**
19 * Extracts vendor from /proc/cpuinfo for a given processor
20 */
21QString extractCpuVendor(int processorNumber);
22/**
23 * Extracts model from /proc/cpuinfo for a given processor
24 */
25QString extractCpuModel(int processorNumber);
26/**
27 * Extracts speed from /proc/cpuinfo for a given processor
28 */
29int extractCurrentCpuSpeed(int processorNumber);
30
31}
32}
33}
34
35#endif // SOLID_BACKENDS_UDEV_CPUINFO_H
36

source code of solid/src/solid/devices/backends/udev/cpuinfo.h