xosview
1.23
About:
xosview
is an X Windows based system monitor (cpu, memory, swap and network usage; interrupt and serial activities; load average).
Fossies
Dox
:
xosview-1.23.tar.gz
("unofficial" and yet experimental doxygen-generated source code documentation)
acpitemp.h
Go to the documentation of this file.
1
//
2
// Copyright (c) 2009 by Tomi Tapper <tomi.o.tapper@jyu.fi>
3
//
4
// File based on lmstemp.* by
5
// Copyright (c) 2000, 2006 by Leopold Toetsch <lt@toetsch.at>
6
//
7
// This file may be distributed under terms of the GPL
8
//
9
//
10
//
11
#ifndef _ACPITEMP_H_
12
#define _ACPITEMP_H_
13
14
15
#include "
fieldmeter.h
"
16
#include "
xosview.h
"
17
18
#define PATH_SIZE 128
19
20
21
class
ACPITemp
:
public
FieldMeter
{
22
public
:
23
ACPITemp
(
XOSView
*parent,
const
char
*tempfile,
const
char
*highfile,
const
char
*label,
const
char
* caption);
24
~ACPITemp
(
void
);
25
26
const
char
*
name
(
void
)
const
{
return
"ACPITemp"
; }
27
void
checkevent
(
void
);
28
29
void
checkResources
(
void
);
30
protected
:
31
32
void
getacpitemp
(
void
);
33
int
checkacpi
(
const
char
* tempfile,
const
char
* highfile);
34
private
:
35
char
_tempfile
[
PATH_SIZE
];
36
char
_highfile
[
PATH_SIZE
];
37
int
_high
;
38
bool
_usesysfs
;
39
unsigned
long
_actcolor
,
_highcolor
;
40
};
41
42
43
#endif
PATH_SIZE
#define PATH_SIZE
Definition:
acpitemp.h:18
ACPITemp
Definition:
acpitemp.h:21
ACPITemp::_high
int _high
Definition:
acpitemp.h:37
ACPITemp::checkResources
void checkResources(void)
Definition:
acpitemp.cc:98
ACPITemp::_actcolor
unsigned long _actcolor
Definition:
acpitemp.h:39
ACPITemp::ACPITemp
ACPITemp(XOSView *parent, const char *tempfile, const char *highfile, const char *label, const char *caption)
Definition:
acpitemp.cc:27
ACPITemp::name
const char * name(void) const
Definition:
acpitemp.h:26
ACPITemp::_tempfile
char _tempfile[128]
Definition:
acpitemp.h:35
ACPITemp::checkacpi
int checkacpi(const char *tempfile, const char *highfile)
Definition:
acpitemp.cc:50
ACPITemp::getacpitemp
void getacpitemp(void)
Definition:
acpitemp.cc:116
ACPITemp::_highcolor
unsigned long _highcolor
Definition:
acpitemp.h:39
ACPITemp::_usesysfs
bool _usesysfs
Definition:
acpitemp.h:38
ACPITemp::~ACPITemp
~ACPITemp(void)
Definition:
acpitemp.cc:46
ACPITemp::_highfile
char _highfile[128]
Definition:
acpitemp.h:36
ACPITemp::checkevent
void checkevent(void)
Definition:
acpitemp.cc:111
FieldMeter
Definition:
fieldmeter.h:15
XOSView
Definition:
xosview.h:19
fieldmeter.h
xosview.h
linux
acpitemp.h
Generated by
1.9.2