summaryrefslogtreecommitdiffstats
path: root/src/modules/mediaplayer/mp_interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/mediaplayer/mp_interface.h')
-rw-r--r--src/modules/mediaplayer/mp_interface.h52
1 files changed, 26 insertions, 26 deletions
diff --git a/src/modules/mediaplayer/mp_interface.h b/src/modules/mediaplayer/mp_interface.h
index 44667309..593a2490 100644
--- a/src/modules/mediaplayer/mp_interface.h
+++ b/src/modules/mediaplayer/mp_interface.h
@@ -36,9 +36,9 @@ public:
KviMediaPlayerInterface(){};
virtual ~KviMediaPlayerInterface(){};
protected:
- QString m_szLastError;
+ TQString m_szLastError;
public:
- const QString & lastError(){ return m_szLastError; };
+ const TQString & lastError(){ return m_szLastError; };
//
// mandatory interface
@@ -76,13 +76,13 @@ public:
// this string MUST be non-empty when the player is playing something.
// If it is empty then either the player is not playing or there are
// communication errors.
- virtual QString nowPlaying() = 0;
+ virtual TQString nowPlaying() = 0;
// currently played media resource locator
// file://<filepath> for local files, dvb:// for dvb media , dvd:// for dvd's
// http:// for audio streams etc...
// empty if player is not playing (or in the tragic case that the player
// can't determine the url).
- virtual QString mrl() = 0;
+ virtual TQString mrl() = 0;
// optional interface
@@ -90,10 +90,10 @@ public:
// the mrl may be (or may be not) added to the player's playlist
// the function should return false if the player doesn't support
// this function or there is a communication error
- virtual bool playMrl(const QString &mrl);
+ virtual bool playMrl(const TQString &mrl);
// what is this ? :D
- virtual bool amipExec(const QString &cmd);
- virtual QString amipEval(const QString &cmd);
+ virtual bool amipExec(const TQString &cmd);
+ virtual TQString amipEval(const TQString &cmd);
// this is functions to hide,show and minimize the player interface
virtual bool hide();
virtual bool show();
@@ -108,8 +108,8 @@ public:
// return false only on communication failure
virtual bool quit();
// return the current player status
- enum PlayerStatus { Unknown, Stopped, Playing, Paused };
- virtual KviMediaPlayerInterface::PlayerStatus status();
+ enum PlayertqStatus { Unknown, Stopped, Playing, Paused };
+ virtual KviMediaPlayerInterface::PlayertqStatus status();
// current position in the media (msecs)
// 0 if the player isn't playing anything and -1 if unknown
virtual int position();
@@ -125,25 +125,25 @@ public:
// is to be derived from the media file name or from the informations
// stored inside the file like the ID3 tag...)
// If the player is not playing, the returned string should be empty
- virtual QString title();
+ virtual TQString title();
// currently played media artist's name
// If the player is not playing, the returned string should be empty
// If the player can't guess the artist it should return the string "unknown"
- virtual QString artist();
+ virtual TQString artist();
// currently plaued media genre
// If the player is not playing, the returned string should be empty
// If the player can't guess the genre it should return the string "unknown"
- virtual QString genre();
+ virtual TQString genre();
// currently played media comment.
// Empty string if the player isn't playing anything or there is no comment
- virtual QString comment();
+ virtual TQString comment();
// currently played media year
// Empty string if the player isn't playing anything or the year is unknown
- virtual QString year();
+ virtual TQString year();
// currently played media album
// Empty string if the player isn't playing anything
// If the player can't guess the album/collection then this string should be "unknown"
- virtual QString album();
+ virtual TQString album();
// bit rate in bits/sec, 0 if unknown
virtual int bitRate();
// sample rate in samples/sec (Hz), 0 if unknown
@@ -152,7 +152,7 @@ public:
virtual int channels();
// frequency
// the type of the media (MPEG Layer 3, MPEG Layer 4, OGG Vorbis, AVI Stream etc..)
- virtual QString mediaType();
+ virtual TQString mediaType();
// get the position in the playlist
virtual int getPlayListPos();
// set the position in the playlist
@@ -171,10 +171,10 @@ public:
virtual bool setRepeat(bool &bVal);
// set the shuffle bool value
virtual bool setShuffle(bool &bVal);
- void setLastError(const QString &szLastError){ m_szLastError = szLastError; };
+ void setLastError(const TQString &szLastError){ m_szLastError = szLastError; };
protected:
void notImplemented();
- QString getLocalFile();
+ TQString getLocalFile();
};
@@ -184,8 +184,8 @@ public:
KviMediaPlayerInterfaceDescriptor(){};
virtual ~KviMediaPlayerInterfaceDescriptor(){};
public:
- virtual const QString & name() = 0;
- virtual const QString & description() = 0;
+ virtual const TQString & name() = 0;
+ virtual const TQString & description() = 0;
virtual KviMediaPlayerInterface * instance() = 0;
};
@@ -198,11 +198,11 @@ public:
virtual ~_interfaceclass ## Descriptor(); \
protected: \
_interfaceclass * m_pInstance; \
- QString m_szName; \
- QString m_szDescription; \
+ TQString m_szName; \
+ TQString m_szDescription; \
public: \
- virtual const QString & name(); \
- virtual const QString & description(); \
+ virtual const TQString & name(); \
+ virtual const TQString & description(); \
virtual KviMediaPlayerInterface * instance(); \
};
@@ -218,11 +218,11 @@ public:
{ \
if(m_pInstance)delete m_pInstance; \
} \
- const QString & _interfaceclass ## Descriptor::name() \
+ const TQString & _interfaceclass ## Descriptor::name() \
{ \
return m_szName; \
} \
- const QString & _interfaceclass ## Descriptor::description() \
+ const TQString & _interfaceclass ## Descriptor::description() \
{ \
return m_szDescription; \
} \