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:
37  int _high;
38  bool _usesysfs;
39  unsigned long _actcolor, _highcolor;
40 };
41 
42 
43 #endif
#define PATH_SIZE
Definition: acpitemp.h:18
int _high
Definition: acpitemp.h:37
void checkResources(void)
Definition: acpitemp.cc:98
unsigned long _actcolor
Definition: acpitemp.h:39
ACPITemp(XOSView *parent, const char *tempfile, const char *highfile, const char *label, const char *caption)
Definition: acpitemp.cc:27
const char * name(void) const
Definition: acpitemp.h:26
char _tempfile[128]
Definition: acpitemp.h:35
int checkacpi(const char *tempfile, const char *highfile)
Definition: acpitemp.cc:50
void getacpitemp(void)
Definition: acpitemp.cc:116
unsigned long _highcolor
Definition: acpitemp.h:39
bool _usesysfs
Definition: acpitemp.h:38
~ACPITemp(void)
Definition: acpitemp.cc:46
char _highfile[128]
Definition: acpitemp.h:36
void checkevent(void)
Definition: acpitemp.cc:111