summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/yahoo/libkyahoo/webcamtask.h
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/libkyahoo/webcamtask.h
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/libkyahoo/webcamtask.h')
-rw-r--r--kopete/protocols/yahoo/libkyahoo/webcamtask.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/kopete/protocols/yahoo/libkyahoo/webcamtask.h b/kopete/protocols/yahoo/libkyahoo/webcamtask.h
index 23639b8d..d84b6374 100644
--- a/kopete/protocols/yahoo/libkyahoo/webcamtask.h
+++ b/kopete/protocols/yahoo/libkyahoo/webcamtask.h
@@ -18,9 +18,9 @@
#define WEBCAMTASK_H
#include "task.h"
-#include <qmap.h>
-#include <qpixmap.h>
-#include <qstringlist.h>
+#include <tqmap.h>
+#include <tqpixmap.h>
+#include <tqstringlist.h>
class QString;
class YMSGTransfer;
@@ -46,10 +46,10 @@ struct YahooWebcamInformation
Q_INT32 dataLength;
Q_INT32 timestamp;
bool headerRead;
- QBuffer *buffer;
+ TQBuffer *buffer;
};
-typedef QMap< KStreamSocket *, YahooWebcamInformation > SocketInfoMap;
+typedef TQMap< KStreamSocket *, YahooWebcamInformation > SocketInfoMap;
/**
@author André Duffeck
@@ -65,24 +65,24 @@ public:
bool transmitting() { return transmittingData; }
- void requestWebcam( const QString &who );
- void closeWebcam( const QString &who );
+ void requestWebcam( const TQString &who );
+ void closeWebcam( const TQString &who );
void registerWebcam();
- void sendWebcamImage( const QByteArray &image );
- void addPendingInvitation( const QString &userId );
- void grantAccess( const QString &userId );
+ void sendWebcamImage( const TQByteArray &image );
+ void addPendingInvitation( const TQString &userId );
+ void grantAccess( const TQString &userId );
void closeOutgoingWebcam();
signals:
- void webcamNotAvailable( const QString & );
- void webcamClosed( const QString &, int );
- void webcamPaused( const QString& );
- void webcamImageReceived( const QString &, const QPixmap &);
+ void webcamNotAvailable( const TQString & );
+ void webcamClosed( const TQString &, int );
+ void webcamPaused( const TQString& );
+ void webcamImageReceived( const TQString &, const TQPixmap &);
void readyForTransmission();
void stopTransmission();
- void viewerJoined( const QString & );
- void viewerLeft( const QString & );
- void viewerRequest( const QString & );
+ void viewerJoined( const TQString & );
+ void viewerLeft( const TQString & );
+ void viewerRequest( const TQString & );
private slots:
void slotConnectionStage1Established();
void slotConnectionStage2Established();
@@ -94,19 +94,19 @@ protected:
virtual bool forMe( const Transfer* transfer ) const;
private:
void parseWebcamInformation( YMSGTransfer *transfer );
- void parseData( QByteArray &data, KStreamSocket *socket );
+ void parseData( TQByteArray &data, KStreamSocket *socket );
void connectStage2( KStreamSocket *socket );
void processData( KStreamSocket *socket );
void cleanUpConnection( KStreamSocket *socket );
- QString keyPending; // the buddy we have requested the webcam from
+ TQString keyPending; // the buddy we have requested the webcam from
SocketInfoMap socketMap;
bool transmittingData;
- QStringList pendingInvitations;
- QStringList accessGranted;
+ TQStringList pendingInvitations;
+ TQStringList accessGranted;
int timestamp;
- QByteArray pictureBuffer;
+ TQByteArray pictureBuffer;
bool transmissionPending;
};