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 <qdatetime.h>
00018 #include <qregexp.h>
00019 #include <qtextcodec.h>
00020 
00021 #include "sensor.h"
00022 
00023 class XMMSSensor :  public Sensor
00024 {
00025     Q_OBJECT
00026 public:
00027     XMMSSensor( int interval, const QString &encoding=QString::null );
00028     ~XMMSSensor();
00029     void update();
00030     void setMaxValue( SensorParams *);
00031     bool hasXMMS() const;
00032 
00033 private:
00034     QTextCodec *codec;
00035 
00036     class XMMS;
00037     XMMS *xmms;
00038 };
00039 
00040 
00041 #endif // XMMSSENSOR_H
KDE Home | KDE Accessibility Home | Description of Access Keys