"Fossies" - the Fresh Open Source Software Archive

Member "xosview-1.23/linux/acpitemp.h" (11 Jul 2020, 893 Bytes) of package /linux/misc/xosview-1.23.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "acpitemp.h" see the Fossies "Dox" file reference documentation.

    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