The CPUStateFetcher class Provides CPU state information in a platform-independent manner. Acts as an interface for retrieving CPU state without platform-specific details.
More...
#include <CPUStateFetcher.h>
|
struct | CPUState |
| The CPUState struct Represents CPU usage state including idle, user, kernel and total time. The total time concept differs between Linux and Windows. More...
|
|
|
| CPUStateFetcher (QObject *parent=nullptr) |
| Constructor with optional parent.
|
|
| ~CPUStateFetcher () |
| Destructor, cleans up resources.
|
|
void | set_capture_state (bool st) |
| set_capture_state Enables or disables the CPU state capture.
|
|
The CPUStateFetcher class Provides CPU state information in a platform-independent manner. Acts as an interface for retrieving CPU state without platform-specific details.
◆ CPUStateFetcher()
CPUStateFetcher::CPUStateFetcher |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
Constructor with optional parent.
- Parameters
-
parent | Pointer to the QObject parent, default is nullptr. |
◆ flush_cpustate
flush_cpustate Signal emitted when CPU state is updated.
- Parameters
-
state | The current CPU state snapshot. |
◆ set_capture_state()
void CPUStateFetcher::set_capture_state |
( |
bool |
st | ) |
|
set_capture_state Enables or disables the CPU state capture.
- Parameters
-
st | True to enable capturing, false to disable. |
The documentation for this class was generated from the following files:
- extern_app/SystemState/Core/CPUStateFetcher.h
- extern_app/SystemState/Core/CPUStateFetcher.cpp