diff options
Diffstat (limited to 'src/kmplayerbroadcast.h')
-rw-r--r-- | src/kmplayerbroadcast.h | 135 |
1 files changed, 69 insertions, 66 deletions
diff --git a/src/kmplayerbroadcast.h b/src/kmplayerbroadcast.h index 2b763db..fbd40a2 100644 --- a/src/kmplayerbroadcast.h +++ b/src/kmplayerbroadcast.h @@ -23,8 +23,8 @@ #include <list> #include <vector> -#include <qframe.h> -#include <qguardedptr.h> +#include <tqframe.h> +#include <tqguardedptr.h> #include "kmplayerappsource.h" #include "kmplayerprocess.h" @@ -32,11 +32,11 @@ class KMPlayerPrefBroadcastPage; // broadcast class KMPlayerPrefBroadcastFormatPage; // broadcast format -class QListBox; -class QComboBox; -class QLineEdit; -class QTable; -class QPushButton; +class TQListBox; +class TQComboBox; +class TQLineEdit; +class TQTable; +class TQPushButton; class KLed; namespace KMPlayer { @@ -46,66 +46,68 @@ namespace KMPlayer { class KMPLAYER_NO_EXPORT FFServerSetting { public: KDE_NO_CDTOR_EXPORT FFServerSetting () {} - FFServerSetting (int i, const QString & n, const QString & f, const QString & ac, int abr, int asr, const QString & vc, int vbr, int q, int fr, int gs, int w, int h); - KDE_NO_CDTOR_EXPORT FFServerSetting (const QStringList & sl) { *this = sl; } + FFServerSetting (int i, const TQString & n, const TQString & f, const TQString & ac, int abr, int asr, const TQString & vc, int vbr, int q, int fr, int gs, int w, int h); + KDE_NO_CDTOR_EXPORT FFServerSetting (const TQStringList & sl) { *this = sl; } KDE_NO_CDTOR_EXPORT ~FFServerSetting () {} int index; - QString name; - QString format; - QString audiocodec; - QString audiobitrate; - QString audiosamplerate; - QString videocodec; - QString videobitrate; - QString quality; - QString framerate; - QString gopsize; - QString width; - QString height; - QStringList acl; - FFServerSetting & operator = (const QStringList &); + TQString name; + TQString format; + TQString audiocodec; + TQString audiobitrate; + TQString audiosamplerate; + TQString videocodec; + TQString videobitrate; + TQString quality; + TQString framerate; + TQString gopsize; + TQString width; + TQString height; + TQStringList acl; + FFServerSetting & operator = (const TQStringList &); FFServerSetting & operator = (const FFServerSetting & fs); - const QStringList list (); - QString & ffconfig (QString & buf); + const TQStringList list (); + TQString & ffconfig (TQString & buf); }; typedef std::vector <FFServerSetting *> FFServerSettingList; -class KMPLAYER_NO_EXPORT KMPlayerPrefBroadcastPage : public QFrame { +class KMPLAYER_NO_EXPORT KMPlayerPrefBroadcastPage : public TQFrame { Q_OBJECT + TQ_OBJECT public: - KMPlayerPrefBroadcastPage (QWidget * parent); + KMPlayerPrefBroadcastPage (TQWidget * tqparent); KDE_NO_CDTOR_EXPORT ~KMPlayerPrefBroadcastPage () {} - QLineEdit * bindaddress; - QLineEdit * port; - QLineEdit * maxclients; - QLineEdit * maxbandwidth; - QLineEdit * feedfile; - QLineEdit * feedfilesize; + TQLineEdit * bindaddress; + TQLineEdit * port; + TQLineEdit * maxclients; + TQLineEdit * maxbandwidth; + TQLineEdit * feedfile; + TQLineEdit * feedfilesize; }; -class KMPLAYER_NO_EXPORT KMPlayerPrefBroadcastFormatPage : public QFrame { +class KMPLAYER_NO_EXPORT KMPlayerPrefBroadcastFormatPage : public TQFrame { Q_OBJECT + TQ_OBJECT public: - KMPlayerPrefBroadcastFormatPage (QWidget * parent, FFServerSettingList &); + KMPlayerPrefBroadcastFormatPage (TQWidget * tqparent, FFServerSettingList &); KDE_NO_CDTOR_EXPORT ~KMPlayerPrefBroadcastFormatPage () {} - QListBox * profilelist; - QComboBox * format; - QLineEdit * audiocodec; - QLineEdit * audiobitrate; - QLineEdit * audiosamplerate; - QLineEdit * videocodec; - QLineEdit * videobitrate; - QLineEdit * quality; - QLineEdit * framerate; - QLineEdit * gopsize; - QLineEdit * moviewidth; - QLineEdit * movieheight; - QLineEdit * profile; - QPushButton * startbutton; + TQListBox * profilelist; + TQComboBox * format; + TQLineEdit * audiocodec; + TQLineEdit * audiobitrate; + TQLineEdit * audiosamplerate; + TQLineEdit * videocodec; + TQLineEdit * videobitrate; + TQLineEdit * quality; + TQLineEdit * framerate; + TQLineEdit * gopsize; + TQLineEdit * moviewidth; + TQLineEdit * movieheight; + TQLineEdit * profile; + TQPushButton * startbutton; KLed * serverled; KLed * feedled; void setSettings (const FFServerSetting &); @@ -113,15 +115,15 @@ public: private slots: void slotIndexChanged (int index); void slotItemHighlighted (int index); - void slotTextChanged (const QString &); + void slotTextChanged (const TQString &); void slotLoad (); void slotSave (); void slotDelete (); private: - QTable * accesslist; - QPushButton * load; - QPushButton * save; - QPushButton * del; + TQTable * accesslist; + TQPushButton * load; + TQPushButton * save; + TQPushButton * del; FFServerSettingList & profiles; }; @@ -136,23 +138,24 @@ public: virtual void write (KConfig *); virtual void read (KConfig *); virtual void sync (bool fromUI); - virtual void prefLocation (QString & item, QString & icon, QString & tab); - virtual QFrame * prefPage (QWidget * parent); + virtual void prefLocation (TQString & item, TQString & icon, TQString & tab); + virtual TQFrame * prefPage (TQWidget * tqparent); int ffserverport; int maxclients; int maxbandwidth; - QString feedfile; + TQString feedfile; int feedfilesize; - QString bindaddress; + TQString bindaddress; private: - QGuardedPtr <KMPlayerPrefBroadcastPage> m_configpage; + TQGuardedPtr <KMPlayerPrefBroadcastPage> m_configpage; }; /* * Preference page for ffserver */ -class KMPLAYER_NO_EXPORT KMPlayerBroadcastConfig : public QObject, public KMPlayer::PreferencesPage { +class KMPLAYER_NO_EXPORT KMPlayerBroadcastConfig : public TQObject, public KMPlayer::PreferencesPage { Q_OBJECT + TQ_OBJECT public: KMPlayerBroadcastConfig (KMPlayer::PartBase * player, KMPlayerFFServerConfig * fsc); KDE_NO_CDTOR_EXPORT ~KMPlayerBroadcastConfig (); @@ -160,12 +163,12 @@ public: virtual void write (KConfig *); virtual void read (KConfig *); virtual void sync (bool fromUI); - virtual void prefLocation (QString & item, QString & icon, QString & tab); - virtual QFrame * prefPage (QWidget * parent); + virtual void prefLocation (TQString & item, TQString & icon, TQString & tab); + virtual TQFrame * prefPage (TQWidget * tqparent); bool broadcasting () const; void stopServer (); - KDE_NO_EXPORT const QString & serverURL () const { return m_ffserver_url; } + KDE_NO_EXPORT const TQString & serverURL () const { return m_ffserver_url; } FFServerSetting ffserversettings; FFServerSettingList ffserversettingprofiles; @@ -182,12 +185,12 @@ private slots: private: KMPlayer::PartBase * m_player; KMPlayerFFServerConfig * m_ffserverconfig; - QGuardedPtr <KMPlayerPrefBroadcastFormatPage> m_configpage; + TQGuardedPtr <KMPlayerPrefBroadcastFormatPage> m_configpage; KMPlayer::FFMpeg * m_ffmpeg_process; KProcess * m_ffserver_process; bool m_endserver; - QString m_ffserver_out; - QString m_ffserver_url; + TQString m_ffserver_out; + TQString m_ffserver_url; }; |