summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/oscar
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/oscar')
-rw-r--r--kopete/protocols/oscar/aim/aimaccount.cpp110
-rw-r--r--kopete/protocols/oscar/aim/aimaccount.h12
-rw-r--r--kopete/protocols/oscar/aim/aimchatsession.h3
-rw-r--r--kopete/protocols/oscar/aim/aimcontact.cpp106
-rw-r--r--kopete/protocols/oscar/aim/aimcontact.h5
-rw-r--r--kopete/protocols/oscar/aim/aimjoinchat.cpp4
-rw-r--r--kopete/protocols/oscar/aim/aimjoinchat.h3
-rw-r--r--kopete/protocols/oscar/aim/aimprotocol.cpp60
-rw-r--r--kopete/protocols/oscar/aim/aimprotocol.h7
-rw-r--r--kopete/protocols/oscar/aim/aimuserinfo.cpp16
-rw-r--r--kopete/protocols/oscar/aim/aimuserinfo.h3
-rw-r--r--kopete/protocols/oscar/aim/ui/aimaddcontactpage.cpp4
-rw-r--r--kopete/protocols/oscar/aim/ui/aimaddcontactpage.h3
-rw-r--r--kopete/protocols/oscar/aim/ui/aimaddcontactui.ui14
-rw-r--r--kopete/protocols/oscar/aim/ui/aimeditaccountui.ui88
-rw-r--r--kopete/protocols/oscar/aim/ui/aimeditaccountwidget.cpp4
-rw-r--r--kopete/protocols/oscar/aim/ui/aimeditaccountwidget.h3
-rw-r--r--kopete/protocols/oscar/aim/ui/aiminfobase.ui50
-rw-r--r--kopete/protocols/oscar/aim/ui/aimjoinchatbase.ui20
-rw-r--r--kopete/protocols/oscar/icq/icqaccount.cpp46
-rw-r--r--kopete/protocols/oscar/icq/icqaccount.h12
-rw-r--r--kopete/protocols/oscar/icq/icqcontact.cpp54
-rw-r--r--kopete/protocols/oscar/icq/icqcontact.h7
-rw-r--r--kopete/protocols/oscar/icq/icqpresence.cpp30
-rw-r--r--kopete/protocols/oscar/icq/icqpresence.h14
-rw-r--r--kopete/protocols/oscar/icq/icqprotocol.cpp46
-rw-r--r--kopete/protocols/oscar/icq/icqprotocol.h7
-rw-r--r--kopete/protocols/oscar/icq/icqreadaway.cpp10
-rw-r--r--kopete/protocols/oscar/icq/icqreadaway.h3
-rw-r--r--kopete/protocols/oscar/icq/ui/icqadd.ui22
-rw-r--r--kopete/protocols/oscar/icq/ui/icqaddcontactpage.cpp12
-rw-r--r--kopete/protocols/oscar/icq/ui/icqaddcontactpage.h7
-rw-r--r--kopete/protocols/oscar/icq/ui/icqauthreplydialog.cpp10
-rw-r--r--kopete/protocols/oscar/icq/ui/icqauthreplydialog.h3
-rw-r--r--kopete/protocols/oscar/icq/ui/icqauthreplyui.ui36
-rw-r--r--kopete/protocols/oscar/icq/ui/icqeditaccountui.ui74
-rw-r--r--kopete/protocols/oscar/icq/ui/icqeditaccountwidget.cpp6
-rw-r--r--kopete/protocols/oscar/icq/ui/icqeditaccountwidget.h5
-rw-r--r--kopete/protocols/oscar/icq/ui/icqgeneralinfo.ui102
-rw-r--r--kopete/protocols/oscar/icq/ui/icqinterestinfowidget.ui24
-rw-r--r--kopete/protocols/oscar/icq/ui/icqotherinfowidget.ui14
-rw-r--r--kopete/protocols/oscar/icq/ui/icqsearchbase.ui56
-rw-r--r--kopete/protocols/oscar/icq/ui/icqsearchdialog.cpp22
-rw-r--r--kopete/protocols/oscar/icq/ui/icqsearchdialog.h5
-rw-r--r--kopete/protocols/oscar/icq/ui/icquserinfowidget.cpp14
-rw-r--r--kopete/protocols/oscar/icq/ui/icquserinfowidget.h5
-rw-r--r--kopete/protocols/oscar/icq/ui/icqworkinfowidget.ui54
-rw-r--r--kopete/protocols/oscar/liboscar/HACKING14
-rw-r--r--kopete/protocols/oscar/liboscar/aimlogintask.cpp14
-rw-r--r--kopete/protocols/oscar/liboscar/aimlogintask.h3
-rw-r--r--kopete/protocols/oscar/liboscar/blmlimitstask.cpp6
-rw-r--r--kopete/protocols/oscar/liboscar/blmlimitstask.h2
-rw-r--r--kopete/protocols/oscar/liboscar/buddyicontask.cpp8
-rw-r--r--kopete/protocols/oscar/liboscar/buddyicontask.h3
-rw-r--r--kopete/protocols/oscar/liboscar/buffer.cpp12
-rw-r--r--kopete/protocols/oscar/liboscar/buffer.h2
-rw-r--r--kopete/protocols/oscar/liboscar/bytestream.cpp6
-rw-r--r--kopete/protocols/oscar/liboscar/bytestream.h5
-rw-r--r--kopete/protocols/oscar/liboscar/changevisibilitytask.cpp12
-rw-r--r--kopete/protocols/oscar/liboscar/changevisibilitytask.h4
-rw-r--r--kopete/protocols/oscar/liboscar/chatnavservicetask.cpp6
-rw-r--r--kopete/protocols/oscar/liboscar/chatnavservicetask.h3
-rw-r--r--kopete/protocols/oscar/liboscar/chatservicetask.cpp10
-rw-r--r--kopete/protocols/oscar/liboscar/chatservicetask.h3
-rw-r--r--kopete/protocols/oscar/liboscar/client.cpp52
-rw-r--r--kopete/protocols/oscar/liboscar/client.h23
-rw-r--r--kopete/protocols/oscar/liboscar/clientreadytask.cpp4
-rw-r--r--kopete/protocols/oscar/liboscar/clientreadytask.h2
-rw-r--r--kopete/protocols/oscar/liboscar/closeconnectiontask.cpp6
-rw-r--r--kopete/protocols/oscar/liboscar/closeconnectiontask.h4
-rw-r--r--kopete/protocols/oscar/liboscar/connection.cpp6
-rw-r--r--kopete/protocols/oscar/liboscar/connection.h9
-rw-r--r--kopete/protocols/oscar/liboscar/connectionhandler.cpp14
-rw-r--r--kopete/protocols/oscar/liboscar/connectionhandler.h4
-rw-r--r--kopete/protocols/oscar/liboscar/connector.cpp8
-rw-r--r--kopete/protocols/oscar/liboscar/connector.h11
-rw-r--r--kopete/protocols/oscar/liboscar/coreprotocol.cpp8
-rw-r--r--kopete/protocols/oscar/liboscar/coreprotocol.h3
-rw-r--r--kopete/protocols/oscar/liboscar/errortask.cpp4
-rw-r--r--kopete/protocols/oscar/liboscar/errortask.h2
-rw-r--r--kopete/protocols/oscar/liboscar/flapprotocol.cpp6
-rw-r--r--kopete/protocols/oscar/liboscar/flapprotocol.h3
-rw-r--r--kopete/protocols/oscar/liboscar/icbmparamstask.cpp6
-rw-r--r--kopete/protocols/oscar/liboscar/icbmparamstask.h2
-rw-r--r--kopete/protocols/oscar/liboscar/icqlogintask.cpp6
-rw-r--r--kopete/protocols/oscar/liboscar/icqlogintask.h3
-rw-r--r--kopete/protocols/oscar/liboscar/icqtask.cpp6
-rw-r--r--kopete/protocols/oscar/liboscar/icqtask.h3
-rw-r--r--kopete/protocols/oscar/liboscar/icquserinfo.cpp2
-rw-r--r--kopete/protocols/oscar/liboscar/icquserinfo.h6
-rw-r--r--kopete/protocols/oscar/liboscar/icquserinfotask.cpp4
-rw-r--r--kopete/protocols/oscar/liboscar/icquserinfotask.h5
-rw-r--r--kopete/protocols/oscar/liboscar/inputprotocolbase.cpp10
-rw-r--r--kopete/protocols/oscar/liboscar/inputprotocolbase.h7
-rw-r--r--kopete/protocols/oscar/liboscar/locationrightstask.cpp6
-rw-r--r--kopete/protocols/oscar/liboscar/locationrightstask.h2
-rw-r--r--kopete/protocols/oscar/liboscar/logintask.cpp12
-rw-r--r--kopete/protocols/oscar/liboscar/logintask.h6
-rw-r--r--kopete/protocols/oscar/liboscar/md5.c2
-rw-r--r--kopete/protocols/oscar/liboscar/messagereceivertask.cpp10
-rw-r--r--kopete/protocols/oscar/liboscar/messagereceivertask.h3
-rw-r--r--kopete/protocols/oscar/liboscar/offlinemessagestask.cpp4
-rw-r--r--kopete/protocols/oscar/liboscar/offlinemessagestask.h3
-rw-r--r--kopete/protocols/oscar/liboscar/onlinenotifiertask.cpp2
-rw-r--r--kopete/protocols/oscar/liboscar/onlinenotifiertask.h3
-rw-r--r--kopete/protocols/oscar/liboscar/oscarbytestream.cpp8
-rw-r--r--kopete/protocols/oscar/liboscar/oscarbytestream.h5
-rw-r--r--kopete/protocols/oscar/liboscar/oscarclientstream.cpp16
-rw-r--r--kopete/protocols/oscar/liboscar/oscarclientstream.h7
-rw-r--r--kopete/protocols/oscar/liboscar/oscarconnector.cpp8
-rw-r--r--kopete/protocols/oscar/liboscar/oscarconnector.h9
-rw-r--r--kopete/protocols/oscar/liboscar/oscarmessage.cpp2
-rw-r--r--kopete/protocols/oscar/liboscar/oscartypeclasses.cpp18
-rw-r--r--kopete/protocols/oscar/liboscar/oscartypeclasses.h18
-rw-r--r--kopete/protocols/oscar/liboscar/oscartypes.h6
-rw-r--r--kopete/protocols/oscar/liboscar/oscarutils.cpp2
-rw-r--r--kopete/protocols/oscar/liboscar/oscarutils.h2
-rw-r--r--kopete/protocols/oscar/liboscar/ownuserinfotask.cpp6
-rw-r--r--kopete/protocols/oscar/liboscar/ownuserinfotask.h3
-rw-r--r--kopete/protocols/oscar/liboscar/prmparamstask.cpp6
-rw-r--r--kopete/protocols/oscar/liboscar/prmparamstask.h2
-rw-r--r--kopete/protocols/oscar/liboscar/profiletask.cpp6
-rw-r--r--kopete/protocols/oscar/liboscar/profiletask.h2
-rw-r--r--kopete/protocols/oscar/liboscar/rateclass.cpp4
-rw-r--r--kopete/protocols/oscar/liboscar/rateclass.h5
-rw-r--r--kopete/protocols/oscar/liboscar/rateclassmanager.cpp6
-rw-r--r--kopete/protocols/oscar/liboscar/rateclassmanager.h5
-rw-r--r--kopete/protocols/oscar/liboscar/rateinfotask.cpp6
-rw-r--r--kopete/protocols/oscar/liboscar/rateinfotask.h3
-rw-r--r--kopete/protocols/oscar/liboscar/rtf.cc20
-rw-r--r--kopete/protocols/oscar/liboscar/rtf.ll18
-rw-r--r--kopete/protocols/oscar/liboscar/safedelete.cpp6
-rw-r--r--kopete/protocols/oscar/liboscar/safedelete.h3
-rw-r--r--kopete/protocols/oscar/liboscar/senddcinfotask.cpp6
-rw-r--r--kopete/protocols/oscar/liboscar/senddcinfotask.h4
-rw-r--r--kopete/protocols/oscar/liboscar/sendidletimetask.cpp4
-rw-r--r--kopete/protocols/oscar/liboscar/sendidletimetask.h2
-rw-r--r--kopete/protocols/oscar/liboscar/sendmessagetask.cpp8
-rw-r--r--kopete/protocols/oscar/liboscar/sendmessagetask.h2
-rw-r--r--kopete/protocols/oscar/liboscar/serverredirecttask.cpp6
-rw-r--r--kopete/protocols/oscar/liboscar/serverredirecttask.h3
-rw-r--r--kopete/protocols/oscar/liboscar/serverversionstask.cpp8
-rw-r--r--kopete/protocols/oscar/liboscar/serverversionstask.h3
-rw-r--r--kopete/protocols/oscar/liboscar/servicesetuptask.cpp22
-rw-r--r--kopete/protocols/oscar/liboscar/servicesetuptask.h3
-rw-r--r--kopete/protocols/oscar/liboscar/snacprotocol.cpp6
-rw-r--r--kopete/protocols/oscar/liboscar/snacprotocol.h3
-rw-r--r--kopete/protocols/oscar/liboscar/ssiactivatetask.cpp4
-rw-r--r--kopete/protocols/oscar/liboscar/ssiactivatetask.h2
-rw-r--r--kopete/protocols/oscar/liboscar/ssiauthtask.cpp6
-rw-r--r--kopete/protocols/oscar/liboscar/ssiauthtask.h3
-rw-r--r--kopete/protocols/oscar/liboscar/ssilisttask.cpp6
-rw-r--r--kopete/protocols/oscar/liboscar/ssilisttask.h3
-rw-r--r--kopete/protocols/oscar/liboscar/ssimanager.cpp28
-rw-r--r--kopete/protocols/oscar/liboscar/ssimanager.h5
-rw-r--r--kopete/protocols/oscar/liboscar/ssimodifytask.cpp24
-rw-r--r--kopete/protocols/oscar/liboscar/ssimodifytask.h2
-rw-r--r--kopete/protocols/oscar/liboscar/ssiparamstask.cpp6
-rw-r--r--kopete/protocols/oscar/liboscar/ssiparamstask.h2
-rw-r--r--kopete/protocols/oscar/liboscar/stream.cpp4
-rw-r--r--kopete/protocols/oscar/liboscar/stream.h5
-rw-r--r--kopete/protocols/oscar/liboscar/task.cpp28
-rw-r--r--kopete/protocols/oscar/liboscar/task.h9
-rw-r--r--kopete/protocols/oscar/liboscar/tests/clientstream_test.cpp2
-rw-r--r--kopete/protocols/oscar/liboscar/tests/clientstream_test.h5
-rw-r--r--kopete/protocols/oscar/liboscar/tests/ipaddrtest.h4
-rw-r--r--kopete/protocols/oscar/liboscar/tests/kunittest.cpp6
-rw-r--r--kopete/protocols/oscar/liboscar/tests/kunittest.h9
-rw-r--r--kopete/protocols/oscar/liboscar/tests/logintest.cpp2
-rw-r--r--kopete/protocols/oscar/liboscar/tests/logintest.h5
-rw-r--r--kopete/protocols/oscar/liboscar/tests/redirecttest.h4
-rw-r--r--kopete/protocols/oscar/liboscar/tests/ssigrouptest.cpp6
-rw-r--r--kopete/protocols/oscar/liboscar/tests/ssigrouptest.h5
-rw-r--r--kopete/protocols/oscar/liboscar/tests/ssitest.cpp12
-rw-r--r--kopete/protocols/oscar/liboscar/tests/ssitest.h5
-rw-r--r--kopete/protocols/oscar/liboscar/tests/userinfotest.cpp4
-rw-r--r--kopete/protocols/oscar/liboscar/tests/userinfotest.h5
-rw-r--r--kopete/protocols/oscar/liboscar/transfer.cpp6
-rw-r--r--kopete/protocols/oscar/liboscar/typingnotifytask.cpp12
-rw-r--r--kopete/protocols/oscar/liboscar/typingnotifytask.h5
-rw-r--r--kopete/protocols/oscar/liboscar/userdetails.cpp52
-rw-r--r--kopete/protocols/oscar/liboscar/userdetails.h4
-rw-r--r--kopete/protocols/oscar/liboscar/userinfotask.cpp12
-rw-r--r--kopete/protocols/oscar/liboscar/userinfotask.h17
-rw-r--r--kopete/protocols/oscar/liboscar/usersearchtask.cpp10
-rw-r--r--kopete/protocols/oscar/liboscar/usersearchtask.h5
-rw-r--r--kopete/protocols/oscar/liboscar/warningtask.cpp8
-rw-r--r--kopete/protocols/oscar/liboscar/warningtask.h7
-rw-r--r--kopete/protocols/oscar/oscaraccount.cpp76
-rw-r--r--kopete/protocols/oscar/oscaraccount.h11
-rw-r--r--kopete/protocols/oscar/oscarcontact.cpp8
-rw-r--r--kopete/protocols/oscar/oscarcontact.h3
-rw-r--r--kopete/protocols/oscar/oscarencodingselectionbase.ui10
-rw-r--r--kopete/protocols/oscar/oscarencodingselectiondialog.cpp8
-rw-r--r--kopete/protocols/oscar/oscarencodingselectiondialog.h3
-rw-r--r--kopete/protocols/oscar/oscarlistcontactsbase.ui10
-rw-r--r--kopete/protocols/oscar/oscarlistnonservercontacts.cpp4
-rw-r--r--kopete/protocols/oscar/oscarlistnonservercontacts.h3
-rw-r--r--kopete/protocols/oscar/oscarmyselfcontact.h1
-rw-r--r--kopete/protocols/oscar/oscarversionupdater.cpp6
-rw-r--r--kopete/protocols/oscar/oscarversionupdater.h3
-rw-r--r--kopete/protocols/oscar/oscarvisibilitybase.ui32
-rw-r--r--kopete/protocols/oscar/oscarvisibilitydialog.cpp8
-rw-r--r--kopete/protocols/oscar/oscarvisibilitydialog.h3
204 files changed, 1248 insertions, 1182 deletions
diff --git a/kopete/protocols/oscar/aim/aimaccount.cpp b/kopete/protocols/oscar/aim/aimaccount.cpp
index 9a6ec9de..1f0269c8 100644
--- a/kopete/protocols/oscar/aim/aimaccount.cpp
+++ b/kopete/protocols/oscar/aim/aimaccount.cpp
@@ -118,7 +118,7 @@ void AIMMyselfContact::sendMessage( Kopete::Message& message, Kopete::ChatSessio
return;
//okay, now we need to change the message.escapedBody from real HTML to aimhtml.
//looking right now for docs on that "format".
- //looks like everything except for alignment codes comes in the format of spans
+ //looks like everything except for tqalignment codes comes in the format of spans
//font-style:italic -> <i>
//font-weight:600 -> <b> (anything > 400 should be <b>, 400 is not bold)
@@ -127,53 +127,53 @@ void AIMMyselfContact::sendMessage( Kopete::Message& message, Kopete::ChatSessio
//font-size:xxpt -> <font ptsize=xx>
s=message.escapedBody();
- s.replace ( TQRegExp( TQString::fromLatin1("<span style=\"([^\"]*)\">([^<]*)</span>")),
- TQString::fromLatin1("<style>\\1;\"\\2</style>"));
+ s.tqreplace ( TQRegExp( TQString::tqfromLatin1("<span style=\"([^\"]*)\">([^<]*)</span>")),
+ TQString::tqfromLatin1("<style>\\1;\"\\2</style>"));
- s.replace ( TQRegExp( TQString::fromLatin1("<style>([^\"]*)font-style:italic;([^\"]*)\"([^<]*)</style>")),
- TQString::fromLatin1("<i><style>\\1\\2\"\\3</style></i>"));
+ s.tqreplace ( TQRegExp( TQString::tqfromLatin1("<style>([^\"]*)font-style:italic;([^\"]*)\"([^<]*)</style>")),
+ TQString::tqfromLatin1("<i><style>\\1\\2\"\\3</style></i>"));
- s.replace ( TQRegExp( TQString::fromLatin1("<style>([^\"]*)font-weight:600;([^\"]*)\"([^<]*)</style>")),
- TQString::fromLatin1("<b><style>\\1\\2\"\\3</style></b>"));
+ s.tqreplace ( TQRegExp( TQString::tqfromLatin1("<style>([^\"]*)font-weight:600;([^\"]*)\"([^<]*)</style>")),
+ TQString::tqfromLatin1("<b><style>\\1\\2\"\\3</style></b>"));
- s.replace ( TQRegExp( TQString::fromLatin1("<style>([^\"]*)text-decoration:underline;([^\"]*)\"([^<]*)</style>")),
- TQString::fromLatin1("<u><style>\\1\\2\"\\3</style></u>"));
+ s.tqreplace ( TQRegExp( TQString::tqfromLatin1("<style>([^\"]*)text-decoration:underline;([^\"]*)\"([^<]*)</style>")),
+ TQString::tqfromLatin1("<u><style>\\1\\2\"\\3</style></u>"));
- s.replace ( TQRegExp( TQString::fromLatin1("<style>([^\"]*)font-family:([^;]*);([^\"]*)\"([^<]*)</style>")),
- TQString::fromLatin1("<font face=\"\\2\"><style>\\1\\3\"\\4</style></font>"));
+ s.tqreplace ( TQRegExp( TQString::tqfromLatin1("<style>([^\"]*)font-family:([^;]*);([^\"]*)\"([^<]*)</style>")),
+ TQString::tqfromLatin1("<font face=\"\\2\"><style>\\1\\3\"\\4</style></font>"));
- s.replace ( TQRegExp( TQString::fromLatin1("<style>([^\"]*)font-size:([^p]*)pt;([^\"]*)\"([^<]*)</style>")),
- TQString::fromLatin1("<font ptsize=\"\\2\"><style>\\1\\3\"\\4</style></font>"));
+ s.tqreplace ( TQRegExp( TQString::tqfromLatin1("<style>([^\"]*)font-size:([^p]*)pt;([^\"]*)\"([^<]*)</style>")),
+ TQString::tqfromLatin1("<font ptsize=\"\\2\"><style>\\1\\3\"\\4</style></font>"));
- s.replace ( TQRegExp( TQString::fromLatin1("<style>([^\"]*)color:([^;]*);([^\"]*)\"([^<]*)</style>")),
- TQString::fromLatin1("<font color=\"\\2\"><style>\\1\\3\"\\4</style></font>"));
+ s.tqreplace ( TQRegExp( TQString::tqfromLatin1("<style>([^\"]*)color:([^;]*);([^\"]*)\"([^<]*)</style>")),
+ TQString::tqfromLatin1("<font color=\"\\2\"><style>\\1\\3\"\\4</style></font>"));
- s.replace ( TQRegExp( TQString::fromLatin1("<style>([^\"]*)\"([^<]*)</style>")),
- TQString::fromLatin1("\\2"));
+ s.tqreplace ( TQRegExp( TQString::tqfromLatin1("<style>([^\"]*)\"([^<]*)</style>")),
+ TQString::tqfromLatin1("\\2"));
//okay now change the <font ptsize="xx"> to <font size="xx">
//0-9 are size 1
- s.replace ( TQRegExp ( TQString::fromLatin1("<font ptsize=\"\\d\">")),
- TQString::fromLatin1("<font size=\"1\">"));
+ s.tqreplace ( TQRegExp ( TQString::tqfromLatin1("<font ptsize=\"\\d\">")),
+ TQString::tqfromLatin1("<font size=\"1\">"));
//10-11 are size 2
- s.replace ( TQRegExp ( TQString::fromLatin1("<font ptsize=\"1[01]\">")),
- TQString::fromLatin1("<font size=\"2\">"));
+ s.tqreplace ( TQRegExp ( TQString::tqfromLatin1("<font ptsize=\"1[01]\">")),
+ TQString::tqfromLatin1("<font size=\"2\">"));
//12-13 are size 3
- s.replace ( TQRegExp ( TQString::fromLatin1("<font ptsize=\"1[23]\">")),
- TQString::fromLatin1("<font size=\"3\">"));
+ s.tqreplace ( TQRegExp ( TQString::tqfromLatin1("<font ptsize=\"1[23]\">")),
+ TQString::tqfromLatin1("<font size=\"3\">"));
//14-16 are size 4
- s.replace ( TQRegExp ( TQString::fromLatin1("<font ptsize=\"1[456]\">")),
- TQString::fromLatin1("<font size=\"4\">"));
+ s.tqreplace ( TQRegExp ( TQString::tqfromLatin1("<font ptsize=\"1[456]\">")),
+ TQString::tqfromLatin1("<font size=\"4\">"));
//17-22 are size 5
- s.replace ( TQRegExp ( TQString::fromLatin1("<font ptsize=\"(?:1[789]|2[012])\">")),
- TQString::fromLatin1("<font size=\"5\">"));
+ s.tqreplace ( TQRegExp ( TQString::tqfromLatin1("<font ptsize=\"(?:1[789]|2[012])\">")),
+ TQString::tqfromLatin1("<font size=\"5\">"));
//23-29 are size 6
- s.replace ( TQRegExp ( TQString::fromLatin1("<font ptsize=\"2[3456789]\">")),TQString::fromLatin1("<font size=\"6\">"));
+ s.tqreplace ( TQRegExp ( TQString::tqfromLatin1("<font ptsize=\"2[3456789]\">")),TQString::tqfromLatin1("<font size=\"6\">"));
//30- (and any I missed) are size 7
- s.replace ( TQRegExp ( TQString::fromLatin1("<font ptsize=\"[^\"]*\">")),TQString::fromLatin1("<font size=\"7\">"));
+ s.tqreplace ( TQRegExp ( TQString::tqfromLatin1("<font ptsize=\"[^\"]*\">")),TQString::tqfromLatin1("<font size=\"7\">"));
- s.replace ( TQRegExp ( TQString::fromLatin1("<br[ /]*>")), TQString::fromLatin1("<br>") );
+ s.tqreplace ( TQRegExp ( TQString::tqfromLatin1("<br[ /]*>")), TQString::tqfromLatin1("<br>") );
kdDebug(14190) << k_funcinfo << "sending "
<< s << endl;
@@ -200,13 +200,13 @@ void AIMMyselfContact::sendMessage( Kopete::Message& message, Kopete::ChatSessio
}
-AIMAccount::AIMAccount(Kopete::Protocol *parent, TQString accountID, const char *name)
- : OscarAccount(parent, accountID, name, false)
+AIMAccount::AIMAccount(Kopete::Protocol *tqparent, TQString accountID, const char *name)
+ : OscarAccount(tqparent, accountID, name, false)
{
kdDebug(14152) << k_funcinfo << accountID << ": Called."<< endl;
AIMMyselfContact* mc = new AIMMyselfContact( this );
setMyself( mc );
- myself()->setOnlineStatus( static_cast<AIMProtocol*>( parent )->statusOffline );
+ myself()->setOnlineStatus( static_cast<AIMProtocol*>( tqparent )->statusOffline );
TQString profile = configGroup()->readEntry( "Profile",
i18n( "Visit the Kopete website at <a href=\"http://kopete.kde.org\">http://kopete.kde.org</a>") );
mc->setOwnProfile( profile );
@@ -235,9 +235,9 @@ AIMAccount::~AIMAccount()
{
}
-OscarContact *AIMAccount::createNewContact( const TQString &contactId, Kopete::MetaContact *parentContact, const SSI& ssiItem )
+OscarContact *AIMAccount::createNewContact( const TQString &contactId, Kopete::MetaContact *tqparentContact, const SSI& ssiItem )
{
- AIMContact* contact = new AIMContact( this, contactId, parentContact, TQString::null, ssiItem );
+ AIMContact* contact = new AIMContact( this, contactId, tqparentContact, TQString(), ssiItem );
if ( !ssiItem.alias().isEmpty() )
contact->setProperty( Kopete::Global::Properties::self()->nickName(), ssiItem.alias() );
@@ -280,7 +280,7 @@ TQString AIMAccount::sanitizedMessage( const TQString& message )
continue;
if ( fontEl.hasAttribute( "back" ) )
{
- kdDebug(OSCAR_AIM_DEBUG) << k_funcinfo << "Found attribute to replace. Doing replacement" << endl;
+ kdDebug(OSCAR_AIM_DEBUG) << k_funcinfo << "Found attribute to tqreplace. Doing replacement" << endl;
TQString backgroundColor = fontEl.attribute( "back" );
backgroundColor.insert( 0, "background-color: " );
backgroundColor.append( ';' );
@@ -300,13 +300,13 @@ KActionMenu* AIMAccount::actionMenu()
// mActionMenu is managed by Kopete::Account. It is deleted when
// it is no longer shown, so we can (safely) just make a new one here.
KActionMenu *mActionMenu = new KActionMenu(accountId(),
- myself()->onlineStatus().iconFor( this ), this, "AIMAccount::mActionMenu");
+ myself()->onlinetqStatus().iconFor( this ), this, "AIMAccount::mActionMenu");
AIMProtocol *p = AIMProtocol::protocol();
TQString accountNick = myself()->property( Kopete::Global::Properties::self()->nickName() ).value().toString();
- mActionMenu->popupMenu()->insertTitle( myself()->onlineStatus().iconFor( myself() ),
- i18n( "%2 <%1>" ).arg( accountId(), accountNick ));
+ mActionMenu->popupMenu()->insertTitle( myself()->onlinetqStatus().iconFor( myself() ),
+ i18n( "%2 <%1>" ).tqarg( accountId(), accountNick ));
mActionMenu->insert( new KAction( i18n("Online"), p->statusOnline.iconFor( this ), 0, this,
TQT_SLOT( slotGoOnline() ), mActionMenu, "AIMAccount::mActionOnline") );
@@ -322,7 +322,7 @@ KActionMenu* AIMAccount::actionMenu()
mActionMenu->insert( mActionOffline );
mActionMenu->popupMenu()->insertSeparator();
- KAction* m_joinChatAction = new KAction( i18n( "Join Chat..." ), TQString::null, 0, this,
+ KAction* m_joinChatAction = new KAction( i18n( "Join Chat..." ), TQString(), 0, this,
TQT_SLOT( slotJoinChat() ), mActionMenu, "join_a_chat" );
mActionMenu->insert( new KToggleAction( i18n( "Set Visibility..." ), 0, 0,
@@ -344,16 +344,16 @@ void AIMAccount::setAway(bool away, const TQString &awayReason)
// kdDebug(14152) << k_funcinfo << accountId() << "reason is " << awayReason << endl;
if ( away )
{
- engine()->setStatus( Client::Away, awayReason );
+ engine()->settqStatus( Client::Away, awayReason );
AIMMyselfContact* me = static_cast<AIMMyselfContact *> ( myself() );
me->setLastAwayMessage(awayReason);
me->setProperty( Kopete::Global::Properties::self()->awayMessage(), awayReason );
}
else
{
- engine()->setStatus( Client::Online );
+ engine()->settqStatus( Client::Online );
AIMMyselfContact* me = static_cast<AIMMyselfContact *> ( myself() );
- me->setLastAwayMessage(TQString::null);
+ me->setLastAwayMessage(TQString());
me->removeProperty( Kopete::Global::Properties::self()->awayMessage() );
}
}
@@ -374,7 +374,7 @@ void AIMAccount::setUserProfile(const TQString &profile)
AIMMyselfContact* aimmc = dynamic_cast<AIMMyselfContact*>( myself() );
if ( aimmc )
aimmc->setOwnProfile( profile );
- configGroup()->writeEntry( TQString::fromLatin1( "Profile" ), profile );
+ configGroup()->writeEntry( TQString::tqfromLatin1( "Profile" ), profile );
}
void AIMAccount::slotEditInfo()
@@ -451,7 +451,7 @@ void AIMAccount::slotBuddyIconChanged()
iconFile.open( IO_ReadOnly );
KMD5 iconHash;
- iconHash.update( iconFile );
+ iconHash.update( *TQT_TQIODEVICE(&iconFile) );
kdDebug(OSCAR_AIM_DEBUG) << k_funcinfo << "hash is :" << iconHash.hexDigest() << endl;
//find old item, create updated item
@@ -532,13 +532,13 @@ void AIMAccount::slotJoinChat()
void AIMAccount::slotGoOnline()
{
- if ( myself()->onlineStatus().status() == Kopete::OnlineStatus::Away )
+ if ( myself()->onlinetqStatus().status() == Kopete::OnlineStatus::Away )
{
kdDebug(14152) << k_funcinfo << accountId() << " was away. welcome back." << endl;
- engine()->setStatus( Client::Online );
+ engine()->settqStatus( Client::Online );
myself()->removeProperty( Kopete::Global::Properties::self()->awayMessage() );
}
- else if ( myself()->onlineStatus().status() == Kopete::OnlineStatus::Offline )
+ else if ( myself()->onlinetqStatus().status() == Kopete::OnlineStatus::Offline )
{
kdDebug(14152) << k_funcinfo << accountId() << " was offline. time to connect" << endl;
OscarAccount::connect();
@@ -597,16 +597,16 @@ void AIMAccount::disconnected( DisconnectReason reason )
void AIMAccount::messageReceived( const Oscar::Message& message )
{
kdDebug(14152) << k_funcinfo << " Got a message, calling OscarAccount::messageReceived" << endl;
- // Want to call the parent to do everything else
+ // Want to call the tqparent to do everything else
if ( message.type() != 0x0003 )
{
OscarAccount::messageReceived(message);
// Check to see if our status is away, and send an away message
- // Might be duplicate code from the parent class to get some needed information
+ // Might be duplicate code from the tqparent class to get some needed information
// Perhaps a refactoring is needed.
kdDebug(14152) << k_funcinfo << "Checking to see if I'm online.." << endl;
- if( myself()->onlineStatus().status() == Kopete::OnlineStatus::Away )
+ if( myself()->onlinetqStatus().status() == Kopete::OnlineStatus::Away )
{
TQString sender = Oscar::normalize( message.sender() );
AIMContact* aimSender = static_cast<AIMContact *> ( contacts()[sender] ); //should exist now
@@ -759,7 +759,7 @@ void AIMAccount::connectWithPassword( const TQString & )
// Get the screen name for this account
TQString screenName = accountId();
- TQString server = configGroup()->readEntry( "Server", TQString::fromLatin1( "login.oscar.aol.com" ) );
+ TQString server = configGroup()->readEntry( "Server", TQString::tqfromLatin1( "login.oscar.aol.com" ) );
uint port = configGroup()->readNumEntry( "Port", 5190 );
Connection* c = setupConnection( server, port );
@@ -771,7 +771,7 @@ void AIMAccount::connectWithPassword( const TQString & )
<< "AIM network because no password was specified in the "
<< "preferences." << endl;
}
- else if ( myself()->onlineStatus() == static_cast<AIMProtocol*>( protocol() )->statusOffline )
+ else if ( myself()->onlinetqStatus() == static_cast<AIMProtocol*>( protocol() )->statusOffline )
{
kdDebug(14152) << k_funcinfo << "Logging in as " << accountId() << endl ;
updateVersionUpdaterStamp();
@@ -895,7 +895,7 @@ void AIMAccount::setPrivacySettings( int privacy )
void AIMAccount::setPrivacyTLVs( BYTE privacy, DWORD userClasses )
{
SSIManager* ssi = engine()->ssiManager();
- Oscar::SSI item = ssi->findItem( TQString::null, ROSTER_VISIBILITY );
+ Oscar::SSI item = ssi->findItem( TQString(), ROSTER_VISIBILITY );
TQValueList<Oscar::TLV> tList;
@@ -905,7 +905,7 @@ void AIMAccount::setPrivacyTLVs( BYTE privacy, DWORD userClasses )
if ( !item )
{
kdDebug(OSCAR_AIM_DEBUG) << k_funcinfo << "Adding new privacy TLV item" << endl;
- Oscar::SSI s( TQString::null, 0, ssi->nextContactId(), ROSTER_VISIBILITY, tList );
+ Oscar::SSI s( TQString(), 0, ssi->nextContactId(), ROSTER_VISIBILITY, tList );
engine()->modifySSIItem( item, s );
}
else
diff --git a/kopete/protocols/oscar/aim/aimaccount.h b/kopete/protocols/oscar/aim/aimaccount.h
index 2df309b6..35c7adb5 100644
--- a/kopete/protocols/oscar/aim/aimaccount.h
+++ b/kopete/protocols/oscar/aim/aimaccount.h
@@ -53,6 +53,7 @@ class OscarVisibilityDialog;
class AIMMyselfContact : public OscarMyselfContact
{
Q_OBJECT
+ TQ_OBJECT
public:
AIMMyselfContact( AIMAccount *acct );
void userInfoUpdated();
@@ -62,7 +63,7 @@ public:
TQString lastAwayMessage() { return m_lastAwayMessage; };
virtual Kopete::ChatSession* manager( Kopete::Contact::CanCreateFlags = Kopete::Contact::CannotCreate,
- WORD exchange = 0, const TQString& room = TQString::null);
+ WORD exchange = 0, const TQString& room = TQString());
public slots:
void sendMessage( Kopete::Message&, Kopete::ChatSession* session );
@@ -83,15 +84,16 @@ private:
class AIMAccount : public OscarAccount
{
Q_OBJECT
+ TQ_OBJECT
public:
- AIMAccount(Kopete::Protocol *parent, TQString accountID, const char *name=0L);
+ AIMAccount(Kopete::Protocol *tqparent, TQString accountID, const char *name=0L);
virtual ~AIMAccount();
// Accessor method for the action menu
virtual KActionMenu* actionMenu();
- void setAway(bool away, const TQString &awayReason = TQString::null );
+ void setAway(bool away, const TQString &awayReason = TQString() );
virtual void connectWithPassword( const TQString &password );
@@ -101,7 +103,7 @@ public:
public slots:
/** Reimplementation from Kopete::Account */
- void setOnlineStatus( const Kopete::OnlineStatus& status, const TQString& reason = TQString::null );
+ void setOnlineStatus( const Kopete::OnlineStatus& status, const TQString& reason = TQString() );
void slotEditInfo();
void slotGoOnline();
@@ -131,7 +133,7 @@ protected:
* Implement virtual method from OscarAccount
* This allows OscarAccount to take care of adding new contacts
*/
- OscarContact *createNewContact( const TQString &contactId, Kopete::MetaContact *parentContact, const SSI& ssiItem );
+ OscarContact *createNewContact( const TQString &contactId, Kopete::MetaContact *tqparentContact, const SSI& ssiItem );
TQString sanitizedMessage( const TQString& message );
diff --git a/kopete/protocols/oscar/aim/aimchatsession.h b/kopete/protocols/oscar/aim/aimchatsession.h
index 9ce3ce1f..0634d02a 100644
--- a/kopete/protocols/oscar/aim/aimchatsession.h
+++ b/kopete/protocols/oscar/aim/aimchatsession.h
@@ -27,10 +27,11 @@ class Client;
class AIMChatSession : public Kopete::ChatSession
{
Q_OBJECT
+ TQ_OBJECT
public:
AIMChatSession( const Kopete::Contact* contact, Kopete::ContactPtrList others,
Kopete::Protocol* protocol, Oscar::WORD exchange = 0,
- const TQString& room = TQString::null );
+ const TQString& room = TQString() );
virtual ~AIMChatSession();
/**
diff --git a/kopete/protocols/oscar/aim/aimcontact.cpp b/kopete/protocols/oscar/aim/aimcontact.cpp
index b32a5305..7f14d3ba 100644
--- a/kopete/protocols/oscar/aim/aimcontact.cpp
+++ b/kopete/protocols/oscar/aim/aimcontact.cpp
@@ -43,9 +43,9 @@
#include "aimcontact.h"
#include "aimaccount.h"
-AIMContact::AIMContact( Kopete::Account* account, const TQString& name, Kopete::MetaContact* parent,
+AIMContact::AIMContact( Kopete::Account* account, const TQString& name, Kopete::MetaContact* tqparent,
const TQString& icon, const Oscar::SSI& ssiItem )
-: OscarContact(account, name, parent, icon, ssiItem )
+: OscarContact(account, name, tqparent, icon, ssiItem )
{
mProtocol=static_cast<AIMProtocol *>(protocol());
setOnlineStatus( mProtocol->statusOffline );
@@ -56,7 +56,7 @@ AIMContact::AIMContact( Kopete::Account* account, const TQString& name, Kopete::
m_haveAwayMessage = false;
m_mobile = false;
// Set the last autoresponse time to the current time yesterday
- m_lastAutoresponseTime = TQDateTime::currentDateTime().addDays(-1);
+ m_lastAutoresponseTime = TQDateTime::tqcurrentDateTime().addDays(-1);
TQObject::connect( mAccount->engine(), TQT_SIGNAL( receivedUserInfo( const TQString&, const UserDetails& ) ),
this, TQT_SLOT( userInfoUpdated( const TQString&, const UserDetails& ) ) );
@@ -66,8 +66,8 @@ AIMContact::AIMContact( Kopete::Account* account, const TQString& name, Kopete::
this, TQT_SLOT( updateAwayMessage( const TQString&, const TQString& ) ) );
TQObject::connect( mAccount->engine(), TQT_SIGNAL( receivedProfile( const TQString&, const TQString& ) ),
this, TQT_SLOT( updateProfile( const TQString&, const TQString& ) ) );
- TQObject::connect( mAccount->engine(), TQT_SIGNAL( userWarned( const TQString&, Q_UINT16, Q_UINT16 ) ),
- this, TQT_SLOT( gotWarning( const TQString&, Q_UINT16, Q_UINT16 ) ) );
+ TQObject::connect( mAccount->engine(), TQT_SIGNAL( userWarned( const TQString&, TQ_UINT16, TQ_UINT16 ) ),
+ this, TQT_SLOT( gotWarning( const TQString&, TQ_UINT16, TQ_UINT16 ) ) );
TQObject::connect( mAccount->engine(), TQT_SIGNAL( haveIconForContact( const TQString&, TQByteArray ) ),
this, TQT_SLOT( haveIcon( const TQString&, TQByteArray ) ) );
TQObject::connect( mAccount->engine(), TQT_SIGNAL( iconServerConnected() ),
@@ -127,16 +127,16 @@ void AIMContact::setAwayMessage(const TQString &message)
kdDebug(14152) << k_funcinfo <<
"Called for '" << contactId() << "', away msg='" << message << "'" << endl;
TQString filteredMessage = message;
- filteredMessage.replace(
- TQRegExp(TQString::fromLatin1("<[hH][tT][mM][lL].*>(.*)</[hH][tT][mM][lL]>")),
- TQString::fromLatin1("\\1"));
- filteredMessage.replace(
- TQRegExp(TQString::fromLatin1("<[bB][oO][dD][yY].*>(.*)</[bB][oO][dD][yY]>")),
- TQString::fromLatin1("\\1") );
- TQRegExp fontRemover( TQString::fromLatin1("<[fF][oO][nN][tT].*>(.*)</[fF][oO][nN][tT]>") );
+ filteredMessage.tqreplace(
+ TQRegExp(TQString::tqfromLatin1("<[hH][tT][mM][lL].*>(.*)</[hH][tT][mM][lL]>")),
+ TQString::tqfromLatin1("\\1"));
+ filteredMessage.tqreplace(
+ TQRegExp(TQString::tqfromLatin1("<[bB][oO][dD][yY].*>(.*)</[bB][oO][dD][yY]>")),
+ TQString::tqfromLatin1("\\1") );
+ TQRegExp fontRemover( TQString::tqfromLatin1("<[fF][oO][nN][tT].*>(.*)</[fF][oO][nN][tT]>") );
fontRemover.setMinimal(true);
- while ( filteredMessage.find( fontRemover ) != -1 )
- filteredMessage.replace( fontRemover, TQString::fromLatin1("\\1") );
+ while ( filteredMessage.tqfind( fontRemover ) != -1 )
+ filteredMessage.tqreplace( fontRemover, TQString::tqfromLatin1("\\1") );
setProperty(mProtocol->awayMessage, filteredMessage);
}
@@ -148,7 +148,7 @@ int AIMContact::warningLevel() const
void AIMContact::updateSSIItem()
{
if ( m_ssiItem.type() != 0xFFFF && m_ssiItem.waitingAuth() == false &&
- onlineStatus() == Kopete::OnlineStatus::Unknown )
+ onlinetqStatus() == Kopete::OnlineStatus::Unknown )
{
//make sure they're offline
setOnlineStatus( static_cast<AIMProtocol*>( protocol() )->statusOffline );
@@ -302,7 +302,7 @@ void AIMContact::updateProfile( const TQString& contact, const TQString& profile
emit updatedProfile();
}
-void AIMContact::gotWarning( const TQString& contact, Q_UINT16 increase, Q_UINT16 newLevel )
+void AIMContact::gotWarning( const TQString& contact, TQ_UINT16 increase, TQ_UINT16 newLevel )
{
//somebody just got bitchslapped! :O
Q_UNUSED( increase );
@@ -351,11 +351,11 @@ void AIMContact::warnUser()
"(Warning a user on AIM will result in a \"Warning Level\"" \
" increasing for the user you warn. Once this level has reached a" \
" certain point, they will not be able to sign on. Please do not abuse" \
- " this function, it is meant for legitimate practices.)</qt>" ).arg( nick );
+ " this function, it is meant for legitimate practices.)</qt>" ).tqarg( nick );
int result = KMessageBox::questionYesNoCancel( Kopete::UI::Global::mainWidget(), message,
- i18n( "Warn User %1?" ).arg( nick ),
+ i18n( "Warn User %1?" ).tqarg( nick ),
i18n( "Warn Anonymously" ), i18n( "Warn" ) );
if ( result == KMessageBox::Yes )
@@ -383,7 +383,7 @@ void AIMContact::slotSendMsg(Kopete::Message& message, Kopete::ChatSession *)
return;
//okay, now we need to change the message.escapedBody from real HTML to aimhtml.
//looking right now for docs on that "format".
- //looks like everything except for alignment codes comes in the format of spans
+ //looks like everything except for tqalignment codes comes in the format of spans
//font-style:italic -> <i>
//font-weight:600 -> <b> (anything > 400 should be <b>, 400 is not bold)
@@ -392,59 +392,59 @@ void AIMContact::slotSendMsg(Kopete::Message& message, Kopete::ChatSession *)
//font-size:xxpt -> <font ptsize=xx>
s=message.escapedBody();
- s.replace ( TQRegExp( TQString::fromLatin1("<span style=\"([^\"]*)\">([^<]*)</span>")),
- TQString::fromLatin1("<style>\\1;\"\\2</style>"));
+ s.tqreplace ( TQRegExp( TQString::tqfromLatin1("<span style=\"([^\"]*)\">([^<]*)</span>")),
+ TQString::tqfromLatin1("<style>\\1;\"\\2</style>"));
- s.replace ( TQRegExp( TQString::fromLatin1("<style>([^\"]*)font-style:italic;([^\"]*)\"([^<]*)</style>")),
- TQString::fromLatin1("<i><style>\\1\\2\"\\3</style></i>"));
+ s.tqreplace ( TQRegExp( TQString::tqfromLatin1("<style>([^\"]*)font-style:italic;([^\"]*)\"([^<]*)</style>")),
+ TQString::tqfromLatin1("<i><style>\\1\\2\"\\3</style></i>"));
- s.replace ( TQRegExp( TQString::fromLatin1("<style>([^\"]*)font-weight:600;([^\"]*)\"([^<]*)</style>")),
- TQString::fromLatin1("<b><style>\\1\\2\"\\3</style></b>"));
+ s.tqreplace ( TQRegExp( TQString::tqfromLatin1("<style>([^\"]*)font-weight:600;([^\"]*)\"([^<]*)</style>")),
+ TQString::tqfromLatin1("<b><style>\\1\\2\"\\3</style></b>"));
- s.replace ( TQRegExp( TQString::fromLatin1("<style>([^\"]*)text-decoration:underline;([^\"]*)\"([^<]*)</style>")),
- TQString::fromLatin1("<u><style>\\1\\2\"\\3</style></u>"));
+ s.tqreplace ( TQRegExp( TQString::tqfromLatin1("<style>([^\"]*)text-decoration:underline;([^\"]*)\"([^<]*)</style>")),
+ TQString::tqfromLatin1("<u><style>\\1\\2\"\\3</style></u>"));
- s.replace ( TQRegExp( TQString::fromLatin1("<style>([^\"]*)font-family:([^;]*);([^\"]*)\"([^<]*)</style>")),
- TQString::fromLatin1("<font face=\"\\2\"><style>\\1\\3\"\\4</style></font>"));
+ s.tqreplace ( TQRegExp( TQString::tqfromLatin1("<style>([^\"]*)font-family:([^;]*);([^\"]*)\"([^<]*)</style>")),
+ TQString::tqfromLatin1("<font face=\"\\2\"><style>\\1\\3\"\\4</style></font>"));
- s.replace ( TQRegExp( TQString::fromLatin1("<style>([^\"]*)font-size:([^p]*)pt;([^\"]*)\"([^<]*)</style>")),
- TQString::fromLatin1("<font ptsize=\"\\2\"><style>\\1\\3\"\\4</style></font>"));
+ s.tqreplace ( TQRegExp( TQString::tqfromLatin1("<style>([^\"]*)font-size:([^p]*)pt;([^\"]*)\"([^<]*)</style>")),
+ TQString::tqfromLatin1("<font ptsize=\"\\2\"><style>\\1\\3\"\\4</style></font>"));
- s.replace ( TQRegExp( TQString::fromLatin1("<style>([^\"]*)color:([^;]*);([^\"]*)\"([^<]*)</style>")),
- TQString::fromLatin1("<font color=\"\\2\"><style>\\1\\3\"\\4</style></font>"));
+ s.tqreplace ( TQRegExp( TQString::tqfromLatin1("<style>([^\"]*)color:([^;]*);([^\"]*)\"([^<]*)</style>")),
+ TQString::tqfromLatin1("<font color=\"\\2\"><style>\\1\\3\"\\4</style></font>"));
- s.replace ( TQRegExp( TQString::fromLatin1("<style>([^\"]*)\"([^<]*)</style>")),
- TQString::fromLatin1("\\2"));
+ s.tqreplace ( TQRegExp( TQString::tqfromLatin1("<style>([^\"]*)\"([^<]*)</style>")),
+ TQString::tqfromLatin1("\\2"));
//okay now change the <font ptsize="xx"> to <font size="xx">
//0-9 are size 1
- s.replace ( TQRegExp ( TQString::fromLatin1("<font ptsize=\"\\d\">")),
- TQString::fromLatin1("<font size=\"1\">"));
+ s.tqreplace ( TQRegExp ( TQString::tqfromLatin1("<font ptsize=\"\\d\">")),
+ TQString::tqfromLatin1("<font size=\"1\">"));
//10-11 are size 2
- s.replace ( TQRegExp ( TQString::fromLatin1("<font ptsize=\"1[01]\">")),
- TQString::fromLatin1("<font size=\"2\">"));
+ s.tqreplace ( TQRegExp ( TQString::tqfromLatin1("<font ptsize=\"1[01]\">")),
+ TQString::tqfromLatin1("<font size=\"2\">"));
//12-13 are size 3
- s.replace ( TQRegExp ( TQString::fromLatin1("<font ptsize=\"1[23]\">")),
- TQString::fromLatin1("<font size=\"3\">"));
+ s.tqreplace ( TQRegExp ( TQString::tqfromLatin1("<font ptsize=\"1[23]\">")),
+ TQString::tqfromLatin1("<font size=\"3\">"));
//14-16 are size 4
- s.replace ( TQRegExp ( TQString::fromLatin1("<font ptsize=\"1[456]\">")),
- TQString::fromLatin1("<font size=\"4\">"));
+ s.tqreplace ( TQRegExp ( TQString::tqfromLatin1("<font ptsize=\"1[456]\">")),
+ TQString::tqfromLatin1("<font size=\"4\">"));
//17-22 are size 5
- s.replace ( TQRegExp ( TQString::fromLatin1("<font ptsize=\"(?:1[789]|2[012])\">")),
- TQString::fromLatin1("<font size=\"5\">"));
+ s.tqreplace ( TQRegExp ( TQString::tqfromLatin1("<font ptsize=\"(?:1[789]|2[012])\">")),
+ TQString::tqfromLatin1("<font size=\"5\">"));
//23-29 are size 6
- s.replace ( TQRegExp ( TQString::fromLatin1("<font ptsize=\"2[3456789]\">")),TQString::fromLatin1("<font size=\"6\">"));
+ s.tqreplace ( TQRegExp ( TQString::tqfromLatin1("<font ptsize=\"2[3456789]\">")),TQString::tqfromLatin1("<font size=\"6\">"));
//30- (and any I missed) are size 7
- s.replace ( TQRegExp ( TQString::fromLatin1("<font ptsize=\"[^\"]*\">")),TQString::fromLatin1("<font size=\"7\">"));
+ s.tqreplace ( TQRegExp ( TQString::tqfromLatin1("<font ptsize=\"[^\"]*\">")),TQString::tqfromLatin1("<font size=\"7\">"));
// strip left over line break
- s.remove(TQRegExp(TQString::fromLatin1("<br\b[^>]*>$")));
+ s.remove(TQRegExp(TQString::tqfromLatin1("<br\b[^>]*>$")));
- s.replace ( TQRegExp ( TQString::fromLatin1("<br[ /]*>")), TQString::fromLatin1("<br>") );
+ s.tqreplace ( TQRegExp ( TQString::tqfromLatin1("<br[ /]*>")), TQString::tqfromLatin1("<br>") );
// strip left over line break
- s.remove( TQRegExp( TQString::fromLatin1( "<br>$" ) ) );
+ s.remove( TQRegExp( TQString::tqfromLatin1( "<br>$" ) ) );
kdDebug(14190) << k_funcinfo << "sending "
<< s << endl;
@@ -475,9 +475,9 @@ void AIMContact::updateFeatures()
void AIMContact::sendAutoResponse(Kopete::Message& msg)
{
// The target time is 2 minutes later than the last message
- int delta = m_lastAutoresponseTime.secsTo( TQDateTime::currentDateTime() );
+ int delta = m_lastAutoresponseTime.secsTo( TQDateTime::tqcurrentDateTime() );
kdDebug(14152) << k_funcinfo << "Last autoresponse time: " << m_lastAutoresponseTime << endl;
- kdDebug(14152) << k_funcinfo << "Current time: " << TQDateTime::currentDateTime() << endl;
+ kdDebug(14152) << k_funcinfo << "Current time: " << TQDateTime::tqcurrentDateTime() << endl;
kdDebug(14152) << k_funcinfo << "Difference: " << delta << endl;
// Check to see if we're past that time
if(delta > 120)
@@ -509,7 +509,7 @@ void AIMContact::sendAutoResponse(Kopete::Message& msg)
manager(Kopete::Contact::CanCreate)->appendMessage(msg);
manager(Kopete::Contact::CanCreate)->messageSucceeded();
// Update the last autoresponse time
- m_lastAutoresponseTime = TQDateTime::currentDateTime();
+ m_lastAutoresponseTime = TQDateTime::tqcurrentDateTime();
}
else
{
diff --git a/kopete/protocols/oscar/aim/aimcontact.h b/kopete/protocols/oscar/aim/aimcontact.h
index a246c029..37be084d 100644
--- a/kopete/protocols/oscar/aim/aimcontact.h
+++ b/kopete/protocols/oscar/aim/aimcontact.h
@@ -35,10 +35,11 @@ class AIMUserInfoDialog;
class AIMContact : public OscarContact
{
Q_OBJECT
+ TQ_OBJECT
public:
AIMContact( Kopete::Account*, const TQString&, Kopete::MetaContact*,
- const TQString& icon = TQString::null, const Oscar::SSI& ssiItem = Oscar::SSI() );
+ const TQString& icon = TQString(), const Oscar::SSI& ssiItem = Oscar::SSI() );
virtual ~AIMContact();
bool isReachable();
@@ -68,7 +69,7 @@ public slots:
void userOffline( const TQString& userId );
void updateAwayMessage( const TQString& userId, const TQString& message );
void updateProfile( const TQString& contact, const TQString& profile );
- void gotWarning( const TQString& contact, Q_UINT16, Q_UINT16 );
+ void gotWarning( const TQString& contact, TQ_UINT16, TQ_UINT16 );
signals:
void updatedProfile();
diff --git a/kopete/protocols/oscar/aim/aimjoinchat.cpp b/kopete/protocols/oscar/aim/aimjoinchat.cpp
index 2ccec9b2..98a68361 100644
--- a/kopete/protocols/oscar/aim/aimjoinchat.cpp
+++ b/kopete/protocols/oscar/aim/aimjoinchat.cpp
@@ -27,8 +27,8 @@
#include "aimaccount.h"
AIMJoinChatUI::AIMJoinChatUI( AIMAccount* account, bool modal,
- TQWidget* parent, const char* name )
- : KDialogBase( parent, name, modal, i18n( "Join AIM Chat Room" ),
+ TQWidget* tqparent, const char* name )
+ : KDialogBase( tqparent, name, modal, i18n( "Join AIM Chat Room" ),
Cancel | User1, User1, true, i18n( "Join" ) )
{
diff --git a/kopete/protocols/oscar/aim/aimjoinchat.h b/kopete/protocols/oscar/aim/aimjoinchat.h
index a6e493d4..13dab708 100644
--- a/kopete/protocols/oscar/aim/aimjoinchat.h
+++ b/kopete/protocols/oscar/aim/aimjoinchat.h
@@ -30,8 +30,9 @@ class AIMJoinChatBase;
class AIMJoinChatUI : public KDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- AIMJoinChatUI( AIMAccount*, bool modal, TQWidget* parent = 0,
+ AIMJoinChatUI( AIMAccount*, bool modal, TQWidget* tqparent = 0,
const char* name = 0 );
~AIMJoinChatUI();
diff --git a/kopete/protocols/oscar/aim/aimprotocol.cpp b/kopete/protocols/oscar/aim/aimprotocol.cpp
index 779c63c8..0808fde9 100644
--- a/kopete/protocols/oscar/aim/aimprotocol.cpp
+++ b/kopete/protocols/oscar/aim/aimprotocol.cpp
@@ -46,7 +46,7 @@ AIMProtocol* AIMProtocol::protocolStatic_ = 0L;
AIMProtocolHandler::AIMProtocolHandler() : Kopete::MimeTypeHandler(false)
{
- registerAsProtocolHandler(TQString::fromLatin1("aim"));
+ registerAsProtocolHandler(TQString::tqfromLatin1("aim"));
}
void AIMProtocolHandler::handleURL(const KURL &url) const
@@ -81,54 +81,54 @@ void AIMProtocolHandler::handleURL(const KURL &url) const
TQString command = url.path();
TQString realCommand, firstParam, secondParam;
bool needContactAddition = false;
- if ( command.find( "goim", 0, false ) != -1 )
+ if ( command.tqfind( "goim", 0, false ) != -1 )
{
realCommand = "goim";
kdDebug(14152) << k_funcinfo << "Handling send IM request" << endl;
command.remove(0,4);
- if ( command.find( "?screenname=", 0, false ) == -1 )
+ if ( command.tqfind( "?screenname=", 0, false ) == -1 )
{
kdWarning(14152) << k_funcinfo << "Unhandled AIM URI:" << url.url() << endl;
return;
}
command.remove( 0, 12 );
- int andSign = command.find( "&" );
+ int andSign = command.tqfind( "&" );
if ( andSign > 0 )
command = command.left( andSign );
firstParam = command;
- firstParam.replace( "+", " " );
+ firstParam.tqreplace( "+", " " );
needContactAddition = true;
}
else
- if ( command.find( "addbuddy", 0, false ) != -1 )
+ if ( command.tqfind( "addbuddy", 0, false ) != -1 )
{
realCommand = "addbuddy";
kdDebug(14152) << k_funcinfo << "Handling AIM add buddy request" << endl;
command.remove( 0, 8 );
- if ( command.find( "?screenname=", 0, false ) == -1 )
+ if ( command.tqfind( "?screenname=", 0, false ) == -1 )
{
kdWarning(14152) << k_funcinfo << "Unhandled AIM URI:" << url.url() << endl;
return;
}
command.remove(0, 12);
- int andSign = command.find("&");
+ int andSign = command.tqfind("&");
if ( andSign > 0 )
command = command.left(andSign);
- command.replace("+", " ");
+ command.tqreplace("+", " ");
firstParam = command;
needContactAddition = true;
}
else
- if ( command.find( "gochat", 0, false ) != -1 )
+ if ( command.tqfind( "gochat", 0, false ) != -1 )
{
realCommand = "gochat";
kdDebug(14152) << k_funcinfo << "Handling AIM chat room request" << endl;
command.remove( 0, 6 );
- if ( command.find( "?RoomName=", 0, false ) == -1 )
+ if ( command.tqfind( "?RoomName=", 0, false ) == -1 )
{
kdWarning(14152) << "Unhandled AIM URI: " << url.url() << endl;
return;
@@ -136,7 +136,7 @@ void AIMProtocolHandler::handleURL(const KURL &url) const
command.remove( 0, 10 );
- int andSign = command.find("&");
+ int andSign = command.tqfind("&");
if (andSign > 0) // strip off anything else for now
{
firstParam = command.left(andSign);
@@ -146,7 +146,7 @@ void AIMProtocolHandler::handleURL(const KURL &url) const
command.remove( 0, 10 ); //remove "&Exchange="
secondParam = command;
kdDebug(14152) << k_funcinfo << firstParam << " " << secondParam << endl;
- firstParam.replace("+", " ");
+ firstParam.tqreplace("+", " ");
}
Kopete::Account *account = 0;
@@ -189,8 +189,8 @@ void AIMProtocolHandler::handleURL(const KURL &url) const
}
if (KMessageBox::questionYesNo(Kopete::UI::Global::mainWidget(),
- i18n("Do you want to add '%1' to your contact list?").arg(command),
- TQString::null, i18n("Add"), i18n("Do Not Add"))
+ i18n("Do you want to add '%1' to your contact list?").tqarg(command),
+ TQString(), i18n("Add"), i18n("Do Not Add"))
!= KMessageBox::Yes)
{
kdDebug(14152) << k_funcinfo << "Cancelled" << endl;
@@ -212,8 +212,8 @@ void AIMProtocolHandler::handleURL(const KURL &url) const
else
KMessageBox::sorry( Kopete::UI::Global::mainWidget(),
i18n( "Unable to connect to the chat room %1 because the account"
- " for %2 is not connected." ).arg( firstParam ).arg( aimAccount->accountId() ),
- TQString::null );
+ " for %2 is not connected." ).tqarg( firstParam ).tqarg( aimAccount->accountId() ),
+ TQString() );
}
@@ -227,10 +227,10 @@ void AIMProtocolHandler::handleURL(const KURL &url) const
-AIMProtocol::AIMProtocol(TQObject *parent, const char *name, const TQStringList &)
- : Kopete::Protocol( AIMProtocolFactory::instance(), parent, name ),
- statusOnline( Kopete::OnlineStatus::Online, 2, this, 0, TQString::null, i18n("Online"), i18n("Online"), Kopete::OnlineStatusManager::Online ),
- statusOffline( Kopete::OnlineStatus::Offline, 2, this, 10, TQString::null, i18n("Offline"), i18n("Offline"), Kopete::OnlineStatusManager::Offline ),
+AIMProtocol::AIMProtocol(TQObject *tqparent, const char *name, const TQStringList &)
+ : Kopete::Protocol( AIMProtocolFactory::instance(), tqparent, name ),
+ statusOnline( Kopete::OnlineStatus::Online, 2, this, 0, TQString(), i18n("Online"), i18n("Online"), Kopete::OnlineStatusManager::Online ),
+ statusOffline( Kopete::OnlineStatus::Offline, 2, this, 10, TQString(), i18n("Offline"), i18n("Offline"), Kopete::OnlineStatusManager::Offline ),
statusAway( Kopete::OnlineStatus::Away, 2, this, 20, "contact_away_overlay", i18n("Away"), i18n("Away"), Kopete::OnlineStatusManager::Away,
Kopete::OnlineStatusManager::HasAwayMessage ),
statusWirelessOnline( Kopete::OnlineStatus::Online, 1, this, 30, "contact_phone_overlay", i18n("Mobile"), i18n("Mobile"),
@@ -241,7 +241,7 @@ AIMProtocol::AIMProtocol(TQObject *parent, const char *name, const TQStringList
awayMessage(Kopete::Global::Properties::self()->awayMessage()),
clientFeatures("clientFeatures", i18n("Client Features"), 0, false),
clientProfile( "clientProfile", i18n( "User Profile"), 0, false, true),
- iconHash("iconHash", i18n("Buddy Icon MD5 Hash"), TQString::null, true, false, true)
+ iconHash("iconHash", i18n("Buddy Icon MD5 Hash"), TQString(), true, false, true)
{
if (protocolStatic_)
kdDebug(14152) << k_funcinfo << "AIM plugin already initialized" << endl;
@@ -283,11 +283,11 @@ Kopete::Contact *AIMProtocol::deserializeContact(Kopete::MetaContact *metaContac
uint ssiGid = 0, ssiBid = 0, ssiType = 0xFFFF;
TQString ssiName;
bool ssiWaitingAuth = false;
- if ( serializedData.contains( "ssi_type" ) )
+ if ( serializedData.tqcontains( "ssi_type" ) )
{
ssiName = serializedData["ssi_name"];
- TQString authStatus = serializedData["ssi_waitingAuth"];
- if ( authStatus == "true" )
+ TQString authtqStatus = serializedData["ssi_waitingAuth"];
+ if ( authtqStatus == "true" )
ssiWaitingAuth = true;
ssiGid = serializedData["ssi_gid"].toUInt();
ssiBid = serializedData["ssi_bid"].toUInt();
@@ -297,18 +297,18 @@ Kopete::Contact *AIMProtocol::deserializeContact(Kopete::MetaContact *metaContac
Oscar::SSI item( ssiName, ssiGid, ssiBid, ssiType, TQValueList<TLV>(), 0 );
item.setWaitingAuth( ssiWaitingAuth );
- AIMContact *c = new AIMContact( account, contactId, metaContact, TQString::null, item );
+ AIMContact *c = new AIMContact( account, contactId, metaContact, TQString(), item );
return c;
}
-AddContactPage *AIMProtocol::createAddContactWidget(TQWidget *parent, Kopete::Account *account)
+AddContactPage *AIMProtocol::createAddContactWidget(TQWidget *tqparent, Kopete::Account *account)
{
- return ( new AIMAddContactPage( account->isConnected(), parent ) );
+ return ( new AIMAddContactPage( account->isConnected(), tqparent ) );
}
-KopeteEditAccountWidget *AIMProtocol::createEditAccountWidget(Kopete::Account *account, TQWidget *parent)
+KopeteEditAccountWidget *AIMProtocol::createEditAccountWidget(Kopete::Account *account, TQWidget *tqparent)
{
- return ( new AIMEditAccountWidget( this, account, parent ) );
+ return ( new AIMEditAccountWidget( this, account, tqparent ) );
}
Kopete::Account *AIMProtocol::createNewAccount(const TQString &accountId)
diff --git a/kopete/protocols/oscar/aim/aimprotocol.h b/kopete/protocols/oscar/aim/aimprotocol.h
index 16c8860a..e133ed97 100644
--- a/kopete/protocols/oscar/aim/aimprotocol.h
+++ b/kopete/protocols/oscar/aim/aimprotocol.h
@@ -40,9 +40,10 @@ public:
class AIMProtocol : public Kopete::Protocol
{
Q_OBJECT
+ TQ_OBJECT
public:
- AIMProtocol( TQObject *parent, const char *name, const TQStringList &args );
+ AIMProtocol( TQObject *tqparent, const char *name, const TQStringList &args );
virtual ~AIMProtocol();
/**
* Return the active instance of the protocol
@@ -56,8 +57,8 @@ public:
const TQMap<TQString, TQString> &serializedData,
const TQMap<TQString, TQString> &addressBookData );
- AddContactPage*createAddContactWidget( TQWidget *parent, Kopete::Account *account );
- KopeteEditAccountWidget* createEditAccountWidget( Kopete::Account *account, TQWidget *parent );
+ AddContactPage*createAddContactWidget( TQWidget *tqparent, Kopete::Account *account );
+ KopeteEditAccountWidget* createEditAccountWidget( Kopete::Account *account, TQWidget *tqparent );
Kopete::Account* createNewAccount( const TQString &accountId );
/**
diff --git a/kopete/protocols/oscar/aim/aimuserinfo.cpp b/kopete/protocols/oscar/aim/aimuserinfo.cpp
index 927a12ec..cc016684 100644
--- a/kopete/protocols/oscar/aim/aimuserinfo.cpp
+++ b/kopete/protocols/oscar/aim/aimuserinfo.cpp
@@ -37,9 +37,9 @@
#include <krun.h>
AIMUserInfoDialog::AIMUserInfoDialog( Kopete::Contact *c, AIMAccount *acc, bool modal,
- TQWidget *parent, const char* name )
- : KDialogBase( parent, name, modal, i18n( "User Information on %1" )
- .arg( c->property( Kopete::Global::Properties::self()->nickName() ).value().toString() ),
+ TQWidget *tqparent, const char* name )
+ : KDialogBase( tqparent, name, modal, i18n( "User Information on %1" )
+ .tqarg( c->property( Kopete::Global::Properties::self()->nickName() ).value().toString() ),
Cancel | Ok , Ok, true )
{
kdDebug(14200) << k_funcinfo << "for contact '" << c->contactId() << "'" << endl;
@@ -77,7 +77,7 @@ AIMUserInfoDialog::AIMUserInfoDialog( Kopete::Contact *c, AIMAccount *acc, bool
userInfoView=0L;
mMainWidget->userInfoFrame->setFrameStyle(TQFrame::NoFrame | TQFrame::Plain);
TQVBoxLayout *l = new TQVBoxLayout(mMainWidget->userInfoFrame);
- userInfoEdit = new KTextEdit(TQString::null, TQString::null,
+ userInfoEdit = new KTextEdit(TQString(), TQString(),
mMainWidget->userInfoFrame, "userInfoEdit");
userInfoEdit->setTextFormat(PlainText);
@@ -85,7 +85,7 @@ AIMUserInfoDialog::AIMUserInfoDialog( Kopete::Contact *c, AIMAccount *acc, bool
if ( aimmc )
userInfoEdit->setText( aimmc->userProfile() );
else
- userInfoEdit->setText( TQString::null );
+ userInfoEdit->setText( TQString() );
setButtonText(Ok, i18n("&Save Profile"));
showButton(User1, false);
@@ -133,7 +133,7 @@ void AIMUserInfoDialog::slotUpdateClicked()
{
//m_contact->rename(newNick);
//emit updateNickname(newNick);
- setCaption(i18n("User Information on %1").arg(newNick));
+ setCaption(i18n("User Information on %1").tqarg(newNick));
}
}
@@ -150,7 +150,7 @@ void AIMUserInfoDialog::slotSaveClicked()
{
//m_contact->rename(newNick);
//emit updateNickname(newNick);
- setCaption(i18n("User Information on %1").arg(newNick));
+ setCaption(i18n("User Information on %1").tqarg(newNick));
}
mAccount->setUserProfile(userInfoEdit->text());
@@ -221,4 +221,4 @@ void AIMUserInfoDialog::slotMailClicked(const TQString&, const TQString &address
#include "aimuserinfo.moc"
-//kate: indent-mode csands; tab-width 4; space-indent off; replace-tabs off;
+//kate: indent-mode csands; tab-width 4; space-indent off; tqreplace-tabs off;
diff --git a/kopete/protocols/oscar/aim/aimuserinfo.h b/kopete/protocols/oscar/aim/aimuserinfo.h
index 886274ac..43f27b94 100644
--- a/kopete/protocols/oscar/aim/aimuserinfo.h
+++ b/kopete/protocols/oscar/aim/aimuserinfo.h
@@ -30,9 +30,10 @@ class AIMAccount;
class AIMUserInfoDialog : public KDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
AIMUserInfoDialog(Kopete::Contact *c, AIMAccount *acc, bool modal,
- TQWidget *parent, const char* name);
+ TQWidget *tqparent, const char* name);
~AIMUserInfoDialog();
private:
diff --git a/kopete/protocols/oscar/aim/ui/aimaddcontactpage.cpp b/kopete/protocols/oscar/aim/ui/aimaddcontactpage.cpp
index f00741c9..7a2d1b1d 100644
--- a/kopete/protocols/oscar/aim/ui/aimaddcontactpage.cpp
+++ b/kopete/protocols/oscar/aim/ui/aimaddcontactpage.cpp
@@ -25,9 +25,9 @@
#include <klocale.h>
#include <kmessagebox.h>
-AIMAddContactPage::AIMAddContactPage(bool connected, TQWidget *parent,
+AIMAddContactPage::AIMAddContactPage(bool connected, TQWidget *tqparent,
const char *name )
- : AddContactPage(parent,name)
+ : AddContactPage(tqparent,name)
{
m_gui = 0;
(new TQVBoxLayout(this))->setAutoAdd(true);
diff --git a/kopete/protocols/oscar/aim/ui/aimaddcontactpage.h b/kopete/protocols/oscar/aim/ui/aimaddcontactpage.h
index 7f6c732d..e186ac61 100644
--- a/kopete/protocols/oscar/aim/ui/aimaddcontactpage.h
+++ b/kopete/protocols/oscar/aim/ui/aimaddcontactpage.h
@@ -17,9 +17,10 @@ class MetaContact;
class AIMAddContactPage : public AddContactPage
{
Q_OBJECT
+ TQ_OBJECT
public:
- AIMAddContactPage(bool connected, TQWidget *parent=0,
+ AIMAddContactPage(bool connected, TQWidget *tqparent=0,
const char *name=0);
~AIMAddContactPage();
diff --git a/kopete/protocols/oscar/aim/ui/aimaddcontactui.ui b/kopete/protocols/oscar/aim/ui/aimaddcontactui.ui
index b3267eb0..97484a6d 100644
--- a/kopete/protocols/oscar/aim/ui/aimaddcontactui.ui
+++ b/kopete/protocols/oscar/aim/ui/aimaddcontactui.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>aimAddContactUI</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>aimAddContactUI</cstring>
</property>
@@ -19,16 +19,16 @@
<property name="margin">
<number>0</number>
</property>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>GroupBox1</cstring>
</property>
<property name="title">
<string>Contact Information</string>
</property>
- <property name="layoutMargin" stdset="0">
+ <property name="tqlayoutMargin" stdset="0">
</property>
- <property name="layoutSpacing" stdset="0">
+ <property name="tqlayoutSpacing" stdset="0">
</property>
<grid>
<property name="name">
@@ -40,12 +40,12 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QLineEdit" row="0" column="1">
+ <widget class="TQLineEdit" row="0" column="1">
<property name="name">
<cstring>addSN</cstring>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>TextLabel1</cstring>
</property>
@@ -60,5 +60,5 @@
<tabstops>
<tabstop>addSN</tabstop>
</tabstops>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/kopete/protocols/oscar/aim/ui/aimeditaccountui.ui b/kopete/protocols/oscar/aim/ui/aimeditaccountui.ui
index d8a7b9f3..a1b8dbfd 100644
--- a/kopete/protocols/oscar/aim/ui/aimeditaccountui.ui
+++ b/kopete/protocols/oscar/aim/ui/aimeditaccountui.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>aimEditAccountUI</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>aimEditAccountUI</cstring>
</property>
@@ -33,22 +33,22 @@
<property name="spacing">
<number>0</number>
</property>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>labelStatusMessage</cstring>
</property>
<property name="text">
<string></string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignCenter</set>
</property>
</widget>
- <widget class="QTabWidget" row="0" column="0">
+ <widget class="TQTabWidget" row="0" column="0">
<property name="name">
<cstring>tabWidget6</cstring>
</property>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>tab</cstring>
</property>
@@ -59,7 +59,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>groupBox72</cstring>
</property>
@@ -70,15 +70,15 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget" row="0" column="0">
+ <widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
- <cstring>layout4</cstring>
+ <cstring>tqlayout4</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>lblAccountId</cstring>
</property>
@@ -95,7 +95,7 @@
<string>The screen name of your AIM account. This should be in the form of an alphanumeric string (spaces allowed, not case sensitive).</string>
</property>
</widget>
- <widget class="QLineEdit">
+ <widget class="TQLineEdit">
<property name="name">
<cstring>edtAccountId</cstring>
</property>
@@ -113,7 +113,7 @@
<cstring>mPasswordWidget</cstring>
</property>
</widget>
- <widget class="QCheckBox" row="3" column="0">
+ <widget class="TQCheckBox" row="3" column="0">
<property name="name">
<cstring>mGlobalIdentity</cstring>
</property>
@@ -121,7 +121,7 @@
<string>Exclu&amp;de from Global Identity</string>
</property>
</widget>
- <widget class="QCheckBox" row="2" column="0">
+ <widget class="TQCheckBox" row="2" column="0">
<property name="name">
<cstring>mAutoLogon</cstring>
</property>
@@ -134,7 +134,7 @@
</widget>
</grid>
</widget>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>groupBox5</cstring>
</property>
@@ -153,7 +153,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel6</cstring>
</property>
@@ -165,7 +165,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>0</width>
<height>0</height>
@@ -174,11 +174,11 @@
<property name="text">
<string>To connect to the AOL Instant Messaging network, you will need to use a screen name from AIM, AOL, or .Mac.&lt;br&gt;&lt;br&gt;If you do not currently have an AIM screen name, please click the button to create one.</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>buttonRegister</cstring>
</property>
@@ -198,7 +198,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>90</height>
@@ -207,7 +207,7 @@
</spacer>
</vbox>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>tab</cstring>
</property>
@@ -218,7 +218,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QGroupBox" row="0" column="0" rowspan="1" colspan="2">
+ <widget class="TQGroupBox" row="0" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>groupBox73</cstring>
</property>
@@ -229,7 +229,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>optionOverrideServer</cstring>
</property>
@@ -240,15 +240,15 @@
<bool>false</bool>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout58</cstring>
+ <cstring>tqlayout58</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>lblServer</cstring>
</property>
@@ -262,13 +262,13 @@
<cstring>edtServerAddress</cstring>
</property>
<property name="toolTip" stdset="0">
- <string>The IP address or hostmask of the AIM server you wish to connect to.</string>
+ <string>The IP address or hosttqmask of the AIM server you wish to connect to.</string>
</property>
<property name="whatsThis" stdset="0">
- <string>The IP address or hostmask of the AIM server you wish to connect to. Normally you will want the default (login.oscar.aol.com).</string>
+ <string>The IP address or hosttqmask of the AIM server you wish to connect to. Normally you will want the default (login.oscar.aol.com).</string>
</property>
</widget>
- <widget class="QLineEdit">
+ <widget class="TQLineEdit">
<property name="name">
<cstring>edtServerAddress</cstring>
</property>
@@ -279,13 +279,13 @@
<string>login.oscar.aol.com</string>
</property>
<property name="toolTip" stdset="0">
- <string>The IP address or hostmask of the AIM server you wish to connect to.</string>
+ <string>The IP address or hosttqmask of the AIM server you wish to connect to.</string>
</property>
<property name="whatsThis" stdset="0">
- <string>The IP address or hostmask of the AIM server you wish to connect to. Normally you will want the default (login.oscar.aol.com).</string>
+ <string>The IP address or hosttqmask of the AIM server you wish to connect to. Normally you will want the default (login.oscar.aol.com).</string>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>lblPort</cstring>
</property>
@@ -305,7 +305,7 @@
<string>The port on the AIM server that you would like to connect to. Normally this is 5190.</string>
</property>
</widget>
- <widget class="QSpinBox">
+ <widget class="TQSpinBox">
<property name="name">
<cstring>sbxServerPort</cstring>
</property>
@@ -342,14 +342,14 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>200</height>
</size>
</property>
</spacer>
- <widget class="QComboBox" row="1" column="1">
+ <widget class="TQComboBox" row="1" column="1">
<property name="name">
<cstring>encodingCombo</cstring>
</property>
@@ -357,7 +357,7 @@
<bool>false</bool>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -373,7 +373,7 @@
</widget>
</grid>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>tab</cstring>
</property>
@@ -384,7 +384,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QButtonGroup" row="0" column="0">
+ <widget class="TQButtonGroup" row="0" column="0">
<property name="name">
<cstring>buttonGroup1</cstring>
</property>
@@ -395,7 +395,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QRadioButton" row="2" column="0">
+ <widget class="TQRadioButton" row="2" column="0">
<property name="name">
<cstring>rbAllowPerimtList</cstring>
</property>
@@ -403,7 +403,7 @@
<string>Allow only from visible list</string>
</property>
</widget>
- <widget class="QRadioButton" row="0" column="1">
+ <widget class="TQRadioButton" row="0" column="1">
<property name="name">
<cstring>rbBlockAll</cstring>
</property>
@@ -411,7 +411,7 @@
<string>Block all users</string>
</property>
</widget>
- <widget class="QRadioButton" row="1" column="1">
+ <widget class="TQRadioButton" row="1" column="1">
<property name="name">
<cstring>rbBlockAIM</cstring>
</property>
@@ -419,7 +419,7 @@
<string>Block AIM users</string>
</property>
</widget>
- <widget class="QRadioButton" row="2" column="1">
+ <widget class="TQRadioButton" row="2" column="1">
<property name="name">
<cstring>rbBlockDenyList</cstring>
</property>
@@ -427,7 +427,7 @@
<string>Block only from invisible list</string>
</property>
</widget>
- <widget class="QRadioButton" row="0" column="0">
+ <widget class="TQRadioButton" row="0" column="0">
<property name="name">
<cstring>rbAllowAll</cstring>
</property>
@@ -435,7 +435,7 @@
<string>Allow all users</string>
</property>
</widget>
- <widget class="QRadioButton" row="1" column="0">
+ <widget class="TQRadioButton" row="1" column="0">
<property name="name">
<cstring>rbAllowMyContacts</cstring>
</property>
@@ -455,7 +455,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>31</width>
<height>225</height>
@@ -533,7 +533,7 @@
<tabstop>rbBlockAIM</tabstop>
<tabstop>rbBlockDenyList</tabstop>
</tabstops>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kopetepasswordwidget.h</includehint>
</includehints>
diff --git a/kopete/protocols/oscar/aim/ui/aimeditaccountwidget.cpp b/kopete/protocols/oscar/aim/ui/aimeditaccountwidget.cpp
index 2e0100ab..85e78ace 100644
--- a/kopete/protocols/oscar/aim/ui/aimeditaccountwidget.cpp
+++ b/kopete/protocols/oscar/aim/ui/aimeditaccountwidget.cpp
@@ -20,8 +20,8 @@
#include "aimaccount.h"
AIMEditAccountWidget::AIMEditAccountWidget( AIMProtocol *protocol,
- Kopete::Account *account, TQWidget *parent, const char *name )
- : TQWidget( parent, name ), KopeteEditAccountWidget( account )
+ Kopete::Account *account, TQWidget *tqparent, const char *name )
+ : TQWidget( tqparent, name ), KopeteEditAccountWidget( account )
{
//kdDebug(14152) << k_funcinfo << "Called." << endl;
diff --git a/kopete/protocols/oscar/aim/ui/aimeditaccountwidget.h b/kopete/protocols/oscar/aim/ui/aimeditaccountwidget.h
index 9f180315..b3c4ad3a 100644
--- a/kopete/protocols/oscar/aim/ui/aimeditaccountwidget.h
+++ b/kopete/protocols/oscar/aim/ui/aimeditaccountwidget.h
@@ -37,10 +37,11 @@ class aimEditAccountUI;
class AIMEditAccountWidget : public TQWidget, public KopeteEditAccountWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
AIMEditAccountWidget(AIMProtocol *protocol, Kopete::Account *account,
- TQWidget *parent=0, const char *name=0);
+ TQWidget *tqparent=0, const char *name=0);
virtual ~AIMEditAccountWidget();
virtual bool validateData();
diff --git a/kopete/protocols/oscar/aim/ui/aiminfobase.ui b/kopete/protocols/oscar/aim/ui/aiminfobase.ui
index db22a574..5743d7e7 100644
--- a/kopete/protocols/oscar/aim/ui/aiminfobase.ui
+++ b/kopete/protocols/oscar/aim/ui/aiminfobase.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>AIMUserInfoWidget</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>AIMUserInfoWidget</cstring>
</property>
@@ -12,13 +12,13 @@
<height>408</height>
</rect>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>360</width>
<height>400</height>
</size>
</property>
- <property name="layoutMargin" stdset="0">
+ <property name="tqlayoutMargin" stdset="0">
</property>
<vbox>
<property name="name">
@@ -27,15 +27,15 @@
<property name="margin">
<number>0</number>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout9</cstring>
+ <cstring>tqlayout9</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>lblNickName</cstring>
</property>
@@ -51,7 +51,7 @@
<string>Nickname:</string>
</property>
</widget>
- <widget class="QLineEdit">
+ <widget class="TQLineEdit">
<property name="name">
<cstring>txtNickName</cstring>
</property>
@@ -64,7 +64,7 @@
</sizepolicy>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>lblScreenName</cstring>
</property>
@@ -80,7 +80,7 @@
<string>Screen name:</string>
</property>
</widget>
- <widget class="QLineEdit">
+ <widget class="TQLineEdit">
<property name="name">
<cstring>txtScreenName</cstring>
</property>
@@ -90,15 +90,15 @@
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout10</cstring>
+ <cstring>tqlayout10</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>lblWarnLevel</cstring>
</property>
@@ -106,7 +106,7 @@
<string>Warning level:</string>
</property>
</widget>
- <widget class="QLineEdit">
+ <widget class="TQLineEdit">
<property name="name">
<cstring>txtWarnLevel</cstring>
</property>
@@ -114,7 +114,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>lblIdleTime</cstring>
</property>
@@ -122,7 +122,7 @@
<string>Idle minutes:</string>
</property>
</widget>
- <widget class="QLineEdit">
+ <widget class="TQLineEdit">
<property name="name">
<cstring>txtIdleTime</cstring>
</property>
@@ -132,15 +132,15 @@
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout11</cstring>
+ <cstring>tqlayout11</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>lblOnlineSince</cstring>
</property>
@@ -148,7 +148,7 @@
<string>Online since:</string>
</property>
</widget>
- <widget class="QLineEdit">
+ <widget class="TQLineEdit">
<property name="name">
<cstring>txtOnlineSince</cstring>
</property>
@@ -158,7 +158,7 @@
</widget>
</hbox>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>lblAwayMessage</cstring>
</property>
@@ -173,7 +173,7 @@
<property name="text">
<string>Away message:</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignTop</set>
</property>
</widget>
@@ -193,7 +193,7 @@
<enum>AutoText</enum>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -201,7 +201,7 @@
<string>Profile:</string>
</property>
</widget>
- <widget class="QFrame">
+ <widget class="TQFrame">
<property name="name">
<cstring>userInfoFrame</cstring>
</property>
@@ -213,7 +213,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>64</width>
<height>16</height>
@@ -239,7 +239,7 @@
<tabstop>txtOnlineSince</tabstop>
<tabstop>txtAwayMessage</tabstop>
</tabstops>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>ktextbrowser.h</includehint>
</includehints>
diff --git a/kopete/protocols/oscar/aim/ui/aimjoinchatbase.ui b/kopete/protocols/oscar/aim/ui/aimjoinchatbase.ui
index d1d93edf..4b3b12aa 100644
--- a/kopete/protocols/oscar/aim/ui/aimjoinchatbase.ui
+++ b/kopete/protocols/oscar/aim/ui/aimjoinchatbase.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>AIMJoinChatBase</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>AIMJoinChatBase</cstring>
</property>
@@ -19,7 +19,7 @@
<property name="margin">
<number>0</number>
</property>
- <widget class="QLabel" row="0" column="0" rowspan="1" colspan="3">
+ <widget class="TQLabel" row="0" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>textLabel3</cstring>
</property>
@@ -37,7 +37,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>16</height>
@@ -54,14 +54,14 @@
<property name="sizeType">
<enum>Maximum</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>60</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget class="QLabel" row="2" column="1">
+ <widget class="TQLabel" row="2" column="1">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -72,7 +72,7 @@
<cstring>roomName</cstring>
</property>
</widget>
- <widget class="QLabel" row="3" column="1">
+ <widget class="TQLabel" row="3" column="1">
<property name="name">
<cstring>textLabel2</cstring>
</property>
@@ -83,7 +83,7 @@
<cstring>exchange</cstring>
</property>
</widget>
- <widget class="QLineEdit" row="2" column="2">
+ <widget class="TQLineEdit" row="2" column="2">
<property name="name">
<cstring>roomName</cstring>
</property>
@@ -96,7 +96,7 @@
</sizepolicy>
</property>
</widget>
- <widget class="QComboBox" row="3" column="2">
+ <widget class="TQComboBox" row="3" column="2">
<property name="name">
<cstring>exchange</cstring>
</property>
@@ -111,7 +111,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>16</height>
@@ -120,5 +120,5 @@
</spacer>
</grid>
</widget>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/kopete/protocols/oscar/icq/icqaccount.cpp b/kopete/protocols/oscar/icq/icqaccount.cpp
index 7e358346..e9772233 100644
--- a/kopete/protocols/oscar/icq/icqaccount.cpp
+++ b/kopete/protocols/oscar/icq/icqaccount.cpp
@@ -50,9 +50,9 @@ ICQMyselfContact::ICQMyselfContact( ICQAccount *acct ) : OscarMyselfContact( acc
void ICQMyselfContact::userInfoUpdated()
{
- DWORD extendedStatus = details().extendedStatus();
- kdDebug( OSCAR_ICQ_DEBUG ) << k_funcinfo << "extendedStatus is " << TQString::number( extendedStatus, 16 ) << endl;
- ICQ::Presence presence = ICQ::Presence::fromOscarStatus( extendedStatus & 0xffff );
+ DWORD extendedtqStatus = details().extendedtqStatus();
+ kdDebug( OSCAR_ICQ_DEBUG ) << k_funcinfo << "extendedtqStatus is " << TQString::number( extendedtqStatus, 16 ) << endl;
+ ICQ::Presence presence = ICQ::Presence::fromOscartqStatus( extendedtqStatus & 0xffff );
setOnlineStatus( presence.toOnlineStatus() );
setProperty( Kopete::Global::Properties::self()->awayMessage(), static_cast<ICQAccount*>( account() )->engine()->statusMessage() );
}
@@ -74,8 +74,8 @@ void ICQMyselfContact::fetchShortInfo()
static_cast<ICQAccount*>( account() )->engine()->requestShortInfo( contactId() );
}
-ICQAccount::ICQAccount(Kopete::Protocol *parent, TQString accountID, const char *name)
- : OscarAccount(parent, accountID, name, true)
+ICQAccount::ICQAccount(Kopete::Protocol *tqparent, TQString accountID, const char *name)
+ : OscarAccount(tqparent, accountID, name, true)
{
kdDebug(14152) << k_funcinfo << accountID << ": Called."<< endl;
setMyself( new ICQMyselfContact( this ) );
@@ -83,10 +83,10 @@ ICQAccount::ICQAccount(Kopete::Protocol *parent, TQString accountID, const char
m_visibilityDialog = 0;
- TQString nickName = configGroup()->readEntry("NickName", TQString::null);
+ TQString nickName = configGroup()->readEntry("NickName", TQString());
mWebAware = configGroup()->readBoolEntry( "WebAware", false );
mHideIP = configGroup()->readBoolEntry( "HideIP", true );
- mInitialStatusMessage = TQString::null;
+ mInitialStatusMessage = TQString();
TQObject::connect( Kopete::ContactList::self(), TQT_SIGNAL( globalIdentityChanged( const TQString&, const TQVariant& ) ),
this, TQT_SLOT( slotGlobalIdentityChanged( const TQString&, const TQVariant& ) ) );
@@ -100,7 +100,7 @@ ICQAccount::ICQAccount(Kopete::Protocol *parent, TQString accountID, const char
{
kdDebug(14153) << k_funcinfo <<
"sending status to reflect HideIP and WebAware settings" << endl;
- //setStatus(mStatus, TQString::null);
+ //settqStatus(mtqStatus, TQString());
}*/
}
@@ -116,7 +116,7 @@ ICQProtocol* ICQAccount::protocol()
ICQ::Presence ICQAccount::presence()
{
- return ICQ::Presence::fromOnlineStatus( myself()->onlineStatus() );
+ return ICQ::Presence::fromOnlineStatus( myself()->onlinetqStatus() );
}
@@ -150,21 +150,21 @@ void ICQAccount::connectWithPassword( const TQString &password )
kdDebug(14153) << k_funcinfo << "accountId='" << accountId() << "'" << endl;
- Kopete::OnlineStatus status = initialStatus();
+ Kopete::OnlineStatus status = initialtqStatus();
if ( status == Kopete::OnlineStatus() &&
status.status() == Kopete::OnlineStatus::Unknown )
//use default online in case of invalid online status for connecting
status = Kopete::OnlineStatus( Kopete::OnlineStatus::Online );
ICQ::Presence pres = ICQ::Presence::fromOnlineStatus( status );
bool accountIsOffline = ( presence().type() == ICQ::Presence::Offline ||
- myself()->onlineStatus() == protocol()->statusManager()->connectingStatus() );
+ myself()->onlinetqStatus() == protocol()->statusManager()->connectingtqStatus() );
if ( accountIsOffline )
{
- myself()->setOnlineStatus( protocol()->statusManager()->connectingStatus() );
+ myself()->setOnlineStatus( protocol()->statusManager()->connectingtqStatus() );
TQString icqNumber = accountId();
kdDebug(14153) << k_funcinfo << "Logging in as " << icqNumber << endl ;
- TQString server = configGroup()->readEntry( "Server", TQString::fromLatin1( "login.oscar.aol.com" ) );
+ TQString server = configGroup()->readEntry( "Server", TQString::tqfromLatin1( "login.oscar.aol.com" ) );
uint port = configGroup()->readNumEntry( "Port", 5190 );
Connection* c = setupConnection( server, port );
@@ -172,20 +172,20 @@ void ICQAccount::connectWithPassword( const TQString &password )
Oscar::Settings* oscarSettings = engine()->clientSettings();
oscarSettings->setWebAware( configGroup()->readBoolEntry( "WebAware", false ) );
oscarSettings->setHideIP( configGroup()->readBoolEntry( "HideIP", true ) );
- //FIXME: also needed for the other call to setStatus (in setPresenceTarget)
- DWORD status = pres.toOscarStatus();
+ //FIXME: also needed for the other call to settqStatus (in setPresenceTarget)
+ DWORD status = pres.toOscartqStatus();
if ( !mHideIP )
status |= ICQ::StatusCode::SHOWIP;
if ( mWebAware )
status |= ICQ::StatusCode::WEBAWARE;
- engine()->setStatus( status, mInitialStatusMessage );
+ engine()->settqStatus( status, mInitialStatusMessage );
updateVersionUpdaterStamp();
engine()->start( server, port, accountId(), password );
engine()->connectToServer( c, server, true /* doAuth */ );
- mInitialStatusMessage = TQString::null;
+ mInitialStatusMessage = TQString();
}
}
@@ -250,7 +250,7 @@ void ICQAccount::slotSetVisiblility()
if ( oc )
{ //for better orientation in lists use nickName and icq number
TQString screenName( "%1 (%2)" );
- screenName = screenName.arg( oc->nickName(), contactId);
+ screenName = screenName.tqarg( oc->nickName(), contactId);
contactMap.insert( screenName, contactId );
revContactMap.insert( contactId, screenName );
}
@@ -331,7 +331,7 @@ void ICQAccount::setPresenceTarget( const ICQ::Presence &newPres, const TQString
{
bool targetIsOffline = (newPres.type() == ICQ::Presence::Offline);
bool accountIsOffline = ( presence().type() == ICQ::Presence::Offline ||
- myself()->onlineStatus() == protocol()->statusManager()->connectingStatus() );
+ myself()->onlinetqStatus() == protocol()->statusManager()->connectingtqStatus() );
if ( targetIsOffline )
{
@@ -346,7 +346,7 @@ void ICQAccount::setPresenceTarget( const ICQ::Presence &newPres, const TQString
}
else
{
- engine()->setStatus( newPres.toOscarStatus(), message );
+ engine()->settqStatus( newPres.toOscartqStatus(), message );
}
}
@@ -375,9 +375,9 @@ void ICQAccount::setOnlineStatus( const Kopete::OnlineStatus& status, const TQSt
}
-OscarContact *ICQAccount::createNewContact( const TQString &contactId, Kopete::MetaContact *parentContact, const SSI& ssiItem )
+OscarContact *ICQAccount::createNewContact( const TQString &contactId, Kopete::MetaContact *tqparentContact, const SSI& ssiItem )
{
- ICQContact* contact = new ICQContact( this, contactId, parentContact, TQString::null, ssiItem );
+ ICQContact* contact = new ICQContact( this, contactId, tqparentContact, TQString(), ssiItem );
if ( !ssiItem.alias().isEmpty() )
contact->setProperty( Kopete::Global::Properties::self()->nickName(), ssiItem.alias() );
@@ -457,7 +457,7 @@ void ICQAccount::slotBuddyIconChanged()
iconFile.open( IO_ReadOnly );
KMD5 iconHash;
- iconHash.update( iconFile );
+ iconHash.update( *TQT_TQIODEVICE(&iconFile) );
kdDebug(14153) << k_funcinfo << "hash is :" << iconHash.hexDigest() << endl;
//find old item, create updated item
diff --git a/kopete/protocols/oscar/icq/icqaccount.h b/kopete/protocols/oscar/icq/icqaccount.h
index d64fe5d7..256c54dd 100644
--- a/kopete/protocols/oscar/icq/icqaccount.h
+++ b/kopete/protocols/oscar/icq/icqaccount.h
@@ -34,6 +34,7 @@ class OscarVisibilityDialog;
class ICQMyselfContact : public OscarMyselfContact
{
Q_OBJECT
+ TQ_OBJECT
public:
ICQMyselfContact( ICQAccount *acct );
void userInfoUpdated();
@@ -47,9 +48,10 @@ public slots:
class ICQAccount : public OscarAccount
{
Q_OBJECT
+ TQ_OBJECT
public:
- ICQAccount( Kopete::Protocol *parent, TQString accountID, const char *name = 0L );
+ ICQAccount( Kopete::Protocol *tqparent, TQString accountID, const char *name = 0L );
virtual ~ICQAccount();
ICQProtocol *protocol();
@@ -67,7 +69,7 @@ public:
void setUserProfile( const TQString &profile );
protected:
- virtual OscarContact *createNewContact( const TQString &contactId, Kopete::MetaContact *parentContact, const SSI& ssiItem );
+ virtual OscarContact *createNewContact( const TQString &contactId, Kopete::MetaContact *tqparentContact, const SSI& ssiItem );
virtual TQString sanitizedMessage( const TQString& message );
@@ -79,10 +81,10 @@ private:
ICQ::Presence presence();
void setInvisible( ICQ::Presence::Visibility );
- void setPresenceType( ICQ::Presence::Type, const TQString &awayMessage = TQString::null );
- void setPresenceTarget( const ICQ::Presence &presence, const TQString &message = TQString::null );
+ void setPresenceType( ICQ::Presence::Type, const TQString &awayMessage = TQString() );
+ void setPresenceTarget( const ICQ::Presence &presence, const TQString &message = TQString() );
- //const unsigned long fullStatus( const unsigned long plainStatus );
+ //const unsigned long fulltqStatus( const unsigned long plaintqStatus );
private slots:
void slotToggleInvisible();
diff --git a/kopete/protocols/oscar/icq/icqcontact.cpp b/kopete/protocols/oscar/icq/icqcontact.cpp
index 90204bdf..9b13ab64 100644
--- a/kopete/protocols/oscar/icq/icqcontact.cpp
+++ b/kopete/protocols/oscar/icq/icqcontact.cpp
@@ -51,9 +51,9 @@
#include "oscarencodingselectiondialog.h"
#include "ssimanager.h"
-ICQContact::ICQContact( ICQAccount *account, const TQString &name, Kopete::MetaContact *parent,
+ICQContact::ICQContact( ICQAccount *account, const TQString &name, Kopete::MetaContact *tqparent,
const TQString& icon, const Oscar::SSI& ssiItem )
-: OscarContact( account, name, parent, icon, ssiItem )
+: OscarContact( account, name, tqparent, icon, ssiItem )
{
mProtocol = static_cast<ICQProtocol *>(protocol());
m_infoWidget = 0L;
@@ -103,7 +103,7 @@ void ICQContact::updateSSIItem()
setOnlineStatus( mProtocol->statusManager()->waitingForAuth() );
if ( m_ssiItem.type() != 0xFFFF && m_ssiItem.waitingAuth() == false &&
- onlineStatus() == Kopete::OnlineStatus::Unknown )
+ onlinetqStatus() == Kopete::OnlineStatus::Unknown )
{
//make sure they're offline
setOnlineStatus( ICQ::Presence( ICQ::Presence::Offline, ICQ::Presence::Visible ).toOnlineStatus() );
@@ -117,12 +117,12 @@ void ICQContact::userInfoUpdated( const TQString& contact, const UserDetails& de
if ( Oscar::normalize( contact ) != Oscar::normalize( contactId() ) )
return;
- // invalidate old away message if user was offline
+ // tqinvalidate old away message if user was offline
if ( !isOnline() )
removeProperty( mProtocol->awayMessage );
- kdDebug( OSCAR_ICQ_DEBUG ) << k_funcinfo << "extendedStatus is " << details.extendedStatus() << endl;
- ICQ::Presence presence = ICQ::Presence::fromOscarStatus( details.extendedStatus() & 0xffff );
+ kdDebug( OSCAR_ICQ_DEBUG ) << k_funcinfo << "extendedtqStatus is " << details.extendedtqStatus() << endl;
+ ICQ::Presence presence = ICQ::Presence::fromOscartqStatus( details.extendedtqStatus() & 0xffff );
setOnlineStatus( presence.toOnlineStatus() );
// ICQ does not support status messages for state Online
@@ -133,7 +133,7 @@ void ICQContact::userInfoUpdated( const TQString& contact, const UserDetails& de
}
else
{
- if ( ICQ::Presence::fromOnlineStatus( account()->myself()->onlineStatus() ).visibility() == ICQ::Presence::Visible )
+ if ( ICQ::Presence::fromOnlineStatus( account()->myself()->onlinetqStatus() ).visibility() == ICQ::Presence::Visible )
{
switch ( presence.type() )
{
@@ -276,8 +276,8 @@ void ICQContact::slotGotAuthReply( const TQString& contact, const TQString& reas
if( granted )
{
message = i18n( "User %1 has granted your authorization request.\nReason: %2" )
- .arg( property( Kopete::Global::Properties::self()->nickName() ).value().toString() )
- .arg( reason );
+ .tqarg( property( Kopete::Global::Properties::self()->nickName() ).value().toString() )
+ .tqarg( reason );
// remove the unknown status
setOnlineStatus( ICQ::Presence( ICQ::Presence::Offline, ICQ::Presence::Visible ).toOnlineStatus() );
@@ -285,8 +285,8 @@ void ICQContact::slotGotAuthReply( const TQString& contact, const TQString& reas
else
{
message = i18n( "User %1 has rejected the authorization request.\nReason: %2" )
- .arg( property( Kopete::Global::Properties::self()->nickName() ).value().toString() )
- .arg( reason );
+ .tqarg( property( Kopete::Global::Properties::self()->nickName() ).value().toString() )
+ .tqarg( reason );
}
KNotifyClient::event( Kopete::UI::Global::sysTrayWId(), "icq_authorization", message );
}
@@ -483,7 +483,7 @@ void ICQContact::haveIcon( const TQString& user, TQByteArray icon )
iconFile.writeBlock( icon );
iconFile.close();
- setProperty( Kopete::Global::Properties::self()->photo(), TQString::null );
+ setProperty( Kopete::Global::Properties::self()->photo(), TQString() );
setProperty( Kopete::Global::Properties::self()->photo(), iconLocation );
m_buddyIconDirty = false;
}
@@ -503,14 +503,14 @@ bool ICQContact::cachedBuddyIcon( TQByteArray hash )
return false;
KMD5 buddyIconHash;
- buddyIconHash.update( iconFile );
+ buddyIconHash.update( *TQT_TQIODEVICE(&iconFile) );
iconFile.close();
if ( memcmp( buddyIconHash.rawDigest(), hash.data(), 16 ) == 0 )
{
kdDebug(OSCAR_ICQ_DEBUG) << k_funcinfo << "Updating icon for "
<< contactId() << " from local cache" << endl;
- setProperty( Kopete::Global::Properties::self()->photo(), TQString::null );
+ setProperty( Kopete::Global::Properties::self()->photo(), TQString() );
setProperty( Kopete::Global::Properties::self()->photo(), iconLocation );
m_buddyIconDirty = false;
return true;
@@ -539,7 +539,7 @@ void ICQContact::slotContactChanged(const UserInfo &u)
if (!mInfo.clientVersion.isEmpty())
{
capList << i18n("Translators: client-name client-version",
- "%1 %2").arg(mInfo.clientName, mInfo.clientVersion);
+ "%1 %2").tqarg(mInfo.clientName, mInfo.clientVersion);
}
else
{
@@ -561,27 +561,27 @@ void ICQContact::slotContactChanged(const UserInfo &u)
else
removeProperty(mProtocol->clientFeatures);
- unsigned int newStatus = 0;
+ unsigned int newtqStatus = 0;
mInvisible = (mInfo.icqextstatus & ICQ_STATUS_IS_INVIS);
if (mInfo.icqextstatus & ICQ_STATUS_IS_FFC)
- newStatus = OSCAR_FFC;
+ newtqStatus = OSCAR_FFC;
else if (mInfo.icqextstatus & ICQ_STATUS_IS_DND)
- newStatus = OSCAR_DND;
+ newtqStatus = OSCAR_DND;
else if (mInfo.icqextstatus & ICQ_STATUS_IS_OCC)
- newStatus = OSCAR_OCC;
+ newtqStatus = OSCAR_OCC;
else if (mInfo.icqextstatus & ICQ_STATUS_IS_NA)
- newStatus = OSCAR_NA;
+ newtqStatus = OSCAR_NA;
else if (mInfo.icqextstatus & ICQ_STATUS_IS_AWAY)
- newStatus = OSCAR_AWAY;
+ newtqStatus = OSCAR_AWAY;
else
- newStatus = OSCAR_ONLINE;
+ newtqStatus = OSCAR_ONLINE;
if (this != account()->myself())
{
- if(newStatus != onlineStatus().internalStatus())
+ if(newtqStatus != onlinetqStatus().internalStatus())
{
- if(newStatus != OSCAR_ONLINE) // if user changed to some state other than online
+ if(newtqStatus != OSCAR_ONLINE) // if user changed to some state other than online
{
mAccount->engine()->requestAwayMessage(this);
}
@@ -592,7 +592,7 @@ void ICQContact::slotContactChanged(const UserInfo &u)
}
}
- setStatus(newStatus);
+ settqStatus(newtqStatus);
}
void ICQContact::slotOffgoingBuddy(TQString sender)
@@ -655,7 +655,7 @@ TQPtrList<KAction> *ICQContact::customContextMenuActions()
/*
TQString awTxt;
TQString awIcn;
- unsigned int status = onlineStatus().internalStatus();
+ unsigned int status = onlinetqStatus().internalStatus();
if (status >= 15)
status -= 15; // get rid of invis addon
switch(status)
@@ -936,4 +936,4 @@ void ICQContact::slotVisibleTo()
}
#endif
#include "icqcontact.moc"
-//kate: indent-mode csands; tab-width 4; replace-tabs off; space-indent off;
+//kate: indent-mode csands; tab-width 4; tqreplace-tabs off; space-indent off;
diff --git a/kopete/protocols/oscar/icq/icqcontact.h b/kopete/protocols/oscar/icq/icqcontact.h
index 8e3301cf..6184bf9b 100644
--- a/kopete/protocols/oscar/icq/icqcontact.h
+++ b/kopete/protocols/oscar/icq/icqcontact.h
@@ -47,12 +47,13 @@ class ICQInterestInfoWidget;
class ICQContact : public OscarContact
{
Q_OBJECT
+ TQ_OBJECT
public:
/** Normal ICQ constructor */
- ICQContact( ICQAccount *account, const TQString &name, Kopete::MetaContact *parent,
- const TQString& icon = TQString::null, const Oscar::SSI& ssiItem = Oscar::SSI() );
+ ICQContact( ICQAccount *account, const TQString &name, Kopete::MetaContact *tqparent,
+ const TQString& icon = TQString(), const Oscar::SSI& ssiItem = Oscar::SSI() );
virtual ~ICQContact();
/**
@@ -152,4 +153,4 @@ private slots:
};
#endif
-//kate: tab-width 4; indent-mode csands; space-indent off; replace-tabs off;
+//kate: tab-width 4; indent-mode csands; space-indent off; tqreplace-tabs off;
diff --git a/kopete/protocols/oscar/icq/icqpresence.cpp b/kopete/protocols/oscar/icq/icqpresence.cpp
index 393f04c9..520153a6 100644
--- a/kopete/protocols/oscar/icq/icqpresence.cpp
+++ b/kopete/protocols/oscar/icq/icqpresence.cpp
@@ -49,7 +49,7 @@ struct PresenceTypeData
static const PresenceTypeData *all();
static const PresenceTypeData &forType( Presence::Type type );
- static const PresenceTypeData &forStatus( unsigned long status );
+ static const PresenceTypeData &fortqStatus( unsigned long status );
static const PresenceTypeData &forOnlineStatusType( const Kopete::OnlineStatus::StatusType statusType );
};
@@ -89,7 +89,7 @@ const PresenceTypeData &PresenceTypeData::forType( Presence::Type type )
return array[0];
}
-const PresenceTypeData &PresenceTypeData::forStatus( unsigned long status )
+const PresenceTypeData &PresenceTypeData::fortqStatus( unsigned long status )
{
const PresenceTypeData *array = all();
for ( uint n = 0; n < Presence::TypeCount; ++n )
@@ -132,8 +132,8 @@ public:
, waitingForAuth( Kopete::OnlineStatus::Unknown, 1, ICQProtocol::protocol(),
Presence::Offline, "button_cancel", i18n("Waiting for Authorization") )
, invisible( Kopete::OnlineStatus::Invisible, 2, ICQProtocol::protocol(),
- Presence::Offline, TQString::null, TQString::null,
- TQString::null, Kopete::OnlineStatusManager::Invisible,
+ Presence::Offline, TQString(), TQString(),
+ TQString(), Kopete::OnlineStatusManager::Invisible,
Kopete::OnlineStatusManager::HideFromMenu )
{
@@ -216,12 +216,12 @@ Kopete::OnlineStatus OnlineStatusManager::onlineStatusOf( const Presence &presen
return d->invisibleStatusList[ presence.type() ];
}
-Kopete::OnlineStatus OnlineStatusManager::connectingStatus()
+Kopete::OnlineStatus OnlineStatusManager::connectingtqStatus()
{
return d->connecting;
}
-Kopete::OnlineStatus OnlineStatusManager::unknownStatus()
+Kopete::OnlineStatus OnlineStatusManager::unknowntqStatus()
{
return d->unknown;
}
@@ -258,31 +258,31 @@ Kopete::OnlineStatus Presence::toOnlineStatus() const
}
-unsigned long Presence::toOscarStatus() const
+unsigned long Presence::toOscartqStatus() const
{
- unsigned long basicStatus = basicOscarStatus();
+ unsigned long basictqStatus = basicOscartqStatus();
if ( _visibility == Invisible )
- basicStatus |= StatusCode::INVISIBLE;
- return basicStatus;
+ basictqStatus |= StatusCode::INVISIBLE;
+ return basictqStatus;
}
-Presence Presence::fromOscarStatus( unsigned long code )
+Presence Presence::fromOscartqStatus( unsigned long code )
{
- Type type = typeFromOscarStatus( code & ~StatusCode::INVISIBLE );
+ Type type = typeFromOscartqStatus( code & ~StatusCode::INVISIBLE );
bool invisible = (code & StatusCode::INVISIBLE) == StatusCode::INVISIBLE;
return Presence( type, invisible ? Invisible : Visible );
}
-unsigned long Presence::basicOscarStatus() const
+unsigned long Presence::basicOscartqStatus() const
{
const PresenceTypeData &data = PresenceTypeData::forType( _type );
return data.setFlag;
}
-Presence::Type Presence::typeFromOscarStatus( unsigned long status )
+Presence::Type Presence::typeFromOscartqStatus( unsigned long status )
{
- const PresenceTypeData &data = PresenceTypeData::forStatus( status );
+ const PresenceTypeData &data = PresenceTypeData::fortqStatus( status );
return data.type;
}
diff --git a/kopete/protocols/oscar/icq/icqpresence.h b/kopete/protocols/oscar/icq/icqpresence.h
index d7ef9ed2..360cadeb 100644
--- a/kopete/protocols/oscar/icq/icqpresence.h
+++ b/kopete/protocols/oscar/icq/icqpresence.h
@@ -78,8 +78,8 @@ public:
~OnlineStatusManager();
ICQ::Presence presenceOf( uint internalStatus );
Kopete::OnlineStatus onlineStatusOf( const ICQ::Presence &presence );
- Kopete::OnlineStatus connectingStatus();
- Kopete::OnlineStatus unknownStatus();
+ Kopete::OnlineStatus connectingtqStatus();
+ Kopete::OnlineStatus unknowntqStatus();
Kopete::OnlineStatus waitingForAuth();
private:
@@ -117,23 +117,23 @@ public:
Kopete::OnlineStatus toOnlineStatus() const;
/**
- * Get the status code to pass to liboscar to set us to this Status.
+ * Get the status code to pass to liboscar to set us to this tqStatus.
* @note This is not the opposite of fromOnlineStatus(). The set and get codes don't match.
*/
- unsigned long toOscarStatus() const;
+ unsigned long toOscartqStatus() const;
/**
* Get the status a contact is at based on liboscar's view of its status.
* @note This is not the opposite of toOnlineStatus().
*/
- static Presence fromOscarStatus( unsigned long code );
+ static Presence fromOscartqStatus( unsigned long code );
bool operator==( const Presence &other ) const { return other._type == _type && other._visibility == _visibility; }
bool operator!=( const Presence &other ) const { return !(*this == other); }
private:
- unsigned long basicOscarStatus() const;
- static Type typeFromOscarStatus( unsigned long status );
+ unsigned long basicOscartqStatus() const;
+ static Type typeFromOscartqStatus( unsigned long status );
private:
Type _type;
Visibility _visibility;
diff --git a/kopete/protocols/oscar/icq/icqprotocol.cpp b/kopete/protocols/oscar/icq/icqprotocol.cpp
index 79fd2848..e7a5dc6c 100644
--- a/kopete/protocols/oscar/icq/icqprotocol.cpp
+++ b/kopete/protocols/oscar/icq/icqprotocol.cpp
@@ -66,7 +66,7 @@ K_EXPORT_COMPONENT_FACTORY( kopete_icq, ICQProtocolFactory( "kopete_icq" ) )
ICQProtocolHandler::ICQProtocolHandler() : Kopete::MimeTypeHandler(false)
{
- registerAsMimeHandler(TQString::fromLatin1("application/x-icq"));
+ registerAsMimeHandler(TQString::tqfromLatin1("application/x-icq"));
}
void ICQProtocolHandler::handleURL(const TQString &mimeType, const KURL & url) const
@@ -141,11 +141,11 @@ void ICQProtocolHandler::handleURL(const TQString &mimeType, const KURL & url) c
}
TQString nickuin = nick.isEmpty() ?
- i18n("'%1'").arg(uin) :
- i18n("'%1' (%2)").arg(nick, uin);
+ i18n("'%1'").tqarg(uin) :
+ i18n("'%1' (%2)").tqarg(nick, uin);
if (KMessageBox::questionYesNo(Kopete::UI::Global::mainWidget(),
- i18n("Do you want to add %1 to your contact list?").arg(nickuin), TQString::null, i18n("Add"), i18n("Do Not Add"))
+ i18n("Do you want to add %1 to your contact list?").tqarg(nickuin), TQString(), i18n("Add"), i18n("Do Not Add"))
!= KMessageBox::Yes)
{
kdDebug(14153) << k_funcinfo << "Cancelled" << endl;
@@ -173,16 +173,16 @@ void ICQProtocolHandler::handleURL(const TQString &mimeType, const KURL & url) c
ICQProtocol* ICQProtocol::protocolStatic_ = 0L;
-ICQProtocol::ICQProtocol(TQObject *parent, const char *name, const TQStringList&)
-: Kopete::Protocol( ICQProtocolFactory::instance(), parent, name ),
+ICQProtocol::ICQProtocol(TQObject *tqparent, const char *name, const TQStringList&)
+: Kopete::Protocol( ICQProtocolFactory::instance(), tqparent, name ),
firstName(Kopete::Global::Properties::self()->firstName()),
lastName(Kopete::Global::Properties::self()->lastName()),
awayMessage(Kopete::Global::Properties::self()->awayMessage()),
emailAddress(Kopete::Global::Properties::self()->emailAddress()),
ipAddress("ipAddress", i18n("IP Address") ),
clientFeatures("clientFeatures", i18n("Client Features"), 0, false),
- buddyIconHash("iconHash", i18n("Buddy Icon MD5 Hash"), TQString::null, true, false, true),
- contactEncoding( "contactEncoding", i18n( "Contact Encoding" ), TQString::null, true, false, true )
+ buddyIconHash("iconHash", i18n("Buddy Icon MD5 Hash"), TQString(), true, false, true),
+ contactEncoding( "contactEncoding", i18n( "Contact Encoding" ), TQString(), true, false, true )
{
if (protocolStatic_)
@@ -219,7 +219,7 @@ void ICQProtocol::initGenders()
void ICQProtocol::initCountries()
{
mCountries.insert(0, ""); // unspecified
- KLocale *kl = KGlobal::locale(); //KLocale(TQString::fromLatin1("kopete"));
+ KLocale *kl = KGlobal::locale(); //KLocale(TQString::tqfromLatin1("kopete"));
mCountries.insert(93, kl->twoAlphaToCountryName("af"));
mCountries.insert(355, kl->twoAlphaToCountryName("al"));
@@ -468,7 +468,7 @@ void ICQProtocol::initCountries()
void ICQProtocol::initLang()
{
- KLocale *kl = KGlobal::locale(); //KLocale(TQString::fromLatin1("kopete"));
+ KLocale *kl = KGlobal::locale(); //KLocale(TQString::tqfromLatin1("kopete"));
mLanguages.insert(0 , "");
mLanguages.insert(1 , kl->twoAlphaToLanguageName("ar") /*i18n("Arabic")*/);
@@ -673,7 +673,7 @@ void ICQProtocol::setComboFromTable(TQComboBox *box, const TQMap<int, TQString>
{
// kdDebug(14153) << k_funcinfo << "Called." << endl;
TQMap<int, TQString>::ConstIterator it;
- it = map.find(value);
+ it = map.tqfind(value);
if (!(*it))
return;
@@ -770,37 +770,37 @@ Kopete::Contact *ICQProtocol::deserializeContact( Kopete::MetaContact *metaConta
uint ssiGid = 0, ssiBid = 0, ssiType = 0xFFFF;
TQString ssiName;
bool ssiWaitingAuth = false;
- if ( serializedData.contains( "ssi_name" ) )
+ if ( serializedData.tqcontains( "ssi_name" ) )
ssiName = serializedData["ssi_name"];
- if ( serializedData.contains( "ssi_waitingAuth" ) )
+ if ( serializedData.tqcontains( "ssi_waitingAuth" ) )
{
- TQString authStatus = serializedData["ssi_waitingAuth"];
- if ( authStatus == "true" )
+ TQString authtqStatus = serializedData["ssi_waitingAuth"];
+ if ( authtqStatus == "true" )
ssiWaitingAuth = true;
}
- if ( serializedData.contains( "ssi_gid" ) )
+ if ( serializedData.tqcontains( "ssi_gid" ) )
ssiGid = serializedData["ssi_gid"].toUInt();
- if ( serializedData.contains( "ssi_bid" ) )
+ if ( serializedData.tqcontains( "ssi_bid" ) )
ssiBid = serializedData["ssi_bid"].toUInt();
- if ( serializedData.contains( "ssi_type" ) )
+ if ( serializedData.tqcontains( "ssi_type" ) )
ssiType = serializedData["ssi_type"].toUInt();
Oscar::SSI item( ssiName, ssiGid, ssiBid, ssiType, TQValueList<TLV>(), 0 );
item.setWaitingAuth( ssiWaitingAuth );
- ICQContact *c = new ICQContact( account, contactId, metaContact, TQString::null, item );
+ ICQContact *c = new ICQContact( account, contactId, metaContact, TQString(), item );
return c;
}
-AddContactPage *ICQProtocol::createAddContactWidget(TQWidget *parent, Kopete::Account *account)
+AddContactPage *ICQProtocol::createAddContactWidget(TQWidget *tqparent, Kopete::Account *account)
{
- return new ICQAddContactPage( static_cast<ICQAccount*>( account ), parent);
+ return new ICQAddContactPage( static_cast<ICQAccount*>( account ), tqparent);
}
-KopeteEditAccountWidget *ICQProtocol::createEditAccountWidget(Kopete::Account *account, TQWidget *parent)
+KopeteEditAccountWidget *ICQProtocol::createEditAccountWidget(Kopete::Account *account, TQWidget *tqparent)
{
- return new ICQEditAccountWidget(this, account, parent);
+ return new ICQEditAccountWidget(this, account, tqparent);
}
Kopete::Account *ICQProtocol::createNewAccount(const TQString &accountId)
diff --git a/kopete/protocols/oscar/icq/icqprotocol.h b/kopete/protocols/oscar/icq/icqprotocol.h
index a64813eb..b614dd32 100644
--- a/kopete/protocols/oscar/icq/icqprotocol.h
+++ b/kopete/protocols/oscar/icq/icqprotocol.h
@@ -38,9 +38,10 @@ public:
class ICQProtocol : public Kopete::Protocol
{
Q_OBJECT
+ TQ_OBJECT
public:
- ICQProtocol(TQObject *parent, const char *name, const TQStringList &args);
+ ICQProtocol(TQObject *tqparent, const char *name, const TQStringList &args);
virtual ~ICQProtocol();
/**
@@ -53,8 +54,8 @@ public:
virtual Kopete::Contact *deserializeContact( Kopete::MetaContact *metaContact,
const TQMap<TQString, TQString> &serializedData,
const TQMap<TQString, TQString> &addressBookData );
- AddContactPage *createAddContactWidget(TQWidget *parent, Kopete::Account *account);
- KopeteEditAccountWidget *createEditAccountWidget(Kopete::Account *account, TQWidget *parent);
+ AddContactPage *createAddContactWidget(TQWidget *tqparent, Kopete::Account *account);
+ KopeteEditAccountWidget *createEditAccountWidget(Kopete::Account *account, TQWidget *tqparent);
Kopete::Account *createNewAccount(const TQString &accountId);
ICQ::OnlineStatusManager *statusManager();
diff --git a/kopete/protocols/oscar/icq/icqreadaway.cpp b/kopete/protocols/oscar/icq/icqreadaway.cpp
index 28b86d33..7856df8a 100644
--- a/kopete/protocols/oscar/icq/icqreadaway.cpp
+++ b/kopete/protocols/oscar/icq/icqreadaway.cpp
@@ -29,15 +29,15 @@
#include <assert.h>
-ICQReadAway::ICQReadAway(ICQContact *c, TQWidget *parent, const char* name)
- : KDialogBase(parent, name, false, TQString::null, Close | User1,
+ICQReadAway::ICQReadAway(ICQContact *c, TQWidget *tqparent, const char* name)
+ : KDialogBase(tqparent, name, false, TQString(), Close | User1,
Close, false, i18n("&Fetch Again"))
{
assert(c);
mAccount = static_cast<ICQAccount*>(c->account());
mContact = c;
- setCaption(i18n("'%2' Message for %1").arg(c->displayName()).arg(c->onlineStatus().description()));
+ setCaption(i18n("'%2' Message for %1").tqarg(c->displayName()).tqarg(c->onlinetqStatus().description()));
TQVBox *mMainWidget = makeVBoxMainWidget();
@@ -74,12 +74,12 @@ void ICQReadAway::slotFetchAwayMessage()
mAccount->engine()->requestAwayMessage(mContact);
- setCaption(i18n("Fetching '%2' Message for %1...").arg(mContact->displayName()).arg(mContact->onlineStatus().description()));
+ setCaption(i18n("Fetching '%2' Message for %1...").tqarg(mContact->displayName()).tqarg(mContact->onlinetqStatus().description()));
} // END slotFetchAwayMessage()
void ICQReadAway::slotAwayMessageChanged()
{
- setCaption(i18n("'%2' Message for %1").arg(mContact->displayName()).arg(mContact->onlineStatus().description()));
+ setCaption(i18n("'%2' Message for %1").tqarg(mContact->displayName()).tqarg(mContact->onlinetqStatus().description()));
awayMessageBrowser->setText(mContact->awayMessage());
awayMessageBrowser->setDisabled(false);
diff --git a/kopete/protocols/oscar/icq/icqreadaway.h b/kopete/protocols/oscar/icq/icqreadaway.h
index 695a0eed..d489a202 100644
--- a/kopete/protocols/oscar/icq/icqreadaway.h
+++ b/kopete/protocols/oscar/icq/icqreadaway.h
@@ -28,9 +28,10 @@ class TQVBox;
class ICQReadAway : public KDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- ICQReadAway(ICQContact *, TQWidget *parent = 0, const char* name = "ICQReadAway");
+ ICQReadAway(ICQContact *, TQWidget *tqparent = 0, const char* name = "ICQReadAway");
private slots:
void slotFetchAwayMessage();
diff --git a/kopete/protocols/oscar/icq/ui/icqadd.ui b/kopete/protocols/oscar/icq/ui/icqadd.ui
index ef793fbb..c42adfe2 100644
--- a/kopete/protocols/oscar/icq/ui/icqadd.ui
+++ b/kopete/protocols/oscar/icq/ui/icqadd.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>icqAddUI</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>icqAddUI</cstring>
</property>
@@ -22,15 +22,15 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout3</cstring>
+ <cstring>tqlayout3</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -38,22 +38,22 @@
<string>UIN #:</string>
</property>
</widget>
- <widget class="QLineEdit">
+ <widget class="TQLineEdit">
<property name="name">
<cstring>uinEdit</cstring>
</property>
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout4</cstring>
+ <cstring>tqlayout4</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1_2</cstring>
</property>
@@ -71,7 +71,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>47</width>
<height>26</height>
@@ -101,7 +101,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -115,7 +115,7 @@
<data format="PNG" length="736">89504e470d0a1a0a0000000d49484452000000100000001008060000001ff3ff61000002a749444154388d7d91cd4b945114c69f73ef3b33ea7ca838a6a32681501194d2975050b4c82f92dc042e5a550b5bf60744bb16b58a8268218144d026da64da228a0a2b52d1c8c8c48f2c54669c19df79df793fefbd2d662469860e1cb870cef3e339cf2500989b5b88e56cb78b0857f2b6d3e67b0e0b0503baf4e57bdbb21eb8b6fadedf7fda4599a2e999f9bdb66b5fb75db79b3164b8c6b3504af8426852885adff3272dc31cb14c313e38d827fe0568593d77225811b8d8d810475555a89e88e0791e0c330f2515cc7c9e6ccb822f8d6f00964a009e6b5f8ed554211a0d235c5501ce1874c30411414a89582cdc0625c3e964e64c3900b35de768301000e70c1ae7608c81738e80a6a1b2b202b16814cd4d8946ced550b90c98e33a158c113ccf47ceccc3cc5b080534282591d94c637d6d1d5bd92c2ccb3af2f0d1e8bd92135cd7370184018088c0350ec639a291086291083ccf432e6740d3822c994cc54a1c5886f5d1755d48a920a584520a4a291000251508844c3a83baf82e1051e90996e5dc5959fe0d21fd4270424208015184e9ba8e0f139350d050460fd6de7ec80e5786313b3307c33021a484effb104222994c61ecc52b380ec1cbfcc281fcd33dd3379af7ec04d0f497c5ae8977afc77b7acf6262620a7a2e0d2505a0181a1a1388d735209f5a41647504bb833fdcad8de4e896c9864edd5edb00006d9bd49468c4c0406f318b420b2121a440eaf324226d3588b79c0f6a536303d6fc2a9e5d4d5c1bb8bfb6cc769829f7cd2010aaf77741f7dbb095d1517bb81b0dadf57dd1907bf3f1a5448b5656b52d2ea6c62b6bf076ad09355f17cc939d84face736185d10bd9d9541dfbbb5c1010018c1158f14d44205600ad878ebdf9f47cfceec6a6e5b0d6e39a1139d8a5b1e2707878e47f660a15aaddfcb9a4df4a3f79d921abf7f52cda1d737f0030624881b39160420000000049454e44ae426082</data>
</image>
</images>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kpushbutton.h</includehint>
</includehints>
diff --git a/kopete/protocols/oscar/icq/ui/icqaddcontactpage.cpp b/kopete/protocols/oscar/icq/ui/icqaddcontactpage.cpp
index 3461ed8f..6280644b 100644
--- a/kopete/protocols/oscar/icq/ui/icqaddcontactpage.cpp
+++ b/kopete/protocols/oscar/icq/ui/icqaddcontactpage.cpp
@@ -39,8 +39,8 @@
#include "icqsearchdialog.h"
-ICQAddContactPage::ICQAddContactPage(ICQAccount *owner, TQWidget *parent, const char *name)
- : AddContactPage(parent,name)
+ICQAddContactPage::ICQAddContactPage(ICQAccount *owner, TQWidget *tqparent, const char *name)
+ : AddContactPage(tqparent,name)
{
kdDebug(14153) << k_funcinfo << "called" << endl;
mAccount = owner;
@@ -66,13 +66,13 @@ void ICQAddContactPage::showEvent(TQShowEvent *e)
AddContactPage::showEvent(e);
}
-bool ICQAddContactPage::apply(Kopete::Account* , Kopete::MetaContact *parentContact )
+bool ICQAddContactPage::apply(Kopete::Account* , Kopete::MetaContact *tqparentContact )
{
kdDebug(14153) << k_funcinfo << "called; adding contact..." << endl;
TQString contactId = addUI->uinEdit->text();
kdDebug(14153) << k_funcinfo << "uin=" << contactId << endl;
- return mAccount->addContact(contactId, parentContact, Kopete::Account::ChangeKABC );
+ return mAccount->addContact(contactId, tqparentContact, Kopete::Account::ChangeKABC );
}
@@ -87,7 +87,7 @@ bool ICQAddContactPage::validateData()
return false;
}
- Q_ULONG uin = addUI->uinEdit->text().toULong();
+ TQ_ULONG uin = addUI->uinEdit->text().toULong();
if ( uin < 1000 )
{
// Invalid (or missing) UIN
@@ -123,4 +123,4 @@ void ICQAddContactPage::searchDialogDestroyed()
#include "icqaddcontactpage.moc"
// vim: set noet ts=4 sts=4 sw=4:
-// kate: indent-mode csands; space-indent off; replace-tabs off;
+// kate: indent-mode csands; space-indent off; tqreplace-tabs off;
diff --git a/kopete/protocols/oscar/icq/ui/icqaddcontactpage.h b/kopete/protocols/oscar/icq/ui/icqaddcontactpage.h
index c6c22eb2..23c514f6 100644
--- a/kopete/protocols/oscar/icq/ui/icqaddcontactpage.h
+++ b/kopete/protocols/oscar/icq/ui/icqaddcontactpage.h
@@ -32,13 +32,14 @@ class ICQSearchDialog;
class ICQAddContactPage : public AddContactPage
{
Q_OBJECT
+ TQ_OBJECT
public:
- ICQAddContactPage(ICQAccount *owner, TQWidget *parent = 0, const char *name = 0);
+ ICQAddContactPage(ICQAccount *owner, TQWidget *tqparent = 0, const char *name = 0);
~ICQAddContactPage();
virtual bool validateData();
- virtual bool apply(Kopete::Account* , Kopete::MetaContact *parentContact);
+ virtual bool apply(Kopete::Account* , Kopete::MetaContact *tqparentContact);
void setUINFromSearch( const TQString& );
@@ -57,4 +58,4 @@ private:
#endif
-//kate: space-indent off; replace-tabs off; indent-mode csands;
+//kate: space-indent off; tqreplace-tabs off; indent-mode csands;
diff --git a/kopete/protocols/oscar/icq/ui/icqauthreplydialog.cpp b/kopete/protocols/oscar/icq/ui/icqauthreplydialog.cpp
index a92b33de..a2803f71 100644
--- a/kopete/protocols/oscar/icq/ui/icqauthreplydialog.cpp
+++ b/kopete/protocols/oscar/icq/ui/icqauthreplydialog.cpp
@@ -24,8 +24,8 @@
#include <tqradiobutton.h>
#include <tqlineedit.h>
-ICQAuthReplyDialog::ICQAuthReplyDialog( TQWidget *parent, const char *name, bool wasRequested )
- : KDialogBase( parent, name, true, i18n( "Authorization Reply" ), KDialogBase::Ok | KDialogBase::Cancel )
+ICQAuthReplyDialog::ICQAuthReplyDialog( TQWidget *tqparent, const char *name, bool wasRequested )
+ : KDialogBase( tqparent, name, true, i18n( "Authorization Reply" ), KDialogBase::Ok | KDialogBase::Cancel )
{
m_ui = new ICQAuthReplyUI( this );
setMainWidget( m_ui );
@@ -38,7 +38,7 @@ ICQAuthReplyDialog::ICQAuthReplyDialog( TQWidget *parent, const char *name, bool
}
else
{
- this->setWFlags( this->getWFlags() | Qt::WDestructiveClose );
+ this->setWFlags( this->getWFlags() | TQt::WDestructiveClose );
}
}
@@ -50,9 +50,9 @@ void ICQAuthReplyDialog::setUser( const TQString & user )
{
if ( m_wasRequested )
m_ui->lblUserReq->setText(
- i18n( "<b>%1</b> requested authorization to add you to his/her contact list." ).arg( user ) );
+ i18n( "<b>%1</b> requested authorization to add you to his/her contact list." ).tqarg( user ) );
else
- m_ui->lblUserReq->setText( i18n( "Authorization reply to <b>%1</b>." ).arg( user ) );
+ m_ui->lblUserReq->setText( i18n( "Authorization reply to <b>%1</b>." ).tqarg( user ) );
}
void ICQAuthReplyDialog::setRequestReason( const TQString & reason )
diff --git a/kopete/protocols/oscar/icq/ui/icqauthreplydialog.h b/kopete/protocols/oscar/icq/ui/icqauthreplydialog.h
index f32d4569..9b801859 100644
--- a/kopete/protocols/oscar/icq/ui/icqauthreplydialog.h
+++ b/kopete/protocols/oscar/icq/ui/icqauthreplydialog.h
@@ -29,8 +29,9 @@ class ICQAuthReplyUI;
class ICQAuthReplyDialog : public KDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- ICQAuthReplyDialog(TQWidget *parent = 0, const char *name = 0, bool wasRequested = true);
+ ICQAuthReplyDialog(TQWidget *tqparent = 0, const char *name = 0, bool wasRequested = true);
~ICQAuthReplyDialog();
void setUser( const TQString& user );
diff --git a/kopete/protocols/oscar/icq/ui/icqauthreplyui.ui b/kopete/protocols/oscar/icq/ui/icqauthreplyui.ui
index 12607856..a73b95a2 100644
--- a/kopete/protocols/oscar/icq/ui/icqauthreplyui.ui
+++ b/kopete/protocols/oscar/icq/ui/icqauthreplyui.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>ICQAuthReplyUI</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>ICQAuthReplyUI</cstring>
</property>
@@ -19,15 +19,15 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget" row="3" column="0">
+ <widget class="TQLayoutWidget" row="3" column="0">
<property name="name">
- <cstring>layout22</cstring>
+ <cstring>tqlayout22</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>lblReason</cstring>
</property>
@@ -43,16 +43,16 @@
<string>Reason:</string>
</property>
</widget>
- <widget class="QLineEdit">
+ <widget class="TQLineEdit">
<property name="name">
<cstring>leReason</cstring>
</property>
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget" row="2" column="0">
+ <widget class="TQLayoutWidget" row="2" column="0">
<property name="name">
- <cstring>layout23</cstring>
+ <cstring>tqlayout23</cstring>
</property>
<hbox>
<property name="name">
@@ -68,14 +68,14 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>50</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget class="QButtonGroup">
+ <widget class="TQButtonGroup">
<property name="name">
<cstring>bgAction</cstring>
</property>
@@ -100,7 +100,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QRadioButton" row="0" column="0">
+ <widget class="TQRadioButton" row="0" column="0">
<property name="name">
<cstring>rbGrant</cstring>
</property>
@@ -111,7 +111,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QRadioButton" row="0" column="1">
+ <widget class="TQRadioButton" row="0" column="1">
<property name="name">
<cstring>rbDecline</cstring>
</property>
@@ -131,7 +131,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>220</width>
<height>21</height>
@@ -140,7 +140,7 @@
</spacer>
</hbox>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>lblUserReq</cstring>
</property>
@@ -148,15 +148,15 @@
<string>%1 requested authorization to add you to his/her contact list.</string>
</property>
</widget>
- <widget class="QLayoutWidget" row="1" column="0">
+ <widget class="TQLayoutWidget" row="1" column="0">
<property name="name">
- <cstring>layout24</cstring>
+ <cstring>tqlayout24</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>lblReqReason</cstring>
</property>
@@ -172,7 +172,7 @@
<string>Request Reason:</string>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>lblRequestReason</cstring>
</property>
@@ -192,5 +192,5 @@
</widget>
</grid>
</widget>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/kopete/protocols/oscar/icq/ui/icqeditaccountui.ui b/kopete/protocols/oscar/icq/ui/icqeditaccountui.ui
index 3ecc91cb..074e4424 100644
--- a/kopete/protocols/oscar/icq/ui/icqeditaccountui.ui
+++ b/kopete/protocols/oscar/icq/ui/icqeditaccountui.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>ICQEditAccountUI</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>ICQEditAccountUI</cstring>
</property>
@@ -25,11 +25,11 @@
<property name="spacing">
<number>0</number>
</property>
- <widget class="QTabWidget">
+ <widget class="TQTabWidget">
<property name="name">
<cstring>tabWidget7</cstring>
</property>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>tab</cstring>
</property>
@@ -40,7 +40,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>groupBox3</cstring>
</property>
@@ -51,15 +51,15 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout5</cstring>
+ <cstring>tqlayout5</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>lblAccountId</cstring>
</property>
@@ -76,7 +76,7 @@
<string>The user ID of your ICQ account. This should be in the form of a number (no decimals, no spaces).</string>
</property>
</widget>
- <widget class="QLineEdit">
+ <widget class="TQLineEdit">
<property name="name">
<cstring>edtAccountId</cstring>
</property>
@@ -94,7 +94,7 @@
<cstring>mPasswordWidget</cstring>
</property>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>chkAutoLogin</cstring>
</property>
@@ -108,7 +108,7 @@
<string>If you check that case, the account will not be connected when you press the "Connect All" button, or at startup even if you selected to automatically connect at startup</string>
</property>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>chkGlobalIdentity</cstring>
</property>
@@ -118,7 +118,7 @@
</widget>
</vbox>
</widget>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>groupBox5</cstring>
</property>
@@ -137,7 +137,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel6</cstring>
</property>
@@ -149,7 +149,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>0</width>
<height>0</height>
@@ -159,11 +159,11 @@
<string>To connect to the ICQ network, you will need an ICQ account.&lt;br&gt;&lt;br&gt;
If you do not currently have an ICQ account, please click the button to create one.</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>buttonRegister</cstring>
</property>
@@ -183,7 +183,7 @@ If you do not currently have an ICQ account, please click the button to create o
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>40</height>
@@ -192,7 +192,7 @@ If you do not currently have an ICQ account, please click the button to create o
</spacer>
</vbox>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>tab</cstring>
</property>
@@ -203,7 +203,7 @@ If you do not currently have an ICQ account, please click the button to create o
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QGroupBox" row="0" column="0" rowspan="1" colspan="2">
+ <widget class="TQGroupBox" row="0" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>groupBox2</cstring>
</property>
@@ -214,7 +214,7 @@ If you do not currently have an ICQ account, please click the button to create o
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QSpinBox" row="1" column="3">
+ <widget class="TQSpinBox" row="1" column="3">
<property name="name">
<cstring>edtServerPort</cstring>
</property>
@@ -237,7 +237,7 @@ If you do not currently have an ICQ account, please click the button to create o
<string>The port on the ICQ server that you would like to connect to. Normally this is 5190.</string>
</property>
</widget>
- <widget class="QLineEdit" row="1" column="2">
+ <widget class="TQLineEdit" row="1" column="2">
<property name="name">
<cstring>edtServerAddress</cstring>
</property>
@@ -248,13 +248,13 @@ If you do not currently have an ICQ account, please click the button to create o
<string>login.icq.com</string>
</property>
<property name="toolTip" stdset="0">
- <string>The IP address or hostmask of the ICQ server you wish to connect to.</string>
+ <string>The IP address or hosttqmask of the ICQ server you wish to connect to.</string>
</property>
<property name="whatsThis" stdset="0">
- <string>The IP address or hostmask of the ICQ server you wish to connect to. Normally you will want the default (login.icq.com).</string>
+ <string>The IP address or hosttqmask of the ICQ server you wish to connect to. Normally you will want the default (login.icq.com).</string>
</property>
</widget>
- <widget class="QLabel" row="1" column="1">
+ <widget class="TQLabel" row="1" column="1">
<property name="name">
<cstring>lblServerPort</cstring>
</property>
@@ -274,7 +274,7 @@ If you do not currently have an ICQ account, please click the button to create o
<string>The port on the ICQ server that you would like to connect to. Normally this is 5190.</string>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>lblServer</cstring>
</property>
@@ -288,13 +288,13 @@ If you do not currently have an ICQ account, please click the button to create o
<cstring>edtServerAddress</cstring>
</property>
<property name="toolTip" stdset="0">
- <string>The IP address or hostmask of the ICQ server you wish to connect to.</string>
+ <string>The IP address or hosttqmask of the ICQ server you wish to connect to.</string>
</property>
<property name="whatsThis" stdset="0">
- <string>The IP address or hostmask of the ICQ server you wish to connect to. Normally you will want the default (login.icq.com).</string>
+ <string>The IP address or hosttqmask of the ICQ server you wish to connect to. Normally you will want the default (login.icq.com).</string>
</property>
</widget>
- <widget class="QCheckBox" row="0" column="0" rowspan="1" colspan="4">
+ <widget class="TQCheckBox" row="0" column="0" rowspan="1" colspan="4">
<property name="name">
<cstring>optionOverrideServer</cstring>
</property>
@@ -304,7 +304,7 @@ If you do not currently have an ICQ account, please click the button to create o
</widget>
</grid>
</widget>
- <widget class="QGroupBox" row="1" column="0" rowspan="1" colspan="2">
+ <widget class="TQGroupBox" row="1" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>groupBox65</cstring>
</property>
@@ -315,7 +315,7 @@ If you do not currently have an ICQ account, please click the button to create o
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox" row="0" column="0">
+ <widget class="TQCheckBox" row="0" column="0">
<property name="name">
<cstring>chkRequireAuth</cstring>
</property>
@@ -329,7 +329,7 @@ If you do not currently have an ICQ account, please click the button to create o
<string>Enable authorization requirement, which will not allow users to add you to their contact list without authorization from you. Check this box, and you will have to confirm any users who add you to their list before they may see your online status.</string>
</property>
</widget>
- <widget class="QCheckBox" row="1" column="0">
+ <widget class="TQCheckBox" row="1" column="0">
<property name="name">
<cstring>chkHideIP</cstring>
</property>
@@ -343,7 +343,7 @@ If you do not currently have an ICQ account, please click the button to create o
<string>Checking this box will not allow people to see what your IP address if they view your ICQ user details such as name, address, or age.</string>
</property>
</widget>
- <widget class="QCheckBox" row="2" column="0">
+ <widget class="TQCheckBox" row="2" column="0">
<property name="name">
<cstring>chkWebAware</cstring>
</property>
@@ -372,14 +372,14 @@ If you do not currently have an ICQ account, please click the button to create o
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
- <widget class="QComboBox" row="2" column="1">
+ <widget class="TQComboBox" row="2" column="1">
<property name="name">
<cstring>encodingCombo</cstring>
</property>
@@ -387,7 +387,7 @@ If you do not currently have an ICQ account, please click the button to create o
<bool>true</bool>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -404,14 +404,14 @@ If you do not currently have an ICQ account, please click the button to create o
</grid>
</widget>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>labelStatusMessage</cstring>
</property>
<property name="text">
<string></string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignCenter</set>
</property>
</widget>
@@ -479,7 +479,7 @@ If you do not currently have an ICQ account, please click the button to create o
<tabstop>chkHideIP</tabstop>
<tabstop>chkWebAware</tabstop>
</tabstops>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kopetepasswordwidget.h</includehint>
</includehints>
diff --git a/kopete/protocols/oscar/icq/ui/icqeditaccountwidget.cpp b/kopete/protocols/oscar/icq/ui/icqeditaccountwidget.cpp
index 04a312a4..874c2075 100644
--- a/kopete/protocols/oscar/icq/ui/icqeditaccountwidget.cpp
+++ b/kopete/protocols/oscar/icq/ui/icqeditaccountwidget.cpp
@@ -44,8 +44,8 @@
#include "icqcontact.h"
ICQEditAccountWidget::ICQEditAccountWidget(ICQProtocol *protocol,
- Kopete::Account *account, TQWidget *parent, const char *name)
- : TQWidget(parent, name), KopeteEditAccountWidget(account)
+ Kopete::Account *account, TQWidget *tqparent, const char *name)
+ : TQWidget(tqparent, name), KopeteEditAccountWidget(account)
{
kdDebug(14153) << k_funcinfo << "Called." << endl;
@@ -187,4 +187,4 @@ void ICQEditAccountWidget::slotOpenRegister()
#include "icqeditaccountwidget.moc"
// vim: set noet ts=4 sts=4 sw=4:
-// kate: indent-mode csands; space-indent off; replace-tabs off;
+// kate: indent-mode csands; space-indent off; tqreplace-tabs off;
diff --git a/kopete/protocols/oscar/icq/ui/icqeditaccountwidget.h b/kopete/protocols/oscar/icq/ui/icqeditaccountwidget.h
index 4bc1a52b..c9affe90 100644
--- a/kopete/protocols/oscar/icq/ui/icqeditaccountwidget.h
+++ b/kopete/protocols/oscar/icq/ui/icqeditaccountwidget.h
@@ -31,10 +31,11 @@ class ICQEditAccountUI;
class ICQEditAccountWidget : public TQWidget, public KopeteEditAccountWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
ICQEditAccountWidget(ICQProtocol *, Kopete::Account *,
- TQWidget *parent=0, const char *name=0);
+ TQWidget *tqparent=0, const char *name=0);
virtual bool validateData();
virtual Kopete::Account *apply();
@@ -49,4 +50,4 @@ protected:
};
#endif
// vim: set noet ts=4 sts=4 sw=4:
-// kate: indent-mode csands; space-indent off; replace-tabs off;
+// kate: indent-mode csands; space-indent off; tqreplace-tabs off;
diff --git a/kopete/protocols/oscar/icq/ui/icqgeneralinfo.ui b/kopete/protocols/oscar/icq/ui/icqgeneralinfo.ui
index 6383bec1..52288b38 100644
--- a/kopete/protocols/oscar/icq/ui/icqgeneralinfo.ui
+++ b/kopete/protocols/oscar/icq/ui/icqgeneralinfo.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>ICQGeneralInfoWidget</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>ICQGeneralInfoWidget</cstring>
</property>
@@ -16,7 +16,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QGroupBox" row="1" column="0">
+ <widget class="TQGroupBox" row="1" column="0">
<property name="name">
<cstring>groupBox2</cstring>
</property>
@@ -27,7 +27,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel2</cstring>
</property>
@@ -38,7 +38,7 @@
<cstring>cityEdit</cstring>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -49,7 +49,7 @@
<cstring>addressEdit</cstring>
</property>
</widget>
- <widget class="QLabel" row="3" column="0">
+ <widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>textLabel5</cstring>
</property>
@@ -60,7 +60,7 @@
<cstring>phoneEdit</cstring>
</property>
</widget>
- <widget class="QLabel" row="1" column="2">
+ <widget class="TQLabel" row="1" column="2">
<property name="name">
<cstring>textLabel4</cstring>
</property>
@@ -71,7 +71,7 @@
<cstring>stateEdit</cstring>
</property>
</widget>
- <widget class="QLineEdit" row="1" column="1">
+ <widget class="TQLineEdit" row="1" column="1">
<property name="name">
<cstring>cityEdit</cstring>
</property>
@@ -87,7 +87,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLabel" row="2" column="2">
+ <widget class="TQLabel" row="2" column="2">
<property name="name">
<cstring>textLabel8</cstring>
</property>
@@ -98,7 +98,7 @@
<cstring>countryEdit</cstring>
</property>
</widget>
- <widget class="QLineEdit" row="6" column="1" rowspan="1" colspan="3">
+ <widget class="TQLineEdit" row="6" column="1" rowspan="1" colspan="3">
<property name="name">
<cstring>homepageEdit</cstring>
</property>
@@ -114,7 +114,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLabel" row="5" column="0">
+ <widget class="TQLabel" row="5" column="0">
<property name="name">
<cstring>textLabel9</cstring>
</property>
@@ -125,7 +125,7 @@
<cstring>emailEdit</cstring>
</property>
</widget>
- <widget class="QLineEdit" row="5" column="1" rowspan="1" colspan="3">
+ <widget class="TQLineEdit" row="5" column="1" rowspan="1" colspan="3">
<property name="name">
<cstring>emailEdit</cstring>
</property>
@@ -141,7 +141,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLabel" row="6" column="0">
+ <widget class="TQLabel" row="6" column="0">
<property name="name">
<cstring>textLabel10_2</cstring>
</property>
@@ -152,7 +152,7 @@
<cstring>homepageEdit</cstring>
</property>
</widget>
- <widget class="QLineEdit" row="3" column="3">
+ <widget class="TQLineEdit" row="3" column="3">
<property name="name">
<cstring>cellEdit</cstring>
</property>
@@ -168,7 +168,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLineEdit" row="2" column="3">
+ <widget class="TQLineEdit" row="2" column="3">
<property name="name">
<cstring>countryEdit</cstring>
</property>
@@ -176,7 +176,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLineEdit" row="1" column="3">
+ <widget class="TQLineEdit" row="1" column="3">
<property name="name">
<cstring>stateEdit</cstring>
</property>
@@ -192,7 +192,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLabel" row="4" column="0">
+ <widget class="TQLabel" row="4" column="0">
<property name="name">
<cstring>textLabel7_2</cstring>
</property>
@@ -203,7 +203,7 @@
<cstring>faxEdit</cstring>
</property>
</widget>
- <widget class="QLineEdit" row="4" column="1">
+ <widget class="TQLineEdit" row="4" column="1">
<property name="name">
<cstring>faxEdit</cstring>
</property>
@@ -211,7 +211,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLineEdit" row="3" column="1">
+ <widget class="TQLineEdit" row="3" column="1">
<property name="name">
<cstring>phoneEdit</cstring>
</property>
@@ -222,7 +222,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLabel" row="3" column="2">
+ <widget class="TQLabel" row="3" column="2">
<property name="name">
<cstring>textLabel6_2</cstring>
</property>
@@ -233,7 +233,7 @@
<cstring>cellEdit</cstring>
</property>
</widget>
- <widget class="QLineEdit" row="0" column="1" rowspan="1" colspan="3">
+ <widget class="TQLineEdit" row="0" column="1" rowspan="1" colspan="3">
<property name="name">
<cstring>addressEdit</cstring>
</property>
@@ -249,7 +249,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel3</cstring>
</property>
@@ -260,7 +260,7 @@
<cstring>zipEdit</cstring>
</property>
</widget>
- <widget class="QLineEdit" row="2" column="1">
+ <widget class="TQLineEdit" row="2" column="1">
<property name="name">
<cstring>zipEdit</cstring>
</property>
@@ -281,7 +281,7 @@
</widget>
</grid>
</widget>
- <widget class="QGroupBox" row="0" column="0">
+ <widget class="TQGroupBox" row="0" column="0">
<property name="name">
<cstring>groupBox4</cstring>
</property>
@@ -292,7 +292,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLineEdit" row="0" column="3">
+ <widget class="TQLineEdit" row="0" column="3">
<property name="name">
<cstring>uinEdit</cstring>
</property>
@@ -308,7 +308,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>fullNameLabel</cstring>
</property>
@@ -319,7 +319,7 @@
<cstring>fullNameEdit</cstring>
</property>
</widget>
- <widget class="QLineEdit" row="1" column="3">
+ <widget class="TQLineEdit" row="1" column="3">
<property name="name">
<cstring>ipEdit</cstring>
</property>
@@ -331,7 +331,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>125</width>
<height>0</height>
@@ -344,7 +344,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLineEdit" row="2" column="3">
+ <widget class="TQLineEdit" row="2" column="3">
<property name="name">
<cstring>timezoneEdit</cstring>
</property>
@@ -352,7 +352,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLineEdit" row="0" column="1">
+ <widget class="TQLineEdit" row="0" column="1">
<property name="name">
<cstring>nickNameEdit</cstring>
</property>
@@ -368,7 +368,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>nickNameLabel</cstring>
</property>
@@ -379,7 +379,7 @@
<cstring>nickNameEdit</cstring>
</property>
</widget>
- <widget class="QLabel" row="0" column="2">
+ <widget class="TQLabel" row="0" column="2">
<property name="name">
<cstring>uinLabel</cstring>
</property>
@@ -390,7 +390,7 @@
<cstring>uinEdit</cstring>
</property>
</widget>
- <widget class="QLabel" row="3" column="0">
+ <widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>birthdayLabel</cstring>
</property>
@@ -401,12 +401,12 @@
<cstring>birthday</cstring>
</property>
</widget>
- <widget class="QSpinBox" row="3" column="3">
+ <widget class="TQSpinBox" row="3" column="3">
<property name="name">
<cstring>ageSpinBox</cstring>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel6</cstring>
</property>
@@ -417,7 +417,7 @@
<cstring>genderEdit</cstring>
</property>
</widget>
- <widget class="QLineEdit" row="3" column="1">
+ <widget class="TQLineEdit" row="3" column="1">
<property name="name">
<cstring>birthday</cstring>
</property>
@@ -425,7 +425,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLineEdit" row="1" column="1">
+ <widget class="TQLineEdit" row="1" column="1">
<property name="name">
<cstring>fullNameEdit</cstring>
</property>
@@ -433,7 +433,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLineEdit" row="2" column="1">
+ <widget class="TQLineEdit" row="2" column="1">
<property name="name">
<cstring>genderEdit</cstring>
</property>
@@ -441,7 +441,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLabel" row="1" column="2">
+ <widget class="TQLabel" row="1" column="2">
<property name="name">
<cstring>ipLabel</cstring>
</property>
@@ -452,7 +452,7 @@
<cstring>ipEdit</cstring>
</property>
</widget>
- <widget class="QLabel" row="2" column="2">
+ <widget class="TQLabel" row="2" column="2">
<property name="name">
<cstring>textLabel7</cstring>
</property>
@@ -463,7 +463,7 @@
<cstring>timezoneEdit</cstring>
</property>
</widget>
- <widget class="QLabel" row="4" column="0">
+ <widget class="TQLabel" row="4" column="0">
<property name="name">
<cstring>maritalLabel</cstring>
</property>
@@ -471,7 +471,7 @@
<string>Marital status:</string>
</property>
</widget>
- <widget class="QLabel" row="3" column="2">
+ <widget class="TQLabel" row="3" column="2">
<property name="name">
<cstring>textLabel10</cstring>
</property>
@@ -490,7 +490,7 @@
<cstring>ageSpinBox</cstring>
</property>
</widget>
- <widget class="QLineEdit" row="4" column="1" rowspan="1" colspan="3">
+ <widget class="TQLineEdit" row="4" column="1" rowspan="1" colspan="3">
<property name="name">
<cstring>marital</cstring>
</property>
@@ -500,7 +500,7 @@
</widget>
</grid>
</widget>
- <widget class="QGroupBox" row="2" column="0">
+ <widget class="TQGroupBox" row="2" column="0">
<property name="name">
<cstring>groupBox3</cstring>
</property>
@@ -511,7 +511,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLineEdit" row="1" column="1">
+ <widget class="TQLineEdit" row="1" column="1">
<property name="name">
<cstring>oStateEdit</cstring>
</property>
@@ -519,7 +519,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLineEdit" row="2" column="1">
+ <widget class="TQLineEdit" row="2" column="1">
<property name="name">
<cstring>oCountryEdit</cstring>
</property>
@@ -527,7 +527,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLineEdit" row="0" column="1">
+ <widget class="TQLineEdit" row="0" column="1">
<property name="name">
<cstring>oCityEdit</cstring>
</property>
@@ -543,7 +543,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel2_2</cstring>
</property>
@@ -551,7 +551,7 @@
<string>City:</string>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel3_2</cstring>
</property>
@@ -559,7 +559,7 @@
<string>Country:</string>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel1_2</cstring>
</property>
@@ -579,7 +579,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>21</width>
<height>20</height>
@@ -607,5 +607,5 @@
<tabstop>emailEdit</tabstop>
<tabstop>homepageEdit</tabstop>
</tabstops>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/kopete/protocols/oscar/icq/ui/icqinterestinfowidget.ui b/kopete/protocols/oscar/icq/ui/icqinterestinfowidget.ui
index ce4041c9..a8107e44 100644
--- a/kopete/protocols/oscar/icq/ui/icqinterestinfowidget.ui
+++ b/kopete/protocols/oscar/icq/ui/icqinterestinfowidget.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>ICQInterestInfoWidget</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>ICQInterestInfoWidget</cstring>
</property>
@@ -16,7 +16,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QButtonGroup" row="0" column="0">
+ <widget class="TQButtonGroup" row="0" column="0">
<property name="name">
<cstring>buttonGroup1</cstring>
</property>
@@ -27,7 +27,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLineEdit" row="0" column="1">
+ <widget class="TQLineEdit" row="0" column="1">
<property name="name">
<cstring>desc1</cstring>
</property>
@@ -35,7 +35,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLineEdit" row="1" column="1">
+ <widget class="TQLineEdit" row="1" column="1">
<property name="name">
<cstring>desc2</cstring>
</property>
@@ -43,7 +43,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLineEdit" row="2" column="1">
+ <widget class="TQLineEdit" row="2" column="1">
<property name="name">
<cstring>desc3</cstring>
</property>
@@ -51,7 +51,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLineEdit" row="1" column="0">
+ <widget class="TQLineEdit" row="1" column="0">
<property name="name">
<cstring>topic2</cstring>
</property>
@@ -59,7 +59,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLineEdit" row="0" column="0">
+ <widget class="TQLineEdit" row="0" column="0">
<property name="name">
<cstring>topic1</cstring>
</property>
@@ -67,7 +67,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLineEdit" row="2" column="0">
+ <widget class="TQLineEdit" row="2" column="0">
<property name="name">
<cstring>topic3</cstring>
</property>
@@ -75,7 +75,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLineEdit" row="3" column="0">
+ <widget class="TQLineEdit" row="3" column="0">
<property name="name">
<cstring>topic4</cstring>
</property>
@@ -83,7 +83,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLineEdit" row="3" column="1">
+ <widget class="TQLineEdit" row="3" column="1">
<property name="name">
<cstring>desc4</cstring>
</property>
@@ -103,7 +103,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>220</height>
@@ -112,5 +112,5 @@
</spacer>
</grid>
</widget>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/kopete/protocols/oscar/icq/ui/icqotherinfowidget.ui b/kopete/protocols/oscar/icq/ui/icqotherinfowidget.ui
index 4e5a3a34..2e1079a2 100644
--- a/kopete/protocols/oscar/icq/ui/icqotherinfowidget.ui
+++ b/kopete/protocols/oscar/icq/ui/icqotherinfowidget.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>ICQOtherInfoWidget</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>ICQOtherInfoWidget</cstring>
</property>
@@ -26,14 +26,14 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>30</height>
</size>
</property>
</spacer>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel12</cstring>
</property>
@@ -41,12 +41,12 @@
<string>Email addresses:</string>
</property>
</widget>
- <widget class="QListBox" row="1" column="0" rowspan="1" colspan="2">
+ <widget class="TQListBox" row="1" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>emailListBox</cstring>
</property>
</widget>
- <widget class="QLabel" row="2" column="0" rowspan="1" colspan="2">
+ <widget class="TQLabel" row="2" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>textLabel13</cstring>
</property>
@@ -54,7 +54,7 @@
<string>Contact notes:</string>
</property>
</widget>
- <widget class="QTextEdit" row="3" column="0" rowspan="1" colspan="2">
+ <widget class="TQTextEdit" row="3" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>notesEdit</cstring>
</property>
@@ -64,5 +64,5 @@
</widget>
</grid>
</widget>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/kopete/protocols/oscar/icq/ui/icqsearchbase.ui b/kopete/protocols/oscar/icq/ui/icqsearchbase.ui
index 68e59281..5e2b3bf6 100644
--- a/kopete/protocols/oscar/icq/ui/icqsearchbase.ui
+++ b/kopete/protocols/oscar/icq/ui/icqsearchbase.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>ICQSearchBase</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>ICQSearchBase</cstring>
</property>
@@ -114,18 +114,18 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>41</width>
<height>190</height>
</size>
</property>
</spacer>
- <widget class="QTabWidget" row="0" column="0">
+ <widget class="TQTabWidget" row="0" column="0">
<property name="name">
<cstring>tabWidget3</cstring>
</property>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>tab</cstring>
</property>
@@ -136,7 +136,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -147,7 +147,7 @@
<cstring>uin</cstring>
</property>
</widget>
- <widget class="QLineEdit" row="0" column="1">
+ <widget class="TQLineEdit" row="0" column="1">
<property name="name">
<cstring>uin</cstring>
</property>
@@ -162,7 +162,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>105</height>
@@ -171,7 +171,7 @@
</spacer>
</grid>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>tab</cstring>
</property>
@@ -182,17 +182,17 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLineEdit" row="1" column="3">
+ <widget class="TQLineEdit" row="1" column="3">
<property name="name">
<cstring>lastName</cstring>
</property>
</widget>
- <widget class="QLineEdit" row="0" column="1">
+ <widget class="TQLineEdit" row="0" column="1">
<property name="name">
<cstring>nickName</cstring>
</property>
</widget>
- <widget class="QLabel" row="1" column="2">
+ <widget class="TQLabel" row="1" column="2">
<property name="name">
<cstring>textLabel4</cstring>
</property>
@@ -203,7 +203,7 @@
<cstring>lastName</cstring>
</property>
</widget>
- <widget class="QLabel" row="0" column="2">
+ <widget class="TQLabel" row="0" column="2">
<property name="name">
<cstring>textLabel3</cstring>
</property>
@@ -214,7 +214,7 @@
<cstring>firstName</cstring>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel6</cstring>
</property>
@@ -225,7 +225,7 @@
<cstring>email</cstring>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel2</cstring>
</property>
@@ -236,12 +236,12 @@
<cstring>nickName</cstring>
</property>
</widget>
- <widget class="QComboBox" row="3" column="3">
+ <widget class="TQComboBox" row="3" column="3">
<property name="name">
<cstring>country</cstring>
</property>
</widget>
- <widget class="QLabel" row="3" column="0">
+ <widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>textLabel9</cstring>
</property>
@@ -252,17 +252,17 @@
<cstring>language</cstring>
</property>
</widget>
- <widget class="QComboBox" row="3" column="1">
+ <widget class="TQComboBox" row="3" column="1">
<property name="name">
<cstring>language</cstring>
</property>
</widget>
- <widget class="QLineEdit" row="2" column="3">
+ <widget class="TQLineEdit" row="2" column="3">
<property name="name">
<cstring>city</cstring>
</property>
</widget>
- <widget class="QLabel" row="2" column="2">
+ <widget class="TQLabel" row="2" column="2">
<property name="name">
<cstring>textLabel10</cstring>
</property>
@@ -273,17 +273,17 @@
<cstring>city</cstring>
</property>
</widget>
- <widget class="QLineEdit" row="0" column="3">
+ <widget class="TQLineEdit" row="0" column="3">
<property name="name">
<cstring>firstName</cstring>
</property>
</widget>
- <widget class="QLineEdit" row="1" column="1">
+ <widget class="TQLineEdit" row="1" column="1">
<property name="name">
<cstring>email</cstring>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel8</cstring>
</property>
@@ -294,12 +294,12 @@
<cstring>gender</cstring>
</property>
</widget>
- <widget class="QComboBox" row="2" column="1">
+ <widget class="TQComboBox" row="2" column="1">
<property name="name">
<cstring>gender</cstring>
</property>
</widget>
- <widget class="QCheckBox" row="4" column="0" rowspan="1" colspan="2">
+ <widget class="TQCheckBox" row="4" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>onlyOnline</cstring>
</property>
@@ -307,7 +307,7 @@
<string>Only search for online contacts</string>
</property>
</widget>
- <widget class="QLabel" row="3" column="2">
+ <widget class="TQLabel" row="3" column="2">
<property name="name">
<cstring>textLabel11</cstring>
</property>
@@ -328,7 +328,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>16</height>
@@ -345,7 +345,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>166</width>
<height>20</height>
@@ -479,7 +479,7 @@
<tabstop>closeButton</tabstop>
<tabstop>searchResults</tabstop>
</tabstops>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kpushbutton.h</includehint>
<includehint>kpushbutton.h</includehint>
diff --git a/kopete/protocols/oscar/icq/ui/icqsearchdialog.cpp b/kopete/protocols/oscar/icq/ui/icqsearchdialog.cpp
index e52e707f..57c551aa 100644
--- a/kopete/protocols/oscar/icq/ui/icqsearchdialog.cpp
+++ b/kopete/protocols/oscar/icq/ui/icqsearchdialog.cpp
@@ -41,8 +41,8 @@
#include "icqcontact.h"
#include "icquserinfowidget.h"
-ICQSearchDialog::ICQSearchDialog( ICQAccount* account, TQWidget* parent, const char* name )
-: KDialogBase( parent, name, true, i18n( "ICQ User Search" ), 0, NoDefault )
+ICQSearchDialog::ICQSearchDialog( ICQAccount* account, TQWidget* tqparent, const char* name )
+: KDialogBase( tqparent, name, true, i18n( "ICQ User Search" ), 0, NoDefault )
{
m_account = account;
m_searchUI = new ICQSearchBase( this, name );
@@ -171,10 +171,10 @@ void ICQSearchDialog::stopSearch()
void ICQSearchDialog::addContact()
{
- ICQAddContactPage* iacp = dynamic_cast<ICQAddContactPage*>( parent() );
+ ICQAddContactPage* iacp = dynamic_cast<ICQAddContactPage*>( tqparent() );
if ( !iacp )
{
- kdDebug(OSCAR_ICQ_DEBUG) << k_funcinfo << "The ICQ ACP is not our parent!!" << endl;
+ kdDebug(OSCAR_ICQ_DEBUG) << k_funcinfo << "The ICQ ACP is not our tqparent!!" << endl;
}
else
{
@@ -296,13 +296,13 @@ void ICQSearchDialog::searchFinished( int numLeft )
void ICQSearchDialog::clearFields()
{
- m_searchUI->uin->setText( TQString::null );
+ m_searchUI->uin->setText( TQString() );
- m_searchUI->firstName->setText( TQString::null );
- m_searchUI->lastName->setText( TQString::null );
- m_searchUI->nickName->setText( TQString::null );
- m_searchUI->email->setText( TQString::null );
- m_searchUI->city->setText( TQString::null );
+ m_searchUI->firstName->setText( TQString() );
+ m_searchUI->lastName->setText( TQString() );
+ m_searchUI->nickName->setText( TQString() );
+ m_searchUI->email->setText( TQString() );
+ m_searchUI->city->setText( TQString() );
m_searchUI->gender->setCurrentItem( 0 ); // Unspecified
m_searchUI->country->setCurrentItem( 0 );
m_searchUI->language->setCurrentItem( 0 );
@@ -315,6 +315,6 @@ void ICQSearchDialog::newSearch()
clearFields();
}
-//kate: indent-mode csands; space-indent off; replace-tabs off; tab-width 4;
+//kate: indent-mode csands; space-indent off; tqreplace-tabs off; tab-width 4;
#include "icqsearchdialog.moc"
diff --git a/kopete/protocols/oscar/icq/ui/icqsearchdialog.h b/kopete/protocols/oscar/icq/ui/icqsearchdialog.h
index aca61ee7..2dcdd502 100644
--- a/kopete/protocols/oscar/icq/ui/icqsearchdialog.h
+++ b/kopete/protocols/oscar/icq/ui/icqsearchdialog.h
@@ -32,8 +32,9 @@ class ICQUserInfoWidget;
class ICQSearchDialog : public KDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- ICQSearchDialog( ICQAccount* account, TQWidget* parent = 0, const char* name = 0 );
+ ICQSearchDialog( ICQAccount* account, TQWidget* tqparent = 0, const char* name = 0 );
~ICQSearchDialog();
private slots:
@@ -66,4 +67,4 @@ private:
#endif
-//kate: indent-mode csands; space-indent off; replace-tabs off; tab-width 4;
+//kate: indent-mode csands; space-indent off; tqreplace-tabs off; tab-width 4;
diff --git a/kopete/protocols/oscar/icq/ui/icquserinfowidget.cpp b/kopete/protocols/oscar/icq/ui/icquserinfowidget.cpp
index 44fd5afd..3c327198 100644
--- a/kopete/protocols/oscar/icq/ui/icquserinfowidget.cpp
+++ b/kopete/protocols/oscar/icq/ui/icquserinfowidget.cpp
@@ -40,35 +40,35 @@
#include "icqinterestinfowidget.h"
-ICQUserInfoWidget::ICQUserInfoWidget( TQWidget * parent, const char * name )
-: KDialogBase( KDialogBase::IconList, 0, parent, name, false, i18n( "ICQ User Information" ), Ok )
+ICQUserInfoWidget::ICQUserInfoWidget( TQWidget * tqparent, const char * name )
+: KDialogBase( KDialogBase::IconList, 0, tqparent, name, false, i18n( "ICQ User Information" ), Ok )
{
kdDebug(14153) << k_funcinfo << "Creating new icq user info widget" << endl;
TQFrame* genInfo = addPage( i18n( "General Info" ),
i18n( "General ICQ Information" ),
- KGlobal::iconLoader()->loadIcon( TQString::fromLatin1( "identity" ), KIcon::Desktop ) );
+ KGlobal::iconLoader()->loadIcon( TQString::tqfromLatin1( "identity" ), KIcon::Desktop ) );
TQVBoxLayout* genLayout = new TQVBoxLayout( genInfo );
m_genInfoWidget = new ICQGeneralInfoWidget( genInfo, "Basic Information" );
genLayout->addWidget( m_genInfoWidget );
TQFrame* workInfo = addPage( i18n( "Work Info" ),
i18n( "Work Information" ),
- KGlobal::iconLoader()->loadIcon( TQString::fromLatin1( "attach" ), KIcon::Desktop ) );
+ KGlobal::iconLoader()->loadIcon( TQString::tqfromLatin1( "attach" ), KIcon::Desktop ) );
TQVBoxLayout* workLayout = new TQVBoxLayout( workInfo );
m_workInfoWidget = new ICQWorkInfoWidget( workInfo, "Work Information" );
workLayout->addWidget( m_workInfoWidget );
TQFrame* otherInfo = addPage( i18n( "Other Info" ),
i18n( "Other ICQ Information" ),
- KGlobal::iconLoader()->loadIcon( TQString::fromLatin1( "email" ), KIcon::Desktop ) );
+ KGlobal::iconLoader()->loadIcon( TQString::tqfromLatin1( "email" ), KIcon::Desktop ) );
TQVBoxLayout* otherLayout = new TQVBoxLayout( otherInfo );
m_otherInfoWidget = new ICQOtherInfoWidget( otherInfo, "Other Information" );
otherLayout->addWidget( m_otherInfoWidget );
TQFrame* interestInfo = addPage( i18n( "Interest Info" ),
i18n( "Interest" ),
- KGlobal::iconLoader()->loadIcon( TQString::fromLatin1( "email" ), KIcon::Desktop ) );
+ KGlobal::iconLoader()->loadIcon( TQString::tqfromLatin1( "email" ), KIcon::Desktop ) );
TQVBoxLayout* interestLayout = new TQVBoxLayout( interestInfo );
m_interestInfoWidget = new ICQInterestInfoWidget( interestInfo, "Other Information" );
interestLayout->addWidget( m_interestInfoWidget );
@@ -186,5 +186,5 @@ void ICQUserInfoWidget::fillMoreInfo( const ICQMoreUserInfo& ui )
#include "icquserinfowidget.moc"
-//kate: indent-mode csands; tab-width 4; space-indent off; replace-tabs off;
+//kate: indent-mode csands; tab-width 4; space-indent off; tqreplace-tabs off;
diff --git a/kopete/protocols/oscar/icq/ui/icquserinfowidget.h b/kopete/protocols/oscar/icq/ui/icquserinfowidget.h
index ac4048ab..6fd5d84a 100644
--- a/kopete/protocols/oscar/icq/ui/icquserinfowidget.h
+++ b/kopete/protocols/oscar/icq/ui/icquserinfowidget.h
@@ -32,8 +32,9 @@ class ICQContact;
class ICQUserInfoWidget : public KDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- ICQUserInfoWidget( TQWidget* parent = 0, const char* name = 0 );
+ ICQUserInfoWidget( TQWidget* tqparent = 0, const char* name = 0 );
void setContact( ICQContact* contact );
public slots:
@@ -55,4 +56,4 @@ private:
#endif
-//kate: indent-mode csands; tab-width 4; space-indent off; replace-tabs off;
+//kate: indent-mode csands; tab-width 4; space-indent off; tqreplace-tabs off;
diff --git a/kopete/protocols/oscar/icq/ui/icqworkinfowidget.ui b/kopete/protocols/oscar/icq/ui/icqworkinfowidget.ui
index a31021ba..bd6b714a 100644
--- a/kopete/protocols/oscar/icq/ui/icqworkinfowidget.ui
+++ b/kopete/protocols/oscar/icq/ui/icqworkinfowidget.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>ICQWorkInfoWidget</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>ICQWorkInfoWidget</cstring>
</property>
@@ -16,7 +16,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>groupBox2</cstring>
</property>
@@ -27,7 +27,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel10</cstring>
</property>
@@ -35,7 +35,7 @@
<string>Phone:</string>
</property>
</widget>
- <widget class="QLabel" row="1" column="2">
+ <widget class="TQLabel" row="1" column="2">
<property name="name">
<cstring>textLabel11</cstring>
</property>
@@ -43,7 +43,7 @@
<string>Fax:</string>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel6</cstring>
</property>
@@ -51,7 +51,7 @@
<string>Department:</string>
</property>
</widget>
- <widget class="QLineEdit" row="0" column="1">
+ <widget class="TQLineEdit" row="0" column="1">
<property name="name">
<cstring>departmentEdit</cstring>
</property>
@@ -59,7 +59,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLabel" row="0" column="2">
+ <widget class="TQLabel" row="0" column="2">
<property name="name">
<cstring>textLabel7</cstring>
</property>
@@ -67,7 +67,7 @@
<string>Position:</string>
</property>
</widget>
- <widget class="QLineEdit" row="0" column="3">
+ <widget class="TQLineEdit" row="0" column="3">
<property name="name">
<cstring>positionEdit</cstring>
</property>
@@ -75,7 +75,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLineEdit" row="1" column="1">
+ <widget class="TQLineEdit" row="1" column="1">
<property name="name">
<cstring>phoneEdit</cstring>
</property>
@@ -83,7 +83,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLineEdit" row="1" column="3">
+ <widget class="TQLineEdit" row="1" column="3">
<property name="name">
<cstring>faxEdit</cstring>
</property>
@@ -93,7 +93,7 @@
</widget>
</grid>
</widget>
- <widget class="QButtonGroup">
+ <widget class="TQButtonGroup">
<property name="name">
<cstring>buttonGroup1</cstring>
</property>
@@ -104,7 +104,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -112,7 +112,7 @@
<string>Name:</string>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel8</cstring>
</property>
@@ -120,7 +120,7 @@
<string>Homepage:</string>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel2</cstring>
</property>
@@ -128,7 +128,7 @@
<string>Address:</string>
</property>
</widget>
- <widget class="QLabel" row="5" column="0">
+ <widget class="TQLabel" row="5" column="0">
<property name="name">
<cstring>textLabel4</cstring>
</property>
@@ -136,7 +136,7 @@
<string>Zip:</string>
</property>
</widget>
- <widget class="QLabel" row="4" column="0">
+ <widget class="TQLabel" row="4" column="0">
<property name="name">
<cstring>textLabel5</cstring>
</property>
@@ -144,7 +144,7 @@
<string>State:</string>
</property>
</widget>
- <widget class="QLabel" row="3" column="0">
+ <widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>textLabel3</cstring>
</property>
@@ -152,7 +152,7 @@
<string>City:</string>
</property>
</widget>
- <widget class="QLabel" row="6" column="0">
+ <widget class="TQLabel" row="6" column="0">
<property name="name">
<cstring>textLabel9</cstring>
</property>
@@ -168,7 +168,7 @@
<string>Country:</string>
</property>
</widget>
- <widget class="QLineEdit" row="0" column="1">
+ <widget class="TQLineEdit" row="0" column="1">
<property name="name">
<cstring>companyEdit</cstring>
</property>
@@ -176,7 +176,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLineEdit" row="1" column="1">
+ <widget class="TQLineEdit" row="1" column="1">
<property name="name">
<cstring>homepageEdit</cstring>
</property>
@@ -184,7 +184,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLineEdit" row="2" column="1">
+ <widget class="TQLineEdit" row="2" column="1">
<property name="name">
<cstring>addressEdit</cstring>
</property>
@@ -192,7 +192,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLineEdit" row="3" column="1">
+ <widget class="TQLineEdit" row="3" column="1">
<property name="name">
<cstring>cityEdit</cstring>
</property>
@@ -200,7 +200,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLineEdit" row="4" column="1">
+ <widget class="TQLineEdit" row="4" column="1">
<property name="name">
<cstring>stateEdit</cstring>
</property>
@@ -208,7 +208,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLineEdit" row="5" column="1">
+ <widget class="TQLineEdit" row="5" column="1">
<property name="name">
<cstring>zipEdit</cstring>
</property>
@@ -216,7 +216,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLineEdit" row="6" column="1">
+ <widget class="TQLineEdit" row="6" column="1">
<property name="name">
<cstring>countryEdit</cstring>
</property>
@@ -236,7 +236,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>70</height>
@@ -245,5 +245,5 @@
</spacer>
</vbox>
</widget>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/kopete/protocols/oscar/liboscar/HACKING b/kopete/protocols/oscar/liboscar/HACKING
index 9bd25476..36a6edf5 100644
--- a/kopete/protocols/oscar/liboscar/HACKING
+++ b/kopete/protocols/oscar/liboscar/HACKING
@@ -101,7 +101,7 @@ Spaces
================================================================================
Spaces should be used between the conditional / loop type and the
-conditional statement. They should also not be used after parenthesis. However
+conditional statement. They should also not be used after tqparenthesis. However
the should be to mark of mathematical or comparative operators.
if ( foo == bar )
@@ -122,15 +122,15 @@ not be inline in the headers. The organization of the members in a class should
roughly as follows:
public:
-public slots:
+public Q_SLOTS:
protected:
-protected slots:
-signals:
+protected Q_SLOTS:
+Q_SIGNALS:
private: // member funtions
-private slots:
+private Q_SLOTS:
private: // member variables
-If there are no private slots there is no need for two private sections, however
+If there are no private Q_SLOTS there is no need for two private sections, however
private functions and private variables should be clearly separated.
The implementations files -- .cpp files -- should follow (when possible) the
@@ -188,7 +188,7 @@ written in this document. Those files that don't match will be corrected eventua
To make things easier on you, kate modelines are provided at the end of certain files
to help enforce the coding style. If you're using the new C S&S Indenter that will be in
KDE 3.4, I can provide a patch that will automatically implement the space padding around
-parenthesis. Please mail me so I can send it to you.
+tqparenthesis. Please mail me so I can send it to you.
Matt Rogers <mattr@kde.org>
diff --git a/kopete/protocols/oscar/liboscar/aimlogintask.cpp b/kopete/protocols/oscar/liboscar/aimlogintask.cpp
index da066333..05a63198 100644
--- a/kopete/protocols/oscar/liboscar/aimlogintask.cpp
+++ b/kopete/protocols/oscar/liboscar/aimlogintask.cpp
@@ -29,8 +29,8 @@
using namespace Oscar;
-AimLoginTask::AimLoginTask( Task* parent )
- : Task ( parent )
+AimLoginTask::AimLoginTask( Task* tqparent )
+ : Task ( tqparent )
{
}
@@ -158,7 +158,7 @@ void AimLoginTask::sendLoginRequest()
outbuf->addTLV(0x0001, client()->userId().length(), client()->userId().latin1());
- TQByteArray digest( 17 ); //apparently MD5 digests are 16 bytes long
+ TQByteArray digest( 17 ); //aptqparently MD5 digests are 16 bytes long
encodePassword( digest );
digest[16] = '\0'; //do this so that addTLV sees a NULL-terminator
@@ -189,7 +189,7 @@ void AimLoginTask::handleLoginResponse()
if ( !st )
{
- setError( -1 , TQString::null );
+ setError( -1 , TQString() );
return;
}
@@ -211,7 +211,7 @@ void AimLoginTask::handleLoginResponse()
errorNum << endl;
Oscar::SNAC s = { 0, 0, 0, 0 };
client()->fatalTaskError( s, errorNum );
- setError( errorNum, TQString::null );
+ setError( errorNum, TQString() );
return; //if there's an error, we'll need to disconnect anyways
}
@@ -220,7 +220,7 @@ void AimLoginTask::handleLoginResponse()
{
TQString ip = TQString( server.data );
kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "found TLV(5) [SERVER] " << ip << endl;
- int index = ip.find( ':' );
+ int index = ip.tqfind( ':' );
m_bosHost = ip.left( index );
ip.remove( 0 , index+1 ); //get rid of the colon and everything before it
m_bosPort = ip.left(4); //we only need 4 bytes
@@ -233,7 +233,7 @@ void AimLoginTask::handleLoginResponse()
{
kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "found TLV(6) [COOKIE]" << endl;
m_cookie.duplicate( cookie.data );
- setSuccess( 0, TQString::null );
+ setSuccess( 0, TQString() );
}
tlvList.clear();
}
diff --git a/kopete/protocols/oscar/liboscar/aimlogintask.h b/kopete/protocols/oscar/liboscar/aimlogintask.h
index cc564592..11761ad5 100644
--- a/kopete/protocols/oscar/liboscar/aimlogintask.h
+++ b/kopete/protocols/oscar/liboscar/aimlogintask.h
@@ -26,8 +26,9 @@ using namespace Oscar;
class AimLoginTask : public Task
{
Q_OBJECT
+ TQ_OBJECT
public:
- AimLoginTask( Task* parent );
+ AimLoginTask( Task* tqparent );
~AimLoginTask();
bool take( Transfer* transfer );
virtual void onGo();
diff --git a/kopete/protocols/oscar/liboscar/blmlimitstask.cpp b/kopete/protocols/oscar/liboscar/blmlimitstask.cpp
index 0b866de8..b61c5cdd 100644
--- a/kopete/protocols/oscar/liboscar/blmlimitstask.cpp
+++ b/kopete/protocols/oscar/liboscar/blmlimitstask.cpp
@@ -23,8 +23,8 @@
#include "oscartypes.h"
#include "oscarutils.h"
-BLMLimitsTask::BLMLimitsTask( Task* parent )
- : Task( parent )
+BLMLimitsTask::BLMLimitsTask( Task* tqparent )
+ : Task( tqparent )
{
}
@@ -71,7 +71,7 @@ bool BLMLimitsTask::take(Transfer* transfer)
break;
}
}
- setSuccess( 0, TQString::null );
+ setSuccess( 0, TQString() );
return true;
}
else
diff --git a/kopete/protocols/oscar/liboscar/blmlimitstask.h b/kopete/protocols/oscar/liboscar/blmlimitstask.h
index 7ded03a7..49fa11d0 100644
--- a/kopete/protocols/oscar/liboscar/blmlimitstask.h
+++ b/kopete/protocols/oscar/liboscar/blmlimitstask.h
@@ -28,7 +28,7 @@ Fetch the limits for the BLM service
class BLMLimitsTask : public Task
{
public:
- BLMLimitsTask( Task* parent );
+ BLMLimitsTask( Task* tqparent );
~BLMLimitsTask();
diff --git a/kopete/protocols/oscar/liboscar/buddyicontask.cpp b/kopete/protocols/oscar/liboscar/buddyicontask.cpp
index facaae1a..1feccdc4 100644
--- a/kopete/protocols/oscar/liboscar/buddyicontask.cpp
+++ b/kopete/protocols/oscar/liboscar/buddyicontask.cpp
@@ -27,8 +27,8 @@
#include "oscarutils.h"
#include <typeinfo>
-BuddyIconTask::BuddyIconTask( Task* parent )
- :Task( parent )
+BuddyIconTask::BuddyIconTask( Task* tqparent )
+ :Task( tqparent )
{
m_seq = 0;
m_refNum = -1;
@@ -125,7 +125,7 @@ bool BuddyIconTask::take( Transfer* transfer )
else
handleICQBuddyIconResponse();
- setSuccess( 0, TQString::null );
+ setSuccess( 0, TQString() );
setTransfer( 0 );
return true;
}
@@ -153,7 +153,7 @@ void BuddyIconTask::handleUploadResponse()
TQByteArray hash( b->getBlock( iconHashSize ) );
//check the hash
kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "hash " << hash << endl;
- setSuccess( 0, TQString::null );
+ setSuccess( 0, TQString() );
}
diff --git a/kopete/protocols/oscar/liboscar/buddyicontask.h b/kopete/protocols/oscar/liboscar/buddyicontask.h
index f00a5b23..2eb5294a 100644
--- a/kopete/protocols/oscar/liboscar/buddyicontask.h
+++ b/kopete/protocols/oscar/liboscar/buddyicontask.h
@@ -28,8 +28,9 @@ class Transfer;
class BuddyIconTask : public Task
{
Q_OBJECT
+ TQ_OBJECT
public:
- BuddyIconTask( Task* parent );
+ BuddyIconTask( Task* tqparent );
void uploadIcon( WORD length, const TQByteArray& data );
void setReferenceNum( WORD num );
diff --git a/kopete/protocols/oscar/liboscar/buffer.cpp b/kopete/protocols/oscar/liboscar/buffer.cpp
index 23dca1bb..c778d382 100644
--- a/kopete/protocols/oscar/liboscar/buffer.cpp
+++ b/kopete/protocols/oscar/liboscar/buffer.cpp
@@ -34,7 +34,7 @@ Buffer::Buffer( const Buffer& other )
mReadPos = other.mReadPos;
}
-Buffer::Buffer(const char *b, Q_ULONG len)
+Buffer::Buffer(const char *b, TQ_ULONG len)
{
mBuffer.duplicate(b, len);
mReadPos=0;
@@ -376,7 +376,7 @@ int Buffer::addChatTLV(const WORD type, const WORD exchange,
void Buffer::expandBuffer(unsigned int inc)
{
- mBuffer.resize(mBuffer.size()+inc, TQGArray::SpeedOptim);
+ mBuffer.tqresize(mBuffer.size()+inc, TQGArray::SpeedOptim);
}
TQCString Buffer::getLNTS()
@@ -451,7 +451,7 @@ TQByteArray Buffer::getBUIN()
char *Buffer::buffer() const
{
- return mBuffer.data();
+ return const_cast<char*>(mBuffer.data());
}
int Buffer::length() const
@@ -477,7 +477,7 @@ TQString Buffer::toString() const
if ( c < 0x10 )
hex.append("0");
- hex.append(TQString("%1 ").arg(c, 0, 16));
+ hex.append(TQString("%1 ").tqarg(c, 0, 16));
ascii.append(isprint(c) ? c : '.');
@@ -485,8 +485,8 @@ TQString Buffer::toString() const
{
output += hex + " |" + ascii + "|\n";
i=0;
- hex=TQString::null;
- ascii=TQString::null;
+ hex=TQString();
+ ascii=TQString();
}
}
diff --git a/kopete/protocols/oscar/liboscar/buffer.h b/kopete/protocols/oscar/liboscar/buffer.h
index 1bcf91d9..1bcce492 100644
--- a/kopete/protocols/oscar/liboscar/buffer.h
+++ b/kopete/protocols/oscar/liboscar/buffer.h
@@ -45,7 +45,7 @@ class Buffer
* Constructor that creates a prefilled buffer of @p len length
* that contains the data from @p b.
*/
- Buffer(const char *b, Q_ULONG len);
+ Buffer(const char *b, TQ_ULONG len);
/**
* \brief Create a prefilled buffer
diff --git a/kopete/protocols/oscar/liboscar/bytestream.cpp b/kopete/protocols/oscar/liboscar/bytestream.cpp
index 87603c76..f2fb8e51 100644
--- a/kopete/protocols/oscar/liboscar/bytestream.cpp
+++ b/kopete/protocols/oscar/liboscar/bytestream.cpp
@@ -63,9 +63,9 @@ public:
};
//!
-//! Constructs a ByteStream object with parent \a parent.
-ByteStream::ByteStream(TQObject *parent)
-:TQObject(parent)
+//! Constructs a ByteStream object with tqparent \a tqparent.
+ByteStream::ByteStream(TQObject *tqparent)
+:TQObject(tqparent)
{
d = new Private;
}
diff --git a/kopete/protocols/oscar/liboscar/bytestream.h b/kopete/protocols/oscar/liboscar/bytestream.h
index a990a940..c4dc96e1 100644
--- a/kopete/protocols/oscar/liboscar/bytestream.h
+++ b/kopete/protocols/oscar/liboscar/bytestream.h
@@ -27,12 +27,13 @@
// CS_NAMESPACE_BEGIN
// CS_EXPORT_BEGIN
-class ByteStream : public QObject
+class ByteStream : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
enum Error { ErrRead, ErrWrite, ErrCustom = 10 };
- ByteStream(TQObject *parent=0);
+ ByteStream(TQObject *tqparent=0);
virtual ~ByteStream()=0;
virtual bool isOpen() const;
diff --git a/kopete/protocols/oscar/liboscar/changevisibilitytask.cpp b/kopete/protocols/oscar/liboscar/changevisibilitytask.cpp
index 7c6ff26a..b4dfff4a 100644
--- a/kopete/protocols/oscar/liboscar/changevisibilitytask.cpp
+++ b/kopete/protocols/oscar/liboscar/changevisibilitytask.cpp
@@ -30,7 +30,7 @@
#include "transfer.h"
-ChangeVisibilityTask::ChangeVisibilityTask(Task* parent): Task(parent)
+ChangeVisibilityTask::ChangeVisibilityTask(Task* tqparent): Task(tqparent)
{
m_sequence = 0;
m_visible = true;
@@ -64,13 +64,13 @@ bool ChangeVisibilityTask::take(Transfer* transfer)
if ( forMe( transfer ) )
{
setTransfer( transfer );
- setSuccess( 0, TQString::null );
+ setSuccess( 0, TQString() );
setTransfer( 0 );
return true;
}
else
{
- setError( 0, TQString::null );
+ setError( 0, TQString() );
return false;
}
}
@@ -82,7 +82,7 @@ void ChangeVisibilityTask::onGo()
if ( !item )
{
kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "Didn't find a visibility item" << endl;
- setError( 0, TQString::null );
+ setError( 0, TQString() );
return;
}
@@ -97,7 +97,7 @@ void ChangeVisibilityTask::onGo()
if ( Oscar::uptateTLVs( newSSI, tList ) == false )
{
kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "Visibility didn't change, don't update" << endl;
- setSuccess( 0, TQString::null );
+ setSuccess( 0, TQString() );
return;
}
@@ -147,4 +147,4 @@ void ChangeVisibilityTask::sendEditEnd()
send( t5 );
}
-//kate: indent-mode csands; space-indent off; replace-tabs off; tab-width 4;
+//kate: indent-mode csands; space-indent off; tqreplace-tabs off; tab-width 4;
diff --git a/kopete/protocols/oscar/liboscar/changevisibilitytask.h b/kopete/protocols/oscar/liboscar/changevisibilitytask.h
index 0ec5ab04..9d8676b3 100644
--- a/kopete/protocols/oscar/liboscar/changevisibilitytask.h
+++ b/kopete/protocols/oscar/liboscar/changevisibilitytask.h
@@ -30,7 +30,7 @@
class ChangeVisibilityTask : public Task
{
public:
- ChangeVisibilityTask( Task* parent );
+ ChangeVisibilityTask( Task* tqparent );
~ChangeVisibilityTask();
void setVisible( bool visible = true );
@@ -55,4 +55,4 @@ private:
#endif
-//kate: indent-mode csands; space-indent off; replace-tabs off; tab-width 4;
+//kate: indent-mode csands; space-indent off; tqreplace-tabs off; tab-width 4;
diff --git a/kopete/protocols/oscar/liboscar/chatnavservicetask.cpp b/kopete/protocols/oscar/liboscar/chatnavservicetask.cpp
index 914de496..350c58d1 100644
--- a/kopete/protocols/oscar/liboscar/chatnavservicetask.cpp
+++ b/kopete/protocols/oscar/liboscar/chatnavservicetask.cpp
@@ -25,7 +25,7 @@
#include "connection.h"
-ChatNavServiceTask::ChatNavServiceTask( Task* parent ) : Task( parent )
+ChatNavServiceTask::ChatNavServiceTask( Task* tqparent ) : Task( tqparent )
{
m_type = Limits;
}
@@ -97,7 +97,7 @@ bool ChatNavServiceTask::take( Transfer* transfer )
}
- setSuccess( 0, TQString::null );
+ setSuccess( 0, TQString() );
setTransfer( 0 );
return true;
@@ -262,7 +262,7 @@ void ChatNavServiceTask::handleBasicRoomInfo( const TLV& t )
kdDebug(OSCAR_RAW_DEBUG) << "moderator" << endl;
break;
case 0x6D:
- kdDebug(OSCAR_RAW_DEBUG) << "num children" << endl;
+ kdDebug(OSCAR_RAW_DEBUG) << "num tqchildren" << endl;
break;
case 0x06F:
kdDebug(OSCAR_RAW_DEBUG) << "occupancy" << endl;
diff --git a/kopete/protocols/oscar/liboscar/chatnavservicetask.h b/kopete/protocols/oscar/liboscar/chatnavservicetask.h
index 8af63247..4c417e3b 100644
--- a/kopete/protocols/oscar/liboscar/chatnavservicetask.h
+++ b/kopete/protocols/oscar/liboscar/chatnavservicetask.h
@@ -30,8 +30,9 @@ class Transfer;
class ChatNavServiceTask : public Task
{
Q_OBJECT
+ TQ_OBJECT
public:
- ChatNavServiceTask( Task* parent );
+ ChatNavServiceTask( Task* tqparent );
~ChatNavServiceTask();
enum RequestType { Limits = 0x0002, Exchange, Room, ExtRoom, Members,
diff --git a/kopete/protocols/oscar/liboscar/chatservicetask.cpp b/kopete/protocols/oscar/liboscar/chatservicetask.cpp
index c8998495..8d9c55e8 100644
--- a/kopete/protocols/oscar/liboscar/chatservicetask.cpp
+++ b/kopete/protocols/oscar/liboscar/chatservicetask.cpp
@@ -30,8 +30,8 @@
#include "buffer.h"
#include "oscartypes.h"
-ChatServiceTask::ChatServiceTask( Task* parent, Oscar::WORD exchange, const TQString& room )
- : Task( parent ), m_encoding( "us-ascii" )
+ChatServiceTask::ChatServiceTask( Task* tqparent, Oscar::WORD exchange, const TQString& room )
+ : Task( tqparent ), m_encoding( "us-ascii" )
{
m_exchange = exchange;
m_room = room;
@@ -56,7 +56,7 @@ void ChatServiceTask::onGo()
{
if ( !m_message )
{
- setSuccess( true, TQString::null );
+ setSuccess( true, TQString() );
return;
}
@@ -158,7 +158,7 @@ bool ChatServiceTask::take( Transfer* t )
break;
};
- setSuccess( 0, TQString::null );
+ setSuccess( 0, TQString() );
setTransfer( 0 );
return true;
}
@@ -341,7 +341,7 @@ void ChatServiceTask::parseChatMessage()
Oscar::Message omessage;
omessage.setReceiver( client()->userId() );
omessage.setSender( sender );
- omessage.setTimestamp( TQDateTime::currentDateTime() );
+ omessage.setTimestamp( TQDateTime::tqcurrentDateTime() );
omessage.setText( Oscar::Message::UTF8, msgText );
omessage.setType( 0x03 );
omessage.setExchange( m_exchange );
diff --git a/kopete/protocols/oscar/liboscar/chatservicetask.h b/kopete/protocols/oscar/liboscar/chatservicetask.h
index 5f19fcae..d9805068 100644
--- a/kopete/protocols/oscar/liboscar/chatservicetask.h
+++ b/kopete/protocols/oscar/liboscar/chatservicetask.h
@@ -28,8 +28,9 @@ class Transfer;
class ChatServiceTask : public Task
{
Q_OBJECT
+ TQ_OBJECT
public:
- ChatServiceTask( Task* parent, Oscar::WORD exchange, const TQString& room );
+ ChatServiceTask( Task* tqparent, Oscar::WORD exchange, const TQString& room );
~ChatServiceTask();
void onGo();
diff --git a/kopete/protocols/oscar/liboscar/client.cpp b/kopete/protocols/oscar/liboscar/client.cpp
index 222d9d69..53e38ed1 100644
--- a/kopete/protocols/oscar/liboscar/client.cpp
+++ b/kopete/protocols/oscar/liboscar/client.cpp
@@ -98,7 +98,7 @@ public:
TQValueList<WORD> redirectionServices;
WORD currentRedirect;
TQByteArray cookie;
- DWORD connectAsStatus; // icq only
+ DWORD connectAstqStatus; // icq only
TQString connectWithMessage; // icq only
Oscar::Settings* settings;
@@ -128,7 +128,7 @@ public:
struct AwayMsgRequest
{
TQString contact;
- ICQStatus contactStatus;
+ ICQtqStatus contacttqStatus;
};
TQValueList<AwayMsgRequest> awayMsgRequestQueue;
TQTimer* awayMsgRequestTimer;
@@ -137,8 +137,8 @@ public:
const Oscar::ClientVersion* version;
};
-Client::Client( TQObject* parent )
-:TQObject( parent, "oscarclient" )
+Client::Client( TQObject* tqparent )
+:TQObject( tqparent, "oscarclient" )
{
m_loginTask = 0L;
m_loginTaskTwo = 0L;
@@ -149,7 +149,7 @@ Client::Client( TQObject* parent )
d->isIcq = false; //default to AIM
d->redirectRequested = false;
d->currentRedirect = 0;
- d->connectAsStatus = 0x0; // default to online
+ d->connectAstqStatus = 0x0; // default to online
d->ssiManager = new SSIManager( this );
d->settings = new Oscar::Settings();
d->errorTask = 0L;
@@ -222,8 +222,8 @@ void Client::close()
//don't clear the stored status between stage one and two
if ( d->stage == ClientPrivate::StageTwo )
{
- d->connectAsStatus = 0x0;
- d->connectWithMessage = TQString::null;
+ d->connectAstqStatus = 0x0;
+ d->connectWithMessage = TQString();
}
d->exchanges.clear();
@@ -233,10 +233,10 @@ void Client::close()
d->ssiManager->clear();
}
-void Client::setStatus( AIMStatus status, const TQString &_message )
+void Client::settqStatus( AIMtqStatus status, const TQString &_message )
{
// AIM: you're away exactly when your away message isn't empty.
- // can't use TQString::null as a message either; ProfileTask
+ // can't use TQString() as a message either; ProfileTask
// interprets null as "don't change".
TQString message;
if ( status == Online )
@@ -257,7 +257,7 @@ void Client::setStatus( AIMStatus status, const TQString &_message )
pt->go( true );
}
-void Client::setStatus( DWORD status, const TQString &message )
+void Client::settqStatus( DWORD status, const TQString &message )
{
// remember the message to reply with, when requested
kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "Setting status message to "<< message << endl;
@@ -292,7 +292,7 @@ void Client::setStatus( DWORD status, const TQString &message )
}
else
{
- d->connectAsStatus = status;
+ d->connectAstqStatus = status;
d->connectWithMessage = message;
}
}
@@ -399,7 +399,7 @@ void Client::serviceSetupFinished()
d->active = true;
if ( isIcq() )
- setStatus( d->connectAsStatus, d->connectWithMessage );
+ settqStatus( d->connectAstqStatus, d->connectWithMessage );
d->ownStatusTask->go();
@@ -431,7 +431,7 @@ void Client::receivedIcqInfo( const TQString& contact, unsigned int type )
emit receivedIcqLongInfo( contact );
}
-void Client::receivedInfo( Q_UINT16 sequence )
+void Client::receivedInfo( TQ_UINT16 sequence )
{
UserDetails details = d->userInfoTask->getInfoFor( sequence );
emit receivedUserInfo( details.userId(), details );
@@ -807,8 +807,8 @@ void Client::sendWarning( const TQString& contact, bool anonymous )
WarningTask* warnTask = new WarningTask( c->rootTask() );
warnTask->setContact( contact );
warnTask->setAnonymous( anonymous );
- TQObject::connect( warnTask, TQT_SIGNAL( userWarned( const TQString&, Q_UINT16, Q_UINT16 ) ),
- this, TQT_SIGNAL( userWarned( const TQString&, Q_UINT16, Q_UINT16 ) ) );
+ TQObject::connect( warnTask, TQT_SIGNAL( userWarned( const TQString&, TQ_UINT16, TQ_UINT16 ) ),
+ this, TQT_SIGNAL( userWarned( const TQString&, TQ_UINT16, TQ_UINT16 ) ) );
warnTask->go( true );
}
@@ -862,14 +862,14 @@ void Client::requestAIMAwayMessage( const TQString& contact )
d->userInfoTask->requestInfoFor( contact, UserInfoTask::AwayMessage );
}
-void Client::requestICQAwayMessage( const TQString& contact, ICQStatus contactStatus )
+void Client::requestICQAwayMessage( const TQString& contact, ICQtqStatus contacttqStatus )
{
kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "requesting away message for " << contact << endl;
Oscar::Message msg;
msg.setType( 2 );
msg.setReceiver( contact );
msg.addProperty( Oscar::Message::StatusMessageRequest );
- switch ( contactStatus )
+ switch ( contacttqStatus )
{
case ICQAway:
msg.setMessageType( 0xE8 ); // away
@@ -894,7 +894,7 @@ void Client::requestICQAwayMessage( const TQString& contact, ICQStatus contactSt
sendMessage( msg );
}
-void Client::addICQAwayMessageRequest( const TQString& contact, ICQStatus contactStatus )
+void Client::addICQAwayMessageRequest( const TQString& contact, ICQtqStatus contacttqStatus )
{
kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "adding away message request for "
<< contact << " to queue" << endl;
@@ -902,7 +902,7 @@ void Client::addICQAwayMessageRequest( const TQString& contact, ICQStatus contac
//remove old request if still exists
removeICQAwayMessageRequest( contact );
- ClientPrivate::AwayMsgRequest amr = { contact, contactStatus };
+ ClientPrivate::AwayMsgRequest amr = { contact, contacttqStatus };
d->awayMsgRequestQueue.prepend( amr );
if ( !d->awayMsgRequestTimer->isActive() )
@@ -959,7 +959,7 @@ void Client::nextICQAwayMessageRequest()
amr = d->awayMsgRequestQueue.back();
d->awayMsgRequestQueue.pop_back();
- requestICQAwayMessage( amr.contact, amr.contactStatus );
+ requestICQAwayMessage( amr.contact, amr.contacttqStatus );
}
void Client::requestStatusInfo( const TQString& contact )
@@ -1099,7 +1099,7 @@ void Client::requestServerRedirect( WORD family, WORD exchange,
if ( !c )
return;
- if ( d->redirectionServices.findIndex( family ) == -1 )
+ if ( d->redirectionServices.tqfindIndex( family ) == -1 )
d->redirectionServices.append( family ); //don't add families twice
if ( d->currentRedirect != 0 )
@@ -1125,11 +1125,11 @@ void Client::requestServerRedirect( WORD family, WORD exchange,
void Client::haveServerForRedirect( const TQString& host, const TQByteArray& cookie, WORD )
{
//nasty sender() usage to get the task with chat room info
- TQObject* o = const_cast<TQObject*>( sender() );
+ TQObject* o = TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>( sender() ));
ServerRedirectTask* srt = dynamic_cast<ServerRedirectTask*>( o );
//create a new connection and set it up
- int colonPos = host.find(':');
+ int colonPos = host.tqfind(':');
TQString realHost, realPort;
if ( colonPos != -1 )
{
@@ -1139,7 +1139,7 @@ void Client::haveServerForRedirect( const TQString& host, const TQByteArray& coo
else
{
realHost = host;
- realPort = TQString::fromLatin1("5190");
+ realPort = TQString::tqfromLatin1("5190");
}
Connection* c = createConnection( realHost, realPort );
@@ -1246,7 +1246,7 @@ void Client::determineDisconnection( int code, const TQString& string )
return;
//yay for the sender() hack!
- TQObject* obj = const_cast<TQObject*>( sender() );
+ TQObject* obj = TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>( sender() ));
Connection* c = dynamic_cast<Connection*>( obj );
if ( !c )
return;
@@ -1350,4 +1350,4 @@ bool Client::hasIconConnection( ) const
}
#include "client.moc"
-//kate: tab-width 4; indent-mode csands; space-indent off; replace-tabs off;
+//kate: tab-width 4; indent-mode csands; space-indent off; tqreplace-tabs off;
diff --git a/kopete/protocols/oscar/liboscar/client.h b/kopete/protocols/oscar/liboscar/client.h
index 78597746..5e9cc61b 100644
--- a/kopete/protocols/oscar/liboscar/client.h
+++ b/kopete/protocols/oscar/liboscar/client.h
@@ -47,9 +47,10 @@ namespace Oscar
class Settings;
}
-class KOPETE_EXPORT Client : public QObject
+class KOPETE_EXPORT Client : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
@@ -67,14 +68,14 @@ public:
FatalProtocolError = 3
};
- enum AIMStatus { Online = 0, Away };
- enum ICQStatus { ICQOnline = 0, ICQAway, ICQNotAvailable, ICQOccupied, ICQDoNotDisturb, ICQFreeForChat };
+ enum AIMtqStatus { Online = 0, Away };
+ enum ICQtqStatus { ICQOnline = 0, ICQAway, ICQNotAvailable, ICQOccupied, ICQDoNotDisturb, ICQFreeForChat };
/*************
EXTERNAL API
*************/
- Client(TQObject *parent=0);
+ Client(TQObject *tqparent=0);
~Client();
/**
@@ -102,9 +103,9 @@ public:
/** Logout and disconnect */
void close();
/** Set our status for AIM */
- void setStatus( AIMStatus status, const TQString &message = TQString::null );
+ void settqStatus( AIMtqStatus status, const TQString &message = TQString() );
/** Set our status for ICQ */
- void setStatus( DWORD status, const TQString &message = TQString::null );
+ void settqStatus( DWORD status, const TQString &message = TQString() );
/** Retrieve our user info */
UserDetails ourInfo() const;
@@ -255,7 +256,7 @@ public:
* Add the icq away message request to queue
* \param contact the contact to get info for
*/
- void addICQAwayMessageRequest( const TQString& contact, ICQStatus contactStatus );
+ void addICQAwayMessageRequest( const TQString& contact, ICQtqStatus contacttqStatus );
/**
* Remove the icq away message request from queue
@@ -280,7 +281,7 @@ public:
//! Start a server redirect for a different service
void requestServerRedirect( WORD family, WORD e = 0, TQByteArray c = TQByteArray(),
- WORD instance = 0, const TQString& room = TQString::null );
+ WORD instance = 0, const TQString& room = TQString() );
//! Start uploading a buddy icon
void sendBuddyIcon( const TQByteArray& imageData );
@@ -411,7 +412,7 @@ signals:
void receivedUserInfo( const TQString& contact, const UserDetails& details );
/** We warned a user */
- void userWarned( const TQString& contact, Q_UINT16 increase, Q_UINT16 newLevel );
+ void userWarned( const TQString& contact, TQ_UINT16 increase, TQ_UINT16 newLevel );
/** Search signals */
void gotSearchResults( const ICQSearchResult& );
@@ -462,7 +463,7 @@ protected slots:
void receivedIcqInfo( const TQString& contact, unsigned int type );
/** we have normal user info for a contact */
- void receivedInfo( Q_UINT16 sequence );
+ void receivedInfo( TQ_UINT16 sequence );
/** received a message of some kind */
void receivedMessage( const Oscar::Message& msg );
@@ -504,7 +505,7 @@ private:
* \param contact the contact to get info for
*/
//TODO only made a default for testing w/o frontend
- void requestICQAwayMessage( const TQString& contact, ICQStatus contactStatus = ICQAway );
+ void requestICQAwayMessage( const TQString& contact, ICQtqStatus contacttqStatus = ICQAway );
private:
class ClientPrivate;
diff --git a/kopete/protocols/oscar/liboscar/clientreadytask.cpp b/kopete/protocols/oscar/liboscar/clientreadytask.cpp
index d5b65069..0f324f1a 100644
--- a/kopete/protocols/oscar/liboscar/clientreadytask.cpp
+++ b/kopete/protocols/oscar/liboscar/clientreadytask.cpp
@@ -28,7 +28,7 @@
using namespace Oscar;
-ClientReadyTask::ClientReadyTask(Task* parent): Task(parent)
+ClientReadyTask::ClientReadyTask(Task* tqparent): Task(tqparent)
{
m_classList = client()->rateManager()->classList();
}
@@ -102,7 +102,7 @@ void ClientReadyTask::onGo()
//with the hell that is oscar login. (just wait until you get a message)
Transfer* t = createTransfer( f, s, buffer );
send( t );
- setSuccess( 0, TQString::null );
+ setSuccess( 0, TQString() );
}
diff --git a/kopete/protocols/oscar/liboscar/clientreadytask.h b/kopete/protocols/oscar/liboscar/clientreadytask.h
index d632351f..ac570895 100644
--- a/kopete/protocols/oscar/liboscar/clientreadytask.h
+++ b/kopete/protocols/oscar/liboscar/clientreadytask.h
@@ -30,7 +30,7 @@ Fire and forget task to let the server know we're ready
class ClientReadyTask : public Task
{
public:
- ClientReadyTask( Task* parent );
+ ClientReadyTask( Task* tqparent );
~ClientReadyTask();
virtual void onGo();
diff --git a/kopete/protocols/oscar/liboscar/closeconnectiontask.cpp b/kopete/protocols/oscar/liboscar/closeconnectiontask.cpp
index 3b062b2a..d85ca4df 100644
--- a/kopete/protocols/oscar/liboscar/closeconnectiontask.cpp
+++ b/kopete/protocols/oscar/liboscar/closeconnectiontask.cpp
@@ -28,8 +28,8 @@
using namespace Oscar;
-CloseConnectionTask::CloseConnectionTask( Task* parent )
- : Task(parent)
+CloseConnectionTask::CloseConnectionTask( Task* tqparent )
+ : Task(tqparent)
{
}
@@ -98,7 +98,7 @@ bool CloseConnectionTask::take( Transfer* transfer )
{
kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "found TLV(5) [SERVER] " << TQString( server.data ) << endl;
TQString ip = server.data;
- int index = ip.find( ':' );
+ int index = ip.tqfind( ':' );
m_bosHost = ip.left( index );
ip.remove( 0 , index+1 ); //get rid of the colon and everything before it
m_bosPort = ip;
diff --git a/kopete/protocols/oscar/liboscar/closeconnectiontask.h b/kopete/protocols/oscar/liboscar/closeconnectiontask.h
index c3001ba7..8bda062f 100644
--- a/kopete/protocols/oscar/liboscar/closeconnectiontask.h
+++ b/kopete/protocols/oscar/liboscar/closeconnectiontask.h
@@ -31,7 +31,7 @@ class TQString;
class CloseConnectionTask : public Task
{
public:
- CloseConnectionTask(Task* parent);
+ CloseConnectionTask(Task* tqparent);
~CloseConnectionTask();
@@ -59,4 +59,4 @@ private:
#endif
-//kate: indent-mode csands; space-indent off; tab-width 4; replace-tabs off;
+//kate: indent-mode csands; space-indent off; tab-width 4; tqreplace-tabs off;
diff --git a/kopete/protocols/oscar/liboscar/connection.cpp b/kopete/protocols/oscar/liboscar/connection.cpp
index a4bc4877..03452153 100644
--- a/kopete/protocols/oscar/liboscar/connection.cpp
+++ b/kopete/protocols/oscar/liboscar/connection.cpp
@@ -96,7 +96,7 @@ void Connection::close()
bool Connection::isSupported( int family ) const
{
- return ( d->familyList.findIndex( family ) != -1 );
+ return ( d->familyList.tqfindIndex( family ) != -1 );
}
TQValueList<int> Connection::supportedFamilies() const
@@ -129,7 +129,7 @@ Oscar::Settings* Connection::settings() const
return d->client->clientSettings();
}
-Q_UINT16 Connection::flapSequence()
+TQ_UINT16 Connection::flapSequence()
{
d->flapSequence++;
if ( d->flapSequence >= 0x8000 ) //the max flap sequence is 0x8000 ( HEX )
@@ -138,7 +138,7 @@ Q_UINT16 Connection::flapSequence()
return d->flapSequence;
}
-Q_UINT32 Connection::snacSequence()
+TQ_UINT32 Connection::snacSequence()
{
d->snacSequence++;
return d->snacSequence;
diff --git a/kopete/protocols/oscar/liboscar/connection.h b/kopete/protocols/oscar/liboscar/connection.h
index f2c1da75..b840a597 100644
--- a/kopete/protocols/oscar/liboscar/connection.h
+++ b/kopete/protocols/oscar/liboscar/connection.h
@@ -45,9 +45,10 @@ class Settings;
* connection to an OSCAR server
* @author Matt Rogers
*/
-class Connection : public QObject
+class Connection : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
Connection( Connector* connector, ClientStream* cs, const char* name = 0 );
@@ -125,17 +126,17 @@ public:
/**
* Get the chat room name for this connection.
- * @return the name of the room or TQString::null if not connected to a room
+ * @return the name of the room or TQString() if not connected to a room
*/
/** Get the user settings object */
Oscar::Settings* settings() const;
/** Get the current FLAP sequence for this connection */
- Q_UINT16 flapSequence();
+ TQ_UINT16 flapSequence();
/** Get the current SNAC sequence for this connection */
- Q_UINT32 snacSequence();
+ TQ_UINT32 snacSequence();
/** Get the cookie for this connection */
TQByteArray cookie() const;
diff --git a/kopete/protocols/oscar/liboscar/connectionhandler.cpp b/kopete/protocols/oscar/liboscar/connectionhandler.cpp
index bd4df3c5..3f2c1eff 100644
--- a/kopete/protocols/oscar/liboscar/connectionhandler.cpp
+++ b/kopete/protocols/oscar/liboscar/connectionhandler.cpp
@@ -112,16 +112,16 @@ Connection* ConnectionHandler::defaultConnection() const
void ConnectionHandler::addChatInfoForConnection( Connection* c, Oscar::WORD exchange, const TQString& room )
{
- if ( d->connections.findIndex( c ) == -1 )
+ if ( d->connections.tqfindIndex( c ) == -1 )
d->connections.append( c );
- ConnectionRoomInfo info = qMakePair( exchange, room );
+ ConnectionRoomInfo info = tqMakePair( exchange, room );
d->chatRoomConnections[c] = info;
}
Connection* ConnectionHandler::connectionForChatRoom( Oscar::WORD exchange, const TQString& room )
{
- ConnectionRoomInfo infoToFind = qMakePair( exchange, room );
+ ConnectionRoomInfo infoToFind = tqMakePair( exchange, room );
TQMap<Connection*, ConnectionRoomInfo>::iterator it, itEnd = d->chatRoomConnections.end();
for ( it = d->chatRoomConnections.begin(); it != itEnd; ++it )
{
@@ -137,8 +137,8 @@ Connection* ConnectionHandler::connectionForChatRoom( Oscar::WORD exchange, cons
TQString ConnectionHandler::chatRoomForConnection( Connection* c )
{
- if ( d->connections.findIndex( c ) == -1 )
- return TQString::null;
+ if ( d->connections.tqfindIndex( c ) == -1 )
+ return TQString();
TQMap<Connection*, ConnectionRoomInfo>::iterator it, itEnd = d->chatRoomConnections.end();
for ( it = d->chatRoomConnections.begin(); it != itEnd; ++it )
@@ -150,13 +150,13 @@ TQString ConnectionHandler::chatRoomForConnection( Connection* c )
}
}
- return TQString::null;
+ return TQString();
}
Oscar::WORD ConnectionHandler::exchangeForConnection( Connection* c )
{
- if ( d->connections.findIndex( c ) == -1 )
+ if ( d->connections.tqfindIndex( c ) == -1 )
return 0xFFFF;
TQMap<Connection*, ConnectionRoomInfo>::iterator it, itEnd = d->chatRoomConnections.end();
diff --git a/kopete/protocols/oscar/liboscar/connectionhandler.h b/kopete/protocols/oscar/liboscar/connectionhandler.h
index e8c50b12..c87ee298 100644
--- a/kopete/protocols/oscar/liboscar/connectionhandler.h
+++ b/kopete/protocols/oscar/liboscar/connectionhandler.h
@@ -26,7 +26,7 @@
class Connection;
-typedef QPair<Oscar::WORD, TQString> ConnectionRoomInfo;
+typedef TQPair<Oscar::WORD, TQString> ConnectionRoomInfo;
/**
@author Kopete Developers
@@ -98,7 +98,7 @@ public:
* Get the room name for the chat room based the connection
* @return The name of the chat room that this connection is connected to
* If the connection passed in by @p c is not a chat room connection then
- * TQString::null is returned.
+ * TQString() is returned.
*/
TQString chatRoomForConnection( Connection* c );
diff --git a/kopete/protocols/oscar/liboscar/connector.cpp b/kopete/protocols/oscar/liboscar/connector.cpp
index c754e2d3..fff59980 100644
--- a/kopete/protocols/oscar/liboscar/connector.cpp
+++ b/kopete/protocols/oscar/liboscar/connector.cpp
@@ -20,8 +20,8 @@
#include "connector.h"
-Connector::Connector(TQObject *parent)
-:TQObject(parent)
+Connector::Connector(TQObject *tqparent)
+:TQObject(tqparent)
{
setPeerAddressNone();
}
@@ -40,7 +40,7 @@ TQHostAddress Connector::peerAddress() const
return addr;
}
-Q_UINT16 Connector::peerPort() const
+TQ_UINT16 Connector::peerPort() const
{
return port;
}
@@ -52,7 +52,7 @@ void Connector::setPeerAddressNone()
port = 0;
}
-void Connector::setPeerAddress(const TQHostAddress &_addr, Q_UINT16 _port)
+void Connector::setPeerAddress(const TQHostAddress &_addr, TQ_UINT16 _port)
{
haveaddr = true;
addr = _addr;
diff --git a/kopete/protocols/oscar/liboscar/connector.h b/kopete/protocols/oscar/liboscar/connector.h
index 3844ba49..d1d96e4d 100644
--- a/kopete/protocols/oscar/liboscar/connector.h
+++ b/kopete/protocols/oscar/liboscar/connector.h
@@ -27,11 +27,12 @@
class ByteStream;
-class Connector : public QObject
+class Connector : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
- Connector(TQObject *parent=0);
+ Connector(TQObject *tqparent=0);
virtual ~Connector();
virtual void connectToServer(const TQString &server)=0;
@@ -40,7 +41,7 @@ public:
bool havePeerAddress() const;
TQHostAddress peerAddress() const;
- Q_UINT16 peerPort() const;
+ TQ_UINT16 peerPort() const;
signals:
void connected();
@@ -48,12 +49,12 @@ signals:
protected:
void setPeerAddressNone();
- void setPeerAddress(const TQHostAddress &addr, Q_UINT16 port);
+ void setPeerAddress(const TQHostAddress &addr, TQ_UINT16 port);
private:
bool haveaddr;
TQHostAddress addr;
- Q_UINT16 port;
+ TQ_UINT16 port;
};
#endif
diff --git a/kopete/protocols/oscar/liboscar/coreprotocol.cpp b/kopete/protocols/oscar/liboscar/coreprotocol.cpp
index 918b3751..472618fe 100644
--- a/kopete/protocols/oscar/liboscar/coreprotocol.cpp
+++ b/kopete/protocols/oscar/liboscar/coreprotocol.cpp
@@ -54,7 +54,7 @@ static TQString toString( const TQByteArray& buffer )
if ( c < 0x10 )
hex.append("0");
- hex.append(TQString("%1 ").arg(c, 0, 16));
+ hex.append(TQString("%1 ").tqarg(c, 0, 16));
ascii.append(isprint(c) ? c : '.');
@@ -62,8 +62,8 @@ static TQString toString( const TQByteArray& buffer )
{
output += hex + " |" + ascii + "|\n";
i=0;
- hex=TQString::null;
- ascii=TQString::null;
+ hex=TQString();
+ ascii=TQString();
}
}
@@ -152,7 +152,7 @@ Transfer* CoreProtocol::incomingTransfer()
void cp_dump( const TQByteArray &bytes )
{
#ifdef OSCAR_COREPROTOCOL_DEBUG
- kdDebug(OSCAR_RAW_DEBUG) << "contains: " << bytes.count() << " bytes" << endl;
+ kdDebug(OSCAR_RAW_DEBUG) << "tqcontains: " << bytes.count() << " bytes" << endl;
for ( uint i = 0; i < bytes.count(); ++i )
{
printf( "%02x ", bytes[ i ] );
diff --git a/kopete/protocols/oscar/liboscar/coreprotocol.h b/kopete/protocols/oscar/liboscar/coreprotocol.h
index bbc9b693..807679ba 100644
--- a/kopete/protocols/oscar/liboscar/coreprotocol.h
+++ b/kopete/protocols/oscar/liboscar/coreprotocol.h
@@ -29,9 +29,10 @@ class FlapProtocol;
class SnacProtocol;
class Transfer;
-class CoreProtocol : public QObject
+class CoreProtocol : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
enum State { NeedMore, Available, NoData, OutOfSync };
diff --git a/kopete/protocols/oscar/liboscar/errortask.cpp b/kopete/protocols/oscar/liboscar/errortask.cpp
index 9e9ce95b..3620addb 100644
--- a/kopete/protocols/oscar/liboscar/errortask.cpp
+++ b/kopete/protocols/oscar/liboscar/errortask.cpp
@@ -20,8 +20,8 @@
#include "oscartypes.h"
#include "transfer.h"
-ErrorTask::ErrorTask( Task* parent )
- : Task( parent )
+ErrorTask::ErrorTask( Task* tqparent )
+ : Task( tqparent )
{
}
diff --git a/kopete/protocols/oscar/liboscar/errortask.h b/kopete/protocols/oscar/liboscar/errortask.h
index f74152db..1199eb92 100644
--- a/kopete/protocols/oscar/liboscar/errortask.h
+++ b/kopete/protocols/oscar/liboscar/errortask.h
@@ -27,7 +27,7 @@ Handles OSCAR protocol errors received from the server on snac subtype 0x01
class ErrorTask : public Task
{
public:
- ErrorTask( Task* parent );
+ ErrorTask( Task* tqparent );
~ErrorTask();
bool take( Transfer* transfer );
diff --git a/kopete/protocols/oscar/liboscar/flapprotocol.cpp b/kopete/protocols/oscar/liboscar/flapprotocol.cpp
index f5e9fa03..eaa12166 100644
--- a/kopete/protocols/oscar/liboscar/flapprotocol.cpp
+++ b/kopete/protocols/oscar/liboscar/flapprotocol.cpp
@@ -28,8 +28,8 @@
using namespace Oscar;
-FlapProtocol::FlapProtocol(TQObject *parent, const char *name)
- : InputProtocolBase(parent, name)
+FlapProtocol::FlapProtocol(TQObject *tqparent, const char *name)
+ : InputProtocolBase(tqparent, name)
{
}
@@ -57,7 +57,7 @@ Transfer* FlapProtocol::parse( const TQByteArray & packet, uint& bytes )
<< " sequence: " << f.sequence << " length: " << f.length << endl;
//use pointer arithmatic to skip the flap and snac headers
//so we don't have to do double parsing in the tasks
- char* charPacket = packet.data();
+ char* charPacket = const_cast<char*>(packet.data());
char* snacData = charPacket + 6;
Buffer *snacBuffer = new Buffer( snacData, f.length );
diff --git a/kopete/protocols/oscar/liboscar/flapprotocol.h b/kopete/protocols/oscar/liboscar/flapprotocol.h
index 3d6de53b..2574df50 100644
--- a/kopete/protocols/oscar/liboscar/flapprotocol.h
+++ b/kopete/protocols/oscar/liboscar/flapprotocol.h
@@ -28,8 +28,9 @@ class FlapTransfer;
class FlapProtocol : public InputProtocolBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- FlapProtocol( TQObject *parent = 0, const char *name = 0 );
+ FlapProtocol( TQObject *tqparent = 0, const char *name = 0 );
~FlapProtocol();
/**
diff --git a/kopete/protocols/oscar/liboscar/icbmparamstask.cpp b/kopete/protocols/oscar/liboscar/icbmparamstask.cpp
index 5b00a8fd..0aee0f98 100644
--- a/kopete/protocols/oscar/liboscar/icbmparamstask.cpp
+++ b/kopete/protocols/oscar/liboscar/icbmparamstask.cpp
@@ -24,8 +24,8 @@
#include "oscarutils.h"
#include "buffer.h"
-ICBMParamsTask::ICBMParamsTask( Task* parent )
- : Task( parent )
+ICBMParamsTask::ICBMParamsTask( Task* tqparent )
+ : Task( tqparent )
{}
@@ -137,7 +137,7 @@ void ICBMParamsTask::sendMessageParams( int channel )
Transfer* st = createTransfer( f, s, buffer );
send( st );
- setSuccess( 0, TQString::null );
+ setSuccess( 0, TQString() );
}
//kate: tab-width 4; indent-mode csands;
diff --git a/kopete/protocols/oscar/liboscar/icbmparamstask.h b/kopete/protocols/oscar/liboscar/icbmparamstask.h
index c7bdfb16..b3091fa8 100644
--- a/kopete/protocols/oscar/liboscar/icbmparamstask.h
+++ b/kopete/protocols/oscar/liboscar/icbmparamstask.h
@@ -28,7 +28,7 @@ Get the parameters we need to follow for instant messages
class ICBMParamsTask : public Task
{
public:
- ICBMParamsTask( Task* parent );
+ ICBMParamsTask( Task* tqparent );
~ICBMParamsTask();
bool forMe( const Transfer* transfer ) const;
diff --git a/kopete/protocols/oscar/liboscar/icqlogintask.cpp b/kopete/protocols/oscar/liboscar/icqlogintask.cpp
index 76feaf42..9bc58452 100644
--- a/kopete/protocols/oscar/liboscar/icqlogintask.cpp
+++ b/kopete/protocols/oscar/liboscar/icqlogintask.cpp
@@ -26,8 +26,8 @@
using namespace Oscar;
-IcqLoginTask::IcqLoginTask( Task* parent )
- : Task( parent )
+IcqLoginTask::IcqLoginTask( Task* tqparent )
+ : Task( tqparent )
{
}
@@ -85,7 +85,7 @@ TQString IcqLoginTask::encodePassword( const TQString& loginPassword )
// TODO: check if latin1 is the right conversion
const char *password = loginPassword.latin1();
unsigned int i = 0;
- TQString encodedPassword = TQString::null;
+ TQString encodedPassword = TQString();
//encoding table used in ICQ password XOR transformation
unsigned char encoding_table[] =
diff --git a/kopete/protocols/oscar/liboscar/icqlogintask.h b/kopete/protocols/oscar/liboscar/icqlogintask.h
index 3d865756..e13b1f99 100644
--- a/kopete/protocols/oscar/liboscar/icqlogintask.h
+++ b/kopete/protocols/oscar/liboscar/icqlogintask.h
@@ -30,8 +30,9 @@ using namespace Oscar;
class IcqLoginTask : public Task
{
Q_OBJECT
+ TQ_OBJECT
public:
- IcqLoginTask( Task* parent );
+ IcqLoginTask( Task* tqparent );
~IcqLoginTask();
bool take( Transfer* transfer );
virtual void onGo();
diff --git a/kopete/protocols/oscar/liboscar/icqtask.cpp b/kopete/protocols/oscar/liboscar/icqtask.cpp
index bb58a9c4..ccedd0d9 100644
--- a/kopete/protocols/oscar/liboscar/icqtask.cpp
+++ b/kopete/protocols/oscar/liboscar/icqtask.cpp
@@ -24,8 +24,8 @@
#include <kdebug.h>
-ICQTask::ICQTask( Task * parent )
- : Task( parent )
+ICQTask::ICQTask( Task * tqparent )
+ : Task( tqparent )
{
m_icquin = client()->userId().toULong();
m_sequence = 0;
@@ -148,4 +148,4 @@ void ICQTask::setRequestSubType( WORD subType )
#include "icqtask.moc"
-//kate: space-indent off; tab-width 4; replace-tabs off; indent-mode csands;
+//kate: space-indent off; tab-width 4; tqreplace-tabs off; indent-mode csands;
diff --git a/kopete/protocols/oscar/liboscar/icqtask.h b/kopete/protocols/oscar/liboscar/icqtask.h
index 7d134b49..9397163a 100644
--- a/kopete/protocols/oscar/liboscar/icqtask.h
+++ b/kopete/protocols/oscar/liboscar/icqtask.h
@@ -28,8 +28,9 @@ class Buffer;
class ICQTask : public Task
{
Q_OBJECT
+ TQ_OBJECT
public:
- ICQTask( Task* parent );
+ ICQTask( Task* tqparent );
~ICQTask();
virtual void onGo();
diff --git a/kopete/protocols/oscar/liboscar/icquserinfo.cpp b/kopete/protocols/oscar/liboscar/icquserinfo.cpp
index bc37d313..a4a5f78c 100644
--- a/kopete/protocols/oscar/liboscar/icquserinfo.cpp
+++ b/kopete/protocols/oscar/liboscar/icquserinfo.cpp
@@ -259,4 +259,4 @@ ICQWPSearchInfo::ICQWPSearchInfo()
-//kate: space-indent off; tab-width 4; replace-tabs off; indent-mode csands;
+//kate: space-indent off; tab-width 4; tqreplace-tabs off; indent-mode csands;
diff --git a/kopete/protocols/oscar/liboscar/icquserinfo.h b/kopete/protocols/oscar/liboscar/icquserinfo.h
index 3c3510f4..685859a6 100644
--- a/kopete/protocols/oscar/liboscar/icquserinfo.h
+++ b/kopete/protocols/oscar/liboscar/icquserinfo.h
@@ -164,7 +164,7 @@ class KOPETE_EXPORT ICQSearchResult
public:
ICQSearchResult();
void fill( Buffer* buffer );
- Q_UINT32 uin;
+ TQ_UINT32 uin;
TQCString firstName;
TQCString lastName;
TQCString nickName;
@@ -172,7 +172,7 @@ public:
bool auth;
bool online;
char gender;
- Q_UINT16 age;
+ TQ_UINT16 age;
};
class KOPETE_EXPORT ICQWPSearchInfo
@@ -210,4 +210,4 @@ typedef TQValueList<ICQInfoItem> ICQInfoItemList;
*/
#endif
-//kate: space-indent off; tab-width 4; replace-tabs off; indent-mode csands;
+//kate: space-indent off; tab-width 4; tqreplace-tabs off; indent-mode csands;
diff --git a/kopete/protocols/oscar/liboscar/icquserinfotask.cpp b/kopete/protocols/oscar/liboscar/icquserinfotask.cpp
index 3635bc71..6a915ca8 100644
--- a/kopete/protocols/oscar/liboscar/icquserinfotask.cpp
+++ b/kopete/protocols/oscar/liboscar/icquserinfotask.cpp
@@ -23,7 +23,7 @@
#include "buffer.h"
-ICQUserInfoRequestTask::ICQUserInfoRequestTask( Task* parent ) : ICQTask( parent )
+ICQUserInfoRequestTask::ICQUserInfoRequestTask( Task* tqparent ) : ICQTask( tqparent )
{
//by default, request short info. it saves bandwidth
m_type = Short;
@@ -231,4 +231,4 @@ TQString ICQUserInfoRequestTask::notesInfoFor( const TQString& contact )
#include "icquserinfotask.moc"
-//kate: indent-mode csands; tab-width 4; space-indent off; replace-tabs off;
+//kate: indent-mode csands; tab-width 4; space-indent off; tqreplace-tabs off;
diff --git a/kopete/protocols/oscar/liboscar/icquserinfotask.h b/kopete/protocols/oscar/liboscar/icquserinfotask.h
index 613608fd..27aa4a68 100644
--- a/kopete/protocols/oscar/liboscar/icquserinfotask.h
+++ b/kopete/protocols/oscar/liboscar/icquserinfotask.h
@@ -33,8 +33,9 @@ class Transfer;
class ICQUserInfoRequestTask : public ICQTask
{
Q_OBJECT
+ TQ_OBJECT
public:
- ICQUserInfoRequestTask( Task* parent );
+ ICQUserInfoRequestTask( Task* tqparent );
~ICQUserInfoRequestTask();
enum { Long = 0, Short };
@@ -74,4 +75,4 @@ private:
};
#endif
-//kate: indent-mode csands; tab-width 4; space-indent off; replace-tabs off;
+//kate: indent-mode csands; tab-width 4; space-indent off; tqreplace-tabs off;
diff --git a/kopete/protocols/oscar/liboscar/inputprotocolbase.cpp b/kopete/protocols/oscar/liboscar/inputprotocolbase.cpp
index b93ede3f..2054ace7 100644
--- a/kopete/protocols/oscar/liboscar/inputprotocolbase.cpp
+++ b/kopete/protocols/oscar/liboscar/inputprotocolbase.cpp
@@ -18,8 +18,8 @@
#include "inputprotocolbase.h"
-InputProtocolBase::InputProtocolBase(TQObject *parent, const char *name)
- : TQObject(parent, name)
+InputProtocolBase::InputProtocolBase(TQObject *tqparent, const char *name)
+ : TQObject(tqparent, name)
{
m_state = NeedMore;
m_bytes = 0;
@@ -64,11 +64,11 @@ bool InputProtocolBase::okToProceed()
bool InputProtocolBase::safeReadBytes( TQCString & data, uint & len )
{
// read the length of the bytes
- Q_UINT32 val;
+ TQ_UINT32 val;
if ( !okToProceed() )
return false;
*m_din >> val;
- m_bytes += sizeof( Q_UINT32 );
+ m_bytes += sizeof( TQ_UINT32 );
if ( val > 1024 )
return false;
//qDebug( "EventProtocol::safeReadBytes() - expecting %i bytes", val );
@@ -83,7 +83,7 @@ bool InputProtocolBase::safeReadBytes( TQCString & data, uint & len )
// the rest of the string will be filled with FF,
// so look for that in the last position instead of \0
// this caused a crash - guessing that temp.length() is set to the number of bytes actually read...
- // if ( (Q_UINT8)( * ( temp.data() + ( temp.length() - 1 ) ) ) == 0xFF )
+ // if ( (TQ_UINT8)( * ( temp.data() + ( temp.length() - 1 ) ) ) == 0xFF )
if ( temp.length() < ( val - 1 ) )
{
qDebug( "InputProtocol::safeReadBytes() - string broke, giving up, only got: %i bytes out of %i", temp.length(), val );
diff --git a/kopete/protocols/oscar/liboscar/inputprotocolbase.h b/kopete/protocols/oscar/liboscar/inputprotocolbase.h
index 94072e00..bf2235ef 100644
--- a/kopete/protocols/oscar/liboscar/inputprotocolbase.h
+++ b/kopete/protocols/oscar/liboscar/inputprotocolbase.h
@@ -27,12 +27,13 @@ Defines a basic interface for protocols dealing with input from the GroupWise se
@author Matt Rogers
*/
-class InputProtocolBase : public QObject
+class InputProtocolBase : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
enum EventProtocolState { Success, NeedMore, OutOfSync, ProtocolError };
- InputProtocolBase(TQObject *parent = 0, const char *name = 0);
+ InputProtocolBase(TQObject *tqparent = 0, const char *name = 0);
~InputProtocolBase();
/**
* Returns a value describing the state of the object.
@@ -57,7 +58,7 @@ protected:
*/
bool okToProceed();
/**
- * read a Q_UINT32 giving the number of following bytes, then a string of that length
+ * read a TQ_UINT32 giving the number of following bytes, then a string of that length
* updates the bytes parsed counter
* @return false if the string was broken or there was no data available at all
*/
diff --git a/kopete/protocols/oscar/liboscar/locationrightstask.cpp b/kopete/protocols/oscar/liboscar/locationrightstask.cpp
index f019b961..dec65031 100644
--- a/kopete/protocols/oscar/liboscar/locationrightstask.cpp
+++ b/kopete/protocols/oscar/liboscar/locationrightstask.cpp
@@ -26,8 +26,8 @@
using namespace Oscar;
-LocationRightsTask::LocationRightsTask( Task* parent )
- : Task( parent )
+LocationRightsTask::LocationRightsTask( Task* tqparent )
+ : Task( tqparent )
{
}
@@ -80,7 +80,7 @@ void LocationRightsTask::sendLocationRightsRequest()
void LocationRightsTask::handleLocationRightsResponse()
{
kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "Ignoring location rights response" << endl;
- setSuccess( 0, TQString::null );
+ setSuccess( 0, TQString() );
}
diff --git a/kopete/protocols/oscar/liboscar/locationrightstask.h b/kopete/protocols/oscar/liboscar/locationrightstask.h
index a3e82767..cbc17e10 100644
--- a/kopete/protocols/oscar/liboscar/locationrightstask.h
+++ b/kopete/protocols/oscar/liboscar/locationrightstask.h
@@ -36,7 +36,7 @@ This task implements the following SNACS:
class LocationRightsTask : public Task
{
public:
- LocationRightsTask( Task* parent );
+ LocationRightsTask( Task* tqparent );
~LocationRightsTask();
bool take( Transfer* transfer );
diff --git a/kopete/protocols/oscar/liboscar/logintask.cpp b/kopete/protocols/oscar/liboscar/logintask.cpp
index a153f8f7..10d62e6d 100644
--- a/kopete/protocols/oscar/liboscar/logintask.cpp
+++ b/kopete/protocols/oscar/liboscar/logintask.cpp
@@ -37,8 +37,8 @@
* Stage One Task Implementation
*/
-StageOneLoginTask::StageOneLoginTask( Task* parent )
- : Task ( parent )
+StageOneLoginTask::StageOneLoginTask( Task* tqparent )
+ : Task ( tqparent )
{
m_aimTask = 0L;
m_icqTask = 0L;
@@ -137,8 +137,8 @@ const TQString& StageOneLoginTask::bosPort() const
/**
* Stage Two Task Implementation
*/
-StageTwoLoginTask::StageTwoLoginTask( Task* parent )
- : Task( parent )
+StageTwoLoginTask::StageTwoLoginTask( Task* tqparent )
+ : Task( tqparent )
{
//Create our tasks
Task* rootTask = client()->rootTask();
@@ -188,7 +188,7 @@ void StageTwoLoginTask::onGo()
send( ft );
}
else
- setError( -1, TQString::null );
+ setError( -1, TQString() );
return;
}
@@ -210,7 +210,7 @@ void StageTwoLoginTask::versionTaskFinished()
void StageTwoLoginTask::rateTaskFinished()
{
- setSuccess( 0, TQString::null );
+ setSuccess( 0, TQString() );
}
#include "logintask.moc"
diff --git a/kopete/protocols/oscar/liboscar/logintask.h b/kopete/protocols/oscar/liboscar/logintask.h
index 77ee7690..6a61dc9f 100644
--- a/kopete/protocols/oscar/liboscar/logintask.h
+++ b/kopete/protocols/oscar/liboscar/logintask.h
@@ -44,8 +44,9 @@ class Transfer;
class StageOneLoginTask : public Task
{
Q_OBJECT
+ TQ_OBJECT
public:
- StageOneLoginTask( Task* parent );
+ StageOneLoginTask( Task* tqparent );
~StageOneLoginTask();
bool take( Transfer* transfer );
@@ -103,8 +104,9 @@ class RateInfoTask;
class StageTwoLoginTask : public Task
{
Q_OBJECT
+ TQ_OBJECT
public:
- StageTwoLoginTask( Task* parent );
+ StageTwoLoginTask( Task* tqparent );
~StageTwoLoginTask();
bool take( Transfer* transfer );
void onGo();
diff --git a/kopete/protocols/oscar/liboscar/md5.c b/kopete/protocols/oscar/liboscar/md5.c
index e6273585..1ca18d13 100644
--- a/kopete/protocols/oscar/liboscar/md5.c
+++ b/kopete/protocols/oscar/liboscar/md5.c
@@ -55,7 +55,7 @@ main()
"abc", /*900150983cd24fb0d6963f7d28e17f72*/
"message digest", /*f96b697d7cb7938d525a2f31aaf161d0*/
"abcdefghijklmnopqrstuvwxyz", /*c3fcd3d76192e4007dfb496cca67e13b*/
- "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
+ "ABCDEFGHIJKLMNOPTQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
/*d174ab98d277d9f5a5611c2c9f419d9f*/
"12345678901234567890123456789012345678901234567890123456789012345678901234567890" /*57edf4a22be3c955ac49da2e2107b67a*/
};
diff --git a/kopete/protocols/oscar/liboscar/messagereceivertask.cpp b/kopete/protocols/oscar/liboscar/messagereceivertask.cpp
index 0dd26e3d..bf8e2350 100644
--- a/kopete/protocols/oscar/liboscar/messagereceivertask.cpp
+++ b/kopete/protocols/oscar/liboscar/messagereceivertask.cpp
@@ -25,7 +25,7 @@
#include "userdetails.h"
-MessageReceiverTask::MessageReceiverTask( Task* parent ) : Task( parent )
+MessageReceiverTask::MessageReceiverTask( Task* tqparent ) : Task( tqparent )
{
}
@@ -176,7 +176,7 @@ void MessageReceiverTask::handleType1Message()
msg.setSender( m_fromUser );
msg.setReceiver( client()->userId() );
- msg.setTimestamp( TQDateTime::currentDateTime() );
+ msg.setTimestamp( TQDateTime::tqcurrentDateTime() );
msg.setType( 0x01 );
emit receivedMessage( msg );
@@ -332,7 +332,7 @@ void MessageReceiverTask::handleType4Message()
}
msg.setType( 0x04 );
- msg.setTimestamp( TQDateTime::currentDateTime() );
+ msg.setTimestamp( TQDateTime::tqcurrentDateTime() );
msg.setSender( msgSender );
msg.setReceiver( client()->userId() );
msg.setEncoding( Oscar::Message::UserDefined );
@@ -422,7 +422,7 @@ void MessageReceiverTask::parseRendezvousData( Buffer* b, Oscar::Message* msg )
break;
TQByteArray cap( b->getBlock( capLength ) );
- if ( qstrncmp ( cap.data(), "{0946134E-4C7F-11D1-8222-444553540000}", capLength ) == 0 )
+ if ( tqstrncmp ( cap.data(), "{0946134E-4C7F-11D1-8222-444553540000}", capLength ) == 0 )
encoding = Oscar::Message::UTF8;
}
}
@@ -437,7 +437,7 @@ void MessageReceiverTask::parseRendezvousData( Buffer* b, Oscar::Message* msg )
msg->setSender( m_fromUser );
msg->setReceiver( client()->userId() );
- msg->setTimestamp( TQDateTime::currentDateTime() );
+ msg->setTimestamp( TQDateTime::tqcurrentDateTime() );
msg->setType( 0x02 );
msg->setIcbmCookie( m_icbmCookie );
msg->setProtocolVersion( protocolVersion );
diff --git a/kopete/protocols/oscar/liboscar/messagereceivertask.h b/kopete/protocols/oscar/liboscar/messagereceivertask.h
index 011243be..55df700a 100644
--- a/kopete/protocols/oscar/liboscar/messagereceivertask.h
+++ b/kopete/protocols/oscar/liboscar/messagereceivertask.h
@@ -32,9 +32,10 @@ class TQTextCodec;
class MessageReceiverTask : public Task
{
Q_OBJECT
+ TQ_OBJECT
public:
- MessageReceiverTask( Task* parent );
+ MessageReceiverTask( Task* tqparent );
~MessageReceiverTask();
virtual bool forMe( const Transfer* transfer ) const;
diff --git a/kopete/protocols/oscar/liboscar/offlinemessagestask.cpp b/kopete/protocols/oscar/liboscar/offlinemessagestask.cpp
index 88d41a84..2fc70b45 100644
--- a/kopete/protocols/oscar/liboscar/offlinemessagestask.cpp
+++ b/kopete/protocols/oscar/liboscar/offlinemessagestask.cpp
@@ -26,8 +26,8 @@
#include <kdebug.h>
-OfflineMessagesTask::OfflineMessagesTask( Task* parent )
- : ICQTask( parent )
+OfflineMessagesTask::OfflineMessagesTask( Task* tqparent )
+ : ICQTask( tqparent )
{
tzset();
m_sequence = 0;
diff --git a/kopete/protocols/oscar/liboscar/offlinemessagestask.h b/kopete/protocols/oscar/liboscar/offlinemessagestask.h
index da2454d3..3433d762 100644
--- a/kopete/protocols/oscar/liboscar/offlinemessagestask.h
+++ b/kopete/protocols/oscar/liboscar/offlinemessagestask.h
@@ -30,8 +30,9 @@ ICQ Offline messages handling
class OfflineMessagesTask : public ICQTask
{
Q_OBJECT
+ TQ_OBJECT
public:
- OfflineMessagesTask( Task* parent );
+ OfflineMessagesTask( Task* tqparent );
~OfflineMessagesTask();
diff --git a/kopete/protocols/oscar/liboscar/onlinenotifiertask.cpp b/kopete/protocols/oscar/liboscar/onlinenotifiertask.cpp
index 6b6b3d05..c3419740 100644
--- a/kopete/protocols/oscar/liboscar/onlinenotifiertask.cpp
+++ b/kopete/protocols/oscar/liboscar/onlinenotifiertask.cpp
@@ -26,7 +26,7 @@
#include <kdebug.h>
-OnlineNotifierTask::OnlineNotifierTask( Task* parent ) : Task( parent )
+OnlineNotifierTask::OnlineNotifierTask( Task* tqparent ) : Task( tqparent )
{
}
diff --git a/kopete/protocols/oscar/liboscar/onlinenotifiertask.h b/kopete/protocols/oscar/liboscar/onlinenotifiertask.h
index 03c1ed43..bc200611 100644
--- a/kopete/protocols/oscar/liboscar/onlinenotifiertask.h
+++ b/kopete/protocols/oscar/liboscar/onlinenotifiertask.h
@@ -35,8 +35,9 @@ Implements SNACS (0x03, 0x11) and (0x03, 0x12)
class OnlineNotifierTask : public Task
{
Q_OBJECT
+ TQ_OBJECT
public:
- OnlineNotifierTask( Task* parent );
+ OnlineNotifierTask( Task* tqparent );
~OnlineNotifierTask();
diff --git a/kopete/protocols/oscar/liboscar/oscarbytestream.cpp b/kopete/protocols/oscar/liboscar/oscarbytestream.cpp
index 5f39d205..e2387368 100644
--- a/kopete/protocols/oscar/liboscar/oscarbytestream.cpp
+++ b/kopete/protocols/oscar/liboscar/oscarbytestream.cpp
@@ -24,8 +24,8 @@
#include "oscarbytestream.h"
-KNetworkByteStream::KNetworkByteStream( TQObject *parent, const char */*name*/ )
- : ByteStream ( parent )
+KNetworkByteStream::KNetworkByteStream( TQObject *tqparent, const char */*name*/ )
+ : ByteStream ( tqparent )
{
kdDebug( 14151 ) << k_funcinfo << "Instantiating new KNetwork byte stream." << endl;
@@ -102,7 +102,7 @@ void KNetworkByteStream::slotConnectionClosed()
if ( mClosing )
{
kdDebug( 14151 ) << "..by ourselves!" << endl;
- kdDebug( 14151 ) << "socket error is " << socket()->errorString( socket()->error() ) << endl;
+ kdDebug( 14151 ) << "socket error is " << socket()->KSocketBase::errorString( socket()->error() ) << endl;
emit connectionClosed ();
}
else
@@ -138,4 +138,4 @@ void KNetworkByteStream::slotError( int code )
#include "oscarbytestream.moc"
-// kate: indent-width 4; replace-tabs off; tab-width 4; space-indent off;
+// kate: indent-width 4; tqreplace-tabs off; tab-width 4; space-indent off;
diff --git a/kopete/protocols/oscar/liboscar/oscarbytestream.h b/kopete/protocols/oscar/liboscar/oscarbytestream.h
index 2ecd92d9..3b310eab 100644
--- a/kopete/protocols/oscar/liboscar/oscarbytestream.h
+++ b/kopete/protocols/oscar/liboscar/oscarbytestream.h
@@ -35,9 +35,10 @@ class KNetworkByteStream : public ByteStream
{
Q_OBJECT
+ TQ_OBJECT
public:
- KNetworkByteStream ( TQObject *parent = 0, const char *name = 0 );
+ KNetworkByteStream ( TQObject *tqparent = 0, const char *name = 0 );
~KNetworkByteStream ();
@@ -68,5 +69,5 @@ private:
#endif
-// kate: indent-width 4; replace-tabs off; tab-width 4; space-indent off;
+// kate: indent-width 4; tqreplace-tabs off; tab-width 4; space-indent off;
diff --git a/kopete/protocols/oscar/liboscar/oscarclientstream.cpp b/kopete/protocols/oscar/liboscar/oscarclientstream.cpp
index 87da6020..085bac9e 100644
--- a/kopete/protocols/oscar/liboscar/oscarclientstream.cpp
+++ b/kopete/protocols/oscar/liboscar/oscarclientstream.cpp
@@ -59,9 +59,9 @@ public:
bs = 0;
connection = 0;
- username = TQString::null;
- password = TQString::null;
- server = TQString::null;
+ username = TQString();
+ password = TQString();
+ server = TQString();
haveLocalAddr = false;
doBinding = true;
@@ -80,7 +80,7 @@ public:
bool doAuth; //send the initial login sequences to get the cookie
bool haveLocalAddr;
TQHostAddress localAddr;
- Q_UINT16 localPort;
+ TQ_UINT16 localPort;
bool doBinding;
Connector *conn;
@@ -104,8 +104,8 @@ public:
int noop_time;
};
-ClientStream::ClientStream(Connector *conn, TQObject *parent)
-:Stream(parent)
+ClientStream::ClientStream(Connector *conn, TQObject *tqparent)
+:Stream(tqparent)
{
//qDebug("CLIENTSTREAM::ClientStream");
@@ -205,7 +205,7 @@ void ClientStream::setNoopTime(int mills)
d->noopTimer.start( d->noop_time );
}
-void ClientStream::setLocalAddr(const TQHostAddress &addr, Q_UINT16 port)
+void ClientStream::setLocalAddr(const TQHostAddress &addr, TQ_UINT16 port)
{
d->haveLocalAddr = true;
d->localAddr = addr;
@@ -266,7 +266,7 @@ void ClientStream::write( Transfer *request )
void cs_dump( const TQByteArray &bytes )
{
#if 0
- qDebug( "contains: %i bytes ", bytes.count() );
+ qDebug( "tqcontains: %i bytes ", bytes.count() );
uint count = 0;
while ( count < bytes.count() )
{
diff --git a/kopete/protocols/oscar/liboscar/oscarclientstream.h b/kopete/protocols/oscar/liboscar/oscarclientstream.h
index fc08f158..f5ab752d 100644
--- a/kopete/protocols/oscar/liboscar/oscarclientstream.h
+++ b/kopete/protocols/oscar/liboscar/oscarclientstream.h
@@ -34,6 +34,7 @@ class TQHostAddress;
class ClientStream : public Stream
{
Q_OBJECT
+ TQ_OBJECT
public:
enum Error {
ErrConnection = ErrCustom, // Connection error, ask Connector-subclass what's up
@@ -73,7 +74,7 @@ public:
BindConflict // resource in-use
};
- ClientStream(Connector *conn, TQObject *parent=0);
+ ClientStream(Connector *conn, TQObject *tqparent=0);
~ClientStream();
void connectToServer(const TQString& server, bool auth=true);
@@ -85,7 +86,7 @@ public:
void setUsername(const TQString &s);
void setPassword(const TQString &s);
- void setLocalAddr(const TQHostAddress &addr, Q_UINT16 port);
+ void setLocalAddr(const TQHostAddress &addr, TQ_UINT16 port);
void close();
@@ -158,7 +159,7 @@ private:
/**
* convert internal method representation to wire
*/
- static char* encode_method(Q_UINT8 method);
+ static char* encode_method(TQ_UINT8 method);
};
#endif
diff --git a/kopete/protocols/oscar/liboscar/oscarconnector.cpp b/kopete/protocols/oscar/liboscar/oscarconnector.cpp
index ec649e08..03db367d 100644
--- a/kopete/protocols/oscar/liboscar/oscarconnector.cpp
+++ b/kopete/protocols/oscar/liboscar/oscarconnector.cpp
@@ -24,8 +24,8 @@
#include "oscarconnector.h"
#include "oscarbytestream.h"
-KNetworkConnector::KNetworkConnector( TQObject *parent, const char */*name*/ )
- : Connector( parent )
+KNetworkConnector::KNetworkConnector( TQObject *tqparent, const char */*name*/ )
+ : Connector( tqparent )
{
kdDebug( 14151 ) << k_funcinfo << "New KNetwork connector." << endl;
@@ -94,7 +94,7 @@ void KNetworkConnector::done()
mByteStream->close ();
}
-void KNetworkConnector::setOptHostPort( const TQString &host, Q_UINT16 port )
+void KNetworkConnector::setOptHostPort( const TQString &host, TQ_UINT16 port )
{
kdDebug ( 14151 ) << k_funcinfo << "Manually specifying host " << host << " and port " << port << endl;
@@ -105,4 +105,4 @@ void KNetworkConnector::setOptHostPort( const TQString &host, Q_UINT16 port )
#include "oscarconnector.moc"
-// kate: indent-width 4; replace-tabs off; tab-width 4; space-indent off;
+// kate: indent-width 4; tqreplace-tabs off; tab-width 4; space-indent off;
diff --git a/kopete/protocols/oscar/liboscar/oscarconnector.h b/kopete/protocols/oscar/liboscar/oscarconnector.h
index 39696a35..20a44123 100644
--- a/kopete/protocols/oscar/liboscar/oscarconnector.h
+++ b/kopete/protocols/oscar/liboscar/oscarconnector.h
@@ -37,9 +37,10 @@ class KNetworkConnector : public Connector
{
Q_OBJECT
+ TQ_OBJECT
public:
- KNetworkConnector( TQObject *parent = 0, const char *name = 0 );
+ KNetworkConnector( TQObject *tqparent = 0, const char *name = 0 );
virtual ~KNetworkConnector();
@@ -47,7 +48,7 @@ public:
virtual ByteStream *stream() const;
virtual void done();
- void setOptHostPort( const TQString &host, Q_UINT16 port );
+ void setOptHostPort( const TQString &host, TQ_UINT16 port );
int errorCode();
@@ -57,7 +58,7 @@ private slots:
private:
TQString mHost;
- Q_UINT16 mPort;
+ TQ_UINT16 mPort;
int mErrorCode;
KNetworkByteStream *mByteStream;
@@ -66,4 +67,4 @@ private:
#endif
-// kate: indent-width 4; replace-tabs off; tab-width 4; space-indent off;
+// kate: indent-width 4; tqreplace-tabs off; tab-width 4; space-indent off;
diff --git a/kopete/protocols/oscar/liboscar/oscarmessage.cpp b/kopete/protocols/oscar/liboscar/oscarmessage.cpp
index 1f263be0..c0b5a1b8 100644
--- a/kopete/protocols/oscar/liboscar/oscarmessage.cpp
+++ b/kopete/protocols/oscar/liboscar/oscarmessage.cpp
@@ -122,7 +122,7 @@ TQString Oscar::Message::text( TQTextCodec *codec ) const
default:
break; // Should never happen.
}
- return TQString::null;
+ return TQString();
//FIXME: warn at least with kdWarning if an unrecognised encoding style was seen.
}
diff --git a/kopete/protocols/oscar/liboscar/oscartypeclasses.cpp b/kopete/protocols/oscar/liboscar/oscartypeclasses.cpp
index be862872..958a5d49 100644
--- a/kopete/protocols/oscar/liboscar/oscartypeclasses.cpp
+++ b/kopete/protocols/oscar/liboscar/oscartypeclasses.cpp
@@ -32,7 +32,7 @@ Oscar::TLV::TLV()
length = 0;
}
-Oscar::TLV::TLV( Q_UINT16 newType, Q_UINT16 newLength, char* newData )
+Oscar::TLV::TLV( TQ_UINT16 newType, TQ_UINT16 newLength, char* newData )
{
type = newType;
length = newLength;
@@ -40,7 +40,7 @@ Oscar::TLV::TLV( Q_UINT16 newType, Q_UINT16 newLength, char* newData )
data.duplicate( newData, length );
}
-Oscar::TLV::TLV( Q_UINT16 newType, Q_UINT16 newLength, const TQByteArray& newData )
+Oscar::TLV::TLV( TQ_UINT16 newType, TQ_UINT16 newLength, const TQByteArray& newData )
{
type = newType;
length = newLength;
@@ -114,17 +114,17 @@ TQString Oscar::SSI::name() const
return m_name;
}
-Q_UINT16 Oscar::SSI::gid() const
+TQ_UINT16 Oscar::SSI::gid() const
{
return m_gid;
}
-Q_UINT16 Oscar::SSI::bid() const
+TQ_UINT16 Oscar::SSI::bid() const
{
return m_bid;
}
-Q_UINT16 Oscar::SSI::type() const
+TQ_UINT16 Oscar::SSI::type() const
{
return m_type;
}
@@ -134,12 +134,12 @@ const TQValueList<TLV>& Oscar::SSI::tlvList() const
return m_tlvList;
}
-void Oscar::SSI::setTLVListLength( Q_UINT16 newLength )
+void Oscar::SSI::setTLVListLength( TQ_UINT16 newLength )
{
m_tlvLength = newLength;
}
-Q_UINT16 Oscar::SSI::tlvListLength() const
+TQ_UINT16 Oscar::SSI::tlvListLength() const
{
return m_tlvLength;
}
@@ -224,7 +224,7 @@ TQByteArray Oscar::SSI::iconHash( ) const
TQString Oscar::SSI::toString() const
{
- TQString ssiString = TQString::fromLatin1( "name: " );
+ TQString ssiString = TQString::tqfromLatin1( "name: " );
ssiString += m_name;
ssiString += " gid: ";
ssiString += TQString::number( m_gid );
@@ -263,7 +263,7 @@ Oscar::SSI::operator TQByteArray() const
// We must provide the explicit length argument to addString() because
// we don't need trailing null byte to be added when automatic
// conversion from TQCString to TQByteArray is performed.
- // This hack will not be needed with Qt 4.
+ // This hack will not be needed with TQt 4.
b.addString( namedata, namelen );
b.addWord( m_gid );
b.addWord( m_bid );
diff --git a/kopete/protocols/oscar/liboscar/oscartypeclasses.h b/kopete/protocols/oscar/liboscar/oscartypeclasses.h
index e4ec6ded..dec69c37 100644
--- a/kopete/protocols/oscar/liboscar/oscartypeclasses.h
+++ b/kopete/protocols/oscar/liboscar/oscartypeclasses.h
@@ -33,14 +33,14 @@ class KOPETE_EXPORT TLV
public:
TLV();
- TLV( Q_UINT16, Q_UINT16, char* data );
- TLV( Q_UINT16, Q_UINT16, const TQByteArray& );
+ TLV( TQ_UINT16, TQ_UINT16, char* data );
+ TLV( TQ_UINT16, TQ_UINT16, const TQByteArray& );
TLV( const TLV& t );
operator bool() const;
- Q_UINT16 type;
- Q_UINT16 length;
+ TQ_UINT16 type;
+ TQ_UINT16 length;
TQByteArray data;
};
@@ -60,17 +60,17 @@ public:
TQString name() const;
/** \brief The group id of the SSI item */
- Q_UINT16 gid() const;
+ TQ_UINT16 gid() const;
/** \brief The buddy id of the SSI item */
- Q_UINT16 bid() const;
+ TQ_UINT16 bid() const;
/**
* \brief The type of the SSI Item.
* see ROSTER_* defines on oscartypes.h
* Use a value of 0xFFFF for an SSI item not on the server list
*/
- Q_UINT16 type() const;
+ TQ_UINT16 type() const;
/** \brief the TLV list for the item */
const TQValueList<TLV>& tlvList() const;
@@ -84,10 +84,10 @@ public:
* This is not the number of items in the list!! It's the aggregation of the
* sizes of the TLVs
*/
- void setTLVListLength( Q_UINT16 newLength );
+ void setTLVListLength( TQ_UINT16 newLength );
/** \brief Get the TLV list length */
- Q_UINT16 tlvListLength() const;
+ TQ_UINT16 tlvListLength() const;
/**
* Get the alias for the SSI item
diff --git a/kopete/protocols/oscar/liboscar/oscartypes.h b/kopete/protocols/oscar/liboscar/oscartypes.h
index 3819b555..4e13a509 100644
--- a/kopete/protocols/oscar/liboscar/oscartypes.h
+++ b/kopete/protocols/oscar/liboscar/oscartypes.h
@@ -172,9 +172,9 @@ const cap oscar_caps[] =
};
//! Oscar Data Types
-typedef Q_UINT8 BYTE;
-typedef Q_UINT16 WORD;
-typedef Q_UINT32 DWORD;
+typedef TQ_UINT8 BYTE;
+typedef TQ_UINT16 WORD;
+typedef TQ_UINT32 DWORD;
struct FLAP
diff --git a/kopete/protocols/oscar/liboscar/oscarutils.cpp b/kopete/protocols/oscar/liboscar/oscarutils.cpp
index e07e0e12..8dc7d9df 100644
--- a/kopete/protocols/oscar/liboscar/oscarutils.cpp
+++ b/kopete/protocols/oscar/liboscar/oscarutils.cpp
@@ -291,7 +291,7 @@ DWORD Oscar::getNumericalIP(const TQString &address)
TQString Oscar::getDottedDecimal( DWORD address )
{
TQHostAddress addr;
- addr.setAddress((Q_UINT32)address);
+ addr.setAddress((TQ_UINT32)address);
return addr.toString();
}
diff --git a/kopete/protocols/oscar/liboscar/oscarutils.h b/kopete/protocols/oscar/liboscar/oscarutils.h
index a9cd921c..1e6b539e 100644
--- a/kopete/protocols/oscar/liboscar/oscarutils.h
+++ b/kopete/protocols/oscar/liboscar/oscarutils.h
@@ -63,7 +63,7 @@ const TQString capToString(char *cap);
* Parse the character array for validness and a version string
* \param buffer the buffer we'll be parsing for capabilities
* \param versionString a TQString reference that will contain the
- * version string of the detected client. Will be TQString::null if
+ * version string of the detected client. Will be TQString() if
* no client is found
* \return a DWORD containg a bit array of the capabilities we found
*/
diff --git a/kopete/protocols/oscar/liboscar/ownuserinfotask.cpp b/kopete/protocols/oscar/liboscar/ownuserinfotask.cpp
index 2cf57d53..7731aa51 100644
--- a/kopete/protocols/oscar/liboscar/ownuserinfotask.cpp
+++ b/kopete/protocols/oscar/liboscar/ownuserinfotask.cpp
@@ -29,7 +29,7 @@
using namespace Oscar;
-OwnUserInfoTask::OwnUserInfoTask( Task* parent ) : Task( parent )
+OwnUserInfoTask::OwnUserInfoTask( Task* tqparent ) : Task( tqparent )
{
}
@@ -70,7 +70,7 @@ bool OwnUserInfoTask::take( Transfer* transfer )
ud.fill( b );
m_details = ud;
emit gotInfo();
- setSuccess( 0, TQString::null );
+ setSuccess( 0, TQString() );
return true;
}
else
@@ -108,7 +108,7 @@ bool OwnUserInfoTask::take( Transfer* transfer )
kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "self available message: " << endl;
}
- setSuccess( 0, TQString::null );
+ setSuccess( 0, TQString() );
return true;
}
diff --git a/kopete/protocols/oscar/liboscar/ownuserinfotask.h b/kopete/protocols/oscar/liboscar/ownuserinfotask.h
index 35314df0..6b162d00 100644
--- a/kopete/protocols/oscar/liboscar/ownuserinfotask.h
+++ b/kopete/protocols/oscar/liboscar/ownuserinfotask.h
@@ -29,8 +29,9 @@ Request our user info from the server and handle our user info when it comes bac
class OwnUserInfoTask : public Task
{
Q_OBJECT
+ TQ_OBJECT
public:
- OwnUserInfoTask( Task* parent );
+ OwnUserInfoTask( Task* tqparent );
~OwnUserInfoTask();
diff --git a/kopete/protocols/oscar/liboscar/prmparamstask.cpp b/kopete/protocols/oscar/liboscar/prmparamstask.cpp
index 43580206..cd4cfddc 100644
--- a/kopete/protocols/oscar/liboscar/prmparamstask.cpp
+++ b/kopete/protocols/oscar/liboscar/prmparamstask.cpp
@@ -24,8 +24,8 @@
using namespace Oscar;
-PRMParamsTask::PRMParamsTask( Task* parent )
- : Task( parent )
+PRMParamsTask::PRMParamsTask( Task* tqparent )
+ : Task( tqparent )
{
}
@@ -52,7 +52,7 @@ bool PRMParamsTask::take( Transfer* transfer )
if ( forMe( transfer ) )
{
kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "Ignoring PRM Parameters. We don't use them" << endl;
- setSuccess( 0, TQString::null );
+ setSuccess( 0, TQString() );
return true;
}
diff --git a/kopete/protocols/oscar/liboscar/prmparamstask.h b/kopete/protocols/oscar/liboscar/prmparamstask.h
index eebfdc61..fe0f25c0 100644
--- a/kopete/protocols/oscar/liboscar/prmparamstask.h
+++ b/kopete/protocols/oscar/liboscar/prmparamstask.h
@@ -28,7 +28,7 @@ class Transfer;
class PRMParamsTask : public Task
{
public:
- PRMParamsTask( Task* parent );
+ PRMParamsTask( Task* tqparent );
~PRMParamsTask();
virtual bool forMe( const Transfer* transfer ) const;
diff --git a/kopete/protocols/oscar/liboscar/profiletask.cpp b/kopete/protocols/oscar/liboscar/profiletask.cpp
index 4b0949ea..09a8b3a0 100644
--- a/kopete/protocols/oscar/liboscar/profiletask.cpp
+++ b/kopete/protocols/oscar/liboscar/profiletask.cpp
@@ -28,8 +28,8 @@
using namespace Oscar;
-ProfileTask::ProfileTask( Task* parent )
- : Task( parent )
+ProfileTask::ProfileTask( Task* tqparent )
+ : Task( tqparent )
{
}
@@ -112,7 +112,7 @@ void ProfileTask::sendProfileUpdate()
buffer->addTLV(0x0005, capBuf.length(), capBuf.buffer());
Transfer* st = createTransfer( f, s , buffer );
send( st );
- setSuccess( 0, TQString::null );
+ setSuccess( 0, TQString() );
}
diff --git a/kopete/protocols/oscar/liboscar/profiletask.h b/kopete/protocols/oscar/liboscar/profiletask.h
index a51075a5..d16a05de 100644
--- a/kopete/protocols/oscar/liboscar/profiletask.h
+++ b/kopete/protocols/oscar/liboscar/profiletask.h
@@ -32,7 +32,7 @@ The away message will be set only if the away message has been set non-null.
class ProfileTask : public Task
{
public:
- ProfileTask( Task* parent );
+ ProfileTask( Task* tqparent );
~ProfileTask();
bool forMe( const Transfer* transfer ) const;
diff --git a/kopete/protocols/oscar/liboscar/rateclass.cpp b/kopete/protocols/oscar/liboscar/rateclass.cpp
index d035c810..6d050643 100644
--- a/kopete/protocols/oscar/liboscar/rateclass.cpp
+++ b/kopete/protocols/oscar/liboscar/rateclass.cpp
@@ -22,8 +22,8 @@
using namespace Oscar;
-RateClass::RateClass( TQObject* parent )
-: TQObject( parent, 0 )
+RateClass::RateClass( TQObject* tqparent )
+: TQObject( tqparent, 0 )
{
m_waitingToSend = false;
m_packetTimer.start();
diff --git a/kopete/protocols/oscar/liboscar/rateclass.h b/kopete/protocols/oscar/liboscar/rateclass.h
index 78ad8917..122bde8d 100644
--- a/kopete/protocols/oscar/liboscar/rateclass.h
+++ b/kopete/protocols/oscar/liboscar/rateclass.h
@@ -34,11 +34,12 @@ struct SnacPair
class Transfer;
-class RateClass : public QObject
+class RateClass : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
- RateClass( TQObject* parent = 0 );
+ RateClass( TQObject* tqparent = 0 );
~RateClass();
/** Accessor for classid */
diff --git a/kopete/protocols/oscar/liboscar/rateclassmanager.cpp b/kopete/protocols/oscar/liboscar/rateclassmanager.cpp
index 59ef735e..0b14c9ec 100644
--- a/kopete/protocols/oscar/liboscar/rateclassmanager.cpp
+++ b/kopete/protocols/oscar/liboscar/rateclassmanager.cpp
@@ -34,11 +34,11 @@ public:
Connection* client;
};
-RateClassManager::RateClassManager( Connection* parent, const char* name )
-: TQObject( parent, name )
+RateClassManager::RateClassManager( Connection* tqparent, const char* name )
+: TQObject( tqparent, name )
{
d = new RateClassManagerPrivate();
- d->client = parent;
+ d->client = tqparent;
}
RateClassManager::~RateClassManager()
diff --git a/kopete/protocols/oscar/liboscar/rateclassmanager.h b/kopete/protocols/oscar/liboscar/rateclassmanager.h
index b1240f07..fe2a8433 100644
--- a/kopete/protocols/oscar/liboscar/rateclassmanager.h
+++ b/kopete/protocols/oscar/liboscar/rateclassmanager.h
@@ -31,11 +31,12 @@ class Connection;
class RateClassManagerPrivate;
-class RateClassManager : public QObject
+class RateClassManager : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
- RateClassManager( Connection* parent, const char* name = 0 );
+ RateClassManager( Connection* tqparent, const char* name = 0 );
~RateClassManager();
/** Reset the rate manager */
diff --git a/kopete/protocols/oscar/liboscar/rateinfotask.cpp b/kopete/protocols/oscar/liboscar/rateinfotask.cpp
index 08002b8a..a7249a74 100644
--- a/kopete/protocols/oscar/liboscar/rateinfotask.cpp
+++ b/kopete/protocols/oscar/liboscar/rateinfotask.cpp
@@ -29,8 +29,8 @@
using namespace Oscar;
-RateInfoTask::RateInfoTask( Task* parent )
- : Task( parent )
+RateInfoTask::RateInfoTask( Task* tqparent )
+ : Task( tqparent )
{
connect( this, TQT_SIGNAL( gotRateLimits() ), this, TQT_SLOT( sendRateInfoAck() ) );
}
@@ -164,7 +164,7 @@ void RateInfoTask::sendRateInfoAck()
Transfer* st = createTransfer( f, s, buffer );
send( st );
- setSuccess( 0, TQString::null );
+ setSuccess( 0, TQString() );
}
#include "rateinfotask.moc"
diff --git a/kopete/protocols/oscar/liboscar/rateinfotask.h b/kopete/protocols/oscar/liboscar/rateinfotask.h
index 013559f6..407e91b4 100644
--- a/kopete/protocols/oscar/liboscar/rateinfotask.h
+++ b/kopete/protocols/oscar/liboscar/rateinfotask.h
@@ -30,8 +30,9 @@ using namespace Oscar;
class RateInfoTask : public Task
{
Q_OBJECT
+ TQ_OBJECT
public:
- RateInfoTask( Task* parent );
+ RateInfoTask( Task* tqparent );
~RateInfoTask();
bool take( Transfer* transfer );
diff --git a/kopete/protocols/oscar/liboscar/rtf.cc b/kopete/protocols/oscar/liboscar/rtf.cc
index 39c16bc4..7559a253 100644
--- a/kopete/protocols/oscar/liboscar/rtf.cc
+++ b/kopete/protocols/oscar/liboscar/rtf.cc
@@ -1630,17 +1630,17 @@ void ParStyle::clearFormatting()
TQString RTF2HTML::quoteString(const TQString &_str, quoteMode mode)
{
TQString str = _str;
- str.replace(TQRegExp("&"), "&amp;");
- str.replace(TQRegExp("<"), "&lt;");
- str.replace(TQRegExp(">"), "&gt;");
- str.replace(TQRegExp("\""), "&quot;");
- str.replace(TQRegExp("\r"), "");
+ str.tqreplace(TQRegExp("&"), "&amp;");
+ str.tqreplace(TQRegExp("<"), "&lt;");
+ str.tqreplace(TQRegExp(">"), "&gt;");
+ str.tqreplace(TQRegExp("\""), "&quot;");
+ str.tqreplace(TQRegExp("\r"), "");
switch (mode){
case quoteHTML:
- str.replace(TQRegExp("\n"), "<br>\n");
+ str.tqreplace(TQRegExp("\n"), "<br>\n");
break;
case quoteXML:
- str.replace(TQRegExp("\n"), "<br/>\n");
+ str.tqreplace(TQRegExp("\n"), "<br/>\n");
break;
default:
break;
@@ -1657,7 +1657,7 @@ TQString RTF2HTML::quoteString(const TQString &_str, quoteMode mode)
TQString s = " ";
for (int i = 1; i < len; i++)
s += "&nbsp;";
- str.replace(pos, len, s);
+ str.tqreplace(pos, len, s);
}
return str;
}
@@ -1890,7 +1890,7 @@ void RTF2HTML::FlushParagraph()
/*
s += "<p dir=\"";
- // Note: Lower-case 'ltr' and 'rtl' are important for Qt.
+ // Note: Lower-case 'ltr' and 'rtl' are important for TQt.
s += (parStyle.dir == ParStyle::DirRTL ? "rtl" : "ltr");
s += "\">";
s += sParagraph;
@@ -2078,7 +2078,7 @@ void Level::clearParagraphFormatting()
// implicitly start a paragraph
if (!isParagraphOpen())
startParagraph();
- // Since we don't implement any of the paragraph formatting tags (e.g. alignment),
+ // Since we don't implement any of the paragraph formatting tags (e.g. tqalignment),
// we don't clean up anything here. Note that \pard does NOT clean character
// formatting (such as font size, font weight, italics...).
p->parStyle.clearFormatting();
diff --git a/kopete/protocols/oscar/liboscar/rtf.ll b/kopete/protocols/oscar/liboscar/rtf.ll
index c43aeaea..63c04c96 100644
--- a/kopete/protocols/oscar/liboscar/rtf.ll
+++ b/kopete/protocols/oscar/liboscar/rtf.ll
@@ -67,17 +67,17 @@ void ParStyle::clearFormatting()
QString RTF2HTML::quoteString(const QString &_str, quoteMode mode)
{
QString str = _str;
- str.replace(QRegExp("&"), "&amp;");
- str.replace(QRegExp("<"), "&lt;");
- str.replace(QRegExp(">"), "&gt;");
- str.replace(QRegExp("\""), "&quot;");
- str.replace(QRegExp("\r"), "");
+ str.tqreplace(QRegExp("&"), "&amp;");
+ str.tqreplace(QRegExp("<"), "&lt;");
+ str.tqreplace(QRegExp(">"), "&gt;");
+ str.tqreplace(QRegExp("\""), "&quot;");
+ str.tqreplace(QRegExp("\r"), "");
switch (mode){
case quoteHTML:
- str.replace(QRegExp("\n"), "<br>\n");
+ str.tqreplace(QRegExp("\n"), "<br>\n");
break;
case quoteXML:
- str.replace(QRegExp("\n"), "<br/>\n");
+ str.tqreplace(QRegExp("\n"), "<br/>\n");
break;
default:
break;
@@ -94,7 +94,7 @@ QString RTF2HTML::quoteString(const QString &_str, quoteMode mode)
QString s = " ";
for (int i = 1; i < len; i++)
s += "&nbsp;";
- str.replace(pos, len, s);
+ str.tqreplace(pos, len, s);
}
return str;
}
@@ -515,7 +515,7 @@ void Level::clearParagraphFormatting()
// implicitly start a paragraph
if (!isParagraphOpen())
startParagraph();
- // Since we don't implement any of the paragraph formatting tags (e.g. alignment),
+ // Since we don't implement any of the paragraph formatting tags (e.g. tqalignment),
// we don't clean up anything here. Note that \pard does NOT clean character
// formatting (such as font size, font weight, italics...).
p->parStyle.clearFormatting();
diff --git a/kopete/protocols/oscar/liboscar/safedelete.cpp b/kopete/protocols/oscar/liboscar/safedelete.cpp
index 5dde3725..9de147f0 100644
--- a/kopete/protocols/oscar/liboscar/safedelete.cpp
+++ b/kopete/protocols/oscar/liboscar/safedelete.cpp
@@ -62,13 +62,7 @@ void SafeDelete::deleteAll()
void SafeDelete::deleteSingle(TQObject *o)
{
-#if QT_VERSION < 0x030000
- // roll our own TQObject::deleteLater()
- SafeDeleteLater *sdl = SafeDeleteLater::ensureExists();
- sdl->deleteItLater(o);
-#else
o->deleteLater();
-#endif
}
//----------------------------------------------------------------------------
diff --git a/kopete/protocols/oscar/liboscar/safedelete.h b/kopete/protocols/oscar/liboscar/safedelete.h
index 0d4150d9..88cfb3d4 100644
--- a/kopete/protocols/oscar/liboscar/safedelete.h
+++ b/kopete/protocols/oscar/liboscar/safedelete.h
@@ -57,9 +57,10 @@ private:
void unlock();
};
-class SafeDeleteLater : public QObject
+class SafeDeleteLater : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
static SafeDeleteLater *ensureExists();
void deleteItLater(TQObject *o);
diff --git a/kopete/protocols/oscar/liboscar/senddcinfotask.cpp b/kopete/protocols/oscar/liboscar/senddcinfotask.cpp
index 2b5dbbae..02dd0ba6 100644
--- a/kopete/protocols/oscar/liboscar/senddcinfotask.cpp
+++ b/kopete/protocols/oscar/liboscar/senddcinfotask.cpp
@@ -25,7 +25,7 @@
#include "oscarutils.h"
#include "transfer.h"
-SendDCInfoTask::SendDCInfoTask(Task* parent, DWORD status): Task(parent), mStatus(status)
+SendDCInfoTask::SendDCInfoTask(Task* tqparent, DWORD status): Task(tqparent), mtqStatus(status)
{
}
@@ -70,7 +70,7 @@ void SendDCInfoTask::onGo()
statusFlag |= 0x10000000; // Direct connection upon authorization, hides IP
}
- buffer->addDWord( statusFlag | mStatus );
+ buffer->addDWord( statusFlag | mtqStatus );
/* Fill in the DC Info
* We don't support Direct Connection yet. So fill in some
@@ -100,7 +100,7 @@ void SendDCInfoTask::onGo()
Transfer* t = createTransfer( f, s, buffer );
send( t );
- setSuccess( 0, TQString::null );
+ setSuccess( 0, TQString() );
}
diff --git a/kopete/protocols/oscar/liboscar/senddcinfotask.h b/kopete/protocols/oscar/liboscar/senddcinfotask.h
index d130cc40..e967cb18 100644
--- a/kopete/protocols/oscar/liboscar/senddcinfotask.h
+++ b/kopete/protocols/oscar/liboscar/senddcinfotask.h
@@ -28,12 +28,12 @@ Fire and forget task that sends our direct connection info
class SendDCInfoTask : public Task
{
public:
- SendDCInfoTask( Task* parent, DWORD status );
+ SendDCInfoTask( Task* tqparent, DWORD status );
~SendDCInfoTask();
virtual void onGo();
private:
- DWORD mStatus;
+ DWORD mtqStatus;
};
#endif
diff --git a/kopete/protocols/oscar/liboscar/sendidletimetask.cpp b/kopete/protocols/oscar/liboscar/sendidletimetask.cpp
index ba753471..a4bc61e2 100644
--- a/kopete/protocols/oscar/liboscar/sendidletimetask.cpp
+++ b/kopete/protocols/oscar/liboscar/sendidletimetask.cpp
@@ -23,7 +23,7 @@
#include "oscarutils.h"
#include "transfer.h"
-SendIdleTimeTask::SendIdleTimeTask( Task* parent ) : Task( parent )
+SendIdleTimeTask::SendIdleTimeTask( Task* tqparent ) : Task( tqparent )
{
m_idleTime = 0;
}
@@ -45,7 +45,7 @@ void SendIdleTimeTask::onGo()
Transfer *t = createTransfer( f, s, buffer );
send( t );
- setSuccess( 0, TQString::null );
+ setSuccess( 0, TQString() );
}
diff --git a/kopete/protocols/oscar/liboscar/sendidletimetask.h b/kopete/protocols/oscar/liboscar/sendidletimetask.h
index beba74c2..4ba9e588 100644
--- a/kopete/protocols/oscar/liboscar/sendidletimetask.h
+++ b/kopete/protocols/oscar/liboscar/sendidletimetask.h
@@ -29,7 +29,7 @@ Sends the idle time to the server
class SendIdleTimeTask : public Task
{
public:
- SendIdleTimeTask( Task* parent );
+ SendIdleTimeTask( Task* tqparent );
~SendIdleTimeTask();
virtual void onGo();
diff --git a/kopete/protocols/oscar/liboscar/sendmessagetask.cpp b/kopete/protocols/oscar/liboscar/sendmessagetask.cpp
index 1b8cbfbc..b3a4a36e 100644
--- a/kopete/protocols/oscar/liboscar/sendmessagetask.cpp
+++ b/kopete/protocols/oscar/liboscar/sendmessagetask.cpp
@@ -23,7 +23,7 @@
#include "transfer.h"
-SendMessageTask::SendMessageTask(Task* parent): Task(parent)
+SendMessageTask::SendMessageTask(Task* tqparent): Task(tqparent)
{
m_autoResponse = false;
m_cookieCount = 0x7FFF;
@@ -379,8 +379,8 @@ if ( !codec && ( contact->hasCap(CAP_UTF8) || !contact->encoding() ) )
utfMessage=new unsigned char[length];
for(unsigned int l=0; l<message.length(); l++)
{
- utfMessage[l*2]=message.unicode()[l].row();
- utfMessage[(l*2)+1]=message.unicode()[l].cell();
+ utfMessage[l*2]=message.tqunicode()[l].row();
+ utfMessage[(l*2)+1]=message.tqunicode()[l].cell();
}
charset=0x0002; // send UTF-16BE
}
@@ -393,7 +393,7 @@ if(!codec && charset != 0x0002 && contact->encoding() != 0)
charset=0x0003; //send as ISO-8859-1
}
-if(!codec && charset != 0x0002) // it's neither unicode nor did we find a codec so far!
+if(!codec && charset != 0x0002) // it's neither tqunicode nor did we find a codec so far!
{
kdDebug(14151) << k_funcinfo <<
"Couldn't find suitable encoding for outgoing message, " <<
diff --git a/kopete/protocols/oscar/liboscar/sendmessagetask.h b/kopete/protocols/oscar/liboscar/sendmessagetask.h
index 18e03c73..a6a0e598 100644
--- a/kopete/protocols/oscar/liboscar/sendmessagetask.h
+++ b/kopete/protocols/oscar/liboscar/sendmessagetask.h
@@ -26,7 +26,7 @@
class SendMessageTask : public Task
{
public:
- SendMessageTask( Task* parent );
+ SendMessageTask( Task* tqparent );
~SendMessageTask();
//! Set the message to be sent
diff --git a/kopete/protocols/oscar/liboscar/serverredirecttask.cpp b/kopete/protocols/oscar/liboscar/serverredirecttask.cpp
index 5875e6a8..4e3ffa86 100644
--- a/kopete/protocols/oscar/liboscar/serverredirecttask.cpp
+++ b/kopete/protocols/oscar/liboscar/serverredirecttask.cpp
@@ -25,8 +25,8 @@
#include "connection.h"
#include "transfer.h"
-ServerRedirectTask::ServerRedirectTask( Task* parent )
- :Task( parent ), m_service( 0 )
+ServerRedirectTask::ServerRedirectTask( Task* tqparent )
+ :Task( tqparent ), m_service( 0 )
{
}
@@ -75,7 +75,7 @@ bool ServerRedirectTask::take( Transfer* transfer )
setTransfer( transfer );
bool value = handleRedirect();
- setSuccess( 0, TQString::null );
+ setSuccess( 0, TQString() );
setTransfer( 0 );
return value;
}
diff --git a/kopete/protocols/oscar/liboscar/serverredirecttask.h b/kopete/protocols/oscar/liboscar/serverredirecttask.h
index 972e28ce..936ff582 100644
--- a/kopete/protocols/oscar/liboscar/serverredirecttask.h
+++ b/kopete/protocols/oscar/liboscar/serverredirecttask.h
@@ -32,8 +32,9 @@ class Transfer;
class ServerRedirectTask : public Task
{
Q_OBJECT
+ TQ_OBJECT
public:
- ServerRedirectTask( Task* parent );
+ ServerRedirectTask( Task* tqparent );
void setService( WORD family );
void setChatParams( WORD exchange, TQByteArray cookie, WORD instance );
diff --git a/kopete/protocols/oscar/liboscar/serverversionstask.cpp b/kopete/protocols/oscar/liboscar/serverversionstask.cpp
index b2e7dfa6..a6dc557c 100644
--- a/kopete/protocols/oscar/liboscar/serverversionstask.cpp
+++ b/kopete/protocols/oscar/liboscar/serverversionstask.cpp
@@ -29,8 +29,8 @@
using namespace Oscar;
-ServerVersionsTask::ServerVersionsTask( Task* parent )
- : Task( parent )
+ServerVersionsTask::ServerVersionsTask( Task* tqparent )
+ : Task( tqparent )
{
m_family = 0;
}
@@ -101,7 +101,7 @@ void ServerVersionsTask::handleFamilies()
Buffer* outbuf = transfer()->buffer();
if ( outbuf->length() % 2 != 0 )
{
- setError( -1, TQString::null );
+ setError( -1, TQString() );
return;
}
@@ -163,7 +163,7 @@ void ServerVersionsTask::handleServerVersions()
kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "server version=" << buffer->getWord()
<< ", server family=" << buffer->getWord() << endl;
}
- setSuccess( 0, TQString::null );
+ setSuccess( 0, TQString() );
}
#include "serverversionstask.moc"
diff --git a/kopete/protocols/oscar/liboscar/serverversionstask.h b/kopete/protocols/oscar/liboscar/serverversionstask.h
index f3a72a38..532fcec0 100644
--- a/kopete/protocols/oscar/liboscar/serverversionstask.h
+++ b/kopete/protocols/oscar/liboscar/serverversionstask.h
@@ -31,8 +31,9 @@ class Transfer;
class ServerVersionsTask : public Task
{
Q_OBJECT
+ TQ_OBJECT
public:
- ServerVersionsTask( Task* parent );
+ ServerVersionsTask( Task* tqparent );
~ServerVersionsTask();
diff --git a/kopete/protocols/oscar/liboscar/servicesetuptask.cpp b/kopete/protocols/oscar/liboscar/servicesetuptask.cpp
index 61f53279..39da3531 100644
--- a/kopete/protocols/oscar/liboscar/servicesetuptask.cpp
+++ b/kopete/protocols/oscar/liboscar/servicesetuptask.cpp
@@ -34,18 +34,18 @@
#include "ssiparamstask.h"
#include "transfer.h"
-ServiceSetupTask::ServiceSetupTask( Task* parent )
- : Task( parent )
+ServiceSetupTask::ServiceSetupTask( Task* tqparent )
+ : Task( tqparent )
{
m_finishedTaskCount = 0;
- m_locRightsTask = new LocationRightsTask( parent );
- m_profileTask = new ProfileTask( parent );
- m_blmLimitsTask = new BLMLimitsTask( parent );
- m_icbmTask = new ICBMParamsTask( parent );
- m_prmTask = new PRMParamsTask( parent );
- m_ssiParamTask = new SSIParamsTask( parent );
- m_ssiListTask = new SSIListTask( parent );
- m_ssiActivateTask = new SSIActivateTask( parent );
+ m_locRightsTask = new LocationRightsTask( tqparent );
+ m_profileTask = new ProfileTask( tqparent );
+ m_blmLimitsTask = new BLMLimitsTask( tqparent );
+ m_icbmTask = new ICBMParamsTask( tqparent );
+ m_prmTask = new PRMParamsTask( tqparent );
+ m_ssiParamTask = new SSIParamsTask( tqparent );
+ m_ssiListTask = new SSIListTask( tqparent );
+ m_ssiActivateTask = new SSIActivateTask( tqparent );
TQObject::connect( m_ssiListTask, TQT_SIGNAL( finished() ), this, TQT_SLOT( childTaskFinished() ) );
TQObject::connect( m_ssiParamTask, TQT_SIGNAL( finished() ), this, TQT_SLOT( childTaskFinished() ) );
@@ -114,7 +114,7 @@ void ServiceSetupTask::childTaskFinished()
if ( m_finishedTaskCount == 8 )
{
kdDebug( OSCAR_RAW_DEBUG ) << k_funcinfo << "Service setup finished" << endl;
- setSuccess( 0, TQString::null );
+ setSuccess( 0, TQString() );
}
}
diff --git a/kopete/protocols/oscar/liboscar/servicesetuptask.h b/kopete/protocols/oscar/liboscar/servicesetuptask.h
index c5bf5a70..ed364353 100644
--- a/kopete/protocols/oscar/liboscar/servicesetuptask.h
+++ b/kopete/protocols/oscar/liboscar/servicesetuptask.h
@@ -38,8 +38,9 @@ Set up the various services for the BOS connection
class ServiceSetupTask : public Task
{
Q_OBJECT
+ TQ_OBJECT
public:
- ServiceSetupTask( Task* parent );
+ ServiceSetupTask( Task* tqparent );
~ServiceSetupTask();
bool forMe( const Transfer* transfer ) const;
diff --git a/kopete/protocols/oscar/liboscar/snacprotocol.cpp b/kopete/protocols/oscar/liboscar/snacprotocol.cpp
index 3ec5c348..e7021c4f 100644
--- a/kopete/protocols/oscar/liboscar/snacprotocol.cpp
+++ b/kopete/protocols/oscar/liboscar/snacprotocol.cpp
@@ -29,8 +29,8 @@
using namespace Oscar;
-SnacProtocol::SnacProtocol(TQObject *parent, const char *name)
- : InputProtocolBase(parent, name)
+SnacProtocol::SnacProtocol(TQObject *tqparent, const char *name)
+ : InputProtocolBase(tqparent, name)
{
}
@@ -82,7 +82,7 @@ Transfer* SnacProtocol::parse( const TQByteArray & packet, uint& bytes )
//use pointer arithmatic to skip the flap and snac headers
//so we don't have to do double parsing in the tasks
- char* charPacket = packet.data();
+ char* charPacket = const_cast<char*>(packet.data());
char* snacData;
int snacOffset = 10; //default
if ( s.flags >= 0x8000 ) //skip the next 8 bytes, we don't care about the snac version ATM
diff --git a/kopete/protocols/oscar/liboscar/snacprotocol.h b/kopete/protocols/oscar/liboscar/snacprotocol.h
index 18c6aaaa..a9b10cbd 100644
--- a/kopete/protocols/oscar/liboscar/snacprotocol.h
+++ b/kopete/protocols/oscar/liboscar/snacprotocol.h
@@ -28,8 +28,9 @@ class SnacTransfer;
class SnacProtocol : public InputProtocolBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- SnacProtocol( TQObject *parent = 0, const char *name = 0 );
+ SnacProtocol( TQObject *tqparent = 0, const char *name = 0 );
~SnacProtocol();
/**
diff --git a/kopete/protocols/oscar/liboscar/ssiactivatetask.cpp b/kopete/protocols/oscar/liboscar/ssiactivatetask.cpp
index 795d9999..c03d70d4 100644
--- a/kopete/protocols/oscar/liboscar/ssiactivatetask.cpp
+++ b/kopete/protocols/oscar/liboscar/ssiactivatetask.cpp
@@ -26,7 +26,7 @@
-SSIActivateTask::SSIActivateTask(Task* parent): Task(parent)
+SSIActivateTask::SSIActivateTask(Task* tqparent): Task(tqparent)
{
}
@@ -44,7 +44,7 @@ void SSIActivateTask::onGo()
Buffer* buffer = new Buffer();
Transfer* t = createTransfer( f, s, buffer );
send( t );
- setSuccess( 0, TQString::null );
+ setSuccess( 0, TQString() );
}
// kate: tab-width 4; indent-mode csands;
diff --git a/kopete/protocols/oscar/liboscar/ssiactivatetask.h b/kopete/protocols/oscar/liboscar/ssiactivatetask.h
index 66f0a67b..7ca44896 100644
--- a/kopete/protocols/oscar/liboscar/ssiactivatetask.h
+++ b/kopete/protocols/oscar/liboscar/ssiactivatetask.h
@@ -28,7 +28,7 @@ A fire and forget task to send the activation SNAC for the SSI list to the serve
class SSIActivateTask : public Task
{
public:
- SSIActivateTask( Task* parent );
+ SSIActivateTask( Task* tqparent );
~SSIActivateTask();
void onGo();
};
diff --git a/kopete/protocols/oscar/liboscar/ssiauthtask.cpp b/kopete/protocols/oscar/liboscar/ssiauthtask.cpp
index bccb754e..8a33bb56 100644
--- a/kopete/protocols/oscar/liboscar/ssiauthtask.cpp
+++ b/kopete/protocols/oscar/liboscar/ssiauthtask.cpp
@@ -25,10 +25,10 @@
#include <kdebug.h>
-SSIAuthTask::SSIAuthTask( Task* parent )
- : Task( parent )
+SSIAuthTask::SSIAuthTask( Task* tqparent )
+ : Task( tqparent )
{
- m_manager = parent->client()->ssiManager();
+ m_manager = tqparent->client()->ssiManager();
}
SSIAuthTask::~SSIAuthTask()
diff --git a/kopete/protocols/oscar/liboscar/ssiauthtask.h b/kopete/protocols/oscar/liboscar/ssiauthtask.h
index 1760f344..d7e7c78a 100644
--- a/kopete/protocols/oscar/liboscar/ssiauthtask.h
+++ b/kopete/protocols/oscar/liboscar/ssiauthtask.h
@@ -29,8 +29,9 @@ class SSIManager;
class SSIAuthTask : public Task
{
Q_OBJECT
+ TQ_OBJECT
public:
- SSIAuthTask( Task* parent );
+ SSIAuthTask( Task* tqparent );
~SSIAuthTask();
diff --git a/kopete/protocols/oscar/liboscar/ssilisttask.cpp b/kopete/protocols/oscar/liboscar/ssilisttask.cpp
index d52f7f4e..6b10e3fa 100644
--- a/kopete/protocols/oscar/liboscar/ssilisttask.cpp
+++ b/kopete/protocols/oscar/liboscar/ssilisttask.cpp
@@ -23,7 +23,7 @@
#include "ssimanager.h"
#include "transfer.h"
-SSIListTask::SSIListTask( Task* parent ) : Task( parent )
+SSIListTask::SSIListTask( Task* tqparent ) : Task( tqparent )
{
m_ssiManager = client()->ssiManager();
TQObject::connect( this, TQT_SIGNAL( newContact( const Oscar::SSI& ) ), m_ssiManager, TQT_SLOT( newContact( const Oscar::SSI& ) ) );
@@ -136,7 +136,7 @@ void SSIListTask::handleSSIListReply()
{
kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "SSI List complete" << endl;
client()->ssiManager()->setListComplete( true );
- setSuccess( 0, TQString::null );
+ setSuccess( 0, TQString() );
}
else
kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "Awaiting another SSI packet" << endl;
@@ -154,7 +154,7 @@ void SSIListTask::handleSSIUpToDate()
kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "Number of items in SSI list: " << ssiItems << endl;
client()->ssiManager()->setListComplete( true );
- setSuccess( 0, TQString::null );
+ setSuccess( 0, TQString() );
}
void SSIListTask::checkSSITimestamp()
diff --git a/kopete/protocols/oscar/liboscar/ssilisttask.h b/kopete/protocols/oscar/liboscar/ssilisttask.h
index 96a4c3d8..24ee179d 100644
--- a/kopete/protocols/oscar/liboscar/ssilisttask.h
+++ b/kopete/protocols/oscar/liboscar/ssilisttask.h
@@ -35,8 +35,9 @@ class SSIManager;
class SSIListTask : public Task
{
Q_OBJECT
+ TQ_OBJECT
public:
- SSIListTask( Task* parent );
+ SSIListTask( Task* tqparent );
~SSIListTask();
virtual bool take( Transfer* transfer );
diff --git a/kopete/protocols/oscar/liboscar/ssimanager.cpp b/kopete/protocols/oscar/liboscar/ssimanager.cpp
index 1351c237..630b8f6b 100644
--- a/kopete/protocols/oscar/liboscar/ssimanager.cpp
+++ b/kopete/protocols/oscar/liboscar/ssimanager.cpp
@@ -42,8 +42,8 @@ public:
WORD nextGroupId;
};
-SSIManager::SSIManager( TQObject *parent, const char *name )
- : TQObject( parent, name )
+SSIManager::SSIManager( TQObject *tqparent, const char *name )
+ : TQObject( tqparent, name )
{
d = new SSIManagerPrivate;
d->complete = false;
@@ -97,7 +97,7 @@ WORD SSIManager::nextContactId()
return 0xFFFF;
}
- if ( d->itemIdList.contains( d->nextContactId ) == 0 )
+ if ( d->itemIdList.tqcontains( d->nextContactId ) == 0 )
d->itemIdList.append( d->nextContactId );
return d->nextContactId++;
@@ -116,7 +116,7 @@ WORD SSIManager::nextGroupId()
return 0xFFFF;
}
- if ( d->groupIdList.contains( d->nextGroupId ) == 0 )
+ if ( d->groupIdList.tqcontains( d->nextGroupId ) == 0 )
d->groupIdList.append( d->nextGroupId );
return d->nextGroupId++;
@@ -141,7 +141,7 @@ void SSIManager::setParameters( WORD maxContacts, WORD maxGroups, WORD maxVisibl
{
//I'm not using k_funcinfo for these debug statements because of
//the function's long signature
- TQString funcName = TQString::fromLatin1( "[void SSIManager::setParameters] " );
+ TQString funcName = TQString::tqfromLatin1( "[void SSIManager::setParameters] " );
kdDebug(OSCAR_RAW_DEBUG) << funcName << "Max number of contacts allowed in SSI: "
<< maxContacts << endl;
kdDebug(OSCAR_RAW_DEBUG) << funcName << "Max number of groups allowed in SSI: "
@@ -214,7 +214,7 @@ Oscar::SSI SSIManager::findContact( const TQString &contact, const TQString &gro
return m_dummyItem;
}
- Oscar::SSI gr = findGroup( group ); // find the parent group
+ Oscar::SSI gr = findGroup( group ); // find the tqparent group
if ( gr.isValid() )
{
kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "gr->name= " << gr.name() <<
@@ -449,7 +449,7 @@ bool SSIManager::updateGroup( const Oscar::SSI& group )
d->SSIList.remove( oldGroup );
}
- if ( d->SSIList.findIndex( group ) != -1 )
+ if ( d->SSIList.tqfindIndex( group ) != -1 )
{
kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "New group is already in list." << endl;
return false;
@@ -496,7 +496,7 @@ bool SSIManager::removeGroup( const TQString &group )
bool SSIManager::newContact( const Oscar::SSI& contact )
{
- if ( d->SSIList.findIndex( contact ) == -1 )
+ if ( d->SSIList.tqfindIndex( contact ) == -1 )
{
kdDebug( OSCAR_RAW_DEBUG ) << k_funcinfo << "Adding contact '" << contact.name() << "' to SSI list" << endl;
addID( contact );
@@ -518,7 +518,7 @@ bool SSIManager::updateContact( const Oscar::SSI& contact )
d->SSIList.remove( oldContact );
}
- if ( d->SSIList.findIndex( contact ) != -1 )
+ if ( d->SSIList.tqfindIndex( contact ) != -1 )
{
kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "New contact is already in list." << endl;
return false;
@@ -562,7 +562,7 @@ bool SSIManager::removeContact( const TQString &contact )
bool SSIManager::newItem( const Oscar::SSI& item )
{
- if ( d->SSIList.findIndex( item ) != -1 )
+ if ( d->SSIList.tqfindIndex( item ) != -1 )
{
kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "Item is already in list." << endl;
return false;
@@ -584,7 +584,7 @@ bool SSIManager::updateItem( const Oscar::SSI& item )
d->SSIList.remove( oldItem );
}
- if ( d->SSIList.findIndex( item ) != -1 )
+ if ( d->SSIList.tqfindIndex( item ) != -1 )
{
kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "New item is already in list." << endl;
return false;
@@ -614,12 +614,12 @@ void SSIManager::addID( const Oscar::SSI& item )
{
if ( item.type() == ROSTER_GROUP )
{
- if ( d->groupIdList.contains( item.gid() ) == 0 )
+ if ( d->groupIdList.tqcontains( item.gid() ) == 0 )
d->groupIdList.append( item.gid() );
}
else
{
- if ( d->itemIdList.contains( item.bid() ) == 0 )
+ if ( d->itemIdList.tqcontains( item.bid() ) == 0 )
d->itemIdList.append( item.bid() );
}
}
@@ -646,7 +646,7 @@ WORD SSIManager::findFreeId( const TQValueList<WORD>& idList, WORD fromId ) cons
{
for ( WORD id = fromId; id < 0x8000; id++ )
{
- if ( idList.contains( id ) == 0 )
+ if ( idList.tqcontains( id ) == 0 )
return id;
}
diff --git a/kopete/protocols/oscar/liboscar/ssimanager.h b/kopete/protocols/oscar/liboscar/ssimanager.h
index df39268c..d75d1e17 100644
--- a/kopete/protocols/oscar/liboscar/ssimanager.h
+++ b/kopete/protocols/oscar/liboscar/ssimanager.h
@@ -38,11 +38,12 @@ SSI management
@author Gustavo Pichorim Boiko
@author Matt Rogers
*/
-class KOPETE_EXPORT SSIManager : public QObject
+class KOPETE_EXPORT SSIManager : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
- SSIManager( TQObject* parent = 0, const char* name = 0 );
+ SSIManager( TQObject* tqparent = 0, const char* name = 0 );
~SSIManager();
diff --git a/kopete/protocols/oscar/liboscar/ssimodifytask.cpp b/kopete/protocols/oscar/liboscar/ssimodifytask.cpp
index b4194b5e..23164bc0 100644
--- a/kopete/protocols/oscar/liboscar/ssimodifytask.cpp
+++ b/kopete/protocols/oscar/liboscar/ssimodifytask.cpp
@@ -28,9 +28,9 @@
#include "transfer.h"
-SSIModifyTask::SSIModifyTask( Task* parent, bool staticTask ) : Task( parent )
+SSIModifyTask::SSIModifyTask( Task* tqparent, bool staticTask ) : Task( tqparent )
{
- m_ssiManager = parent->client()->ssiManager();
+ m_ssiManager = tqparent->client()->ssiManager();
m_static = staticTask;
m_opType = NoType;
m_opSubject = NoSubject;
@@ -254,23 +254,23 @@ void SSIModifyTask::handleSSIAck()
break;
case 0x0002:
kdDebug( OSCAR_RAW_DEBUG ) << k_funcinfo << "Item to modify not found in list" << endl;
- setSuccess( 0, TQString::null );
+ setSuccess( 0, TQString() );
break;
case 0x0003:
kdDebug( OSCAR_RAW_DEBUG ) << k_funcinfo << "Item already exists in SSI" << endl;
- setSuccess( 0, TQString::null );
+ setSuccess( 0, TQString() );
break;
case 0x000A:
kdDebug( OSCAR_RAW_DEBUG ) << k_funcinfo << "Error adding item ( invalid id, already in list, invalid data )" << endl;
- setSuccess( 0, TQString::null );
+ setSuccess( 0, TQString() );
break;
case 0x000C:
kdDebug( OSCAR_RAW_DEBUG ) << k_funcinfo << "Can't add item. Limit exceeded." << endl;
- setSuccess( 0, TQString::null );
+ setSuccess( 0, TQString() );
break;
case 0x000D:
kdDebug( OSCAR_RAW_DEBUG ) << k_funcinfo << "Can't add ICQ item to AIM list ( and vice versa )" << endl;
- setSuccess( 0, TQString::null );
+ setSuccess( 0, TQString() );
break;
case 0x000E:
{
@@ -283,7 +283,7 @@ void SSIModifyTask::handleSSIAck()
}
default:
kdDebug( OSCAR_RAW_DEBUG ) << k_funcinfo << "Unknown acknowledgement code" << endl;
- setSuccess( 0, TQString::null );
+ setSuccess( 0, TQString() );
break;
}
};
@@ -466,7 +466,7 @@ void SSIModifyTask::updateSSIManager()
kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "and adding " << m_newItem.name() << " to SSI manager" << endl;
m_ssiManager->newItem( m_newItem );
}
- setSuccess( 0, TQString::null );
+ setSuccess( 0, TQString() );
return;
}
@@ -479,7 +479,7 @@ void SSIModifyTask::updateSSIManager()
m_ssiManager->removeContact( m_oldItem.name() );
else if ( m_opSubject == NoSubject )
m_ssiManager->removeItem( m_oldItem );
- setSuccess( 0, TQString::null );
+ setSuccess( 0, TQString() );
return;
}
@@ -492,11 +492,11 @@ void SSIModifyTask::updateSSIManager()
m_ssiManager->newContact( m_newItem );
else if ( m_opSubject == NoSubject )
m_ssiManager->newItem( m_newItem );
- setSuccess( 0, TQString::null );
+ setSuccess( 0, TQString() );
return;
}
- setSuccess( 0, TQString::null );
+ setSuccess( 0, TQString() );
}
void SSIModifyTask::freeIdOnError()
diff --git a/kopete/protocols/oscar/liboscar/ssimodifytask.h b/kopete/protocols/oscar/liboscar/ssimodifytask.h
index 70486cbc..3093c159 100644
--- a/kopete/protocols/oscar/liboscar/ssimodifytask.h
+++ b/kopete/protocols/oscar/liboscar/ssimodifytask.h
@@ -51,7 +51,7 @@ This task implements the following SNACs from the SSI family (0x0013):
class SSIModifyTask : public Task
{
public:
- SSIModifyTask( Task* parent, bool staticTask = false );
+ SSIModifyTask( Task* tqparent, bool staticTask = false );
~SSIModifyTask();
virtual void onGo();
diff --git a/kopete/protocols/oscar/liboscar/ssiparamstask.cpp b/kopete/protocols/oscar/liboscar/ssiparamstask.cpp
index d279061c..11239533 100644
--- a/kopete/protocols/oscar/liboscar/ssiparamstask.cpp
+++ b/kopete/protocols/oscar/liboscar/ssiparamstask.cpp
@@ -27,7 +27,7 @@
using namespace Oscar;
-SSIParamsTask::SSIParamsTask(Task* parent): Task(parent)
+SSIParamsTask::SSIParamsTask(Task* tqparent): Task(tqparent)
{
}
@@ -81,7 +81,7 @@ void SSIParamsTask::handleParamReply()
//manually parse the TLV out of the packet, since we only want certain things
if ( buf->getWord() != 0x0004 )
{
- setError( -1, TQString::null );
+ setError( -1, TQString() );
return; //no TLV of type 0x0004, bad packet. do nothing.
}
else
@@ -95,7 +95,7 @@ void SSIParamsTask::handleParamReply()
WORD maxIgnore = buf->getWord();
client()->ssiManager()->setParameters( maxContacts, maxGroups, maxVisible, maxInvisible, maxIgnore );
}
- setSuccess( 0, TQString::null );
+ setSuccess( 0, TQString() );
}
// kate: tab-width 4; indent-mode csands;
diff --git a/kopete/protocols/oscar/liboscar/ssiparamstask.h b/kopete/protocols/oscar/liboscar/ssiparamstask.h
index abf12aa2..e0244c6d 100644
--- a/kopete/protocols/oscar/liboscar/ssiparamstask.h
+++ b/kopete/protocols/oscar/liboscar/ssiparamstask.h
@@ -26,7 +26,7 @@
class SSIParamsTask : public Task
{
public:
- SSIParamsTask(Task* parent);
+ SSIParamsTask(Task* tqparent);
~SSIParamsTask();
diff --git a/kopete/protocols/oscar/liboscar/stream.cpp b/kopete/protocols/oscar/liboscar/stream.cpp
index 2fb302c1..517bde68 100644
--- a/kopete/protocols/oscar/liboscar/stream.cpp
+++ b/kopete/protocols/oscar/liboscar/stream.cpp
@@ -19,8 +19,8 @@
#include "stream.h"
-Stream::Stream(TQObject *parent)
-:TQObject(parent)
+Stream::Stream(TQObject *tqparent)
+:TQObject(tqparent)
{
}
diff --git a/kopete/protocols/oscar/liboscar/stream.h b/kopete/protocols/oscar/liboscar/stream.h
index d5bfabad..2ea1f871 100644
--- a/kopete/protocols/oscar/liboscar/stream.h
+++ b/kopete/protocols/oscar/liboscar/stream.h
@@ -25,9 +25,10 @@
class Transfer;
-class Stream : public QObject
+class Stream : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
enum Error { ErrParse, ErrProtocol, ErrStream, ErrCustom = 10 };
enum StreamCond {
@@ -42,7 +43,7 @@ public:
SystemShutdown
};
- Stream(TQObject *parent=0);
+ Stream(TQObject *tqparent=0);
virtual ~Stream();
virtual void close()=0;
diff --git a/kopete/protocols/oscar/liboscar/task.cpp b/kopete/protocols/oscar/liboscar/task.cpp
index 2ec342ac..cc988ebe 100644
--- a/kopete/protocols/oscar/liboscar/task.cpp
+++ b/kopete/protocols/oscar/liboscar/task.cpp
@@ -31,7 +31,7 @@ class Task::TaskPrivate
public:
TaskPrivate() {}
- Q_UINT32 id;
+ TQ_UINT32 id;
bool success;
int statusCode;
TQString statusString;
@@ -41,19 +41,19 @@ public:
Transfer* transfer;
};
-Task::Task(Task *parent)
-:TQObject(parent)
+Task::Task(Task *tqparent)
+:TQObject(tqparent)
{
init();
- d->client = parent->client();
+ d->client = tqparent->client();
connect(d->client, TQT_SIGNAL(disconnected()), TQT_SLOT(clientDisconnected()));
}
-Task::Task(Connection* parent, bool)
+Task::Task(Connection* tqparent, bool)
:TQObject(0)
{
init();
- d->client = parent;
+ d->client = tqparent;
connect(d->client, TQT_SIGNAL(disconnected()), TQT_SLOT(clientDisconnected()));
}
@@ -75,9 +75,9 @@ void Task::init()
d->id = 0;
}
-Task *Task::parent() const
+Task *Task::tqparent() const
{
- return (Task *)TQObject::parent();
+ return (Task *)TQObject::tqparent();
}
Connection *Task::client() const
@@ -124,12 +124,12 @@ void Task::go(bool autoDelete)
bool Task::take( Transfer * transfer)
{
- const TQObjectList *p = children();
- if(!p)
+ const TQObjectList p = childrenListObject();
+ if(p.isEmpty())
return false;
- // pass along the transfer to our children
- TQObjectListIt it(*p);
+ // pass along the transfer to our tqchildren
+ TQObjectListIt it(p);
Task *t;
for(; it.current(); ++it) {
TQObject *obj = it.current();
@@ -271,7 +271,7 @@ void Task::debug(const TQString &str)
{
//black hole
Q_UNUSED( str );
- //client()->debug(TQString("%1: ").arg(className()) + str);
+ //client()->debug(TQString("%1: ").tqarg(className()) + str);
}
bool Task::forMe( const Transfer * transfer ) const
@@ -280,7 +280,7 @@ bool Task::forMe( const Transfer * transfer ) const
return false;
}
-void Task::setId( Q_UINT32 id )
+void Task::setId( TQ_UINT32 id )
{
d->id = id;
}
diff --git a/kopete/protocols/oscar/liboscar/task.h b/kopete/protocols/oscar/liboscar/task.h
index ebc26fb8..184abd45 100644
--- a/kopete/protocols/oscar/liboscar/task.h
+++ b/kopete/protocols/oscar/liboscar/task.h
@@ -34,16 +34,17 @@ class Transfer;
using namespace Oscar;
-class Task : public QObject
+class Task : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
enum { ErrDisc };
- Task(Task *parent);
+ Task(Task *tqparent);
Task( Connection*, bool isRoot );
virtual ~Task();
- Task *parent() const;
+ Task *tqparent() const;
Connection* client() const;
Transfer *transfer() const;
@@ -74,7 +75,7 @@ signals:
protected:
virtual void onGo();
virtual void onDisconnect();
- void setId( Q_UINT32 id );
+ void setId( TQ_UINT32 id );
void send( Transfer * request );
void setSuccess( int code=0, const TQString &str="" );
void setError( int code=0, const TQString &str="" );
diff --git a/kopete/protocols/oscar/liboscar/tests/clientstream_test.cpp b/kopete/protocols/oscar/liboscar/tests/clientstream_test.cpp
index a7c16cea..6f62ebe6 100644
--- a/kopete/protocols/oscar/liboscar/tests/clientstream_test.cpp
+++ b/kopete/protocols/oscar/liboscar/tests/clientstream_test.cpp
@@ -27,7 +27,7 @@ ClientStreamTest::~ClientStreamTest()
void ClientStreamTest::slotDoTest()
{
- TQString server = TQString::fromLatin1("login.oscar.aol.com");
+ TQString server = TQString::tqfromLatin1("login.oscar.aol.com");
// connect to server
qDebug( "connecting to server ");
myTestObject->connectToServer( server, true ); // fine up to here...
diff --git a/kopete/protocols/oscar/liboscar/tests/clientstream_test.h b/kopete/protocols/oscar/liboscar/tests/clientstream_test.h
index 47aeac86..80c68446 100644
--- a/kopete/protocols/oscar/liboscar/tests/clientstream_test.h
+++ b/kopete/protocols/oscar/liboscar/tests/clientstream_test.h
@@ -19,11 +19,12 @@
#include "coreprotocol.h"
-#define QT_FATAL_ASSERT 1
+#define TQT_FATAL_ASSERT 1
-class ClientStreamTest : public QApplication
+class ClientStreamTest : public TQApplication
{
Q_OBJECT
+ TQ_OBJECT
public:
ClientStreamTest(int argc, char ** argv);
diff --git a/kopete/protocols/oscar/liboscar/tests/ipaddrtest.h b/kopete/protocols/oscar/liboscar/tests/ipaddrtest.h
index f2fa0fec..6aff018c 100644
--- a/kopete/protocols/oscar/liboscar/tests/ipaddrtest.h
+++ b/kopete/protocols/oscar/liboscar/tests/ipaddrtest.h
@@ -16,9 +16,9 @@
#include "oscarutils.h"
-#define QT_FATAL_ASSERT 1
+#define TQT_FATAL_ASSERT 1
-class IPAddrTest : public QApplication
+class IPAddrTest : public TQApplication
{
public:
IPAddrTest(int argc, char ** argv);
diff --git a/kopete/protocols/oscar/liboscar/tests/kunittest.cpp b/kopete/protocols/oscar/liboscar/tests/kunittest.cpp
index 2181fda3..d40f0069 100644
--- a/kopete/protocols/oscar/liboscar/tests/kunittest.cpp
+++ b/kopete/protocols/oscar/liboscar/tests/kunittest.cpp
@@ -62,7 +62,7 @@ KUnitTest::KUnitTest()
void KUnitTest::checkRun()
{
// if ( m_qtests.isEmpty() )
-// qApp->exit();
+// tqApp->exit();
}
int KUnitTest::runTests()
@@ -150,7 +150,7 @@ int KUnitTest::runTests()
return m_tests.count();
}
-//void KUnitTest::addTester( QTester *test )
+//void KUnitTest::addTester( TQTester *test )
//{
// m_qtests.insert( test, test );
// connect( test, TQT_SIGNAL(destroyed(TQObject*)),
@@ -161,7 +161,7 @@ void KUnitTest::qtesterDone( TQObject *obj )
{
// m_qtests.remove( obj );
// if ( m_qtests.isEmpty() )
-// qApp->quit();
+// tqApp->quit();
}
#include "kunittest.moc"
diff --git a/kopete/protocols/oscar/liboscar/tests/kunittest.h b/kopete/protocols/oscar/liboscar/tests/kunittest.h
index d2d6a04a..c2149992 100644
--- a/kopete/protocols/oscar/liboscar/tests/kunittest.h
+++ b/kopete/protocols/oscar/liboscar/tests/kunittest.h
@@ -34,11 +34,12 @@
#include <tqptrdict.h>
#define ADD_TEST(x) addTester( #x, new x )
-#define ADD_QTEST(x) addTester( new x )
+#define ADD_TQTEST(x) addTester( new x )
-class KUnitTest : public QObject
+class KUnitTest : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
KUnitTest();
@@ -48,7 +49,7 @@ public:
{
m_tests.insert( name, test );
}
-// void addTester( QTester *test );
+// void addTester( TQTester *test );
private slots:
void qtesterDone( TQObject *obj );
@@ -59,7 +60,7 @@ private:
private:
TQAsciiDict<Tester> m_tests;
-// TQPtrDict<QTester> m_qtests;
+// TQPtrDict<TQTester> m_qtests;
int globalTests;
int globalPasses;
int globalFails;
diff --git a/kopete/protocols/oscar/liboscar/tests/logintest.cpp b/kopete/protocols/oscar/liboscar/tests/logintest.cpp
index 1d3728aa..540aa35c 100644
--- a/kopete/protocols/oscar/liboscar/tests/logintest.cpp
+++ b/kopete/protocols/oscar/liboscar/tests/logintest.cpp
@@ -29,7 +29,7 @@ LoginTest::~LoginTest()
void LoginTest::slotDoTest()
{
- TQString server = TQString::fromLatin1("login.oscar.aol.com");
+ TQString server = TQString::tqfromLatin1("login.oscar.aol.com");
// connect to server
qDebug( "connecting to server ");
diff --git a/kopete/protocols/oscar/liboscar/tests/logintest.h b/kopete/protocols/oscar/liboscar/tests/logintest.h
index d97c336d..661ae49d 100644
--- a/kopete/protocols/oscar/liboscar/tests/logintest.h
+++ b/kopete/protocols/oscar/liboscar/tests/logintest.h
@@ -20,11 +20,12 @@
#include "connection.h"
#include "coreprotocol.h"
-#define QT_FATAL_ASSERT 1
+#define TQT_FATAL_ASSERT 1
-class LoginTest : public QApplication
+class LoginTest : public TQApplication
{
Q_OBJECT
+ TQ_OBJECT
public:
LoginTest(int argc, char ** argv);
diff --git a/kopete/protocols/oscar/liboscar/tests/redirecttest.h b/kopete/protocols/oscar/liboscar/tests/redirecttest.h
index 785d61c8..0989529c 100644
--- a/kopete/protocols/oscar/liboscar/tests/redirecttest.h
+++ b/kopete/protocols/oscar/liboscar/tests/redirecttest.h
@@ -19,9 +19,9 @@
#include "serverredirecttask.h"
#include "task.h"
-#define QT_FATAL_ASSERT 1
+#define TQT_FATAL_ASSERT 1
-class RedirectTest : public QApplication
+class RedirectTest : public TQApplication
{
public:
RedirectTest(int argc, char ** argv);
diff --git a/kopete/protocols/oscar/liboscar/tests/ssigrouptest.cpp b/kopete/protocols/oscar/liboscar/tests/ssigrouptest.cpp
index 6ca733cc..9849bbbb 100644
--- a/kopete/protocols/oscar/liboscar/tests/ssigrouptest.cpp
+++ b/kopete/protocols/oscar/liboscar/tests/ssigrouptest.cpp
@@ -29,7 +29,7 @@ LoginTest::~LoginTest()
void LoginTest::slotDoTest()
{
- TQString server = TQString::fromLatin1("login.oscar.aol.com");
+ TQString server = TQString::tqfromLatin1("login.oscar.aol.com");
// connect to server
qDebug( "connecting to server ");
@@ -57,7 +57,7 @@ int main(int argc, char ** argv)
void LoginTest::runAddGroupTest()
{
qDebug( "running ssi group add test" );
- TQString group = TQString::fromLatin1( "dummygroup" );
+ TQString group = TQString::tqfromLatin1( "dummygroup" );
myClient->addGroup( group );
TQTimer::singleShot( 5000, this, TQT_SLOT( runDelGroupTest() ) );
}
@@ -65,7 +65,7 @@ void LoginTest::runAddGroupTest()
void LoginTest::runDelGroupTest()
{
qDebug( "running ssi group del test" );
- TQString group = TQString::fromLatin1( "dummygroup" );
+ TQString group = TQString::tqfromLatin1( "dummygroup" );
myClient->removeGroup( group );
}
diff --git a/kopete/protocols/oscar/liboscar/tests/ssigrouptest.h b/kopete/protocols/oscar/liboscar/tests/ssigrouptest.h
index 291698ec..e997b9db 100644
--- a/kopete/protocols/oscar/liboscar/tests/ssigrouptest.h
+++ b/kopete/protocols/oscar/liboscar/tests/ssigrouptest.h
@@ -20,11 +20,12 @@
#include "connection.h"
#include "coreprotocol.h"
-#define QT_FATAL_ASSERT 1
+#define TQT_FATAL_ASSERT 1
-class LoginTest : public QApplication
+class LoginTest : public TQApplication
{
Q_OBJECT
+ TQ_OBJECT
public:
LoginTest(int argc, char ** argv);
diff --git a/kopete/protocols/oscar/liboscar/tests/ssitest.cpp b/kopete/protocols/oscar/liboscar/tests/ssitest.cpp
index 7669a945..9c2202a6 100644
--- a/kopete/protocols/oscar/liboscar/tests/ssitest.cpp
+++ b/kopete/protocols/oscar/liboscar/tests/ssitest.cpp
@@ -53,28 +53,28 @@ void SSITest::testIt()
//try to find a group by name
ssi = m_manager->findGroup("SecondGroup");
if ( ssi )
- qDebug( TQString("Found group SecondGroup with gid=%1").arg( ssi->gid() ).latin1());
+ qDebug( TQString("Found group SecondGroup with gid=%1").tqarg( ssi->gid() ).latin1());
else
qDebug( "Oops, group SecondGroup not found" );
//try to find a group by gid
ssi = m_manager->findGroup( 3 );
if ( ssi )
- qDebug( TQString("Found group 3 with name=%1").arg( ssi->name() ).latin1() );
+ qDebug( TQString("Found group 3 with name=%1").tqarg( ssi->name() ).latin1() );
else
qDebug( "Oops, group 3 not found" );
//try to find a contact by name
ssi = m_manager->findContact("ThirdContact");
if ( ssi )
- qDebug( TQString( "Found contact ThirdContact with gid=%1" ).arg( ssi->gid() ).latin1() );
+ qDebug( TQString( "Found contact ThirdContact with gid=%1" ).tqarg( ssi->gid() ).latin1() );
else
qDebug( "Oops, contact ThirdContact not found" );
//try to find a contact using the name and the group name
ssi = m_manager->findContact("FourthContact","SecondGroup");
if ( ssi )
- qDebug( TQString("Found contact FourthContact with bid=%1").arg( ssi->bid() ).latin1() );
+ qDebug( TQString("Found contact FourthContact with bid=%1").tqarg( ssi->bid() ).latin1() );
else
qDebug( "Oops, contact FourthContact not found" );
@@ -89,13 +89,13 @@ void SSITest::testIt()
TQValueList<SSI*>::iterator it;
qDebug( "Contacts from group FirtsGroup:" );
for ( it = list.begin(); it != list.end(); ++it)
- qDebug( TQString(" name=%1").arg( (*it)->name() ).latin1() );
+ qDebug( TQString(" name=%1").tqarg( (*it)->name() ).latin1() );
//the group list
TQValueList<SSI*> list2 = m_manager->groupList();
qDebug( "Group list:" );
for ( it = list2.begin(); it != list2.end(); ++it)
- qDebug( TQString(" name=%1").arg( (*it)->name() ).latin1() );
+ qDebug( TQString(" name=%1").tqarg( (*it)->name() ).latin1() );
//remove a group - this shouldn't report any debug line
m_manager->removeGroup( "SecondGroup" );
diff --git a/kopete/protocols/oscar/liboscar/tests/ssitest.h b/kopete/protocols/oscar/liboscar/tests/ssitest.h
index fbdcf2fb..db7e8697 100644
--- a/kopete/protocols/oscar/liboscar/tests/ssitest.h
+++ b/kopete/protocols/oscar/liboscar/tests/ssitest.h
@@ -16,11 +16,12 @@
#include "ssimanager.h"
-#define QT_FATAL_ASSERT 1
+#define TQT_FATAL_ASSERT 1
-class SSITest : public QApplication
+class SSITest : public TQApplication
{
Q_OBJECT
+ TQ_OBJECT
public:
SSITest(int argc, char ** argv);
diff --git a/kopete/protocols/oscar/liboscar/tests/userinfotest.cpp b/kopete/protocols/oscar/liboscar/tests/userinfotest.cpp
index fb346d26..663ec2fb 100644
--- a/kopete/protocols/oscar/liboscar/tests/userinfotest.cpp
+++ b/kopete/protocols/oscar/liboscar/tests/userinfotest.cpp
@@ -29,7 +29,7 @@ LoginTest::~LoginTest()
void LoginTest::slotDoTest()
{
- TQString server = TQString::fromLatin1("login.oscar.aol.com");
+ TQString server = TQString::tqfromLatin1("login.oscar.aol.com");
// connect to server
qDebug( "connecting to server ");
@@ -58,7 +58,7 @@ int main(int argc, char ** argv)
void LoginTest::runUserInfoTest()
{
qDebug( "running user info test" );
- TQString contact = TQString::fromLatin1( "userid" );
+ TQString contact = TQString::tqfromLatin1( "userid" );
myClient->requestFullInfo( contact );
}
diff --git a/kopete/protocols/oscar/liboscar/tests/userinfotest.h b/kopete/protocols/oscar/liboscar/tests/userinfotest.h
index 76450466..a17818e6 100644
--- a/kopete/protocols/oscar/liboscar/tests/userinfotest.h
+++ b/kopete/protocols/oscar/liboscar/tests/userinfotest.h
@@ -20,11 +20,12 @@
#include "connection.h"
#include "coreprotocol.h"
-#define QT_FATAL_ASSERT 1
+#define TQT_FATAL_ASSERT 1
-class LoginTest : public QApplication
+class LoginTest : public TQApplication
{
Q_OBJECT
+ TQ_OBJECT
public:
LoginTest(int argc, char ** argv);
diff --git a/kopete/protocols/oscar/liboscar/transfer.cpp b/kopete/protocols/oscar/liboscar/transfer.cpp
index ac83ac06..100bcf9d 100644
--- a/kopete/protocols/oscar/liboscar/transfer.cpp
+++ b/kopete/protocols/oscar/liboscar/transfer.cpp
@@ -90,7 +90,7 @@ TQString Transfer::toString() const
if(c < 0x10)
hex.append("0");
- hex.append(TQString("%1 ").arg(c, 0, 16));
+ hex.append(TQString("%1 ").tqarg(c, 0, 16));
ascii.append(isprint(c) ? c : '.');
@@ -98,8 +98,8 @@ TQString Transfer::toString() const
{
output += hex + " |" + ascii + "|\n";
i=0;
- hex=TQString::null;
- ascii=TQString::null;
+ hex=TQString();
+ ascii=TQString();
}
}
diff --git a/kopete/protocols/oscar/liboscar/typingnotifytask.cpp b/kopete/protocols/oscar/liboscar/typingnotifytask.cpp
index f3c34f96..536f2f39 100644
--- a/kopete/protocols/oscar/liboscar/typingnotifytask.cpp
+++ b/kopete/protocols/oscar/liboscar/typingnotifytask.cpp
@@ -25,8 +25,8 @@
-TypingNotifyTask::TypingNotifyTask( Task* parent )
-: Task( parent )
+TypingNotifyTask::TypingNotifyTask( Task* tqparent )
+: Task( tqparent )
{
m_notificationType = 0x0000;
}
@@ -79,7 +79,7 @@ void TypingNotifyTask::onGo()
Transfer* t = createTransfer( f, s, b );
send( t );
- setSuccess( 0, TQString::null );
+ setSuccess( 0, TQString() );
}
void TypingNotifyTask::handleNotification()
@@ -87,12 +87,12 @@ void TypingNotifyTask::handleNotification()
/* NB ICQ5 (windows) seems to only send 0x0002 and 0x0001, so I'm interpreting 0x001 as typing finished here - Will */
Buffer* b = transfer()->buffer();
- //I don't care about the QWORD or the channel
+ //I don't care about the TQWORD or the channel
b->skipBytes( 10 );
TQString contact( b->getBUIN() );
- Q_UINT32 word = b->getWord();
+ TQ_UINT32 word = b->getWord();
switch ( word )
{
case 0x0000:
@@ -120,5 +120,5 @@ void TypingNotifyTask::setParams( const TQString& contact, int notifyType )
#include "typingnotifytask.moc"
-// kate: indent-mode csands; space-indent off; replace-tabs off;
+// kate: indent-mode csands; space-indent off; tqreplace-tabs off;
diff --git a/kopete/protocols/oscar/liboscar/typingnotifytask.h b/kopete/protocols/oscar/liboscar/typingnotifytask.h
index 34c5d86a..e99951fc 100644
--- a/kopete/protocols/oscar/liboscar/typingnotifytask.h
+++ b/kopete/protocols/oscar/liboscar/typingnotifytask.h
@@ -28,10 +28,11 @@
class TypingNotifyTask : public Task
{
Q_OBJECT
+ TQ_OBJECT
public:
enum { Finished = 0x0000, Typed = 0x0001, Begin = 0x0002 };
- TypingNotifyTask( Task* parent );
+ TypingNotifyTask( Task* tqparent );
~TypingNotifyTask();
virtual bool forMe( const Transfer* transfer) const;
@@ -59,4 +60,4 @@ private:
#endif
-//kate: indent-mode csands; space-indent off; replace-tabs off;
+//kate: indent-mode csands; space-indent off; tqreplace-tabs off;
diff --git a/kopete/protocols/oscar/liboscar/userdetails.cpp b/kopete/protocols/oscar/liboscar/userdetails.cpp
index 8a1b6c4e..77a6c72b 100644
--- a/kopete/protocols/oscar/liboscar/userdetails.cpp
+++ b/kopete/protocols/oscar/liboscar/userdetails.cpp
@@ -34,7 +34,7 @@ UserDetails::UserDetails()
m_warningLevel = 0;
m_userClass = 0;
m_idleTime = 0;
- m_extendedStatus = 0;
+ m_extendedtqStatus = 0;
m_capabilities = 0;
m_dcPort = 0;
m_dcType = 0;
@@ -107,9 +107,9 @@ int UserDetails::userClass() const
return m_userClass;
}
-DWORD UserDetails::extendedStatus() const
+DWORD UserDetails::extendedtqStatus() const
{
- return m_extendedStatus;
+ return m_extendedtqStatus;
}
BYTE UserDetails::iconCheckSumType() const
@@ -126,7 +126,7 @@ TQString UserDetails::clientName() const
{
if ( !m_clientVersion.isEmpty() )
return i18n("Translators: client-name client-version",
- "%1 %2").arg(m_clientName, m_clientVersion);
+ "%1 %2").tqarg(m_clientName, m_clientVersion);
else
return m_clientName;
}
@@ -183,10 +183,10 @@ void UserDetails::fill( Buffer * buffer )
#endif
break;
case 0x0006: //extended user status
- m_extendedStatus = b.getDWord();
+ m_extendedtqStatus = b.getDWord();
m_extendedStatusSpecified = true;
#ifdef OSCAR_USERINFO_DEBUG
- kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "Extended status is " << TQString::number( m_extendedStatus, 16 ) << endl;
+ kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "Extended status is " << TQString::number( m_extendedtqStatus, 16 ) << endl;
#endif
break;
case 0x000A: //external IP address
@@ -366,9 +366,9 @@ void UserDetails::detectClient()
case 0xFFFFFFFFL: //gaim behaves like official AIM so we can't detect them, only look for miranda
{
if (m_dcLastExtStatusUpdateTime & 0x80000000)
- m_clientName=TQString::fromLatin1("Miranda alpha");
+ m_clientName=TQString::tqfromLatin1("Miranda alpha");
else
- m_clientName=TQString::fromLatin1("Miranda");
+ m_clientName=TQString::tqfromLatin1("Miranda");
DWORD version = (m_dcLastExtInfoUpdateTime & 0xFFFFFF);
BYTE major1 = ((version >> 24) & 0xFF);
@@ -391,25 +391,25 @@ void UserDetails::detectClient()
}
break;
case 0xFFFFFF8FL:
- m_clientName = TQString::fromLatin1("StrICQ");
+ m_clientName = TQString::tqfromLatin1("StrICQ");
break;
case 0xFFFFFF42L:
- m_clientName = TQString::fromLatin1("mICQ");
+ m_clientName = TQString::tqfromLatin1("mICQ");
break;
case 0xFFFFFFBEL:
- m_clientName = TQString::fromLatin1("alicq");
+ m_clientName = TQString::tqfromLatin1("alicq");
break;
case 0xFFFFFF7FL:
- m_clientName = TQString::fromLatin1("&RQ");
+ m_clientName = TQString::tqfromLatin1("&RQ");
break;
case 0xFFFFFFABL:
- m_clientName = TQString::fromLatin1("YSM");
+ m_clientName = TQString::tqfromLatin1("YSM");
break;
case 0x3AA773EEL:
if ((m_dcLastExtStatusUpdateTime == 0x3AA66380L) &&
(m_dcLastExtInfoUpdateTime == 0x3A877A42L))
{
- m_clientName=TQString::fromLatin1("libicq2000");
+ m_clientName=TQString::tqfromLatin1("libicq2000");
}
break;
default:
@@ -427,48 +427,48 @@ void UserDetails::detectClient()
switch (m_dcProtoVersion)
{
case 10:
- m_clientName=TQString::fromLatin1("ICQ 2003b");
+ m_clientName=TQString::tqfromLatin1("ICQ 2003b");
break;
case 9:
- m_clientName=TQString::fromLatin1("ICQ Lite");
+ m_clientName=TQString::tqfromLatin1("ICQ Lite");
break;
case 8:
- m_clientName=TQString::fromLatin1("Miranda");
+ m_clientName=TQString::tqfromLatin1("Miranda");
break;
default:
- m_clientName=TQString::fromLatin1("ICQ2go");
+ m_clientName=TQString::tqfromLatin1("ICQ2go");
}
}
else if (hasCap(CAP_BUDDYICON)) // only gaim seems to advertize this on ICQ
{
- m_clientName = TQString::fromLatin1("Gaim");
+ m_clientName = TQString::tqfromLatin1("Gaim");
}
else if (hasCap(CAP_XTRAZ))
{
- m_clientName = TQString::fromLatin1("ICQ 4.0 Lite");
+ m_clientName = TQString::tqfromLatin1("ICQ 4.0 Lite");
}
else if ((hasCap(CAP_STR_2001) || hasCap(CAP_ICQSERVERRELAY)) &&
hasCap(CAP_IS_2001))
{
- m_clientName = TQString::fromLatin1( "ICQ 2001");
+ m_clientName = TQString::tqfromLatin1( "ICQ 2001");
}
else if ((hasCap(CAP_STR_2001) || hasCap(CAP_ICQSERVERRELAY)) &&
hasCap(CAP_STR_2002))
{
- m_clientName = TQString::fromLatin1("ICQ 2002");
+ m_clientName = TQString::tqfromLatin1("ICQ 2002");
}
else if (hasCap(CAP_RTFMSGS) && hasCap(CAP_UTF8) &&
hasCap(CAP_ICQSERVERRELAY) && hasCap(CAP_ISICQ))
{
- m_clientName = TQString::fromLatin1("ICQ 2003a");
+ m_clientName = TQString::tqfromLatin1("ICQ 2003a");
}
else if (hasCap(CAP_ICQSERVERRELAY) && hasCap(CAP_ISICQ))
{
- m_clientName =TQString::fromLatin1("ICQ 2001b");
+ m_clientName =TQString::tqfromLatin1("ICQ 2001b");
}
else if ((m_dcProtoVersion == 7) && hasCap(CAP_RTFMSGS))
{
- m_clientName = TQString::fromLatin1("GnomeICU");
+ m_clientName = TQString::tqfromLatin1("GnomeICU");
}
}
@@ -514,7 +514,7 @@ void UserDetails::merge( const UserDetails& ud )
}
if ( ud.m_extendedStatusSpecified )
{
- m_extendedStatus = ud.m_extendedStatus;
+ m_extendedtqStatus = ud.m_extendedtqStatus;
m_extendedStatusSpecified = true;
}
if ( ud.m_capabilitiesSpecified )
diff --git a/kopete/protocols/oscar/liboscar/userdetails.h b/kopete/protocols/oscar/liboscar/userdetails.h
index 8835f6f9..367d8999 100644
--- a/kopete/protocols/oscar/liboscar/userdetails.h
+++ b/kopete/protocols/oscar/liboscar/userdetails.h
@@ -44,7 +44,7 @@ public:
TQDateTime onlineSinceTime() const; //! Online since accessor
TQDateTime memberSinceTime() const; //! Member since accessor
int userClass() const; //! User class accessor
- DWORD extendedStatus() const; //!User status accessor
+ DWORD extendedtqStatus() const; //!User status accessor
BYTE iconCheckSumType() const; //!Buddy icon hash type
TQByteArray buddyIconHash() const; //! Buddy icon md5 hash accessor
TQString clientName() const; //! Client name and version
@@ -85,7 +85,7 @@ private:
TQDateTime m_onlineSince; /// how long the contact's been online - TLV 0x03
DWORD m_numSecondsOnline; /// how long the contact's been online in seconds
WORD m_idleTime; /// the idle time of the contact - TLV 0x0F
- DWORD m_extendedStatus; /// the extended status of the contact - TLV 0x06
+ DWORD m_extendedtqStatus; /// the extended status of the contact - TLV 0x06
DWORD m_capabilities; //TLV 0x05
TQString m_clientVersion; /// the version of client they're using
TQString m_clientName; /// the name of the client they're using
diff --git a/kopete/protocols/oscar/liboscar/userinfotask.cpp b/kopete/protocols/oscar/liboscar/userinfotask.cpp
index 66197316..4cda87a0 100644
--- a/kopete/protocols/oscar/liboscar/userinfotask.cpp
+++ b/kopete/protocols/oscar/liboscar/userinfotask.cpp
@@ -26,8 +26,8 @@ Kopete (c) 2002-2005 by the Kopete developers <kopete-devel@kde.org>
-UserInfoTask::UserInfoTask( Task* parent )
-: Task( parent )
+UserInfoTask::UserInfoTask( Task* tqparent )
+: Task( tqparent )
{
}
@@ -44,7 +44,7 @@ bool UserInfoTask::forMe( const Transfer * transfer ) const
if ( st->snacService() == 0x0002 && st->snacSubtype() == 0x0006 )
{
- if ( m_contactSequenceMap.find( st->snacRequest() ) == m_contactSequenceMap.end() )
+ if ( m_contactSequenceMap.tqfind( st->snacRequest() ) == m_contactSequenceMap.end() )
return false;
else
{
@@ -61,7 +61,7 @@ bool UserInfoTask::take( Transfer * transfer )
if ( forMe( transfer ) )
{
setTransfer( transfer );
- Q_UINT16 seq = 0;
+ TQ_UINT16 seq = 0;
SnacTransfer* st = dynamic_cast<SnacTransfer*>( transfer );
if ( st )
seq = st->snacRequest();
@@ -135,7 +135,7 @@ void UserInfoTask::onGo()
void UserInfoTask::requestInfoFor( const TQString& contact, unsigned int types )
{
- Q_UINT16 seq = client()->snacSequence();
+ TQ_UINT16 seq = client()->snacSequence();
kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "setting sequence " << seq << " for contact " << contact << endl;
m_contactSequenceMap[seq] = contact;
m_typesSequenceMap[seq] = types;
@@ -143,7 +143,7 @@ void UserInfoTask::requestInfoFor( const TQString& contact, unsigned int types )
onGo();
}
-UserDetails UserInfoTask::getInfoFor( Q_UINT16 sequence ) const
+UserDetails UserInfoTask::getInfoFor( TQ_UINT16 sequence ) const
{
return m_sequenceInfoMap[sequence];
}
diff --git a/kopete/protocols/oscar/liboscar/userinfotask.h b/kopete/protocols/oscar/liboscar/userinfotask.h
index 4b973a04..4eadc90c 100644
--- a/kopete/protocols/oscar/liboscar/userinfotask.h
+++ b/kopete/protocols/oscar/liboscar/userinfotask.h
@@ -33,8 +33,9 @@ Handles user information requests that are done via SNAC 02,05 and 02,06
class UserInfoTask : public Task
{
Q_OBJECT
+ TQ_OBJECT
public:
- UserInfoTask( Task* parent );
+ UserInfoTask( Task* tqparent );
~UserInfoTask();
enum { Profile = 0x0001, General = 0x0002, AwayMessage = 0x0003, Capabilities = 0x0004 };
@@ -45,20 +46,20 @@ public:
void onGo();
void requestInfoFor( const TQString& userId, unsigned int types );
- UserDetails getInfoFor( Q_UINT16 sequence ) const;
- TQString contactForSequence( Q_UINT16 sequence ) const;
+ UserDetails getInfoFor( TQ_UINT16 sequence ) const;
+ TQString contactForSequence( TQ_UINT16 sequence ) const;
signals:
- void gotInfo( Q_UINT16 seqNumber );
+ void gotInfo( TQ_UINT16 seqNumber );
void receivedProfile( const TQString& contact, const TQString& profile );
void receivedAwayMessage( const TQString& contact, const TQString& message );
private:
- TQMap<Q_UINT16, UserDetails> m_sequenceInfoMap;
- TQMap<Q_UINT16, TQString> m_contactSequenceMap;
- TQMap<Q_UINT16, unsigned int> m_typesSequenceMap;
- Q_UINT16 m_seq;
+ TQMap<TQ_UINT16, UserDetails> m_sequenceInfoMap;
+ TQMap<TQ_UINT16, TQString> m_contactSequenceMap;
+ TQMap<TQ_UINT16, unsigned int> m_typesSequenceMap;
+ TQ_UINT16 m_seq;
};
diff --git a/kopete/protocols/oscar/liboscar/usersearchtask.cpp b/kopete/protocols/oscar/liboscar/usersearchtask.cpp
index 545706a5..a386d8cf 100644
--- a/kopete/protocols/oscar/liboscar/usersearchtask.cpp
+++ b/kopete/protocols/oscar/liboscar/usersearchtask.cpp
@@ -22,8 +22,8 @@
#include "buffer.h"
#include "connection.h"
-UserSearchTask::UserSearchTask( Task* parent )
- : ICQTask( parent )
+UserSearchTask::UserSearchTask( Task* tqparent )
+ : ICQTask( tqparent )
{
}
@@ -61,7 +61,7 @@ bool UserSearchTask::take( Transfer* t )
{
setTransfer( t );
- Q_UINT16 seq = 0;
+ TQ_UINT16 seq = 0;
SnacTransfer* st = dynamic_cast<SnacTransfer*>( t );
if ( st )
seq = st->snacRequest();
@@ -98,7 +98,7 @@ bool UserSearchTask::take( Transfer* t )
{
int moreUsersCount = buffer->getLEDWord();
emit searchFinished( moreUsersCount );
- setSuccess( 0, TQString::null );
+ setSuccess( 0, TQString() );
}
setTransfer( 0 );
}
@@ -312,4 +312,4 @@ void UserSearchTask::searchWhitePages( const ICQWPSearchInfo& info )
#include "usersearchtask.moc"
-//kate: indent-mode csands; tab-width 4; space-indent off; replace-tabs off;
+//kate: indent-mode csands; tab-width 4; space-indent off; tqreplace-tabs off;
diff --git a/kopete/protocols/oscar/liboscar/usersearchtask.h b/kopete/protocols/oscar/liboscar/usersearchtask.h
index 781a311a..4cef65d0 100644
--- a/kopete/protocols/oscar/liboscar/usersearchtask.h
+++ b/kopete/protocols/oscar/liboscar/usersearchtask.h
@@ -31,8 +31,9 @@ Search for contacts
class UserSearchTask : public ICQTask
{
Q_OBJECT
+ TQ_OBJECT
public:
- UserSearchTask( Task* parent );
+ UserSearchTask( Task* tqparent );
~UserSearchTask();
@@ -54,7 +55,7 @@ signals:
private:
TQValueList<ICQSearchResult> m_results;
TQString m_uin;
- Q_UINT16 m_seq;
+ TQ_UINT16 m_seq;
SearchType m_type;
};
diff --git a/kopete/protocols/oscar/liboscar/warningtask.cpp b/kopete/protocols/oscar/liboscar/warningtask.cpp
index 7b895b5c..00a0294d 100644
--- a/kopete/protocols/oscar/liboscar/warningtask.cpp
+++ b/kopete/protocols/oscar/liboscar/warningtask.cpp
@@ -23,7 +23,7 @@
#include "transfer.h"
#include "connection.h"
-WarningTask::WarningTask( Task* parent ): Task( parent )
+WarningTask::WarningTask( Task* tqparent ): Task( tqparent )
{
}
@@ -65,13 +65,13 @@ bool WarningTask::take( Transfer* transfer )
kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "Warning level increased " << m_increase
<< " to " << m_newLevel << endl;
emit userWarned( m_contact, m_increase, m_newLevel );
- setSuccess( 0, TQString::null );
+ setSuccess( 0, TQString() );
setTransfer( 0 );
return true;
}
else
{
- setError( 0, TQString::null );
+ setError( 0, TQString() );
return false;
}
}
@@ -91,6 +91,6 @@ void WarningTask::onGo()
send( t );
}
-//kate: indent-mode csands; space-indent off; replace-tabs off; tab-width 4;
+//kate: indent-mode csands; space-indent off; tqreplace-tabs off; tab-width 4;
#include "warningtask.moc"
diff --git a/kopete/protocols/oscar/liboscar/warningtask.h b/kopete/protocols/oscar/liboscar/warningtask.h
index af56968c..d5e720be 100644
--- a/kopete/protocols/oscar/liboscar/warningtask.h
+++ b/kopete/protocols/oscar/liboscar/warningtask.h
@@ -29,8 +29,9 @@
class WarningTask : public Task
{
Q_OBJECT
+ TQ_OBJECT
public:
- WarningTask( Task* parent );
+ WarningTask( Task* tqparent );
~WarningTask();
void setContact( const TQString& contact );
@@ -44,7 +45,7 @@ public:
virtual void onGo();
signals:
- void userWarned( const TQString&, Q_UINT16, Q_UINT16 );
+ void userWarned( const TQString&, TQ_UINT16, TQ_UINT16 );
private:
TQString m_contact;
@@ -56,4 +57,4 @@ private:
#endif
-//kate: indent-mode csands; space-indent off; replace-tabs off; tab-width 4;
+//kate: indent-mode csands; space-indent off; tqreplace-tabs off; tab-width 4;
diff --git a/kopete/protocols/oscar/oscaraccount.cpp b/kopete/protocols/oscar/oscaraccount.cpp
index 2a9b4e82..4ff71b1c 100644
--- a/kopete/protocols/oscar/oscaraccount.cpp
+++ b/kopete/protocols/oscar/oscaraccount.cpp
@@ -69,7 +69,7 @@ public:
//The liboscar hook for the account
Client* engine;
- Q_UINT32 ssiLastModTime;
+ TQ_UINT32 ssiLastModTime;
//contacts waiting on SSI add ack and their metacontact
TQMap<TQString, Kopete::MetaContact*> addContactMap;
@@ -94,8 +94,8 @@ public:
}
};
-OscarAccount::OscarAccount(Kopete::Protocol *parent, const TQString &accountID, const char *name, bool isICQ)
-: Kopete::PasswordedAccount( parent, accountID, isICQ ? 8 : 16, name )
+OscarAccount::OscarAccount(Kopete::Protocol *tqparent, const TQString &accountID, const char *name, bool isICQ)
+: Kopete::PasswordedAccount( tqparent, accountID, isICQ ? 8 : 16, name )
{
kdDebug(OSCAR_GEN_DEBUG) << k_funcinfo << " accountID='" << accountID <<
"', isICQ=" << isICQ << endl;
@@ -245,7 +245,7 @@ void OscarAccount::processSSIList()
oc->setSSIItem( item );
}
else
- addContact( ( *bit ).name(), TQString::null, group, Kopete::Account::DontChangeKABC );
+ addContact( ( *bit ).name(), TQString(), group, Kopete::Account::DontChangeKABC );
}
TQObject::connect( kcl, TQT_SIGNAL( groupRenamed( Kopete::Group*, const TQString& ) ),
@@ -276,7 +276,7 @@ void OscarAccount::processSSIList()
}
kdDebug(OSCAR_GEN_DEBUG) << k_funcinfo << "the following contacts are not on the server side list"
<< nonServerContactList << endl;
- bool showMissingContactsDialog = configGroup()->readBoolEntry(TQString::fromLatin1("ShowMissingContactsDialog"), true);
+ bool showMissingContactsDialog = configGroup()->readBoolEntry(TQString::tqfromLatin1("ShowMissingContactsDialog"), true);
if ( !nonServerContactList.isEmpty() && showMissingContactsDialog )
{
d->olnscDialog = new OscarListNonServerContacts( Kopete::UI::Global::mainWidget() );
@@ -334,7 +334,7 @@ void OscarAccount::nonServerAddContactDialogClosed()
}
bool showOnce = d->olnscDialog->onlyShowOnce();
- configGroup()->writeEntry( TQString::fromLatin1("ShowMissingContactsDialog") , !showOnce);
+ configGroup()->writeEntry( TQString::tqfromLatin1("ShowMissingContactsDialog") , !showOnce);
configGroup()->sync();
d->olnscDialog->delayedDestruct();
@@ -389,7 +389,7 @@ void OscarAccount::messageReceived( const Oscar::Message& message )
if ( !contacts()[sender] )
{
kdDebug(OSCAR_RAW_DEBUG) << "Adding '" << sender << "' as temporary contact" << endl;
- addContact( sender, TQString::null, 0, Kopete::Account::Temporary );
+ addContact( sender, TQString(), 0, Kopete::Account::Temporary );
}
OscarContact* ocSender = static_cast<OscarContact *> ( contacts()[sender] ); //should exist now
@@ -429,15 +429,15 @@ void OscarAccount::messageReceived( const Oscar::Message& message )
void OscarAccount::setServerAddress(const TQString &server)
{
- configGroup()->writeEntry( TQString::fromLatin1( "Server" ), server );
+ configGroup()->writeEntry( TQString::tqfromLatin1( "Server" ), server );
}
void OscarAccount::setServerPort(int port)
{
if ( port > 0 )
- configGroup()->writeEntry( TQString::fromLatin1( "Port" ), port );
+ configGroup()->writeEntry( TQString::tqfromLatin1( "Port" ), port );
else //set to default 5190
- configGroup()->writeEntry( TQString::fromLatin1( "Port" ), 5190 );
+ configGroup()->writeEntry( TQString::tqfromLatin1( "Port" ), 5190 );
}
TQTextCodec* OscarAccount::defaultCodec() const
@@ -475,7 +475,7 @@ void OscarAccount::setBuddyIcon( KURL url )
const TQSize size = ( d->engine->isIcq() ) ? TQSize( 52, 64 ) : TQSize( 48, 48 );
- image = image.smoothScale( size, TQImage::ScaleMax );
+ image = image.smoothScale( size, TQ_ScaleMax );
if( image.width() > size.width())
image = image.copy( ( image.width() - size.width() ) / 2, 0, size.width(), image.height() );
@@ -555,7 +555,7 @@ Connection* OscarAccount::setupConnection( const TQString& server, uint port )
bool OscarAccount::createContact(const TQString &contactId,
- Kopete::MetaContact *parentContact)
+ Kopete::MetaContact *tqparentContact)
{
/* We're not even online or connecting
* (when getting server contacts), so don't bother
@@ -577,10 +577,10 @@ bool OscarAccount::createContact(const TQString &contactId,
*/
TQValueList<TLV> dummyList;
- if ( parentContact->isTemporary() )
+ if ( tqparentContact->isTemporary() )
{
SSI tempItem( contactId, 0, 0, 0xFFFF, dummyList, 0 );
- return createNewContact( contactId, parentContact, tempItem );
+ return createNewContact( contactId, tqparentContact, tempItem );
}
SSI ssiItem = d->engine->ssiManager()->findContact( contactId );
@@ -597,7 +597,7 @@ bool OscarAccount::createContact(const TQString &contactId,
else
{
kdDebug(OSCAR_GEN_DEBUG) << k_funcinfo << "Didn't find contact in list, creating new contact" << endl;
- return createNewContact( contactId, parentContact, ssiItem );
+ return createNewContact( contactId, tqparentContact, ssiItem );
}
}
else
@@ -608,7 +608,7 @@ bool OscarAccount::createContact(const TQString &contactId,
kdDebug(OSCAR_GEN_DEBUG) << k_funcinfo << "Adding " << contactId << " to server side list" << endl;
TQString groupName;
- Kopete::GroupList kopeteGroups = parentContact->groups(); //get the group list
+ Kopete::GroupList kopeteGroups = tqparentContact->groups(); //get the group list
if ( kopeteGroups.isEmpty() || kopeteGroups.first() == Kopete::Group::topLevel() )
{
@@ -617,7 +617,7 @@ bool OscarAccount::createContact(const TQString &contactId,
}
else
{
- //apparently kopeteGroups.first() can be invalid. Attempt to prevent
+ //aptqparently kopeteGroups.first() can be invalid. Attempt to prevent
//crashes in SSIData::findGroup(const TQString& name)
groupName = kopeteGroups.first() ? kopeteGroups.first()->displayName() : i18n("Buddies");
@@ -631,7 +631,7 @@ bool OscarAccount::createContact(const TQString &contactId,
return false;
}
- d->addContactMap[Oscar::normalize( contactId )] = parentContact;
+ d->addContactMap[Oscar::normalize( contactId )] = tqparentContact;
addContactToSSI( Oscar::normalize( contactId ), groupName, true );
return true;
}
@@ -644,7 +644,7 @@ void OscarAccount::updateVersionUpdaterStamp()
void OscarAccount::ssiContactAdded( const Oscar::SSI& item )
{
- if ( d->addContactMap.contains( Oscar::normalize( item.name() ) ) )
+ if ( d->addContactMap.tqcontains( Oscar::normalize( item.name() ) ) )
{
kdDebug(OSCAR_GEN_DEBUG) << k_funcinfo << "Received confirmation from server. adding " << item.name()
<< " to the contact list" << endl;
@@ -727,9 +727,9 @@ void OscarAccount::userStoppedTyping( const TQString & contact )
void OscarAccount::slotSocketError( int errCode, const TQString& errString )
{
Q_UNUSED( errCode );
- KPassivePopup::message( i18n( "account has been disconnected", "%1 disconnected" ).arg( accountId() ),
+ KPassivePopup::message( i18n( "account has been disconnected", "%1 disconnected" ).tqarg( accountId() ),
errString,
- myself()->onlineStatus().protocolIcon(),
+ myself()->onlinetqStatus().protocolIcon(),
Kopete::UI::Global::mainWidget() );
logOff( Kopete::Account::ConnectionReset );
}
@@ -744,8 +744,8 @@ void OscarAccount::slotTaskError( const Oscar::SNAC& s, int code, bool fatal )
if ( s.family == 0 && s.subtype == 0 )
{
message = getFLAPErrorMessage( code );
- KPassivePopup::message( i18n( "account has been disconnected", "%1 disconnected" ).arg( accountId() ),
- message, myself()->onlineStatus().protocolIcon(),
+ KPassivePopup::message( i18n( "account has been disconnected", "%1 disconnected" ).tqarg( accountId() ),
+ message, myself()->onlinetqStatus().protocolIcon(),
Kopete::UI::Global::mainWidget() );
switch ( code )
{
@@ -772,7 +772,7 @@ void OscarAccount::slotTaskError( const Oscar::SNAC& s, int code, bool fatal )
else
message = i18n("There was an error in the protocol handling; automatic reconnection occurring.");
- KPassivePopup::message( i18n("OSCAR Protocol error"), message, myself()->onlineStatus().protocolIcon(),
+ KPassivePopup::message( i18n("OSCAR Protocol error"), message, myself()->onlinetqStatus().protocolIcon(),
Kopete::UI::Global::mainWidget() );
if ( fatal )
logOff( Kopete::Account::ConnectionReset );
@@ -819,44 +819,44 @@ TQString OscarAccount::getFLAPErrorMessage( int code )
{
reason = i18n( "You have logged in more than once with the same %1," \
" account %2 is now disconnected.")
- .arg( acctDescription ).arg( accountId() );
+ .tqarg( acctDescription ).tqarg( accountId() );
}
else // error while logging in
{
reason = i18n( "Sign on failed because either your %1 or " \
"password are invalid. Please check your settings for account %2.")
- .arg( acctDescription ).arg( accountId() );
+ .tqarg( acctDescription ).tqarg( accountId() );
}
break;
case 0x0002: // Service temporarily unavailable
case 0x0014: // Reservation map error
reason = i18n("The %1 service is temporarily unavailable. Please try again later.")
- .arg( acctType );
+ .tqarg( acctType );
break;
case 0x0004: // Incorrect nick or password, re-enter
case 0x0005: // Mismatch nick or password, re-enter
reason = i18n("Could not sign on to %1 with account %2 because the " \
- "password was incorrect.").arg( acctType ).arg( accountId() );
+ "password was incorrect.").tqarg( acctType ).tqarg( accountId() );
break;
case 0x0007: // non-existant ICQ#
case 0x0008: // non-existant ICQ#
reason = i18n("Could not sign on to %1 with nonexistent account %2.")
- .arg( acctType ).arg( accountId() );
+ .tqarg( acctType ).tqarg( accountId() );
break;
case 0x0009: // Expired account
reason = i18n("Sign on to %1 failed because your account %2 expired.")
- .arg( acctType ).arg( accountId() );
+ .tqarg( acctType ).tqarg( accountId() );
break;
case 0x0011: // Suspended account
reason = i18n("Sign on to %1 failed because your account %2 is " \
- "currently suspended.").arg( acctType ).arg( accountId() );
+ "currently suspended.").tqarg( acctType ).tqarg( accountId() );
break;
case 0x0015: // too many clients from same IP
case 0x0016: // too many clients from same IP
case 0x0017: // too many clients from same IP (reservation)
reason = i18n("Could not sign on to %1 as there are too many clients" \
- " from the same computer.").arg( acctType );
+ " from the same computer.").tqarg( acctType );
break;
case 0x0018: // rate exceeded (turboing)
if ( isConnected() )
@@ -866,7 +866,7 @@ TQString OscarAccount::getFLAPErrorMessage( int code )
" Wait ten minutes and try again." \
" If you continue to try, you will" \
" need to wait even longer.")
- .arg( accountId() ).arg( acctType );
+ .tqarg( accountId() ).tqarg( acctType );
}
else
{
@@ -875,7 +875,7 @@ TQString OscarAccount::getFLAPErrorMessage( int code )
" Wait ten minutes and try again." \
" If you continue to try, you will" \
" need to wait even longer.")
- .arg( accountId() ).arg( acctType) ;
+ .tqarg( accountId() ).tqarg( acctType) ;
}
break;
case 0x001C:
@@ -883,7 +883,7 @@ TQString OscarAccount::getFLAPErrorMessage( int code )
if ( !d->versionAlreadyUpdated )
{
reason = i18n("Sign on to %1 with your account %2 failed.")
- .arg( acctType ).arg( accountId() );
+ .tqarg( acctType ).tqarg( accountId() );
d->versionAlreadyUpdated = true;
}
@@ -891,19 +891,19 @@ TQString OscarAccount::getFLAPErrorMessage( int code )
{
reason = i18n("The %1 server thinks the client you are using is " \
"too old. Please report this as a bug at http://bugs.kde.org")
- .arg( acctType );
+ .tqarg( acctType );
}
break;
case 0x0022: // Account suspended because of your age (age < 13)
reason = i18n("Account %1 was disabled on the %2 server because " \
"of your age (less than 13).")
- .arg( accountId() ).arg( acctType );
+ .tqarg( accountId() ).tqarg( acctType );
break;
default:
if ( !isConnected() )
{
reason = i18n("Sign on to %1 with your account %2 failed.")
- .arg( acctType ).arg( accountId() );
+ .tqarg( acctType ).tqarg( accountId() );
}
break;
}
diff --git a/kopete/protocols/oscar/oscaraccount.h b/kopete/protocols/oscar/oscaraccount.h
index 9998bed8..bccaa9a1 100644
--- a/kopete/protocols/oscar/oscaraccount.h
+++ b/kopete/protocols/oscar/oscaraccount.h
@@ -42,9 +42,10 @@ class TQTextCodec;
class KDE_EXPORT OscarAccount : public Kopete::PasswordedAccount
{
Q_OBJECT
+ TQ_OBJECT
public:
- OscarAccount(Kopete::Protocol *parent, const TQString &accountID, const char *name=0L, bool isICQ=false);
+ OscarAccount(Kopete::Protocol *tqparent, const TQString &accountID, const char *name=0L, bool isICQ=false);
virtual ~OscarAccount();
/** Provide the derived accounts and contacts with access to the backend */
@@ -67,7 +68,7 @@ public:
/**
* Sets the account away
*/
- virtual void setAway( bool away, const TQString &awayMessage = TQString::null ) = 0;
+ virtual void setAway( bool away, const TQString &awayMessage = TQString() ) = 0;
/**
* Accessor method for the action menu
@@ -133,16 +134,16 @@ protected:
* Adds a contact to a meta contact
*/
virtual bool createContact(const TQString &contactId,
- Kopete::MetaContact *parentContact );
+ Kopete::MetaContact *tqparentContact );
/**
* Protocols using Oscar must implement this to perform the instantiation
* of their contact for Kopete. Called by @ref createContact().
* @param contactId theprotocol unique id of the contact
- * @param parentContact the parent metacontact
+ * @param tqparentContact the tqparent metacontact
* @return whether the creation succeeded or not
*/
- virtual OscarContact *createNewContact( const TQString &contactId, Kopete::MetaContact *parentContact, const SSI& ssiItem ) = 0;
+ virtual OscarContact *createNewContact( const TQString &contactId, Kopete::MetaContact *tqparentContact, const SSI& ssiItem ) = 0;
virtual TQString sanitizedMessage( const TQString& message ) = 0;
diff --git a/kopete/protocols/oscar/oscarcontact.cpp b/kopete/protocols/oscar/oscarcontact.cpp
index cb9f06c6..e1b63a8f 100644
--- a/kopete/protocols/oscar/oscarcontact.cpp
+++ b/kopete/protocols/oscar/oscarcontact.cpp
@@ -44,8 +44,8 @@
#include <assert.h>
OscarContact::OscarContact( Kopete::Account* account, const TQString& name,
- Kopete::MetaContact* parent, const TQString& icon, const SSI& ssiItem )
-: Kopete::Contact( account, name, parent, icon )
+ Kopete::MetaContact* tqparent, const TQString& icon, const SSI& ssiItem )
+: Kopete::Contact( account, name, tqparent, icon )
{
mAccount = static_cast<OscarAccount*>(account);
mName = name;
@@ -66,7 +66,7 @@ void OscarContact::serialize(TQMap<TQString, TQString> &serializedData,
serializedData["ssi_gid"] = TQString::number( m_ssiItem.gid() );
serializedData["ssi_bid"] = TQString::number( m_ssiItem.bid() );
serializedData["ssi_alias"] = m_ssiItem.alias();
- serializedData["ssi_waitingAuth"] = m_ssiItem.waitingAuth() ? TQString::fromLatin1( "true" ) : TQString::fromLatin1( "false" );
+ serializedData["ssi_waitingAuth"] = m_ssiItem.waitingAuth() ? TQString::tqfromLatin1( "true" ) : TQString::tqfromLatin1( "false" );
}
bool OscarContact::isOnServer() const
@@ -177,7 +177,7 @@ void OscarContact::userInfoUpdated( const TQString& contact, const UserDetails&
if ( !m_details.clientName().isEmpty() )
{
capList << i18n( "Translators: client name and version",
- "%1").arg( m_details.clientName() );
+ "%1").tqarg( m_details.clientName() );
}
}
diff --git a/kopete/protocols/oscar/oscarcontact.h b/kopete/protocols/oscar/oscarcontact.h
index e2948f1e..6f76567e 100644
--- a/kopete/protocols/oscar/oscarcontact.h
+++ b/kopete/protocols/oscar/oscarcontact.h
@@ -60,10 +60,11 @@ class KToggleAction;
class KDE_EXPORT OscarContact : public Kopete::Contact
{
Q_OBJECT
+ TQ_OBJECT
public:
OscarContact( Kopete::Account* account, const TQString& name,
- Kopete::MetaContact* parent, const TQString& icon = TQString::null, const Oscar::SSI& ssiItem = Oscar::SSI() );
+ Kopete::MetaContact* tqparent, const TQString& icon = TQString(), const Oscar::SSI& ssiItem = Oscar::SSI() );
virtual ~OscarContact();
diff --git a/kopete/protocols/oscar/oscarencodingselectionbase.ui b/kopete/protocols/oscar/oscarencodingselectionbase.ui
index 1388b2d2..bf10a6ca 100644
--- a/kopete/protocols/oscar/oscarencodingselectionbase.ui
+++ b/kopete/protocols/oscar/oscarencodingselectionbase.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>OscarEncodingBaseUI</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>OscarEncodingBaseUI</cstring>
</property>
@@ -19,7 +19,7 @@
<property name="margin">
<number>0</number>
</property>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel2</cstring>
</property>
@@ -30,7 +30,7 @@
<cstring>encodingCombo</cstring>
</property>
</widget>
- <widget class="QComboBox" row="1" column="0">
+ <widget class="TQComboBox" row="1" column="0">
<property name="name">
<cstring>encodingCombo</cstring>
</property>
@@ -45,7 +45,7 @@
<property name="sizeType">
<enum>Maximum</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>0</height>
@@ -54,5 +54,5 @@
</spacer>
</grid>
</widget>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/kopete/protocols/oscar/oscarencodingselectiondialog.cpp b/kopete/protocols/oscar/oscarencodingselectiondialog.cpp
index 7a1826cb..10f6edb3 100644
--- a/kopete/protocols/oscar/oscarencodingselectiondialog.cpp
+++ b/kopete/protocols/oscar/oscarencodingselectiondialog.cpp
@@ -24,8 +24,8 @@
#include <tqcombobox.h>
#include <klocale.h>
-OscarEncodingSelectionDialog::OscarEncodingSelectionDialog( TQWidget* parent, int initialEncoding )
- : KDialogBase( parent, 0, false, i18n( "Select Encoding" ), Ok | Cancel )
+OscarEncodingSelectionDialog::OscarEncodingSelectionDialog( TQWidget* tqparent, int initialEncoding )
+ : KDialogBase( tqparent, 0, false, i18n( "Select Encoding" ), Ok | Cancel )
{
int initialEncodingIndex;
@@ -81,7 +81,7 @@ OscarEncodingSelectionDialog::OscarEncodingSelectionDialog( TQWidget* parent, in
m_encodings.insert(1015, i18n("UTF-16 Unicode"));
m_encodingUI->encodingCombo->insertStringList( m_encodings.values() );
- if( (initialEncodingIndex = m_encodings.keys().findIndex(initialEncoding)) == -1 )
+ if( (initialEncodingIndex = m_encodings.keys().tqfindIndex(initialEncoding)) == -1 )
{
kdWarning() << k_funcinfo << "Requested encoding mib " << initialEncoding
<< " not in encoding list - defaulting to first encoding item"
@@ -100,7 +100,7 @@ OscarEncodingSelectionDialog::OscarEncodingSelectionDialog( TQWidget* parent, in
int OscarEncodingSelectionDialog::selectedEncoding() const
{
TQString encoding = m_encodingUI->encodingCombo->currentText();
- int mib = m_encodings.keys()[ m_encodings.values().findIndex(encoding) ];
+ int mib = m_encodings.keys()[ m_encodings.values().tqfindIndex(encoding) ];
if( mib == -1 )
return 0;
diff --git a/kopete/protocols/oscar/oscarencodingselectiondialog.h b/kopete/protocols/oscar/oscarencodingselectiondialog.h
index 2ab8d529..12d16fb7 100644
--- a/kopete/protocols/oscar/oscarencodingselectiondialog.h
+++ b/kopete/protocols/oscar/oscarencodingselectiondialog.h
@@ -27,8 +27,9 @@ class OscarEncodingBaseUI;
class KOPETE_EXPORT OscarEncodingSelectionDialog : public KDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- OscarEncodingSelectionDialog( TQWidget* parent = 0, int initialEncoding = 4);
+ OscarEncodingSelectionDialog( TQWidget* tqparent = 0, int initialEncoding = 4);
~OscarEncodingSelectionDialog() {}
int selectedEncoding() const;
diff --git a/kopete/protocols/oscar/oscarlistcontactsbase.ui b/kopete/protocols/oscar/oscarlistcontactsbase.ui
index 7a6d8f85..a5415391 100644
--- a/kopete/protocols/oscar/oscarlistcontactsbase.ui
+++ b/kopete/protocols/oscar/oscarlistcontactsbase.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>OscarListContactsBase</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>OscarListContactsBase</cstring>
</property>
@@ -16,7 +16,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -24,7 +24,7 @@
<string>The following contacts are not on your contact list. Would you like to add them?</string>
</property>
</widget>
- <widget class="QListBox">
+ <widget class="TQListBox">
<property name="name">
<cstring>notServerContacts</cstring>
</property>
@@ -35,7 +35,7 @@
<enum>Sunken</enum>
</property>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>doNotShowAgain</cstring>
</property>
@@ -45,5 +45,5 @@
</widget>
</vbox>
</widget>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/kopete/protocols/oscar/oscarlistnonservercontacts.cpp b/kopete/protocols/oscar/oscarlistnonservercontacts.cpp
index 4529f562..aec5096e 100644
--- a/kopete/protocols/oscar/oscarlistnonservercontacts.cpp
+++ b/kopete/protocols/oscar/oscarlistnonservercontacts.cpp
@@ -24,8 +24,8 @@
#include <tqcheckbox.h>
#include <klocale.h>
-OscarListNonServerContacts::OscarListNonServerContacts(TQWidget* parent)
- : KDialogBase( parent, 0, false, i18n( "Add Contacts to Server List" ),
+OscarListNonServerContacts::OscarListNonServerContacts(TQWidget* tqparent)
+ : KDialogBase( tqparent, 0, false, i18n( "Add Contacts to Server List" ),
Ok | Cancel )
{
m_contactsList = new OscarListContactsBase( this );
diff --git a/kopete/protocols/oscar/oscarlistnonservercontacts.h b/kopete/protocols/oscar/oscarlistnonservercontacts.h
index 8975dd20..ffdfe692 100644
--- a/kopete/protocols/oscar/oscarlistnonservercontacts.h
+++ b/kopete/protocols/oscar/oscarlistnonservercontacts.h
@@ -28,8 +28,9 @@ class TQStringList;
class KOPETE_EXPORT OscarListNonServerContacts : public KDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- OscarListNonServerContacts( TQWidget* parent );
+ OscarListNonServerContacts( TQWidget* tqparent );
~OscarListNonServerContacts();
void addContacts( const TQStringList& contactList );
diff --git a/kopete/protocols/oscar/oscarmyselfcontact.h b/kopete/protocols/oscar/oscarmyselfcontact.h
index 3e3eabe4..922637e5 100644
--- a/kopete/protocols/oscar/oscarmyselfcontact.h
+++ b/kopete/protocols/oscar/oscarmyselfcontact.h
@@ -37,6 +37,7 @@ class KToggleAction;
class KDE_EXPORT OscarMyselfContact : public Kopete::Contact
{
Q_OBJECT
+ TQ_OBJECT
public:
OscarMyselfContact( OscarAccount* account );
diff --git a/kopete/protocols/oscar/oscarversionupdater.cpp b/kopete/protocols/oscar/oscarversionupdater.cpp
index 92c7a5e2..90981434 100644
--- a/kopete/protocols/oscar/oscarversionupdater.cpp
+++ b/kopete/protocols/oscar/oscarversionupdater.cpp
@@ -223,15 +223,15 @@ bool OscarVersionUpdater::parseVersion( Oscar::ClientVersion& version, TQDomElem
kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << endl;
// clear structure
- version.clientString = TQString::null;
+ version.clientString = TQString();
version.clientId = 0x0000;
version.major = 0x0000;
version.minor = 0x0000;
version.point = 0x0000;
version.build = 0x0000;
version.other = 0x00000000;
- version.country = TQString::null;
- version.lang = TQString::null;
+ version.country = TQString();
+ version.lang = TQString();
TQDomElement versionChild = element.firstChild().toElement();
while ( !versionChild.isNull() )
diff --git a/kopete/protocols/oscar/oscarversionupdater.h b/kopete/protocols/oscar/oscarversionupdater.h
index c89b4b90..0bfbc4c4 100644
--- a/kopete/protocols/oscar/oscarversionupdater.h
+++ b/kopete/protocols/oscar/oscarversionupdater.h
@@ -34,9 +34,10 @@ class TQDomDocument;
@author Roman Jarosz <kedgedev@centrum.cz>
*/
-class OscarVersionUpdater : public QObject
+class OscarVersionUpdater : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
OscarVersionUpdater();
diff --git a/kopete/protocols/oscar/oscarvisibilitybase.ui b/kopete/protocols/oscar/oscarvisibilitybase.ui
index a6b98799..fe70ffe1 100644
--- a/kopete/protocols/oscar/oscarvisibilitybase.ui
+++ b/kopete/protocols/oscar/oscarvisibilitybase.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>OscarVisibilityBase</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>OscarVisibilityBase</cstring>
</property>
@@ -16,7 +16,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="0" column="2">
+ <widget class="TQLabel" row="0" column="2">
<property name="name">
<cstring>textLabel2</cstring>
</property>
@@ -24,7 +24,7 @@
<string>Always visible:</string>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -32,7 +32,7 @@
<string>Contacts:</string>
</property>
</widget>
- <widget class="QListBox" row="1" column="0" rowspan="9" colspan="1">
+ <widget class="TQListBox" row="1" column="0" rowspan="9" colspan="1">
<property name="name">
<cstring>contacts</cstring>
</property>
@@ -47,14 +47,14 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>31</width>
<height>40</height>
</size>
</property>
</spacer>
- <widget class="QPushButton" row="2" column="1">
+ <widget class="TQPushButton" row="2" column="1">
<property name="name">
<cstring>visibleAdd</cstring>
</property>
@@ -62,7 +62,7 @@
<string>Add</string>
</property>
</widget>
- <widget class="QPushButton" row="3" column="1">
+ <widget class="TQPushButton" row="3" column="1">
<property name="name">
<cstring>visibleRemove</cstring>
</property>
@@ -80,19 +80,19 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>21</width>
<height>40</height>
</size>
</property>
</spacer>
- <widget class="QListBox" row="1" column="2" rowspan="4" colspan="1">
+ <widget class="TQListBox" row="1" column="2" rowspan="4" colspan="1">
<property name="name">
<cstring>visibleContacts</cstring>
</property>
</widget>
- <widget class="QPushButton" row="8" column="1">
+ <widget class="TQPushButton" row="8" column="1">
<property name="name">
<cstring>invisibleRemove</cstring>
</property>
@@ -110,14 +110,14 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>21</width>
<height>40</height>
</size>
</property>
</spacer>
- <widget class="QPushButton" row="7" column="1">
+ <widget class="TQPushButton" row="7" column="1">
<property name="name">
<cstring>invisibleAdd</cstring>
</property>
@@ -125,7 +125,7 @@
<string>Add</string>
</property>
</widget>
- <widget class="QListBox" row="6" column="2" rowspan="4" colspan="1">
+ <widget class="TQListBox" row="6" column="2" rowspan="4" colspan="1">
<property name="name">
<cstring>invisibleContacts</cstring>
</property>
@@ -140,14 +140,14 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>21</width>
<height>40</height>
</size>
</property>
</spacer>
- <widget class="QLabel" row="5" column="2">
+ <widget class="TQLabel" row="5" column="2">
<property name="name">
<cstring>textLabel3</cstring>
</property>
@@ -166,5 +166,5 @@
<tabstop>visibleContacts</tabstop>
<tabstop>invisibleContacts</tabstop>
</tabstops>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/kopete/protocols/oscar/oscarvisibilitydialog.cpp b/kopete/protocols/oscar/oscarvisibilitydialog.cpp
index 77f3894a..c2fa021e 100644
--- a/kopete/protocols/oscar/oscarvisibilitydialog.cpp
+++ b/kopete/protocols/oscar/oscarvisibilitydialog.cpp
@@ -25,8 +25,8 @@
#include "client.h"
-OscarVisibilityDialog::OscarVisibilityDialog( Client* client, TQWidget* parent )
- : KDialogBase( parent, 0, false, i18n( "Add Contacts to Visible or Invisible List" ),
+OscarVisibilityDialog::OscarVisibilityDialog( Client* client, TQWidget* tqparent )
+ : KDialogBase( tqparent, 0, false, i18n( "Add Contacts to Visible or Invisible List" ),
Ok | Cancel ), m_client( client )
{
m_visibilityUI = new OscarVisibilityBase( this );
@@ -70,7 +70,7 @@ void OscarVisibilityDialog::slotAddToVisible()
TQString contactId = m_contactMap[itm->text()];
m_visibleListChangesMap[contactId] = Add;
- if ( !m_visibilityUI->visibleContacts->findItem( itm->text(), Qt::CaseSensitive | Qt::ExactMatch ) )
+ if ( !m_visibilityUI->visibleContacts->tqfindItem( itm->text(), TQt::CaseSensitive | TQt::ExactMatch ) )
m_visibilityUI->visibleContacts->insertItem( itm->text() );
}
@@ -94,7 +94,7 @@ void OscarVisibilityDialog::slotAddToInvisible()
TQString contactId = m_contactMap[itm->text()];
m_invisibleListChangesMap[contactId] = Add;
- if ( !m_visibilityUI->invisibleContacts->findItem( itm->text(), Qt::CaseSensitive | Qt::ExactMatch ) )
+ if ( !m_visibilityUI->invisibleContacts->tqfindItem( itm->text(), TQt::CaseSensitive | TQt::ExactMatch ) )
m_visibilityUI->invisibleContacts->insertItem( itm->text() );
}
diff --git a/kopete/protocols/oscar/oscarvisibilitydialog.h b/kopete/protocols/oscar/oscarvisibilitydialog.h
index 874a1e08..114b36f8 100644
--- a/kopete/protocols/oscar/oscarvisibilitydialog.h
+++ b/kopete/protocols/oscar/oscarvisibilitydialog.h
@@ -30,10 +30,11 @@ class Client;
class KOPETE_EXPORT OscarVisibilityDialog : public KDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
typedef TQMap<TQString, TQString> ContactMap;
- OscarVisibilityDialog( Client* client, TQWidget* parent );
+ OscarVisibilityDialog( Client* client, TQWidget* tqparent );
~OscarVisibilityDialog() {}
void addContacts( const ContactMap& contacts );