rsssensor.h
00001 /*************************************************************************** 00002 * Copyright (C) 2003 by Ralph M. Churchill * 00003 * mrchucho@yahoo.com * 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 00011 #ifndef RSSSENSOR_H 00012 #define RSSSENSOR_H 00013 00014 #include <sensor.h> 00015 #include <tqstring.h> 00016 #include <tqtextcodec.h> 00017 00022 class RssSensor : public Sensor 00023 { 00024 Q_OBJECT 00025 00026 public: 00027 RssSensor( const TQString &source, int interval, const TQString &format, const TQString &encoding=TQString() ); 00028 00029 ~RssSensor(); 00030 00031 void update(); 00032 private: 00033 TQTextCodec *codec; 00034 TQString source; 00035 TQString format; 00036 TQString encoding; 00037 00038 }; 00039 00040 #endif // RSSSENSOR_H