diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-30 06:10:56 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-30 06:10:56 +0000 |
commit | 769e63d24adf5c844137484f06a972fcce732d6a (patch) | |
tree | 5185797dcb3ff4b1b3cb71d367123bf89eb2410f /src/xineplayer.h | |
parent | 0a8af92185eac74d48da1225e6053a0d66c078f5 (diff) | |
download | kmplayer-769e63d24adf5c844137484f06a972fcce732d6a.tar.gz kmplayer-769e63d24adf5c844137484f06a972fcce732d6a.zip |
TQt4 port kmplayer
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmplayer@1238840 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/xineplayer.h')
-rw-r--r-- | src/xineplayer.h | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/src/xineplayer.h b/src/xineplayer.h index fe7a785..0a40fc4 100644 --- a/src/xineplayer.h +++ b/src/xineplayer.h @@ -19,38 +19,39 @@ #ifndef _KXINEPLAYER_H_ #define _KXINEPLAYER_H_ -#include <qapplication.h> -#include <qstring.h> -#include <qstringlist.h> -#include <qsessionmanager.h> +#include <tqapplication.h> +#include <tqstring.h> +#include <tqstringlist.h> +#include <tqsessionmanager.h> -struct XineMovieParamEvent : public QEvent { - XineMovieParamEvent (int l, int w, int h, const QStringList & al, const QStringList & sl, bool ff=false); +struct XineMovieParamEvent : public TQEvent { + XineMovieParamEvent (int l, int w, int h, const TQStringList & al, const TQStringList & sl, bool ff=false); int length; int width; int height; - QStringList alang; - QStringList slang; + TQStringList alang; + TQStringList slang; bool first_frame; }; -struct XineURLEvent : public QEvent { - XineURLEvent (const QString & u); - QString url; +struct XineURLEvent : public TQEvent { + XineURLEvent (const TQString & u); + TQString url; }; -struct XineTitleEvent : public QEvent { +struct XineTitleEvent : public TQEvent { XineTitleEvent (const char *); - QString title; + TQString title; }; -struct XineProgressEvent : public QEvent { +struct XineProgressEvent : public TQEvent { XineProgressEvent (int p); int progress; }; -class KXinePlayer : public QApplication { +class KXinePlayer : public TQApplication { Q_OBJECT + TQ_OBJECT public: KXinePlayer (int argc, char ** argv); ~KXinePlayer (); @@ -63,9 +64,9 @@ public: void brightness (int val); void volume (int val); void seek (int val); - bool event (QEvent * e); - void setAudioLang (int, const QString &); - void setSubtitle (int, const QString &); + bool event (TQEvent * e); + void setAudioLang (int, const TQString &); + void setSubtitle (int, const TQString &); public slots: void play (int repeat_count); void stop (); @@ -73,7 +74,7 @@ public slots: void updatePosition (); void postFinished (); protected: - void saveState (QSessionManager & sm); + void saveState (TQSessionManager & sm); }; #endif //_KXINEPLAYER_H_ |