xmmssensor.h
00001 /*************************************************************************** 00002 * Copyright (C) 2003 by Hans Karlsson * 00003 * karlsson.h@home.se * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 ***************************************************************************/ 00010 #ifndef XMMSSENSOR_H 00011 #define XMMSSENSOR_H 00012 00013 #ifdef HAVE_CONFIG_H 00014 #include <config.h> 00015 #endif 00016 00017 #include <tqdatetime.h> 00018 #include <tqregexp.h> 00019 #include <tqtextcodec.h> 00020 00021 #include "sensor.h" 00022 00023 class XMMSSensor : public Sensor 00024 { 00025 Q_OBJECT 00026 00027 public: 00028 XMMSSensor( int interval, const TQString &encoding=TQString() ); 00029 ~XMMSSensor(); 00030 void update(); 00031 void setMaxValue( SensorParams *); 00032 bool hasXMMS() const; 00033 00034 private: 00035 TQTextCodec *codec; 00036 00037 class XMMS; 00038 XMMS *xmms; 00039 }; 00040 00041 00042 #endif // XMMSSENSOR_H