summaryrefslogtreecommitdiffstats
path: root/kradio3/src/include/radiostation.h
diff options
context:
space:
mode:
Diffstat (limited to 'kradio3/src/include/radiostation.h')
-rw-r--r--kradio3/src/include/radiostation.h54
1 files changed, 27 insertions, 27 deletions
diff --git a/kradio3/src/include/radiostation.h b/kradio3/src/include/radiostation.h
index 5c63874..8098d3d 100644
--- a/kradio3/src/include/radiostation.h
+++ b/kradio3/src/include/radiostation.h
@@ -23,9 +23,9 @@
#endif
//#include "utils.h"
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qdict.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqdict.h>
#include <klocale.h>
@@ -70,38 +70,38 @@ class RadioStationConfig;
class RadioStation
{
protected:
- RadioStation (RegisterStationClass, const QString &classname);
+ RadioStation (RegisterStationClass, const TQString &classname);
public:
RadioStation ();
- RadioStation (const QString &name, const QString &shortName);
+ RadioStation (const TQString &name, const TQString &shortName);
RadioStation (const RadioStation &);
virtual ~RadioStation();
- const QString &stationID() const { return m_stationID; }
+ const TQString &stationID() const { return m_stationID; }
- virtual QString longName() const = 0;
- virtual QString description() const = 0;
+ virtual TQString longName() const = 0;
+ virtual TQString description() const = 0;
- const QString &name() const { return m_name; }
- const QString &shortName() const { return m_shortName; }
- const QString &iconName() const { return m_iconName; }
+ const TQString &name() const { return m_name; }
+ const TQString &shortName() const { return m_shortName; }
+ const TQString &iconName() const { return m_iconName; }
float initialVolume() const { return m_initialVolume; }
- void setName (const QString &name) { m_name = name; }
- void setShortName (const QString &shortName) { m_shortName = shortName; }
- void setIconName (const QString &iconName) { m_iconName = iconName; }
+ void setName (const TQString &name) { m_name = name; }
+ void setShortName (const TQString &shortName) { m_shortName = shortName; }
+ void setIconName (const TQString &iconName) { m_iconName = iconName; }
void setInitialVolume(float initialVolume) { m_initialVolume = initialVolume; }
void copyDescriptionFrom(const RadioStation &rs);
// for XML-Parsing/Export
- virtual bool setProperty(const QString &property_name, const QString &val);
- virtual QString getProperty(const QString &property_name) const;
- virtual QStringList getPropertyNames() const;
- virtual QString getClassName() const = 0;
+ virtual bool setProperty(const TQString &property_name, const TQString &val);
+ virtual TQString getProperty(const TQString &property_name) const;
+ virtual TQStringList getPropertyNames() const;
+ virtual TQString getClassName() const = 0;
// get empty derived stations by classname from registry
- static RadioStation const *getStationClass(const QString &classname);
+ static RadioStation const *getStationClass(const TQString &classname);
RadioStation const *getStationClass() const { return getStationClass(getClassName()); }
// = 0 : "this" is same as "s", e.g. approximately same frequency, same url, ...
@@ -125,15 +125,15 @@ public:
virtual bool operator != (const RadioStation &x) const { return !operator==(x); }
protected :
- QString m_stationID;
+ TQString m_stationID;
- QString m_name;
- QString m_shortName;
+ TQString m_name;
+ TQString m_shortName;
float m_initialVolume; // <0: => Don't use
- QString m_iconName;
+ TQString m_iconName;
private:
- static QDict<RadioStation> *stationClassRegistry;
+ static TQDict<RadioStation> *stationClassRegistry;
};
@@ -147,14 +147,14 @@ class UndefinedRadioStation : public RadioStation
public:
UndefinedRadioStation (RegisterStationClass) : RadioStation (registerStationClass, getClassName()) {}
- virtual QString longName() const { return i18n("unknown"); }
- virtual QString description() const { return i18n("unknown"); }
+ virtual TQString longName() const { return i18n("unknown"); }
+ virtual TQString description() const { return i18n("unknown"); }
virtual bool isValid() const { return false; }
virtual RadioStation *copy() const { return new UndefinedRadioStation(*this); }
virtual RadioStation *copyNewID() const { RadioStation *x = new UndefinedRadioStation(*this); x->generateNewStationID(); return x; }
virtual int compare(const RadioStation &s) const;
- virtual QString getClassName() const { return "UndefinedRadioStation"; }
+ virtual TQString getClassName() const { return "UndefinedRadioStation"; }
virtual RadioStationConfig *createEditor() const;
};