summaryrefslogtreecommitdiffstats
path: root/src/cddb.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 23:15:51 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 23:15:51 +0000
commit6b1b516f42036cf9eff691dba3fd6e9eab82a7e1 (patch)
tree6830f75fd57d0fac7e33c097ee98b210e90c5239 /src/cddb.h
parent6318b8bb3ef964cfa99ba454a2630779cc9ac3ec (diff)
downloadsoundkonverter-6b1b516f42036cf9eff691dba3fd6e9eab82a7e1.tar.gz
soundkonverter-6b1b516f42036cf9eff691dba3fd6e9eab82a7e1.zip
TQt4 port soundkonverter
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/soundkonverter@1239038 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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