Solid

winprocessor.h
1/*
2 SPDX-FileCopyrightText: 2013 Patrick von Reth <vonreth@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6#ifndef WINPROCESSOR_H
7#define WINPROCESSOR_H
8
9#include <solid/devices/ifaces/processor.h>
10
11#include "wininterface.h"
12namespace Solid
13{
14namespace Backends
15{
16namespace Win
17{
18class WinProcessor : public WinInterface, public Solid::Ifaces::Processor
19{
20 friend class WinDevice;
23public:
24 WinProcessor(WinDevice *device);
25 ~WinProcessor();
26
27 virtual int number() const;
28
29 virtual int maxSpeed() const;
30
31 virtual bool canChangeFrequency() const;
32
33 virtual Solid::Processor::InstructionSets instructionSets() const;
34
35 static QSet<QString> getUdis();
36
37private:
38 int m_number;
39
40 class ProcessorInfo
41 {
42 public:
43 int lgicalId;
44 int id;
45 int speed;
46 QString vendor;
47 QString name;
48 QString produuct;
49 };
50
51 static DWORD countSetBits(ULONG_PTR bitMask);
52 static const QMap<int, WinProcessor::ProcessorInfo> &updateCache();
53};
54}
55}
56}
57
58#endif // WINPROCESSOR_H
This device interface is available on processors.
Q_INTERFACES(...)
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:23 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.