• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeutils API Reference
  • KDE Home
  • Contact Us
 

superkaramba

  • sources
  • kde-4.12
  • kdeutils
  • superkaramba
  • src
  • sensors
cpu.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2003 by Hans Karlsson *
3  * karlsson.h@home.se *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  ***************************************************************************/
10 #ifndef CPUSENSOR_H
11 #define CPUSENSOR_H
12 
13 #include "sensor.h"
14 
15 class CPUSensor : public Sensor
16 {
17  Q_OBJECT
18 public:
19  CPUSensor(const QString &cpu, int interval);
20  ~CPUSensor();
21 
22  void update();
23  void setMaxValue(SensorParams *sp);
24 
25  int getCPULoad();
26 
27 private:
28  long userTicks;
29  long sysTicks;
30  long niceTicks;
31  long idleTicks;
32 
33  int user;
34  int system;
35  int nice;
36  int idle;
37  int suload;
38 
39  void getTicks(long &u, long &s, long &n, long &i);
40  QString cpuNbr;
41 
42 };
43 
44 #endif // CPUSENSOR_H
CPUSensor::update
void update()
Definition: cpu.cpp:129
CPUSensor::getCPULoad
int getCPULoad()
Definition: cpu.cpp:103
CPUSensor::~CPUSensor
~CPUSensor()
Definition: cpu.cpp:41
CPUSensor
Definition: cpu.h:15
Sensor
Definition: sensor.h:17
sensor.h
SensorParams
Hans Karlsson.
Definition: sensorparams.h:30
CPUSensor::CPUSensor
CPUSensor(const QString &cpu, int interval)
Definition: cpu.cpp:30
CPUSensor::setMaxValue
void setMaxValue(SensorParams *sp)
Definition: cpu.cpp:182
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:07:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

superkaramba

Skip menu "superkaramba"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeutils API Reference

Skip menu "kdeutils API Reference"
  • ark
  • filelight
  • kcalc
  • kcharselect
  • kdf
  • kfloppy
  • kgpg
  • kremotecontrol
  • ktimer
  • kwallet
  • superkaramba
  • sweeper

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal