summaryrefslogtreecommitdiffstats
path: root/src/kmplayer_part.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kmplayer_part.h')
-rw-r--r--src/kmplayer_part.h58
1 files changed, 31 insertions, 27 deletions
diff --git a/src/kmplayer_part.h b/src/kmplayer_part.h
index e60d983..4bdba55 100644
--- a/src/kmplayer_part.h
+++ b/src/kmplayer_part.h
@@ -34,25 +34,26 @@ class JSCommandEntry;
*/
class KMPLAYER_NO_EXPORT KMPlayerHRefSource : public KMPlayer::Source {
Q_OBJECT
+ TQ_OBJECT
public:
KMPlayerHRefSource (KMPlayer::PartBase * player);
virtual ~KMPlayerHRefSource ();
- virtual bool processOutput (const QString & line);
+ virtual bool processOutput (const TQString & line);
virtual bool hasLength ();
void setURL (const KURL &);
void clear ();
- virtual QString prettyName ();
+ virtual TQString prettyName ();
public slots:
virtual void init ();
virtual void activate ();
virtual void deactivate ();
void finished ();
private slots:
- void grabReady (const QString & path);
+ void grabReady (const TQString & path);
void play ();
private:
- QString m_grabfile;
+ TQString m_grabfile;
bool m_finished;
};
@@ -62,17 +63,18 @@ private:
*/
class KMPLAYER_NO_EXPORT KMPlayerBrowserExtension : public KParts::BrowserExtension {
Q_OBJECT
+ TQ_OBJECT
public:
- KMPlayerBrowserExtension(KMPlayerPart *parent);
+ KMPlayerBrowserExtension(KMPlayerPart *tqparent);
KDE_NO_CDTOR_EXPORT ~KMPlayerBrowserExtension () {}
- void urlChanged (const QString & url);
+ void urlChanged (const TQString & url);
void setLoadingProgress (int percentage);
- void saveState (QDataStream & stream);
- void restoreState (QDataStream & stream);
- void requestOpenURL (const KURL & url, const QString & target, const QString & service);
+ void saveState (TQDataStream & stream);
+ void restoreState (TQDataStream & stream);
+ void requestOpenURL (const KURL & url, const TQString & target, const TQString & service);
public slots:
- void slotRequestOpenURL (const KURL & url, const QString & target);
+ void slotRequestOpenURL (const KURL & url, const TQString & target);
};
/*
@@ -80,34 +82,35 @@ public slots:
*/
class KMPLAYER_NO_EXPORT KMPlayerLiveConnectExtension : public KParts::LiveConnectExtension {
Q_OBJECT
+ TQ_OBJECT
public:
- KMPlayerLiveConnectExtension (KMPlayerPart * parent);
+ KMPlayerLiveConnectExtension (KMPlayerPart * tqparent);
~KMPlayerLiveConnectExtension ();
// LiveConnect interface
- bool get (const unsigned long, const QString &,
- KParts::LiveConnectExtension::Type &, unsigned long &, QString &);
- bool put (const unsigned long, const QString &, const QString &);
- bool call (const unsigned long, const QString &,
- const QStringList &, KParts::LiveConnectExtension::Type &,
- unsigned long &, QString &);
+ bool get (const unsigned long, const TQString &,
+ KParts::LiveConnectExtension::Type &, unsigned long &, TQString &);
+ bool put (const unsigned long, const TQString &, const TQString &);
+ bool call (const unsigned long, const TQString &,
+ const TQStringList &, KParts::LiveConnectExtension::Type &,
+ unsigned long &, TQString &);
void unregister (const unsigned long);
- void sendEvent(const unsigned long objid, const QString & event, const KParts::LiveConnectExtension::ArgList & args ) {
+ void sendEvent(const unsigned long objid, const TQString & event, const KParts::LiveConnectExtension::ArgList & args ) {
emit partEvent(objid, event, args);
}
void enableFinishEvent (bool b = true) { m_enablefinish = b; }
signals:
- void partEvent (const unsigned long, const QString &,
+ void partEvent (const unsigned long, const TQString &,
const KParts::LiveConnectExtension::ArgList &);
public slots:
void setSize (int w, int h);
void started ();
void finished ();
- void evaluate (const QString & script, QString & result);
+ void evaluate (const TQString & script, TQString & result);
private:
KMPlayerPart * player;
- QString script_result;
+ TQString script_result;
const JSCommandEntry * lastJSCommandEntry;
bool m_started;
bool m_enablefinish;
@@ -120,6 +123,7 @@ private:
*/
class KMPLAYER_NO_EXPORT KMPlayerPart : public KMPlayer::PartBase {
Q_OBJECT
+ TQ_OBJECT
friend struct GroupPredicate;
public:
enum Features {
@@ -129,8 +133,8 @@ public:
Feat_InfoPanel = 0x10, Feat_VolumeSlider = 0x20, Feat_PlayList = 0x40,
Feat_ImageWindow = 0x80, Feat_All = 0xff
};
- KMPlayerPart (QWidget * wparent, const char * wname,
- QObject * parent, const char * name, const QStringList &args);
+ KMPlayerPart (TQWidget * wtqparent, const char * wname,
+ TQObject * tqparent, const char * name, const TQStringList &args);
~KMPlayerPart ();
KDE_NO_EXPORT KMPlayerBrowserExtension * browserextension() const
@@ -151,7 +155,7 @@ public slots:
protected slots:
virtual void playingStarted ();
virtual void playingStopped ();
- void viewerPartDestroyed (QObject *);
+ void viewerPartDestroyed (TQObject *);
void viewerPartProcessChanged (const char *);
void viewerPartSourceChanged (KMPlayer::Source *, KMPlayer::Source *);
void waitForImageWindowTimeOut ();
@@ -161,10 +165,10 @@ private:
KMPlayerPart * m_master;
KMPlayerBrowserExtension * m_browserextension;
KMPlayerLiveConnectExtension * m_liveconnectextension;
- QString m_group;
+ TQString m_group;
KURL m_docbase;
- QString m_src_url;
- QString m_file_name;
+ TQString m_src_url;
+ TQString m_file_name;
int m_features;
int last_time_left;
bool m_started_emited : 1;