summaryrefslogtreecommitdiffstats
path: root/src/kmplayersource.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kmplayersource.h')
-rw-r--r--src/kmplayersource.h67
1 files changed, 34 insertions, 33 deletions
diff --git a/src/kmplayersource.h b/src/kmplayersource.h
index e93f98f..191cfce 100644
--- a/src/kmplayersource.h
+++ b/src/kmplayersource.h
@@ -21,16 +21,16 @@
#ifndef KMPLAYERSOURCE_H
#define KMPLAYERSOURCE_H
-#include <qobject.h>
-#include <qstring.h>
+#include <tqobject.h>
+#include <tqstring.h>
#include <kurl.h>
#include "kmplayerplaylist.h"
#include "kmplayerprocess.h"
class KConfig;
-class QWidget;
-class QFrame;
+class TQWidget;
+class TQFrame;
namespace KMPlayer {
@@ -39,13 +39,14 @@ class PartBase;
/**
* Class for a certain media, like URL, DVD, TV etc
*/
-class KMPLAYER_EXPORT Source : public QObject, public PlayListNotify {
+class KMPLAYER_EXPORT Source : public TQObject, public PlayListNotify {
Q_OBJECT
+ TQ_OBJECT
public:
- Source (const QString & name, PartBase * player, const char * src);
+ Source (const TQString & name, PartBase * player, const char * src);
virtual ~Source ();
virtual void init ();
- virtual bool processOutput (const QString & line);
+ virtual bool processOutput (const TQString & line);
bool identified () const { return m_identified; }
virtual bool hasLength ();
@@ -63,28 +64,28 @@ public:
KDE_NO_EXPORT const KURL & subUrl () const { return m_sub_url; }
PartBase * player () { return m_player; }
virtual void reset ();
- QString currentMrl ();
- KDE_NO_EXPORT const QString & audioDevice () const { return m_audiodevice; }
- KDE_NO_EXPORT const QString & videoDevice () const { return m_videodevice; }
- KDE_NO_EXPORT const QString & videoNorm () const { return m_videonorm; }
+ TQString currentMrl ();
+ KDE_NO_EXPORT const TQString & audioDevice () const { return m_audiodevice; }
+ KDE_NO_EXPORT const TQString & videoDevice () const { return m_videodevice; }
+ KDE_NO_EXPORT const TQString & videoNorm () const { return m_videonorm; }
/* frequency() if set, returns frequency in kHz */
KDE_NO_EXPORT int frequency () const { return m_frequency; }
KDE_NO_EXPORT int xvPort () const { return m_xvport; }
KDE_NO_EXPORT int xvEncoding () const { return m_xvencoding; }
- KDE_NO_EXPORT const QString & pipeCmd () const { return m_pipecmd; }
- KDE_NO_EXPORT const QString & options () const { return m_options; }
- KDE_NO_EXPORT const QString & recordCmd () const { return m_recordcmd; }
- KDE_NO_EXPORT const QString & tuner () const { return m_tuner; }
+ KDE_NO_EXPORT const TQString & pipeCmd () const { return m_pipecmd; }
+ KDE_NO_EXPORT const TQString & options () const { return m_options; }
+ KDE_NO_EXPORT const TQString & recordCmd () const { return m_recordcmd; }
+ KDE_NO_EXPORT const TQString & tuner () const { return m_tuner; }
KDE_NO_EXPORT NodePtr current () const { return m_current; }
- QString plugin (const QString &mime) const;
+ TQString plugin (const TQString &mime) const;
virtual NodePtr document ();
virtual NodePtr root ();
- virtual QString filterOptions ();
+ virtual TQString filterOptions ();
virtual void setURL (const KURL & url);
- void insertURL (NodePtr mrl, const QString & url, const QString & title=QString());
+ void insertURL (NodePtr mrl, const TQString & url, const TQString & title=TQString());
KDE_NO_EXPORT void setSubURL (const KURL & url) { m_sub_url = url; }
- void setLanguages (const QStringList & alang, const QStringList & slang);
+ void setLanguages (const TQStringList & alang, const TQStringList & slang);
KDE_NO_EXPORT void setWidth (int w) { m_width = w; }
KDE_NO_EXPORT void setHeight (int h) { m_height = h; }
virtual void setDimensions (NodePtr, int w, int h);
@@ -98,11 +99,11 @@ public:
virtual void stateChange (Process *, Process::State os, Process::State ns);
KDE_NO_EXPORT void setAutoPlay (bool b) { m_auto_play = b; }
KDE_NO_EXPORT bool autoPlay () const { return m_auto_play; }
- void setTitle (const QString & title);
+ void setTitle (const TQString & title);
void setLoading (int percentage);
bool setCurrent (NodePtr mrl);
- virtual QString prettyName ();
+ virtual TQString prettyName ();
signals:
void startPlaying ();
void stopPlaying ();
@@ -113,7 +114,7 @@ signals:
*/
void endOfPlayItems ();
void dimensionsChanged ();
- void titleChanged (const QString & title);
+ void titleChanged (const TQString & title);
public slots:
virtual void activate () = 0;
virtual void deactivate () = 0;
@@ -130,7 +131,7 @@ public slots:
void setAudioLang (int);
void setSubtitle (int);
protected:
- void timerEvent (QTimerEvent *);
+ void timerEvent (TQTimerEvent *);
/**
* PlayListNotify implementation
*/
@@ -138,30 +139,30 @@ protected:
bool resolveURL (NodePtr mrl);
void stateElementChanged (Node * element, Node::State os, Node::State ns);
SurfacePtr getSurface (NodePtr node);
- void setInfoMessage (const QString & msg);
+ void setInfoMessage (const TQString & msg);
void bitRates (int & preferred, int & maximal);
void setTimeout (int ms);
NodePtr m_document;
NodePtrW m_current;
NodePtrW m_back_request;
- QString m_name;
+ TQString m_name;
PartBase * m_player;
- QString m_recordcmd;
+ TQString m_recordcmd;
bool m_identified;
bool m_auto_play;
KURL m_url;
KURL m_sub_url;
- QString m_audiodevice;
- QString m_videodevice;
- QString m_videonorm;
- QString m_tuner;
+ TQString m_audiodevice;
+ TQString m_videodevice;
+ TQString m_videonorm;
+ TQString m_tuner;
int m_frequency;
int m_xvport;
int m_xvencoding;
- QString m_pipecmd;
- QString m_options;
- QString m_plugin;
+ TQString m_pipecmd;
+ TQString m_options;
+ TQString m_plugin;
private:
int m_width;
int m_height;