summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/yahoo/yahoowebcam.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kopete/protocols/yahoo/yahoowebcam.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/protocols/yahoo/yahoowebcam.cpp')
-rw-r--r--kopete/protocols/yahoo/yahoowebcam.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kopete/protocols/yahoo/yahoowebcam.cpp b/kopete/protocols/yahoo/yahoowebcam.cpp
index 71ff921a..1e22b89c 100644
--- a/kopete/protocols/yahoo/yahoowebcam.cpp
+++ b/kopete/protocols/yahoo/yahoowebcam.cpp
@@ -16,7 +16,7 @@
#include <kdebug.h>
#include <kprocess.h>
#include <ktempfile.h>
-#include <qtimer.h>
+#include <tqtimer.h>
#include "client.h"
#include "yahoowebcam.h"
@@ -25,23 +25,23 @@
#include "avdevice/videodevicepool.h"
-YahooWebcam::YahooWebcam( YahooAccount *account ) : QObject( 0, "yahoo_webcam" )
+YahooWebcam::YahooWebcam( YahooAccount *account ) : TQObject( 0, "yahoo_webcam" )
{
kdDebug(YAHOO_GEN_DEBUG) << k_funcinfo << endl;
theAccount = account;
theDialog = 0L;
origImg = new KTempFile();
convertedImg = new KTempFile();
- m_img = new QImage();
+ m_img = new TQImage();
- m_sendTimer = new QTimer( this );
- connect( m_sendTimer, SIGNAL(timeout()), this, SLOT(sendImage()) );
+ m_sendTimer = new TQTimer( this );
+ connect( m_sendTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(sendImage()) );
- m_updateTimer = new QTimer( this );
- connect( m_updateTimer, SIGNAL(timeout()), this, SLOT(updateImage()) );
+ m_updateTimer = new TQTimer( this );
+ connect( m_updateTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(updateImage()) );
theDialog = new YahooWebcamDialog( "YahooWebcam" );
- connect( theDialog, SIGNAL(closingWebcamDialog()), this, SLOT(webcamDialogClosing()) );
+ connect( theDialog, TQT_SIGNAL(closingWebcamDialog()), this, TQT_SLOT(webcamDialogClosing()) );
m_devicePool = Kopete::AV::VideoDevicePool::self();
m_devicePool->open();
@@ -52,8 +52,8 @@ YahooWebcam::YahooWebcam( YahooAccount *account ) : QObject( 0, "yahoo_webcam" )
YahooWebcam::~YahooWebcam()
{
- QFile::remove( origImg->name() );
- QFile::remove( convertedImg->name() );
+ TQFile::remove( origImg->name() );
+ TQFile::remove( convertedImg->name() );
delete origImg;
delete convertedImg;
delete m_img;
@@ -109,10 +109,10 @@ void YahooWebcam::sendImage()
}
else
{
- QFile file( convertedImg->name() );
+ TQFile file( convertedImg->name() );
if( file.open( IO_ReadOnly ) )
{
- QByteArray ar = file.readAll();
+ TQByteArray ar = file.readAll();
theAccount->yahooSession()->sendWebcamImage( ar );
}
else
@@ -120,14 +120,14 @@ void YahooWebcam::sendImage()
}
}
-void YahooWebcam::addViewer( const QString &viewer )
+void YahooWebcam::addViewer( const TQString &viewer )
{
m_viewer.push_back( viewer );
if( theDialog )
theDialog->setViewer( m_viewer );
}
-void YahooWebcam::removeViewer( const QString &viewer )
+void YahooWebcam::removeViewer( const TQString &viewer )
{
m_viewer.remove( viewer );
if( theDialog )