Main Page   Class Hierarchy   Alphabetical List   Compound List   File List  

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 #ifdef HAVE_XMMS
00017 #include <xmmsctrl.h>
00018 #endif // HAVE_XMMS
00019 
00020 #include <stdlib.h>
00021 #include <stdio.h>
00022 #include <qdatetime.h>
00023 #include <qregexp.h>
00024 #include <qtextcodec.h>
00025 #include <qtooltip.h>
00026 #include <qurl.h>
00027 #include <qfile.h>
00028 #include <qimage.h>
00029 #include <ksimpleconfig.h>
00030 #include <kstandarddirs.h>
00031 //#include <iostream.h>
00032 
00033 #include <id3/tag.h>
00034 
00035 
00036 #include "karamba.h"
00037 #include "sensor.h"
00038 #include "clickarea.h"
00039 
00044 class XMMSSensor :  public Sensor
00045 {
00046     Q_OBJECT
00047 public:
00048     XMMSSensor( int interval, QString encoding="" );
00049     ~XMMSSensor();
00050     void update();
00051     void setMaxValue( SensorParams *);
00052     int getW();
00053     int getH();
00054     QString setCover();
00055     bool id3cover(QString file);
00056 
00057 private:
00058     QTextCodec *codec;
00059     int w;
00060     int h;
00061     QString dir;
00062     QString cover;
00063     QString rcover;
00064     QString fp;
00065     QString title;
00066     QString file;
00067     ID3_Tag* myTag;
00068     //bool FirstTime;
00069 
00070 };
00071 
00072 
00073 #endif // XMMSSENSOR_H

Generated on Tue May 6 09:52:09 2003 for karamba by doxygen1.2.18