Solid
#include <processor.h>

Public Types | |
| enum | InstructionSet { NoExtensions = 0x0, IntelMmx = 0x1, IntelSse = 0x2, IntelSse2 = 0x4, IntelSse3 = 0x8, IntelSse4 = 0x10, Amd3DNow = 0x20, AltiVec = 0x40 } |
Public Types inherited from Solid::DeviceInterface | |
| enum | Type { Unknown = 0, GenericInterface = 1, Processor = 2, Block = 3, StorageAccess = 4, StorageDrive = 5, OpticalDrive = 6, StorageVolume = 7, OpticalDisc = 8, Camera = 9, PortableMediaPlayer = 10, NetworkInterface = 11, AcAdapter = 12, Battery = 13, Button = 14, AudioInterface = 15, DvbInterface = 16, Video = 17, SerialInterface = 18, SmartCardReader = 19, InternetGateway = 20, NetworkShare = 21, Last = 0xffff } |
Public Member Functions | |
| virtual | ~Processor () |
| bool | canChangeFrequency () const |
| InstructionSets | instructionSets () const |
| int | maxSpeed () const |
| int | number () const |
Public Member Functions inherited from Solid::DeviceInterface | |
| virtual | ~DeviceInterface () |
| bool | isValid () const |
Public Member Functions inherited from QObject | |
| QObject (QObject *parent) | |
| QObject (QObject *parent, const char *name) | |
| virtual | ~QObject () |
| bool | blockSignals (bool block) |
| QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
| const QObjectList & | children () const |
| const char * | className () const |
| bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
| void | deleteLater () |
| void | destroyed (QObject *obj) |
| bool | disconnect (const QObject *receiver, const char *method) |
| bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
| void | dumpObjectInfo () |
| void | dumpObjectTree () |
| QList< QByteArray > | dynamicPropertyNames () const |
| virtual bool | event (QEvent *e) |
| virtual bool | eventFilter (QObject *watched, QEvent *event) |
| T | findChild (const QString &name) const |
| QList< T > | findChildren (const QRegExp ®Exp) const |
| QList< T > | findChildren (const QString &name) const |
| bool | inherits (const char *className) const |
| void | insertChild (QObject *object) |
| void | installEventFilter (QObject *filterObj) |
| bool | isA (const char *className) const |
| bool | isWidgetType () const |
| void | killTimer (int id) |
| virtual const QMetaObject * | metaObject () const |
| void | moveToThread (QThread *targetThread) |
| const char * | name () const |
| const char * | name (const char *defaultName) const |
| QString | objectName () const |
| QObject * | parent () const |
| QVariant | property (const char *name) const |
| void | removeChild (QObject *object) |
| void | removeEventFilter (QObject *obj) |
| void | setName (const char *name) |
| void | setObjectName (const QString &name) |
| void | setParent (QObject *parent) |
| bool | setProperty (const char *name, const QVariant &value) |
| bool | signalsBlocked () const |
| int | startTimer (int interval) |
| QThread * | thread () const |
Static Public Member Functions | |
| static Type | deviceInterfaceType () |
Static Public Member Functions inherited from Solid::DeviceInterface | |
| static Type | stringToType (const QString &type) |
| static QString | typeDescription (Type type) |
| static QString | typeToString (Type type) |
Static Public Member Functions inherited from QObject | |
| bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
| bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
| bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
| bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
| QString | tr (const char *sourceText, const char *disambiguation, int n) |
| QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Properties | |
| bool | canChangeFrequency |
| InstructionSets | instructionSets |
| qulonglong | maxSpeed |
| int | number |
Properties inherited from QObject | |
| objectName | |
Additional Inherited Members | |
Protected Member Functions inherited from Solid::DeviceInterface | |
| DeviceInterface (DeviceInterfacePrivate &dd, QObject *backendObject) | |
Protected Member Functions inherited from QObject | |
| bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
| virtual void | childEvent (QChildEvent *event) |
| virtual void | connectNotify (const char *signal) |
| virtual void | customEvent (QEvent *event) |
| virtual void | disconnectNotify (const char *signal) |
| int | receivers (const char *signal) const |
| QObject * | sender () const |
| int | senderSignalIndex () const |
| virtual void | timerEvent (QTimerEvent *event) |
Static Protected Member Functions inherited from QObject | |
| QByteArray | normalizeSignalSlot (const char *signalSlot) |
Protected Attributes inherited from Solid::DeviceInterface | |
| DeviceInterfacePrivate * | d_ptr |
Detailed Description
This device interface is available on processors.
Definition at line 36 of file processor.h.
Member Enumeration Documentation
This enum contains the list of architecture extensions you can query.
| Enumerator | |
|---|---|
| NoExtensions | |
| IntelMmx | |
| IntelSse | |
| IntelSse2 | |
| IntelSse3 | |
| IntelSse4 | |
| Amd3DNow | |
| AltiVec | |
Definition at line 64 of file processor.h.
Constructor & Destructor Documentation
|
virtual |
Destroys a Processor object.
Definition at line 33 of file processor.cpp.
Member Function Documentation
| bool Solid::Processor::canChangeFrequency | ( | ) | const |
Indicates if the processor can change the CPU frequency.
True if a processor is able to change its own CPU frequency. (generally for power management).
- Returns
- true if the processor can change CPU frequency, false otherwise
|
inlinestatic |
Get the Solid::DeviceInterface::Type of the Processor device interface.
- Returns
- the Processor device interface type
- See also
- Solid::Ifaces::Enums::DeviceInterface::Type
Definition at line 92 of file processor.h.
| InstructionSets Solid::Processor::instructionSets | ( | ) | const |
Queries the instructions set extensions of the CPU.
- Returns
- the extensions supported by the CPU
- See also
- Solid::Processor::InstructionSet
| int Solid::Processor::maxSpeed | ( | ) | const |
Retrieves the maximum speed of the processor.
- Returns
- the maximum speed in MHz, or 0 if the device can't be queried for this information.
| int Solid::Processor::number | ( | ) | const |
Retrieves the processor number in the system.
- Returns
- the internal processor number in the system, starting from zero
Property Documentation
|
read |
Definition at line 43 of file processor.h.
|
read |
Definition at line 44 of file processor.h.
|
read |
Definition at line 42 of file processor.h.
|
read |
Definition at line 41 of file processor.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
KDE API Reference
Public Types inherited from