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)  

raidmeter.h
Go to the documentation of this file.
1 //
2 // Copyright (c) 1999, 2006 Thomas Waldmann ( ThomasWaldmann@gmx.de )
3 // based on work of Mike Romberg ( mike.romberg@noaa.gov )
4 //
5 // This file may be distributed under terms of the GPL
6 //
7 #ifndef _RAIDMETER_H_
8 #define _RAIDMETER_H_
9 
10 #include "bitfieldmeter.h"
11 #include "xosview.h"
12 
13 #define MAX_MD 8
14 
15 class RAIDMeter : public BitFieldMeter {
16 public:
17  RAIDMeter( XOSView *parent, int raiddev = 0);
18  ~RAIDMeter( void );
19 
20  void checkevent( void );
21 
22  void checkResources( void );
23 
24  static int countRAIDs( void );
25 
26 protected:
27 
28  int _raiddev;
29  static int mdnum;
30 
31  char state[20],
32  type[20],
35  int disknum;
36 
38 
39  int find1(const char *key, const char *findwhat, int num1);
40  int find2(const char *key, const char *findwhat, int num1, int num2);
41 
42  int raidparse(char *cp);
43 
44  void getRAIDstate( void );
45 };
46 
47 #endif
int find1(const char *key, const char *findwhat, int num1)
Definition: raidmeter.cc:73
char working_map[20]
Definition: raidmeter.h:33
~RAIDMeter(void)
Definition: raidmeter.cc:35
unsigned long todoColor_
Definition: raidmeter.h:37
int _raiddev
Definition: raidmeter.h:28
int disknum
Definition: raidmeter.h:35
void checkevent(void)
Definition: raidmeter.cc:38
char state[20]
Definition: raidmeter.h:31
static int countRAIDs(void)
unsigned long doneColor_
Definition: raidmeter.h:37
int find2(const char *key, const char *findwhat, int num1, int num2)
Definition: raidmeter.cc:84
int raidparse(char *cp)
Definition: raidmeter.cc:96
char type[20]
Definition: raidmeter.h:32
void checkResources(void)
Definition: raidmeter.cc:58
static int mdnum
Definition: raidmeter.h:29
unsigned long completeColor_
Definition: raidmeter.h:37
RAIDMeter(XOSView *parent, int raiddev=0)
Definition: raidmeter.cc:19
char resync_state[20]
Definition: raidmeter.h:34
void getRAIDstate(void)
Definition: raidmeter.cc:120