summaryrefslogtreecommitdiffstats
path: root/src/modules/dcc/voice.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/dcc/voice.h')
-rw-r--r--src/modules/dcc/voice.h59
1 files changed, 30 insertions, 29 deletions
diff --git a/src/modules/dcc/voice.h b/src/modules/dcc/voice.h
index c74c677c..c241f4a1 100644
--- a/src/modules/dcc/voice.h
+++ b/src/modules/dcc/voice.h
@@ -33,9 +33,9 @@
#include "window.h"
#include "kvi_tal_hbox.h"
-#include <qlabel.h>
-#include <qtoolbutton.h>
-#include <qtimer.h>
+#include <tqlabel.h>
+#include <tqtoolbutton.h>
+#include <tqtimer.h>
#ifndef _DCC_VOICE_CPP_
extern bool kvi_dcc_voice_is_valid_codec(const char * codecName);
@@ -98,33 +98,34 @@ protected:
};
class KviDccMarshal;
-class QSlider;
+class TQSlider;
class KviDccVoice : public KviDccWindow
{
Q_OBJECT
+ TQ_OBJECT
public:
KviDccVoice(KviFrame *pFrm,KviDccDescriptor * dcc,const char * name);
~KviDccVoice();
protected:
KviTalHBox * m_pHBox;
- QSlider * m_pVolumeSlider;
- QLabel * m_pInputLabel;
- QLabel * m_pOutputLabel;
- QLabel * m_pRecordingLabel;
- QLabel * m_pPlayingLabel;
- QToolButton * m_pTalkButton;
- QTimer * m_pUpdateTimer;
- QString m_szTarget;
+ TQSlider * m_pVolumeSlider;
+ TQLabel * m_pInputLabel;
+ TQLabel * m_pOutputLabel;
+ TQLabel * m_pRecordingLabel;
+ TQLabel * m_pPlayingLabel;
+ TQToolButton * m_pTalkButton;
+ TQTimer * m_pUpdateTimer;
+ TQString m_szTarget;
KviDccVoiceThread * m_pSlaveThread;
protected:
- virtual void focusInEvent(QFocusEvent *);
- virtual const QString & target();
+ virtual void focusInEvent(TQFocusEvent *);
+ virtual const TQString & target();
virtual void fillCaptionBuffers();
- virtual QPixmap * myIconPtr();
- virtual void resizeEvent(QResizeEvent *e);
- virtual QSize sizeHint() const;
- virtual bool event(QEvent *e);
+ virtual TQPixmap * myIconPtr();
+ virtual void resizeEvent(TQResizeEvent *e);
+ virtual TQSize tqsizeHint() const;
+ virtual bool event(TQEvent *e);
virtual void getBaseLogFileName(KviStr &buffer);
void startTalking();
void stopTalking();
@@ -168,22 +169,22 @@ CODEC DEFINITION
class KviVoiceParty
{
public:
- KviVoiceParty(const QString &szNick,const QString &szIp,unsigned short uPort);
+ KviVoiceParty(const TQString &szNick,const TQString &szIp,unsigned short uPort);
~KviVoiceParty();
protected:
- QString m_szIp;
+ TQString m_szIp;
unsigned short m_uPort;
- QString m_szNick;
+ TQString m_szNick;
KviPointerList<KviVoiceParty> * m_pChildrenTree;
public:
- const QString & ip(){ return m_szIp; };
+ const TQString & ip(){ return m_szIp; };
unsigned short port(){ return m_uPort; };
- const QString & nick(){ return m_szNick; };
+ const TQString & nick(){ return m_szNick; };
void addChild(KviVoiceParty * pChild);
};
-KviVoiceParty::KviVoiceParty(const QString &szNick,const QString &szIp,unsigned short uPort)
+KviVoiceParty::KviVoiceParty(const TQString &szNick,const TQString &szIp,unsigned short uPort)
: m_szIp(szIp), m_uPort(uPort), m_szNick(szNick)
{
m_pChildrenTree = 0;
@@ -230,18 +231,18 @@ public:
KviVoiceLink(KviVoiceParty * pRemoteParty);
~KviVoiceLink();
protected:
- QString m_szId;
+ TQString m_szId;
KviVoiceParty * m_pRemoteParty;
KviVoiceAudioEncoder * m_pAudioEncoder;
KviVoiceAudioDecoder * m_pAudioDecoder;
public:
- const QStirng & id(){ return m_szId; };
+ const TQStirng & id(){ return m_szId; };
KviVoiceParty * remoteParty(){ return m_pRemoteParty; };
};
KviVoiceLink::KviVoiceLink(KviVoiceParty * pRemoteParty)
{
- KviQString::sprintf("%Q:%u",&(pRemoteParty->nick()),pRemoteParty->port());
+ KviTQString::sprintf("%Q:%u",&(pRemoteParty->nick()),pRemoteParty->port());
m_pRemoteParty = pRemoteParty;
m_pAudioEncoder = 0;
m_pAudioDecoder = 0;
@@ -315,9 +316,9 @@ public:
~KviVoiceConference();
public:
KviPointerList<KviVoiceLink> * m_pLinks;
- KviPointerHashTable<QString,KviVoiceLink> *
+ KviPointerHashTable<TQString,KviVoiceLink> *
SOCKET m_hUdpSocket;
- QString m_szLastError;
+ TQString m_szLastError;
unsigned int m_uLocalAudioSampleRate; // samples/sec
unsigned int m_uLocalAudioSampleSize; // bits