Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
PhosphorShell::SystemStats Class Reference

#include <PhosphorShell/SystemStats.h>

Inheritance diagram for PhosphorShell::SystemStats:
[legend]

Signals

void changed ()
void pausedChanged ()
void intervalChanged ()
void sampled ()
void activeChanged ()

Public Member Functions

 SystemStats (QObject *parent=nullptr)
 ~SystemStats () override
QVariantMap snapshot () const
bool paused () const
void setPaused (bool value)
int interval () const
void setInterval (int value)
int revision () const
bool active () const
void watch (QObject *consumer, bool enabled)
QVariantList history (const QString &metric, int minutes=1) const

Constructor & Destructor Documentation

◆ SystemStats()

PhosphorShell::SystemStats::SystemStats ( QObject * parent = nullptr)
explicit

◆ ~SystemStats()

PhosphorShell::SystemStats::~SystemStats ( )
override

Member Function Documentation

◆ active()

bool PhosphorShell::SystemStats::active ( ) const
inline

◆ activeChanged

void PhosphorShell::SystemStats::activeChanged ( )
signal

◆ changed

void PhosphorShell::SystemStats::changed ( )
signal

◆ history()

QVariantList PhosphorShell::SystemStats::history ( const QString & metric,
int minutes = 1 ) const

◆ interval()

int PhosphorShell::SystemStats::interval ( ) const
inline

◆ intervalChanged

void PhosphorShell::SystemStats::intervalChanged ( )
signal

◆ paused()

bool PhosphorShell::SystemStats::paused ( ) const
inline

◆ pausedChanged

void PhosphorShell::SystemStats::pausedChanged ( )
signal

◆ revision()

int PhosphorShell::SystemStats::revision ( ) const
inline

◆ sampled

void PhosphorShell::SystemStats::sampled ( )
signal

◆ setInterval()

void PhosphorShell::SystemStats::setInterval ( int value)

◆ setPaused()

void PhosphorShell::SystemStats::setPaused ( bool value)

◆ snapshot()

QVariantMap PhosphorShell::SystemStats::snapshot ( ) const
inline

◆ watch()

void PhosphorShell::SystemStats::watch ( QObject * consumer,
bool enabled )

The documentation for this class was generated from the following file: