summaryrefslogtreecommitdiffstats
path: root/src/kmplayerpartbase.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kmplayerpartbase.h')
-rw-r--r--src/kmplayerpartbase.h110
1 files changed, 57 insertions, 53 deletions
diff --git a/src/kmplayerpartbase.h b/src/kmplayerpartbase.h
index 206f71e..5082860 100644
--- a/src/kmplayerpartbase.h
+++ b/src/kmplayerpartbase.h
@@ -23,10 +23,10 @@
#include "kmplayer_def.h"
-#include <qobject.h>
-#include <qguardedptr.h>
-#include <qstringlist.h>
-#include <qmap.h>
+#include <tqobject.h>
+#include <tqguardedptr.h>
+#include <tqstringlist.h>
+#include <tqmap.h>
#include <dcopobject.h>
#include <kmediaplayer/player.h>
@@ -41,9 +41,9 @@ class KInstance;
class KActionCollection;
class KBookmarkMenu;
class KConfig;
-class QIODevice;
-class QTextStream;
-class QListViewItem;
+class TQIODevice;
+class TQTextStream;
+class TQListViewItem;
namespace KIO {
class Job;
@@ -67,13 +67,14 @@ class Settings;
*/
class KMPLAYER_EXPORT URLSource : public Source {
Q_OBJECT
+// TQ_OBJECT
public:
URLSource (PartBase * player, const KURL & url = KURL ());
virtual ~URLSource ();
virtual void dimensions (int & w, int & h);
virtual bool hasLength ();
- virtual QString prettyName ();
+ virtual TQString prettyName ();
virtual void reset ();
virtual void setURL (const KURL & url);
public slots:
@@ -86,21 +87,21 @@ public slots:
virtual void jump (NodePtr e);
void play ();
private slots:
- void kioData (KIO::Job *, const QByteArray &);
- void kioMimetype (KIO::Job *, const QString &);
+ void kioData (KIO::Job *, const TQByteArray &);
+ void kioMimetype (KIO::Job *, const TQString &);
void kioResult (KIO::Job *);
protected:
virtual bool requestPlayURL (NodePtr mrl);
virtual bool resolveURL (NodePtr mrl);
private:
- void read (NodePtr mrl, QTextStream &);
+ void read (NodePtr mrl, TQTextStream &);
void stopResolving ();
struct ResolveInfo {
ResolveInfo (NodePtr mrl, KIO::Job * j, SharedPtr <ResolveInfo> & n)
: resolving_mrl (mrl), job (j), progress (0), next (n) {}
NodePtrW resolving_mrl;
KIO::Job * job;
- QByteArray data;
+ TQByteArray data;
int progress;
SharedPtr <ResolveInfo> next;
};
@@ -113,10 +114,11 @@ private:
*/
class KMPLAYER_EXPORT PartBase : public KMediaPlayer::Player {
Q_OBJECT
+// TQ_OBJECT
K_DCOP
public:
- typedef QMap <QString, Process *> ProcessMap;
- PartBase (QWidget * parent, const char * wname,QObject * objectParent, const char * name, KConfig *);
+ typedef TQMap <TQString, Process *> ProcessMap;
+ PartBase (TQWidget * tqparent, const char * wname,TQObject * objectParent, const char * name, KConfig *);
~PartBase ();
void init (KActionCollection * = 0L);
virtual KMediaPlayer::View* view ();
@@ -143,23 +145,23 @@ public:
Process * process () const { return m_process; }
Process * recorder () const { return m_recorder; }
Source * source () const { return m_source; }
- QMap <QString, Process *> & players () { return m_players; }
- QMap <QString, Process *> & recorders () { return m_recorders; }
- QMap <QString, Source *> & sources () { return m_sources; }
+ TQMap <TQString, Process *> & players () { return m_players; }
+ TQMap <TQString, Process *> & recorders () { return m_recorders; }
+ TQMap <TQString, Source *> & sources () { return m_sources; }
KConfig * config () const { return m_config; }
bool mayResize () const { return !m_noresize; }
void updatePlayerMenu (ControlPanel *);
- void updateInfo (const QString & msg);
- void updateStatus (const QString & msg);
+ void updateInfo (const TQString & msg);
+ void updatetqStatus (const TQString & msg);
#ifdef HAVE_DBUS
- void setServiceName (const QString & srv) { m_service = srv; }
- QString serviceName () const { return m_service; }
+ void setServiceName (const TQString & srv) { m_service = srv; }
+ TQString serviceName () const { return m_service; }
#endif
// these are called from Process
- void changeURL (const QString & url);
+ void changeURL (const TQString & url);
void updateTree (bool full=true, bool force=false);
- void setLanguages (const QStringList & alang, const QStringList & slang);
+ void setLanguages (const TQStringList & alang, const TQStringList & slang);
public slots:
virtual bool openURL (const KURL & url);
virtual bool openURL (const KURL::List & urls);
@@ -176,7 +178,7 @@ public slots:
void slotPlayerMenu (int);
void back ();
void forward ();
- void addBookMark (const QString & title, const QString & url);
+ void addBookMark (const TQString & title, const TQString & url);
void volumeChanged (int);
void increaseVolume ();
void decreaseVolume ();
@@ -194,20 +196,20 @@ signals:
void sourceChanged (KMPlayer::Source * old, KMPlayer::Source * nw);
void sourceDimensionChanged ();
void loading (int percentage);
- void urlAdded (const QString & url);
- void urlChanged (const QString & url);
+ void urlAdded (const TQString & url);
+ void urlChanged (const TQString & url);
void processChanged (const char *);
void treeChanged (int id, NodePtr root, NodePtr, bool select, bool open);
void treeUpdated ();
- void infoUpdated (const QString & msg);
- void statusUpdated (const QString & msg);
- void languagesUpdated(const QStringList & alang, const QStringList & slang);
+ void infoUpdated (const TQString & msg);
+ void statusUpdated (const TQString & msg);
+ void languagesUpdated(const TQStringList & alang, const TQStringList & slang);
void audioIsSelected (int id);
void subtitleIsSelected (int id);
void positioned (int pos, int length);
protected:
bool openFile();
- virtual void timerEvent (QTimerEvent *);
+ virtual void timerEvent (TQTimerEvent *);
protected slots:
void posSliderPressed ();
void posSliderReleased ();
@@ -218,8 +220,8 @@ protected slots:
void saturationValueChanged (int val);
void sourceHasChangedAspects ();
void fullScreen ();
- void playListItemClicked (QListViewItem *);
- void playListItemExecuted (QListViewItem *);
+ void playListItemClicked (TQListViewItem *);
+ void playListItemExecuted (TQListViewItem *);
virtual void playingStarted ();
virtual void playingStopped ();
void recordingStarted ();
@@ -229,20 +231,20 @@ protected slots:
void subtitleSelected (int);
protected:
KConfig * m_config;
- QGuardedPtr <View> m_view;
- QMap <QString, QString> temp_backends;
+ TQGuardedPtr <View> m_view;
+ TQMap <TQString, TQString> temp_backends;
Settings * m_settings;
Process * m_process;
Process * m_recorder;
Source * m_source;
ProcessMap m_players;
ProcessMap m_recorders;
- QMap <QString, Source *> m_sources;
+ TQMap <TQString, Source *> m_sources;
BookmarkManager * m_bookmark_manager;
BookmarkOwner * m_bookmark_owner;
KBookmarkMenu * m_bookmark_menu;
#ifdef HAVE_DBUS
- QString m_service;
+ TQString m_service;
#endif
int m_record_timer;
int m_update_tree_timer;
@@ -254,40 +256,42 @@ protected:
bool m_update_tree_full : 1;
};
-class KMPLAYER_NO_EXPORT DataCache : public QObject {
+class KMPLAYER_NO_EXPORT DataCache : public TQObject {
Q_OBJECT
- typedef QMap <QString, QByteArray> DataMap;
- typedef QMap <QString, bool> PreserveMap;
+// TQ_OBJECT
+ typedef TQMap <TQString, TQByteArray> DataMap;
+ typedef TQMap <TQString, bool> PreserveMap;
DataMap cache_map;
PreserveMap preserve_map;
public:
DataCache () {}
~DataCache () {}
- void add (const QString &, const QByteArray &);
- bool get (const QString &, QByteArray &);
- bool preserve (const QString &);
- bool unpreserve (const QString &);
- bool isPreserved (const QString &);
+ void add (const TQString &, const TQByteArray &);
+ bool get (const TQString &, TQByteArray &);
+ bool preserve (const TQString &);
+ bool unpreserve (const TQString &);
+ bool isPreserved (const TQString &);
signals:
- void preserveRemoved (const QString &); // ready or canceled
+ void preserveRemoved (const TQString &); // ready or canceled
};
-class KMPLAYER_NO_EXPORT RemoteObjectPrivate : public QObject {
+class KMPLAYER_NO_EXPORT RemoteObjectPrivate : public TQObject {
Q_OBJECT
+// TQ_OBJECT
public:
RemoteObjectPrivate (RemoteObject * r);
~RemoteObjectPrivate ();
- bool download (const QString &);
+ bool download (const TQString &);
void clear ();
KIO::Job * job;
- QString url;
- QByteArray data;
- QString mime;
+ TQString url;
+ TQByteArray data;
+ TQString mime;
private slots:
void slotResult (KIO::Job*);
- void slotData (KIO::Job*, const QByteArray& qb);
- void slotMimetype (KIO::Job * job, const QString & mimestr);
- void cachePreserveRemoved (const QString &);
+ void slotData (KIO::Job*, const TQByteArray& qb);
+ void slotMimetype (KIO::Job * job, const TQString & mimestr);
+ void cachePreserveRemoved (const TQString &);
private:
RemoteObject * remote_object;
bool preserve_wait;