summaryrefslogtreecommitdiffstats
path: root/kopete/plugins/netmeeting/netmeetinginvitation.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/plugins/netmeeting/netmeetinginvitation.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/plugins/netmeeting/netmeetinginvitation.cpp')
-rw-r--r--kopete/plugins/netmeeting/netmeetinginvitation.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/kopete/plugins/netmeeting/netmeetinginvitation.cpp b/kopete/plugins/netmeeting/netmeetinginvitation.cpp
index 191bc140..5fb799c1 100644
--- a/kopete/plugins/netmeeting/netmeetinginvitation.cpp
+++ b/kopete/plugins/netmeeting/netmeetinginvitation.cpp
@@ -29,11 +29,11 @@
#include <kglobal.h>
-#include <qtimer.h>
+#include <tqtimer.h>
#include <kprocess.h>
-NetMeetingInvitation::NetMeetingInvitation(bool incoming, MSNContact *c, QObject *parent)
- : QObject(parent) , MSNInvitation( incoming, NetMeetingInvitation::applicationID() , i18n("NetMeeting") )
+NetMeetingInvitation::NetMeetingInvitation(bool incoming, MSNContact *c, TQObject *parent)
+ : TQObject(parent) , MSNInvitation( incoming, NetMeetingInvitation::applicationID() , i18n("NetMeeting") )
{
m_contact=c;
oki=false;
@@ -45,20 +45,20 @@ NetMeetingInvitation::~NetMeetingInvitation()
}
-QString NetMeetingInvitation::invitationHead()
+TQString NetMeetingInvitation::invitationHead()
{
- QTimer::singleShot( 10*60000, this, SLOT( slotTimeout() ) ); //send TIMEOUT in 10 minute if the invitation has not been accepted/refused
- return QString( MSNInvitation::invitationHead()+
+ TQTimer::singleShot( 10*60000, this, TQT_SLOT( slotTimeout() ) ); //send TIMEOUT in 10 minute if the invitation has not been accepted/refused
+ return TQString( MSNInvitation::invitationHead()+
"Session-Protocol: SM1\r\n"
"Session-ID: {6672F94C-45BF-11D7-B4AE-00010A1008DF}\r\n" //FIXME i don't know what is the session id
"\r\n").utf8();
}
-void NetMeetingInvitation::parseInvitation(const QString& msg)
+void NetMeetingInvitation::parseInvitation(const TQString& msg)
{
- QRegExp rx("Invitation-Command: ([A-Z]*)");
+ TQRegExp rx("Invitation-Command: ([A-Z]*)");
rx.search(msg);
- QString command=rx.cap(1);
+ TQString command=rx.cap(1);
if( msg.contains("Invitation-Command: INVITE") )
{
MSNInvitation::parseInvitation(msg); //for the cookie
@@ -73,12 +73,12 @@ void NetMeetingInvitation::parseInvitation(const QString& msg)
{
if(result==3) // Yes == 3
{
- QCString message=QString(
+ TQCString message=TQString(
"MIME-Version: 1.0\r\n"
"Content-Type: text/x-msmsgsinvite; charset=UTF-8\r\n"
"\r\n"
"Invitation-Command: ACCEPT\r\n"
- "Invitation-Cookie: " + QString::number(cookie()) + "\r\n"
+ "Invitation-Cookie: " + TQString::number(cookie()) + "\r\n"
"Session-ID: {6672F94C-45BF-11D7-B4AE-00010A1008DF}\r\n" //FIXME
"Session-Protocol: SM1\r\n"
"Launch-Application: TRUE\r\n"
@@ -89,7 +89,7 @@ void NetMeetingInvitation::parseInvitation(const QString& msg)
manager->service()->sendCommand( "MSG" , "N", true, message );
oki=false;
- QTimer::singleShot( 10* 60000, this, SLOT( slotTimeout() ) ); //TIMOUT afte 10 min
+ TQTimer::singleShot( 10* 60000, this, TQT_SLOT( slotTimeout() ) ); //TIMOUT afte 10 min
}
else //No
{
@@ -105,12 +105,12 @@ void NetMeetingInvitation::parseInvitation(const QString& msg)
MSNChatSession* manager=dynamic_cast<MSNChatSession*>(m_contact->manager());
if(manager && manager->service())
{
- QCString message=QString(
+ TQCString message=TQString(
"MIME-Version: 1.0\r\n"
"Content-Type: text/x-msmsgsinvite; charset=UTF-8\r\n"
"\r\n"
"Invitation-Command: ACCEPT\r\n"
- "Invitation-Cookie: " + QString::number(cookie()) + "\r\n"
+ "Invitation-Cookie: " + TQString::number(cookie()) + "\r\n"
"Session-ID: {6672F94C-45BF-11D7-B4AE-00010A1008DF}\r\n" //FIXME: what is session id?
"Session-Protocol: SM1\r\n"
"Launch-Application: TRUE\r\n"
@@ -119,17 +119,17 @@ void NetMeetingInvitation::parseInvitation(const QString& msg)
"\r\n" ).utf8();
manager->service()->sendCommand( "MSG" , "N", true, message );
}
- rx=QRegExp("IP-Address: ([0-9\\:\\.]*)");
+ rx=TQRegExp("IP-Address: ([0-9\\:\\.]*)");
rx.search(msg);
- QString ip_address = rx.cap(1);
+ TQString ip_address = rx.cap(1);
startMeeting(ip_address);
kdDebug() << k_funcinfo << ip_address << endl;
}
else
{
- rx=QRegExp("IP-Address: ([0-9\\:\\.]*)");
+ rx=TQRegExp("IP-Address: ([0-9\\:\\.]*)");
rx.search(msg);
- QString ip_address = rx.cap(1);
+ TQString ip_address = rx.cap(1);
startMeeting(ip_address);
}
@@ -156,20 +156,20 @@ void NetMeetingInvitation::slotTimeout()
}
-void NetMeetingInvitation::startMeeting(const QString & ip_address)
+void NetMeetingInvitation::startMeeting(const TQString & ip_address)
{
//TODO: use KProcess
KConfig *config=KGlobal::config();
config->setGroup("Netmeeting Plugin");
- QString app=config->readEntry("NetmeetingApplication","ekiga -c callto://%1").arg(ip_address);
+ TQString app=config->readEntry("NetmeetingApplication","ekiga -c callto://%1").arg(ip_address);
kdDebug() << k_funcinfo << app << endl ;
- QStringList args=QStringList::split(" ", app);
+ TQStringList args=TQStringList::split(" ", app);
KProcess p;
- for(QStringList::Iterator it=args.begin() ; it != args.end() ; ++it)
+ for(TQStringList::Iterator it=args.begin() ; it != args.end() ; ++it)
{
p << *it;
}