00001 /*************************************************************************** 00002 internetradiostation.h - description 00003 ------------------- 00004 begin : Sat March 29 2003 00005 copyright : (C) 2003 by Klas Kalass, Ernst Martin Witte 00006 email : klas@kde.org, witte@kawo1.rwth-aachen.de 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef KRADIO_INTERNETRADIOSTATION_H 00019 #define KRADIO_INTERNETRADIOSTATION_H 00020 00021 #ifdef HAVE_CONFIG_H 00022 #include <config.h> 00023 #endif 00024 00025 #include "radiostation.h" 00026 00027 // KDE includes 00028 #include <kurl.h> 00029 00034 class InternetRadioStation : public RadioStation { 00035 public: 00036 InternetRadioStation(); 00037 InternetRadioStation(KURL const &url); 00038 InternetRadioStation(const QString &name, const QString &shortName, KURL const &url); 00039 InternetRadioStation(const InternetRadioStation &); 00040 InternetRadioStation(RegisterStationClass, const QString &classname = QString::null); 00041 ~InternetRadioStation(); 00042 00043 const KURL & url() const { return m_url; } 00044 void setUrl(KURL const &url) { m_url = url; } 00045 00046 virtual QString longName() const; 00047 virtual QString description() const; 00048 virtual bool isValid () const; 00049 00050 /* = 0 : this.url == s.url 00051 > 0 : this.url > s.url 00052 < 0 : this.url < s.url 00053 other class than InternetRadioStation: compare typeid(.).name() 00054 */ 00055 virtual int compare (const RadioStation &s) const; 00056 00058 virtual RadioStation *copy() const; 00059 virtual RadioStation *copyNewID() const; 00060 00061 virtual RadioStationConfig *createEditor() const; 00062 00063 // for XML-Parsing/Export 00064 virtual bool setProperty(const QString &property_name, const QString &val); 00065 virtual QString getProperty(const QString &property_name) const; 00066 virtual QStringList getPropertyNames() const; 00067 virtual QString getClassName() const { return "InternetRadioStation"; } 00068 00069 virtual bool operator == (const RadioStation &x) const; 00070 00071 protected: 00072 KURL m_url; 00073 }; 00074 00075 #endif