summaryrefslogtreecommitdiffstats
path: root/src/cddb.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cddb.h')
-rwxr-xr-xsrc/cddb.h55
1 files changed, 28 insertions, 27 deletions
diff --git a/src/cddb.h b/src/cddb.h
index 62c38a7..e201093 100755
--- a/src/cddb.h
+++ b/src/cddb.h
@@ -20,60 +20,61 @@
#ifndef CDDB_H
#define CDDB_H
-#include <qcstring.h>
-#include <qvaluelist.h>
-#include <qstringlist.h>
-#include <qobject.h>
+#include <tqcstring.h>
+#include <tqvaluelist.h>
+#include <tqstringlist.h>
+#include <tqobject.h>
-class QFile;
-class QTextStream;
+class TQFile;
+class TQTextStream;
class KExtendedSocket;
-class CDDB : public QObject
+class CDDB : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
CDDB();
~CDDB();
bool set_server(const char *hostname = 0, unsigned short int port = 0);
- void add_cddb_dirs(const QStringList& list);
+ void add_cddb_dirs(const TQStringList& list);
void save_cddb (bool save) { save_local = save; }
- unsigned int get_discid(QValueList<int>& track_ofs);
- bool queryCD(QValueList<int>& track_ofs);
- QString title() const { return m_title.utf8(); }
- QString artist(int i) const;
+ unsigned int get_discid(TQValueList<int>& track_ofs);
+ bool queryCD(TQValueList<int>& track_ofs);
+ TQString title() const { return m_title.utf8(); }
+ TQString artist(int i) const;
int trackCount() const { return m_tracks; }
- QString track(int i) const;
+ TQString track(int i) const;
int disc() const { return m_disc; }
- QString genre() const { return m_genre.utf8(); }
+ TQString genre() const { return m_genre.utf8(); }
int year() const { return m_year; }
private:
- bool readLine(QCString& s);
- bool writeLine(const QCString& s);
+ bool readLine(TQCString& s);
+ bool writeLine(const TQCString& s);
bool deinit();
- bool parse_read_resp(QTextStream*, QTextStream*);
- bool searchLocal(unsigned int id, QFile *ret_file);
+ bool parse_read_resp(TQTextStream*, TQTextStream*);
+ bool searchLocal(unsigned int id, TQFile *ret_file);
KExtendedSocket *ks;
- QCString h_name;
+ TQCString h_name;
unsigned short int port;
bool remote;
bool save_local;
- QStringList cddb_dirs;
- QCString buf;
+ TQStringList cddb_dirs;
+ TQCString buf;
unsigned int m_discid;
int m_tracks;
int m_disc;
int m_year;
- QString m_genre;
- QString m_title;
- QString m_artist;
- QStringList m_artists;
- QStringList m_names;
+ TQString m_genre;
+ TQString m_title;
+ TQString m_artist;
+ TQStringList m_artists;
+ TQStringList m_names;
signals:
- void cddbMessage( QString );
+ void cddbMessage( TQString );
};
#endif // CDDB_H