summaryrefslogtreecommitdiffstats
path: root/kradio3/src/include/stationlist.h
diff options
context:
space:
mode:
Diffstat (limited to 'kradio3/src/include/stationlist.h')
-rw-r--r--kradio3/src/include/stationlist.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/kradio3/src/include/stationlist.h b/kradio3/src/include/stationlist.h
index 70fbd32..5e259e7 100644
--- a/kradio3/src/include/stationlist.h
+++ b/kradio3/src/include/stationlist.h
@@ -25,7 +25,7 @@
#include "stationlistmetadata.h"
#include "errorlog-interfaces.h"
-#include <qptrlist.h>
+#include <tqptrlist.h>
class RadioStation;
class KURL;
@@ -42,7 +42,7 @@ class KURL;
take place very often and thus are not critical.
- Why don't we use QValueList then?
+ Why don't we use TQValueList then?
We are using polymorphic radio stations, thus we cannot use a template
using instances of a base class and copying them with a copy constructor.
@@ -52,12 +52,12 @@ class KURL;
*/
-class RawStationList : public QPtrList<RadioStation>
+class RawStationList : public TQPtrList<RadioStation>
{
public:
- typedef QPtrListIterator<RadioStation> Iterator;
- typedef QPtrList<RadioStation> BaseClass;
+ typedef TQPtrListIterator<RadioStation> Iterator;
+ typedef TQPtrList<RadioStation> BaseClass;
public:
RawStationList ();
@@ -72,24 +72,24 @@ public:
void inSort (const RadioStation *item);
void prepend (const RadioStation *item);
void append (const RadioStation *item);
- bool replace (uint index, const RadioStation *item);
+ bool tqreplace (uint index, const RadioStation *item);
// simplify stationIDSearch
- const RadioStation & stationWithID(const QString &sid) const;
- RadioStation & stationWithID(const QString &sid);
+ const RadioStation & stationWithID(const TQString &sid) const;
+ RadioStation & stationWithID(const TQString &sid);
- int idxWithID(const QString &sid) const;
+ int idxWithID(const TQString &sid) const;
bool operator == (const RawStationList &l) const;
bool operator != (const RawStationList &l) const { return !operator==(l); }
protected:
- QPtrCollection::Item newItem (QPtrCollection::Item s);
- void deleteItem (QPtrCollection::Item s);
+ TQPtrCollection::Item newItem (TQPtrCollection::Item s);
+ void deleteItem (TQPtrCollection::Item s);
- int compareItems (QPtrCollection::Item a, QPtrCollection::Item b);
+ int compareItems (TQPtrCollection::Item a, TQPtrCollection::Item b);
};
@@ -112,8 +112,8 @@ public:
const RadioStation & at(int idx) const;
RadioStation & at(int idx);
- const RadioStation & stationWithID(const QString &sid) const;
- RadioStation & stationWithID(const QString &sid);
+ const RadioStation & stationWithID(const TQString &sid) const;
+ RadioStation & stationWithID(const TQString &sid);
// all stations, with full access
RawStationList & all() { return m_all; }
@@ -123,7 +123,7 @@ public:
StationListMetaData & metaData() { return m_metaData; }
StationListMetaData const & metaData() const { return m_metaData; }
- // we do not need a special matchingStation/find/... method because
+ // we do not need a special matchingStation/tqfind/... method because
// it is already implemented in RawStationList
/**
@@ -138,10 +138,10 @@ public:
// xml in/out
- bool readXML (const QString &dat, const IErrorLogClient &logger, bool enableMessageBox = true);
+ bool readXML (const TQString &dat, const IErrorLogClient &logger, bool enableMessageBox = true);
bool readXML (const KURL &url, const IErrorLogClient &logger, bool enableMessageBox = true);
- QString writeXML (const IErrorLogClient &logger) const;
+ TQString writeXML (const IErrorLogClient &logger) const;
bool writeXML (const KURL &url, const IErrorLogClient &logger, bool enableMessageBox = true) const;