From 83677e35509b4dafac63b76995652bdf3b49f209 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 16 Dec 2011 09:59:34 -0600 Subject: Revert "Rename a number of old tq methods that are no longer tq specific" This reverts commit 808e453c56036211f57482ed847d54aca01bba68. --- dcoprss/cache.cpp | 10 +- dcoprss/document.cpp | 14 +- dcoprss/query.cpp | 2 +- dcoprss/service.h | 2 +- filesharing/advanced/kcm_sambaconf/dictmanager.cpp | 2 +- .../advanced/kcm_sambaconf/expertuserdlg.ui | 4 +- filesharing/advanced/kcm_sambaconf/filemodedlg.ui | 6 +- .../advanced/kcm_sambaconf/groupselectdlg.ui | 4 +- .../advanced/kcm_sambaconf/hiddenfileview.cpp | 8 +- .../advanced/kcm_sambaconf/hiddenfileview.h | 2 +- .../advanced/kcm_sambaconf/joindomaindlg.ui | 4 +- filesharing/advanced/kcm_sambaconf/kcminterface.ui | 142 +++---- .../advanced/kcm_sambaconf/kcmprinterdlg.ui | 18 +- .../advanced/kcm_sambaconf/kcmsambaconf.cpp | 18 +- .../advanced/kcm_sambaconf/konqinterface.ui | 4 +- .../kcm_sambaconf/linuxpermissionchecker.cpp | 8 +- .../advanced/kcm_sambaconf/printerdlgimpl.cpp | 6 +- .../advanced/kcm_sambaconf/qmultichecklistitem.cpp | 8 +- filesharing/advanced/kcm_sambaconf/sambafile.cpp | 12 +- filesharing/advanced/kcm_sambaconf/share.ui | 72 ++-- .../advanced/kcm_sambaconf/sharedlgimpl.cpp | 2 +- .../advanced/kcm_sambaconf/smbconfconfigwidget.cpp | 12 +- .../advanced/kcm_sambaconf/smbpasswdfile.cpp | 4 +- .../advanced/kcm_sambaconf/socketoptionsdlg.ui | 2 +- .../advanced/kcm_sambaconf/userselectdlg.ui | 4 +- filesharing/advanced/kcm_sambaconf/usertab.ui | 2 +- filesharing/advanced/nfs/hostprops.ui | 14 +- filesharing/advanced/nfs/nfsdialog.cpp | 6 +- filesharing/advanced/nfs/nfsdialoggui.ui | 2 +- filesharing/advanced/nfs/nfsentry.cpp | 4 +- filesharing/advanced/nfs/nfsentry.h | 2 +- filesharing/advanced/nfs/nfsfile.cpp | 6 +- filesharing/advanced/nfs/nfshostdlg.cpp | 10 +- .../advanced/propsdlgplugin/propertiespage.cpp | 10 +- .../advanced/propsdlgplugin/propertiespagegui.ui | 22 +- .../propsdlgplugin/propsdlgshareplugin.cpp | 2 +- filesharing/simple/controlcenter.ui | 24 +- filesharing/simple/fileshare.cpp | 20 +- filesharing/simple/groupconfigdlg.cpp | 20 +- filesharing/simple/groupconfiggui.ui | 6 +- filesharing/simple/krichtextlabel.cpp | 12 +- filesharing/simple/krichtextlabel.h | 6 +- kdict/actions.cpp | 10 +- kdict/applet/kdictapplet.cpp | 14 +- kdict/dict.cpp | 24 +- kdict/matchview.cpp | 34 +- kdict/matchview.h | 2 +- kdict/options.cpp | 10 +- kdict/options.h | 2 +- kdict/queryview.cpp | 36 +- kdict/sets.cpp | 22 +- kdict/toplevel.cpp | 38 +- kfile-plugins/torrent/bdict.cpp | 2 +- kfile-plugins/torrent/bstring.cpp | 2 +- kget/dlgAutomation.cpp | 2 +- kget/dlgConnection.cpp | 2 +- kget/dlgDirectories.cpp | 4 +- kget/dlgIndividual.cpp | 22 +- kget/dlgLimits.cpp | 2 +- kget/dlgPreferences.cpp | 2 +- kget/dlgadvancedbase.ui | 4 +- kget/dlgautomationbase.ui | 6 +- kget/dlgconnectionbase.ui | 10 +- kget/dlgdirectoriesbase.ui | 6 +- kget/dlglimitsbase.ui | 6 +- kget/dlgsystembase.ui | 4 +- kget/docking.cpp | 6 +- kget/docking.h | 2 +- kget/droptarget.cpp | 2 +- kget/kfileio.cpp | 32 +- kget/kget_plug_in/kget_linkview.cpp | 10 +- kget/kget_plug_in/links.cpp | 6 +- kget/kmainwidget.cpp | 96 ++--- kget/logwindow.cpp | 6 +- kget/safedelete.cpp | 4 +- kget/settings.cpp | 10 +- kget/settings.h | 2 +- kget/transfer.cpp | 36 +- kget/transfer.h | 12 +- kget/transferlist.cpp | 10 +- kget/transferlist.h | 2 +- knewsticker/common/configaccess.cpp | 418 ++++++++++----------- knewsticker/common/configaccess.h | 6 +- knewsticker/common/newsengine.cpp | 8 +- knewsticker/common/newsengine.h | 2 +- knewsticker/common/newsiconmgr.cpp | 8 +- knewsticker/common/xmlnewsaccess.cpp | 18 +- knewsticker/knewsticker.cpp | 56 +-- knewsticker/knewstickerconfig.cpp | 18 +- knewsticker/knewstickerconfigwidget.ui | 12 +- knewsticker/knewstickerstub/knewstickerstub.cpp | 6 +- .../kntsrcfilepropsdlg/kntsrcfilepropsdlg.cpp | 10 +- .../kntsrcfilepropsdlg/kntsrcfilepropsdlg.h | 4 +- .../kntsrcfilepropsdlg/kntsrcfilepropsdlgwidget.ui | 4 +- knewsticker/newsscroller.cpp | 18 +- knewsticker/newsscroller.h | 2 +- knewsticker/newssourcedlgimpl.cpp | 22 +- kopete/KABC_INTEG_NOTES | 2 +- .../kopete/addaccountwizard/addaccountwizard.cpp | 2 +- .../addaccountwizard/addaccountwizardpage1.ui | 10 +- .../addaccountwizard/addaccountwizardpage2.ui | 8 +- .../addaccountwizard/addaccountwizardpage3.ui | 8 +- .../kopete/addcontactwizard/addcontactwizard.cpp | 6 +- .../addcontactwizard/addcontactwizard_base.ui | 24 +- .../addcontactwizard/fastaddcontactwizard.cpp | 4 +- .../addcontactwizard/fastaddcontactwizard_base.ui | 14 +- kopete/kopete/chatwindow/chatmemberslistwidget.cpp | 14 +- kopete/kopete/chatwindow/chatmemberslistwidget.h | 2 +- kopete/kopete/chatwindow/chatmessagepart.cpp | 90 ++--- kopete/kopete/chatwindow/chattexteditpart.cpp | 14 +- kopete/kopete/chatwindow/chatview.cpp | 114 +++--- kopete/kopete/chatwindow/chatview.h | 2 +- kopete/kopete/chatwindow/emoticonselector.cpp | 6 +- kopete/kopete/chatwindow/kopetechatwindow.cpp | 80 ++-- kopete/kopete/chatwindow/kopetechatwindow.h | 2 +- kopete/kopete/chatwindow/kopetechatwindowstyle.cpp | 4 +- .../chatwindow/kopetechatwindowstylemanager.cpp | 2 +- .../chatwindow/kopetechatwindowstylemanager.h | 6 +- kopete/kopete/chatwindow/kopeteemailwindow.cpp | 44 +-- kopete/kopete/chatwindow/krichtexteditpart.cpp | 22 +- .../chatwindow/tests/chatwindowstyle_test.cpp | 4 +- .../tests/chatwindowstylerendering_test.cpp | 26 +- .../kopete/config/accounts/kopeteaccountconfig.cpp | 4 +- .../config/accounts/kopeteaccountconfigbase.ui | 14 +- .../kopete/config/appearance/appearanceconfig.cpp | 14 +- .../appearance/appearanceconfig_chatwindow.ui | 2 +- .../config/appearance/appearanceconfig_colors.ui | 16 +- .../appearance/appearanceconfig_contactlist.ui | 18 +- .../appearance/appearanceconfig_emoticons.ui | 6 +- .../config/appearance/emoticonseditdialog.cpp | 10 +- .../config/appearance/emoticonseditwidget.ui | 4 +- .../kopete/config/appearance/tooltipeditwidget.ui | 12 +- kopete/kopete/config/avdevice/avdeviceconfig.cpp | 2 +- .../config/avdevice/avdeviceconfig_videoconfig.ui | 16 +- kopete/kopete/config/behavior/behaviorconfig.cpp | 2 +- .../kopete/config/behavior/behaviorconfig_chat.ui | 12 +- .../config/behavior/behaviorconfig_events.ui | 16 +- .../config/behavior/behaviorconfig_general.ui | 2 +- .../kopete/config/behavior/kopeteawayconfigbase.ui | 14 +- .../config/identity/globalidentitiesmanager.cpp | 2 +- .../config/identity/kopeteidentityconfig.cpp | 8 +- .../config/identity/kopeteidentityconfigbase.ui | 30 +- .../kopete/config/plugins/kopetepluginconfig.cpp | 2 +- .../kopete/contactlist/customnotificationprops.cpp | 4 +- kopete/kopete/contactlist/customnotifications.ui | 6 +- kopete/kopete/contactlist/kabcexport_base.ui | 6 +- kopete/kopete/contactlist/kopeteaddrbookexport.cpp | 2 +- kopete/kopete/contactlist/kopeteaddrbookexport.h | 2 +- .../kopete/contactlist/kopetecontactlistview.cpp | 56 +-- kopete/kopete/contactlist/kopetegroupviewitem.cpp | 4 +- kopete/kopete/contactlist/kopetegvipropswidget.ui | 4 +- kopete/kopete/contactlist/kopetelviprops.cpp | 20 +- kopete/kopete/contactlist/kopetemetacontactlvi.cpp | 92 ++--- kopete/kopete/contactlist/kopetemetacontactlvi.h | 2 +- .../kopete/contactlist/kopetemetalvipropswidget.ui | 30 +- kopete/kopete/eventsrc | 16 +- kopete/kopete/groupkabcselectorwidget.ui | 2 +- .../kconf_update/kopete-account-kconf_update.cpp | 8 +- kopete/kopete/kconf_update/kopete-nameTracking.cpp | 36 +- .../kopete/kconf_update/kopete-pluginloader2.cpp | 2 +- kopete/kopete/kimiface.h | 4 +- kopete/kopete/kimifaceimpl.cpp | 4 +- kopete/kopete/kimifaceimpl.h | 2 +- kopete/kopete/kopeteapplication.cpp | 4 +- kopete/kopete/kopeteballoon.cpp | 8 +- kopete/kopete/kopeteeditglobalidentitywidget.cpp | 2 +- kopete/kopete/kopeteiface.cpp | 8 +- kopete/kopete/kopeteiface.h | 6 +- kopete/kopete/kopetewindow.cpp | 28 +- kopete/kopete/kopetewindow.h | 2 +- kopete/kopete/systemtray.cpp | 20 +- kopete/libkopete/avdevice/qvideostream.cpp | 4 +- kopete/libkopete/avdevice/videodevicepool.cpp | 2 +- kopete/libkopete/clientiface.h | 4 +- .../compat/kpixmapregionselectorwidget.cpp | 8 +- kopete/libkopete/connectionmanager.cpp | 56 +-- kopete/libkopete/connectionmanager.h | 8 +- kopete/libkopete/kabcpersistence.cpp | 24 +- kopete/libkopete/kautoconfig.cpp | 90 ++--- kopete/libkopete/kautoconfig.h | 14 +- kopete/libkopete/kcautoconfigmodule.cpp | 2 +- kopete/libkopete/knotification.cpp | 18 +- kopete/libkopete/kopeteaccount.cpp | 44 +-- kopete/libkopete/kopeteaccount.h | 10 +- kopete/libkopete/kopeteaccountmanager.cpp | 18 +- kopete/libkopete/kopeteaccountmanager.h | 8 +- kopete/libkopete/kopeteaway.cpp | 8 +- kopete/libkopete/kopeteblacklister.cpp | 4 +- kopete/libkopete/kopetechatsession.cpp | 36 +- kopete/libkopete/kopetechatsession.h | 8 +- kopete/libkopete/kopetecommandhandler.cpp | 44 +-- kopete/libkopete/kopetecontact.cpp | 108 +++--- kopete/libkopete/kopetecontact.h | 4 +- kopete/libkopete/kopetecontactlist.cpp | 260 ++++++------- kopete/libkopete/kopetecontactlistelement.cpp | 66 ++-- kopete/libkopete/kopeteeventpresentation.cpp | 8 +- kopete/libkopete/kopeteglobal.cpp | 54 +-- kopete/libkopete/kopetegroup.cpp | 36 +- kopete/libkopete/kopetemessage.cpp | 104 ++--- kopete/libkopete/kopetemetacontact.cpp | 32 +- kopete/libkopete/kopetemetacontact.h | 2 +- kopete/libkopete/kopetemimesourcefactory.cpp | 16 +- kopete/libkopete/kopetemimetypehandler.cpp | 8 +- kopete/libkopete/kopetenotifydataobject.cpp | 54 +-- kopete/libkopete/kopetenotifyevent.cpp | 24 +- kopete/libkopete/kopeteonlinestatus.cpp | 14 +- kopete/libkopete/kopeteonlinestatus.h | 6 +- kopete/libkopete/kopeteonlinestatusmanager.cpp | 26 +- kopete/libkopete/kopeteonlinestatusmanager.h | 6 +- kopete/libkopete/kopetepassword.cpp | 4 +- kopete/libkopete/kopetepasswordedaccount.cpp | 18 +- kopete/libkopete/kopetepasswordedaccount.h | 6 +- kopete/libkopete/kopetepicture.cpp | 2 +- kopete/libkopete/kopeteplugin.cpp | 2 +- kopete/libkopete/kopetepluginmanager.cpp | 36 +- kopete/libkopete/kopeteprefs.cpp | 48 +-- kopete/libkopete/kopeteprefs.h | 2 +- kopete/libkopete/kopeteprotocol.cpp | 36 +- kopete/libkopete/kopeteprotocol.h | 4 +- kopete/libkopete/kopetetransfermanager.cpp | 6 +- kopete/libkopete/kopeteutils.cpp | 8 +- kopete/libkopete/kopetewalletmanager.cpp | 12 +- kopete/libkopete/kopetewalletmanager.h | 2 +- kopete/libkopete/managedconnectionaccount.cpp | 26 +- kopete/libkopete/managedconnectionaccount.h | 4 +- kopete/libkopete/networkstatuscommon.cpp | 8 +- kopete/libkopete/networkstatuscommon.h | 12 +- kopete/libkopete/private/kopetecommand.cpp | 20 +- kopete/libkopete/private/kopeteemoticons.cpp | 44 +-- kopete/libkopete/private/kopeteviewmanager.cpp | 16 +- kopete/libkopete/tests/kopetecontactlist_test.cpp | 2 +- kopete/libkopete/tests/kopeteemoticontest.cpp | 12 +- kopete/libkopete/tests/kopetemessage_test.cpp | 18 +- .../libkopete/tests/kopetepasswordtest_program.cpp | 2 +- kopete/libkopete/tests/kopetepropertiestest.cpp | 6 +- .../libkopete/tests/kopetewallettest_program.cpp | 8 +- kopete/libkopete/tests/mock/kopeteaccount_mock.cpp | 2 +- kopete/libkopete/tests/mock/kopeteaccount_mock.h | 2 +- kopete/libkopete/ui/accountselector.cpp | 4 +- kopete/libkopete/ui/addressbooklinkwidget.cpp | 4 +- kopete/libkopete/ui/addressbooklinkwidget_base.ui | 2 +- kopete/libkopete/ui/addressbookselectorwidget.cpp | 2 +- .../libkopete/ui/addressbookselectorwidget_base.ui | 4 +- kopete/libkopete/ui/addresseeitem.cpp | 4 +- kopete/libkopete/ui/contactaddednotifydialog.cpp | 6 +- kopete/libkopete/ui/contactaddednotifywidget.ui | 16 +- kopete/libkopete/ui/fileconfirmbase.ui | 4 +- kopete/libkopete/ui/kopeteawaydialogbase.ui | 6 +- kopete/libkopete/ui/kopetecontactaction.cpp | 2 +- kopete/libkopete/ui/kopetefileconfirmdialog.cpp | 12 +- kopete/libkopete/ui/kopetelistview.cpp | 12 +- kopete/libkopete/ui/kopetelistviewitem.cpp | 88 ++--- kopete/libkopete/ui/kopetelistviewitem.h | 36 +- kopete/libkopete/ui/kopetelistviewsearchline.cpp | 2 +- kopete/libkopete/ui/kopetepassworddialog.ui | 6 +- kopete/libkopete/ui/kopetepasswordwidgetbase.ui | 2 +- kopete/libkopete/ui/kopetestdaction.cpp | 24 +- kopete/libkopete/ui/kopetewidgets.cpp | 44 +-- kopete/libkopete/ui/metacontactselectorwidget.cpp | 2 +- .../libkopete/ui/metacontactselectorwidget_base.ui | 2 +- kopete/libkopete/ui/userinfodialog.cpp | 8 +- kopete/libkopete/ui/userinfodialog.h | 2 +- kopete/libkopete/webcamwidget.cpp | 2 +- kopete/plugins/addbookmarks/addbookmarksplugin.cpp | 6 +- .../addbookmarks/addbookmarkspreferences.cpp | 2 +- kopete/plugins/alias/aliasdialog.ui | 2 +- kopete/plugins/alias/aliaspreferences.cpp | 32 +- kopete/plugins/autoreplace/autoreplaceplugin.cpp | 4 +- .../plugins/autoreplace/autoreplacepreferences.cpp | 4 +- kopete/plugins/autoreplace/autoreplaceprefs.ui | 6 +- .../connectionstatus/connectionstatusplugin.cpp | 10 +- .../connectionstatus/connectionstatusplugin.h | 4 +- kopete/plugins/contactnotes/contactnotesedit.cpp | 4 +- .../plugins/cryptography/cryptographyguiclient.cpp | 4 +- kopete/plugins/cryptography/cryptographyplugin.cpp | 26 +- .../plugins/cryptography/cryptographyprefsbase.ui | 2 +- .../cryptography/cryptographyselectuserkey.cpp | 2 +- .../plugins/cryptography/cryptographyuserkey_ui.ui | 2 +- kopete/plugins/cryptography/kgpginterface.cpp | 4 +- kopete/plugins/cryptography/kgpgselkey.cpp | 8 +- kopete/plugins/cryptography/popuppublic.cpp | 12 +- kopete/plugins/highlight/highlightconfig.cpp | 74 ++-- kopete/plugins/highlight/highlightpreferences.cpp | 2 +- kopete/plugins/highlight/highlightprefsbase.ui | 20 +- kopete/plugins/history/converter.cpp | 40 +- kopete/plugins/history/historydialog.cpp | 44 +-- kopete/plugins/history/historyguiclient.cpp | 2 +- kopete/plugins/history/historylogger.cpp | 72 ++-- kopete/plugins/history/historyplugin.cpp | 4 +- kopete/plugins/history/historypreferences.cpp | 2 +- kopete/plugins/history/historyprefsui.ui | 2 +- kopete/plugins/history/historyviewer.ui | 28 +- kopete/plugins/latex/latexguiclient.cpp | 4 +- kopete/plugins/latex/latexplugin.cpp | 8 +- kopete/plugins/latex/latexpreferences.cpp | 2 +- kopete/plugins/latex/latexprefsbase.ui | 12 +- .../motionautoaway/motionawaypreferences.cpp | 2 +- kopete/plugins/motionautoaway/motionawayprefs.ui | 22 +- kopete/plugins/netmeeting/netmeetinginvitation.cpp | 4 +- .../plugins/netmeeting/netmeetingpreferences.cpp | 2 +- kopete/plugins/netmeeting/netmeetingprefs_ui.ui | 8 +- kopete/plugins/nowlistening/nljuk.cpp | 6 +- kopete/plugins/nowlistening/nowlisteningplugin.cpp | 10 +- .../nowlistening/nowlisteningpreferences.cpp | 2 +- kopete/plugins/nowlistening/nowlisteningprefs.ui | 24 +- kopete/plugins/smpppdcs/Changelog.smpppdcs | 2 +- kopete/plugins/smpppdcs/detector.h | 2 +- kopete/plugins/smpppdcs/detectornetstat.cpp | 6 +- kopete/plugins/smpppdcs/detectornetstat.h | 2 +- kopete/plugins/smpppdcs/detectornetworkstatus.cpp | 28 +- kopete/plugins/smpppdcs/detectornetworkstatus.h | 14 +- kopete/plugins/smpppdcs/detectorsmpppd.cpp | 12 +- kopete/plugins/smpppdcs/detectorsmpppd.h | 2 +- kopete/plugins/smpppdcs/iconnector.h | 4 +- .../smpppdcs/libsmpppdclient/smpppdunsettled.cpp | 2 +- kopete/plugins/smpppdcs/onlineinquiry.cpp | 6 +- kopete/plugins/smpppdcs/onlineinquiry.h | 2 +- kopete/plugins/smpppdcs/smpppdcsplugin.cpp | 18 +- kopete/plugins/smpppdcs/smpppdcsplugin.h | 6 +- kopete/plugins/smpppdcs/smpppdcspreferences.cpp | 4 +- kopete/plugins/smpppdcs/smpppdcsprefs.ui | 10 +- kopete/plugins/smpppdcs/smpppdlocationui.ui | 4 +- kopete/plugins/smpppdcs/smpppdsearcher.cpp | 4 +- kopete/plugins/statistics/statisticscontact.cpp | 68 ++-- kopete/plugins/statistics/statisticscontact.h | 10 +- kopete/plugins/statistics/statisticsdcopiface.h | 6 +- kopete/plugins/statistics/statisticsdialog.cpp | 54 +-- kopete/plugins/statistics/statisticsplugin.cpp | 26 +- kopete/plugins/statistics/statisticsplugin.h | 10 +- kopete/plugins/statistics/statisticswidget.ui | 18 +- .../plugins/texteffect/texteffectpreferences.cpp | 2 +- kopete/plugins/texteffect/texteffectprefs.ui | 4 +- kopete/plugins/translator/translatorplugin.cpp | 6 +- kopete/plugins/translator/translatorprefsbase.ui | 2 +- kopete/plugins/webpresence/DESIGN | 2 +- kopete/plugins/webpresence/webpresence_html.xsl | 2 +- kopete/plugins/webpresence/webpresence_xhtml.xsl | 2 +- kopete/plugins/webpresence/webpresenceplugin.cpp | 24 +- kopete/plugins/webpresence/webpresenceplugin.h | 2 +- .../plugins/webpresence/webpresencepreferences.cpp | 2 +- kopete/plugins/webpresence/webpresenceprefs.ui | 12 +- kopete/protocols/gadu/gaduaccount.cpp | 78 ++-- kopete/protocols/gadu/gaduaccount.h | 2 +- kopete/protocols/gadu/gaduaddcontactpage.cpp | 2 +- kopete/protocols/gadu/gaduaway.cpp | 4 +- kopete/protocols/gadu/gaducommands.cpp | 8 +- kopete/protocols/gadu/gaducommands.h | 2 +- kopete/protocols/gadu/gaducontact.cpp | 10 +- kopete/protocols/gadu/gaducontact.h | 2 +- kopete/protocols/gadu/gadudcctransaction.cpp | 4 +- kopete/protocols/gadu/gadueditcontact.cpp | 2 +- kopete/protocols/gadu/gaduprotocol.cpp | 2 +- kopete/protocols/gadu/gaduprotocol.h | 2 +- kopete/protocols/gadu/gadupubdir.cpp | 6 +- kopete/protocols/gadu/gadupubdir.h | 2 +- kopete/protocols/gadu/gaduregisteraccount.cpp | 26 +- kopete/protocols/gadu/gaduregisteraccount.h | 2 +- kopete/protocols/gadu/gadurichtextformat.cpp | 32 +- kopete/protocols/gadu/gadusession.cpp | 14 +- kopete/protocols/gadu/gadusession.h | 2 +- kopete/protocols/gadu/ui/gaduadd.ui | 12 +- kopete/protocols/gadu/ui/gaduawayui.ui | 8 +- kopete/protocols/gadu/ui/gadueditaccountui.ui | 34 +- kopete/protocols/gadu/ui/gaduregisteraccountui.ui | 32 +- kopete/protocols/gadu/ui/gadusearch.ui | 32 +- kopete/protocols/groupwise/gwaccount.cpp | 52 +-- kopete/protocols/groupwise/gwaccount.h | 6 +- kopete/protocols/groupwise/gwaddui.ui | 4 +- kopete/protocols/groupwise/gwcontact.cpp | 14 +- kopete/protocols/groupwise/gwmessagemanager.cpp | 20 +- kopete/protocols/groupwise/gwprotocol.cpp | 10 +- kopete/protocols/groupwise/libgroupwise/client.cpp | 34 +- kopete/protocols/groupwise/libgroupwise/client.h | 10 +- .../groupwise/libgroupwise/coreprotocol.cpp | 18 +- .../groupwise/libgroupwise/coreprotocol.h | 2 +- .../groupwise/libgroupwise/eventprotocol.cpp | 16 +- .../groupwise/libgroupwise/eventprotocol.h | 4 +- .../groupwise/libgroupwise/eventtransfer.cpp | 10 +- .../groupwise/libgroupwise/eventtransfer.h | 6 +- .../protocols/groupwise/libgroupwise/gwchatrooms.h | 4 +- .../groupwise/libgroupwise/gwclientstream.cpp | 12 +- .../protocols/groupwise/libgroupwise/gwerror.cpp | 4 +- kopete/protocols/groupwise/libgroupwise/gwerror.h | 8 +- .../groupwise/libgroupwise/inputprotocolbase.cpp | 2 +- .../groupwise/libgroupwise/qca/src/qca.cpp | 4 +- .../groupwise/libgroupwise/responseprotocol.cpp | 24 +- kopete/protocols/groupwise/libgroupwise/rtf.cc | 2 +- kopete/protocols/groupwise/libgroupwise/rtf.ll | 2 +- kopete/protocols/groupwise/libgroupwise/rtf2html.h | 2 +- kopete/protocols/groupwise/libgroupwise/task.cpp | 6 +- .../libgroupwise/tasks/conferencetask.cpp | 24 +- .../libgroupwise/tasks/createcontacttask.cpp | 6 +- .../tasks/getchatsearchresultstask.cpp | 12 +- .../libgroupwise/tasks/getchatsearchresultstask.h | 4 +- .../groupwise/libgroupwise/tasks/getstatustask.cpp | 2 +- .../groupwise/libgroupwise/tasks/getstatustask.h | 2 +- .../libgroupwise/tasks/joinconferencetask.cpp | 6 +- .../groupwise/libgroupwise/tasks/logintask.cpp | 10 +- .../groupwise/libgroupwise/tasks/logintask.h | 2 +- .../libgroupwise/tasks/needfoldertask.cpp | 2 +- .../libgroupwise/tasks/pollsearchresultstask.cpp | 12 +- .../libgroupwise/tasks/pollsearchresultstask.h | 4 +- .../groupwise/libgroupwise/tasks/requesttask.cpp | 2 +- .../libgroupwise/tasks/searchchattask.cpp | 4 +- .../libgroupwise/tasks/searchusertask.cpp | 6 +- .../groupwise/libgroupwise/tasks/setstatustask.cpp | 10 +- .../groupwise/libgroupwise/tasks/setstatustask.h | 6 +- .../groupwise/libgroupwise/tasks/statustask.cpp | 4 +- .../groupwise/libgroupwise/tasks/statustask.h | 2 +- .../groupwise/libgroupwise/tests/field_test.cpp | 6 +- .../groupwise/libgroupwise/userdetailsmanager.cpp | 4 +- .../protocols/groupwise/ui/gwaccountpreferences.ui | 8 +- kopete/protocols/groupwise/ui/gwaddcontactpage.cpp | 2 +- kopete/protocols/groupwise/ui/gwchatpropswidget.ui | 4 +- .../protocols/groupwise/ui/gwchatsearchwidget.ui | 4 +- .../protocols/groupwise/ui/gwcontactproperties.cpp | 6 +- .../protocols/groupwise/ui/gwcontactpropswidget.ui | 4 +- kopete/protocols/groupwise/ui/gwcontactsearch.ui | 10 +- .../protocols/groupwise/ui/gwcustomstatusedit.ui | 6 +- .../protocols/groupwise/ui/gwcustomstatuswidget.ui | 4 +- .../protocols/groupwise/ui/gweditaccountwidget.cpp | 2 +- kopete/protocols/groupwise/ui/gwprivacy.ui | 14 +- kopete/protocols/groupwise/ui/gwprivacydialog.cpp | 4 +- .../groupwise/ui/gwreceiveinvitationdialog.cpp | 2 +- kopete/protocols/groupwise/ui/gwshowinvitation.ui | 8 +- kopete/protocols/irc/ircaccount.cpp | 90 ++--- kopete/protocols/irc/ircaccount.h | 2 +- kopete/protocols/irc/ircaddcontactpage.cpp | 2 +- kopete/protocols/irc/ircchannelcontact.cpp | 64 ++-- kopete/protocols/irc/ircchannelcontact.h | 4 +- kopete/protocols/irc/irccontact.cpp | 32 +- kopete/protocols/irc/irccontact.h | 2 +- kopete/protocols/irc/ircprotocol.cpp | 148 ++++---- kopete/protocols/irc/ircprotocol.h | 6 +- kopete/protocols/irc/ircservercontact.cpp | 16 +- kopete/protocols/irc/ircservercontact.h | 2 +- kopete/protocols/irc/irctransferhandler.cpp | 2 +- kopete/protocols/irc/ircusercontact.cpp | 128 +++---- kopete/protocols/irc/ircusercontact.h | 2 +- kopete/protocols/irc/kcodecaction.cpp | 2 +- kopete/protocols/irc/ksparser.cpp | 24 +- kopete/protocols/irc/libkirc/kircengine.cpp | 40 +- kopete/protocols/irc/libkirc/kircengine.h | 12 +- .../protocols/irc/libkirc/kircengine_commands.cpp | 10 +- kopete/protocols/irc/libkirc/kircengine_ctcp.cpp | 30 +- .../irc/libkirc/kircengine_numericreplies.cpp | 2 +- kopete/protocols/irc/libkirc/kircentity.cpp | 6 +- kopete/protocols/irc/libkirc/kircmessage.cpp | 24 +- kopete/protocols/irc/libkirc/kircmessage.h | 2 +- .../irc/libkirc/kircmessageredirector.cpp | 6 +- kopete/protocols/irc/libkirc/kirctransfer.cpp | 4 +- kopete/protocols/irc/libkirc/kirctransfer.h | 6 +- .../protocols/irc/libkirc/kirctransferhandler.cpp | 2 +- kopete/protocols/irc/libkirc/ksslsocket.cpp | 4 +- kopete/protocols/irc/ui/channellist.cpp | 30 +- kopete/protocols/irc/ui/channellist.h | 4 +- kopete/protocols/irc/ui/channellistdialog.cpp | 2 +- kopete/protocols/irc/ui/ircadd.ui | 6 +- kopete/protocols/irc/ui/irceditaccount.ui | 34 +- kopete/protocols/irc/ui/irceditaccountwidget.cpp | 10 +- kopete/protocols/irc/ui/networkconfig.ui | 6 +- kopete/protocols/jabber/jabberaccount.cpp | 76 ++-- kopete/protocols/jabber/jabberaccount.h | 8 +- kopete/protocols/jabber/jabberbasecontact.cpp | 16 +- kopete/protocols/jabber/jabberbasecontact.h | 2 +- .../protocols/jabber/jabbercapabilitiesmanager.cpp | 16 +- .../protocols/jabber/jabbercapabilitiesmanager.h | 6 +- kopete/protocols/jabber/jabberchatsession.cpp | 2 +- kopete/protocols/jabber/jabberclient.cpp | 14 +- kopete/protocols/jabber/jabberclient.h | 10 +- kopete/protocols/jabber/jabbercontact.cpp | 58 +-- kopete/protocols/jabber/jabbercontact.h | 2 +- kopete/protocols/jabber/jabberformtranslator.cpp | 6 +- kopete/protocols/jabber/jabberformtranslator.h | 2 +- kopete/protocols/jabber/jabbergroupchatmanager.cpp | 2 +- kopete/protocols/jabber/jabbergroupcontact.cpp | 8 +- kopete/protocols/jabber/jabberprotocol.cpp | 24 +- kopete/protocols/jabber/jabberprotocol.h | 12 +- kopete/protocols/jabber/jabberresourcepool.cpp | 2 +- kopete/protocols/jabber/jabbertransport.cpp | 28 +- kopete/protocols/jabber/jabbertransport.h | 6 +- .../protocols/jabber/jingle/jinglevoicecaller.cpp | 16 +- .../protocols/jabber/jingle/jinglevoicesession.cpp | 2 +- .../jabber/jingle/jinglevoicesessiondialog.cpp | 20 +- .../jabber/jingle/jinglevoicesessiondialogbase.ui | 36 +- .../jabber/jingle/libjingle/talk/base/task.cc | 10 +- .../jabber/jingle/libjingle/talk/base/task.h | 14 +- .../jingle/libjingle/talk/base/taskrunner.cc | 2 +- .../libjingle/talk/examples/call/callclient.cc | 20 +- .../libjingle/talk/examples/call/callclient.h | 6 +- .../talk/examples/call/presenceouttask.cc | 24 +- .../libjingle/talk/examples/call/presenceouttask.h | 8 +- .../talk/examples/call/presencepushtask.cc | 14 +- .../talk/examples/call/presencepushtask.h | 2 +- .../jingle/libjingle/talk/examples/call/status.h | 26 +- .../libjingle/talk/examples/login/xmpppump.cc | 2 +- .../libjingle/talk/examples/login/xmpppump.h | 2 +- .../talk/session/phone/linphonemediaengine.cc | 4 +- .../talk/session/phone/linphonemediaengine.h | 2 +- .../libjingle/talk/session/phone/mediachannel.h | 2 +- .../talk/session/phone/portaudiomediaengine.cc | 6 +- .../talk/session/phone/portaudiomediaengine.h | 2 +- .../libjingle/talk/session/phone/voicechannel.cc | 6 +- .../jingle/libjingle/talk/xmllite/xmlelement.cc | 2 +- .../jingle/libjingle/talk/xmllite/xmlprinter.cc | 2 +- .../jingle/libjingle/talk/xmpp/xmppclient.cc | 10 +- .../jabber/jingle/libjingle/talk/xmpp/xmppclient.h | 10 +- .../jabber/jingle/libjingle/talk/xmpp/xmppengine.h | 40 +- .../jingle/libjingle/talk/xmpp/xmppengineimpl.cc | 30 +- .../jingle/libjingle/talk/xmpp/xmppengineimpl.h | 36 +- .../libjingle/talk/xmpp/xmppengineimpl_iq.cc | 8 +- .../jabber/jingle/libjingle/talk/xmpp/xmpptask.cc | 4 +- .../jabber/jingle/libjingle/talk/xmpp/xmpptask.h | 6 +- .../libiris/005_join_muc_with_password.patch | 20 +- .../jabber/libiris/cutestuff/network/httppoll.cpp | 2 +- .../jabber/libiris/cutestuff/network/socks.cpp | 4 +- .../jabber/libiris/cutestuff/util/base64.cpp | 2 +- .../jabber/libiris/cutestuff/util/showtextdlg.cpp | 6 +- kopete/protocols/jabber/libiris/iris/include/im.h | 36 +- .../jabber/libiris/iris/xmpp-core/parser.cpp | 2 +- .../jabber/libiris/iris/xmpp-core/protocol.cpp | 8 +- .../jabber/libiris/iris/xmpp-core/stream.cpp | 6 +- .../jabber/libiris/iris/xmpp-core/xmlprotocol.cpp | 2 +- .../jabber/libiris/iris/xmpp-im/client.cpp | 88 ++--- .../jabber/libiris/iris/xmpp-im/types.cpp | 76 ++-- .../jabber/libiris/iris/xmpp-im/xmpp_tasks.cpp | 24 +- .../jabber/libiris/iris/xmpp-im/xmpp_tasks.h | 12 +- kopete/protocols/jabber/libiris/jingle_iris.patch | 16 +- kopete/protocols/jabber/libiris/qca/src/qca.cpp | 4 +- kopete/protocols/jabber/ui/dlgaddcontact.ui | 8 +- kopete/protocols/jabber/ui/dlgbrowse.ui | 4 +- kopete/protocols/jabber/ui/dlgchangepassword.ui | 4 +- kopete/protocols/jabber/ui/dlgchatjoin.ui | 4 +- kopete/protocols/jabber/ui/dlgchatroomslist.ui | 6 +- kopete/protocols/jabber/ui/dlgjabberbrowse.cpp | 2 +- .../protocols/jabber/ui/dlgjabberchooseserver.ui | 4 +- .../jabber/ui/dlgjabbereditaccountwidget.ui | 42 +-- kopete/protocols/jabber/ui/dlgjabberregister.cpp | 4 +- kopete/protocols/jabber/ui/dlgjabberregister.h | 2 +- .../jabber/ui/dlgjabberregisteraccount.ui | 28 +- kopete/protocols/jabber/ui/dlgjabbersendraw.cpp | 2 +- kopete/protocols/jabber/ui/dlgjabberservices.cpp | 2 +- kopete/protocols/jabber/ui/dlgjabbervcard.cpp | 16 +- kopete/protocols/jabber/ui/dlgregister.ui | 4 +- kopete/protocols/jabber/ui/dlgsendraw.ui | 10 +- kopete/protocols/jabber/ui/dlgservices.ui | 6 +- kopete/protocols/jabber/ui/dlgvcard.ui | 48 +-- .../protocols/jabber/ui/jabberaddcontactpage.cpp | 2 +- kopete/protocols/jabber/ui/jabberchooseserver.cpp | 8 +- .../jabber/ui/jabbereditaccountwidget.cpp | 2 +- .../protocols/jabber/ui/jabberregisteraccount.cpp | 8 +- kopete/protocols/meanwhile/meanwhileaccount.cpp | 12 +- .../meanwhile/meanwhileaddcontactpage.cpp | 2 +- .../meanwhile/meanwhileeditaccountwidget.cpp | 6 +- kopete/protocols/meanwhile/meanwhileprotocol.cpp | 8 +- kopete/protocols/meanwhile/meanwhileprotocol.h | 4 +- .../meanwhile/ui/meanwhileaddcontactbase.ui | 6 +- .../meanwhile/ui/meanwhileeditaccountbase.ui | 16 +- kopete/protocols/msn/config/msnprefs.ui | 4 +- kopete/protocols/msn/dispatcher.cpp | 18 +- kopete/protocols/msn/incomingtransfer.cpp | 12 +- kopete/protocols/msn/messageformatter.cpp | 2 +- kopete/protocols/msn/msnaccount.cpp | 12 +- kopete/protocols/msn/msnaddcontactpage.cpp | 2 +- kopete/protocols/msn/msnchatsession.cpp | 14 +- kopete/protocols/msn/msncontact.cpp | 18 +- kopete/protocols/msn/msncontact.h | 4 +- kopete/protocols/msn/msnfiletransfersocket.cpp | 2 +- kopete/protocols/msn/msnnotifysocket.cpp | 44 +-- kopete/protocols/msn/msnnotifysocket.h | 8 +- kopete/protocols/msn/msnprotocol.cpp | 2 +- kopete/protocols/msn/msnsocket.cpp | 22 +- kopete/protocols/msn/msnsocket.h | 6 +- kopete/protocols/msn/msnswitchboardsocket.cpp | 38 +- kopete/protocols/msn/outgoingtransfer.cpp | 8 +- kopete/protocols/msn/transport.cpp | 2 +- kopete/protocols/msn/ui/msnadd.ui | 8 +- kopete/protocols/msn/ui/msneditaccountui.ui | 76 ++-- kopete/protocols/msn/ui/msneditaccountwidget.cpp | 2 +- kopete/protocols/msn/ui/msninfo.ui | 4 +- kopete/protocols/msn/webcam.cpp | 22 +- kopete/protocols/msn/webcam.h | 4 +- kopete/protocols/msn/webcam/msnwebcamdialog.cpp | 8 +- kopete/protocols/oscar/aim/aimaccount.cpp | 84 ++--- kopete/protocols/oscar/aim/aimcontact.cpp | 92 ++--- kopete/protocols/oscar/aim/aimprotocol.cpp | 10 +- kopete/protocols/oscar/aim/aimuserinfo.cpp | 8 +- .../protocols/oscar/aim/ui/aimaddcontactpage.cpp | 2 +- kopete/protocols/oscar/aim/ui/aimeditaccountui.ui | 16 +- .../oscar/aim/ui/aimeditaccountwidget.cpp | 2 +- kopete/protocols/oscar/aim/ui/aiminfobase.ui | 12 +- kopete/protocols/oscar/aim/ui/aimjoinchatbase.ui | 6 +- kopete/protocols/oscar/icq/icqaccount.cpp | 30 +- kopete/protocols/oscar/icq/icqaccount.h | 2 +- kopete/protocols/oscar/icq/icqcontact.cpp | 42 +-- kopete/protocols/oscar/icq/icqpresence.cpp | 26 +- kopete/protocols/oscar/icq/icqpresence.h | 14 +- kopete/protocols/oscar/icq/icqprotocol.cpp | 18 +- kopete/protocols/oscar/icq/icqreadaway.cpp | 6 +- kopete/protocols/oscar/icq/ui/icqadd.ui | 8 +- .../protocols/oscar/icq/ui/icqaddcontactpage.cpp | 2 +- .../protocols/oscar/icq/ui/icqauthreplydialog.cpp | 4 +- kopete/protocols/oscar/icq/ui/icqauthreplyui.ui | 10 +- kopete/protocols/oscar/icq/ui/icqeditaccountui.ui | 12 +- .../oscar/icq/ui/icqeditaccountwidget.cpp | 4 +- kopete/protocols/oscar/icq/ui/icqgeneralinfo.ui | 4 +- .../oscar/icq/ui/icqinterestinfowidget.ui | 2 +- .../protocols/oscar/icq/ui/icqotherinfowidget.ui | 2 +- kopete/protocols/oscar/icq/ui/icqsearchbase.ui | 8 +- kopete/protocols/oscar/icq/ui/icqsearchdialog.cpp | 4 +- .../protocols/oscar/icq/ui/icquserinfowidget.cpp | 12 +- kopete/protocols/oscar/icq/ui/icqworkinfowidget.ui | 2 +- kopete/protocols/oscar/liboscar/buffer.cpp | 4 +- .../oscar/liboscar/chatnavservicetask.cpp | 2 +- .../protocols/oscar/liboscar/chatservicetask.cpp | 4 +- kopete/protocols/oscar/liboscar/client.cpp | 30 +- kopete/protocols/oscar/liboscar/client.h | 12 +- kopete/protocols/oscar/liboscar/coreprotocol.cpp | 4 +- .../oscar/liboscar/messagereceivertask.cpp | 8 +- kopete/protocols/oscar/liboscar/oscarmessage.cpp | 2 +- .../protocols/oscar/liboscar/oscartypeclasses.cpp | 2 +- kopete/protocols/oscar/liboscar/rtf.cc | 2 +- kopete/protocols/oscar/liboscar/rtf.ll | 2 +- kopete/protocols/oscar/liboscar/rtf2html.h | 2 +- kopete/protocols/oscar/liboscar/senddcinfotask.cpp | 4 +- kopete/protocols/oscar/liboscar/senddcinfotask.h | 2 +- .../protocols/oscar/liboscar/sendmessagetask.cpp | 6 +- kopete/protocols/oscar/liboscar/ssimanager.cpp | 2 +- kopete/protocols/oscar/liboscar/task.cpp | 4 +- .../oscar/liboscar/tests/clientstream_test.cpp | 2 +- .../protocols/oscar/liboscar/tests/logintest.cpp | 2 +- .../oscar/liboscar/tests/ssigrouptest.cpp | 6 +- kopete/protocols/oscar/liboscar/tests/ssitest.cpp | 12 +- .../oscar/liboscar/tests/userinfotest.cpp | 4 +- kopete/protocols/oscar/liboscar/transfer.cpp | 2 +- kopete/protocols/oscar/liboscar/userdetails.cpp | 52 +-- kopete/protocols/oscar/liboscar/userdetails.h | 4 +- kopete/protocols/oscar/oscaraccount.cpp | 52 +-- kopete/protocols/oscar/oscarcontact.cpp | 6 +- .../protocols/oscar/oscarencodingselectionbase.ui | 2 +- kopete/protocols/oscar/oscarvisibilitybase.ui | 8 +- kopete/protocols/sms/serviceloader.cpp | 2 +- kopete/protocols/sms/services/gsmlib.cpp | 14 +- kopete/protocols/sms/services/gsmlibprefs.ui | 4 +- kopete/protocols/sms/services/smsclient.cpp | 30 +- kopete/protocols/sms/services/smsclientprefs.ui | 4 +- kopete/protocols/sms/services/smssend.cpp | 14 +- kopete/protocols/sms/services/smssendprefs.ui | 6 +- kopete/protocols/sms/services/smssendprovider.cpp | 12 +- kopete/protocols/sms/smsaccount.cpp | 12 +- kopete/protocols/sms/smsaddcontactpage.cpp | 2 +- kopete/protocols/sms/smseditaccountwidget.cpp | 2 +- kopete/protocols/sms/smsservice.cpp | 2 +- kopete/protocols/sms/smsservice.h | 4 +- kopete/protocols/sms/ui/smsactprefs.ui | 14 +- kopete/protocols/sms/ui/smsadd.ui | 8 +- kopete/protocols/sms/ui/smsuserprefs.ui | 4 +- kopete/protocols/testbed/testbedaccount.cpp | 18 +- kopete/protocols/testbed/testbedaccount.h | 4 +- .../protocols/testbed/testbedaccountpreferences.ui | 8 +- kopete/protocols/testbed/testbedaddcontactpage.cpp | 4 +- kopete/protocols/testbed/testbedaddui.ui | 4 +- .../protocols/testbed/testbededitaccountwidget.cpp | 2 +- kopete/protocols/testbed/testbedfakeserver.cpp | 4 +- kopete/protocols/testbed/testbedprotocol.cpp | 4 +- .../protocols/testbed/ui/testbedwebcamdialog.cpp | 6 +- .../protocols/winpopup/libwinpopup/libwinpopup.cpp | 18 +- .../protocols/winpopup/libwinpopup/libwinpopup.h | 2 +- kopete/protocols/winpopup/ui/wpaddcontactbase.ui | 12 +- kopete/protocols/winpopup/ui/wpeditaccountbase.ui | 16 +- kopete/protocols/winpopup/ui/wpuserinfowidget.ui | 6 +- kopete/protocols/winpopup/wpaccount.cpp | 14 +- kopete/protocols/winpopup/wpaddcontact.cpp | 4 +- kopete/protocols/winpopup/wpcontact.cpp | 16 +- kopete/protocols/winpopup/wpcontact.h | 4 +- kopete/protocols/winpopup/wpprotocol.cpp | 2 +- kopete/protocols/winpopup/wpuserinfo.cpp | 2 +- .../protocols/yahoo/libkyahoo/changestatustask.cpp | 8 +- .../protocols/yahoo/libkyahoo/changestatustask.h | 6 +- kopete/protocols/yahoo/libkyahoo/client.cpp | 48 +-- kopete/protocols/yahoo/libkyahoo/client.h | 16 +- .../protocols/yahoo/libkyahoo/conferencetask.cpp | 2 +- kopete/protocols/yahoo/libkyahoo/coreprotocol.cpp | 2 +- kopete/protocols/yahoo/libkyahoo/listtask.h | 2 +- kopete/protocols/yahoo/libkyahoo/logintask.cpp | 6 +- kopete/protocols/yahoo/libkyahoo/logintask.h | 4 +- .../protocols/yahoo/libkyahoo/mailnotifiertask.cpp | 2 +- kopete/protocols/yahoo/libkyahoo/modifyyabtask.cpp | 14 +- .../yahoo/libkyahoo/picturenotifiertask.cpp | 8 +- .../yahoo/libkyahoo/picturenotifiertask.h | 2 +- .../protocols/yahoo/libkyahoo/receivefiletask.cpp | 16 +- .../protocols/yahoo/libkyahoo/sendnotifytask.cpp | 2 +- .../protocols/yahoo/libkyahoo/sendpicturetask.cpp | 18 +- kopete/protocols/yahoo/libkyahoo/sendpicturetask.h | 6 +- .../yahoo/libkyahoo/statusnotifiertask.cpp | 14 +- .../protocols/yahoo/libkyahoo/statusnotifiertask.h | 6 +- kopete/protocols/yahoo/libkyahoo/stealthtask.cpp | 2 +- kopete/protocols/yahoo/libkyahoo/stealthtask.h | 4 +- kopete/protocols/yahoo/libkyahoo/task.cpp | 4 +- .../yahoo/libkyahoo/tests/clientstream_test.cpp | 2 +- .../protocols/yahoo/libkyahoo/tests/logintest.cpp | 2 +- kopete/protocols/yahoo/libkyahoo/webcamtask.cpp | 12 +- kopete/protocols/yahoo/libkyahoo/webcamtask.h | 4 +- kopete/protocols/yahoo/libkyahoo/yabentry.cpp | 4 +- kopete/protocols/yahoo/libkyahoo/yabtask.cpp | 8 +- .../yahoo/libkyahoo/yahoobuddyiconloader.cpp | 2 +- kopete/protocols/yahoo/libkyahoo/yahoochattask.cpp | 8 +- kopete/protocols/yahoo/libkyahoo/yahootypes.h | 14 +- kopete/protocols/yahoo/libkyahoo/ymsgprotocol.cpp | 18 +- kopete/protocols/yahoo/libkyahoo/ymsgtransfer.cpp | 8 +- kopete/protocols/yahoo/libkyahoo/ymsgtransfer.h | 6 +- kopete/protocols/yahoo/ui/yahooadd.ui | 6 +- kopete/protocols/yahoo/ui/yahooeditaccountbase.ui | 20 +- .../protocols/yahoo/ui/yahoogeneralinfowidget.ui | 4 +- kopete/protocols/yahoo/ui/yahooinvitelistbase.ui | 26 +- kopete/protocols/yahoo/ui/yahoootherinfowidget.ui | 2 +- kopete/protocols/yahoo/ui/yahoostealthsetting.ui | 2 +- kopete/protocols/yahoo/ui/yahoouserinfodialog.cpp | 16 +- .../protocols/yahoo/ui/yahooverifyaccountbase.ui | 16 +- kopete/protocols/yahoo/ui/yahoowebcamdialog.cpp | 22 +- kopete/protocols/yahoo/ui/yahooworkinfowidget.ui | 4 +- kopete/protocols/yahoo/yahooaccount.cpp | 146 +++---- kopete/protocols/yahoo/yahooaccount.h | 4 +- kopete/protocols/yahoo/yahooaddcontact.cpp | 2 +- kopete/protocols/yahoo/yahoochatsession.cpp | 2 +- kopete/protocols/yahoo/yahoocontact.cpp | 44 +-- kopete/protocols/yahoo/yahoocontact.h | 2 +- kopete/protocols/yahoo/yahooeditaccount.cpp | 2 +- kopete/protocols/yahoo/yahooverifyaccount.cpp | 2 +- kpf/src/ActiveMonitor.cpp | 8 +- kpf/src/ActiveMonitorItem.cpp | 12 +- kpf/src/ActiveMonitorItem.h | 4 +- kpf/src/ActiveMonitorWindow.cpp | 2 +- kpf/src/Applet.cpp | 2 +- kpf/src/Applet.h | 10 +- kpf/src/AppletItem.cpp | 4 +- kpf/src/BandwidthGraph.cpp | 14 +- kpf/src/BandwidthGraph.h | 8 +- kpf/src/ConfigDialogPage.cpp | 2 +- kpf/src/DirectoryLister.cpp | 12 +- kpf/src/ErrorMessageConfigDialog.cpp | 10 +- kpf/src/PropertiesDialogPlugin.cpp | 18 +- kpf/src/Response.cpp | 8 +- kpf/src/Server.cpp | 4 +- kpf/src/ServerWizard.cpp | 64 ++-- kpf/src/SingleServerConfigDialog.cpp | 2 +- kpf/src/StartingKPFDialog.cpp | 6 +- kpf/src/Utils.cpp | 2 +- kppp/accounting.cpp | 10 +- kppp/accounts.cpp | 16 +- kppp/acctselect.cpp | 4 +- kppp/connect.cpp | 60 +-- kppp/conwindow.cpp | 28 +- kppp/conwindow.h | 2 +- kppp/debug.cpp | 2 +- kppp/edit.cpp | 24 +- kppp/general.cpp | 2 +- kppp/iplined.cpp | 4 +- kppp/iplined.h | 2 +- kppp/kpppwidget.cpp | 60 +-- kppp/loginterm.cpp | 6 +- kppp/logview/export.cpp | 10 +- kppp/logview/export.h | 2 +- kppp/logview/main.cpp | 4 +- kppp/logview/monthly.cpp | 80 ++-- kppp/logview/monthly.h | 2 +- kppp/macros.h | 16 +- kppp/main.cpp | 4 +- kppp/miniterm.cpp | 12 +- kppp/modemcmds.cpp | 30 +- kppp/modemdb.cpp | 8 +- kppp/modeminfo.cpp | 14 +- kppp/modems.cpp | 6 +- kppp/newwidget.cpp | 4 +- kppp/newwidget.h | 2 +- kppp/opener.cpp | 14 +- kppp/opener.h | 2 +- kppp/pppdargs.cpp | 6 +- kppp/pppdata.cpp | 6 +- kppp/ppplog.cpp | 14 +- kppp/pppstatdlg.cpp | 24 +- kppp/pppstats.cpp | 16 +- kppp/pppstats.h | 4 +- kppp/providerdb.cpp | 6 +- kppp/pwentry.cpp | 2 +- kppp/requester.cpp | 8 +- kppp/requester.h | 4 +- kppp/ruleset.cpp | 2 +- kppp/runtests.cpp | 4 +- kppp/scriptedit.cpp | 2 +- krdc/events.h | 10 +- krdc/hostpreferences.cpp | 2 +- krdc/hostprofiles.ui | 2 +- krdc/keycapturedialog.cpp | 8 +- krdc/keycapturewidget.ui | 10 +- krdc/kfullscreenpanel.cpp | 2 +- krdc/kfullscreenpanel.h | 2 +- krdc/krdc.cpp | 34 +- krdc/krdc.h | 8 +- krdc/kremoteview.cpp | 8 +- krdc/kremoteview.h | 18 +- krdc/main.cpp | 6 +- krdc/maindialogbase.ui | 8 +- krdc/maindialogwidget.cpp | 6 +- krdc/preferencesdialog.cpp | 2 +- krdc/rdp/krdpview.cpp | 22 +- krdc/rdp/krdpview.h | 2 +- krdc/rdp/rdphostpref.cpp | 12 +- krdc/rdp/rdphostpref.h | 20 +- krdc/rdp/rdpprefs.ui | 14 +- krdc/smartptr.h | 2 +- krdc/vnc/desktop.c | 2 +- krdc/vnc/kvncview.cpp | 18 +- krdc/vnc/kvncview.h | 2 +- krdc/vnc/rfbproto.c | 8 +- krdc/vnc/rfbproto.h | 12 +- krdc/vnc/threads.cpp | 22 +- krdc/vnc/threads.h | 6 +- krdc/vnc/vnchostpref.cpp | 2 +- krdc/vnc/vncprefs.ui | 4 +- krdc/vnc/vnctypes.h | 2 +- krdc/vnc/vncviewer.h | 2 +- krfb/kcm_krfb/configurationwidget.ui | 8 +- krfb/kcm_krfb/kcm_krfb.cpp | 4 +- krfb/kinetd/kinetd.cpp | 24 +- krfb/krfb/configuration.cc | 20 +- krfb/krfb/connectionwidget.ui | 10 +- krfb/krfb/invitation.cc | 22 +- krfb/krfb/invitedialog.cc | 2 +- krfb/krfb/invitewidget.ui | 14 +- krfb/krfb/manageinvitations.ui | 4 +- krfb/krfb/personalinvitedialog.cc | 2 +- krfb/krfb/personalinvitewidget.ui | 8 +- krfb/krfb/rfbcontroller.cc | 24 +- krfb/krfb/trayicon.cpp | 2 +- krfb/libvncserver/cursor.c | 6 +- krfb/libvncserver/rfb.h | 12 +- krfb/libvncserver/rfbproto.h | 12 +- krfb/libvncserver/rfbserver.c | 26 +- krfb/libvncserver/stats.c | 2 +- krfb/libvncserver/zlib.c | 2 +- krfb/srvloc/kserviceregistry.cpp | 2 +- krfb/srvloc/kserviceregistry.h | 2 +- ksirc/FilterRuleEditor.cpp | 2 +- ksirc/FilterRuleEditor.dlg | 30 +- ksirc/KSOpenkSirc/open_ksirc.cpp | 2 +- ksirc/KSOpenkSirc/open_ksircData.ui | 4 +- ksirc/KSPrefs/ksprefs.cpp | 2 +- ksirc/KSPrefs/page_autoconnect.cpp | 6 +- ksirc/KSPrefs/page_autoconnectbase.ui | 18 +- ksirc/KSPrefs/page_colorsbase.ui | 54 +-- ksirc/KSPrefs/page_font.cpp | 6 +- ksirc/KSPrefs/page_font.h | 4 +- ksirc/KSPrefs/page_generalbase.ui | 10 +- ksirc/KSPrefs/page_irccolorsbase.ui | 36 +- ksirc/KSPrefs/page_looknfeelbase.ui | 22 +- ksirc/KSPrefs/page_rmbmenubase.ui | 12 +- ksirc/KSPrefs/page_shortcuts.cpp | 4 +- ksirc/KSPrefs/page_shortcutsbase.ui | 2 +- ksirc/KSPrefs/page_startupbase.ui | 2 +- ksirc/KSProgress/ksprogress.cpp | 2 +- ksirc/KSProgress/ksprogress.dlg | 4 +- ksirc/KSProgress/ksprogressdata.cpp | 16 +- ksirc/KSProgress/ksprogressdata.h | 2 +- ksirc/KSTicker/ksticker.cpp | 8 +- ksirc/KSTicker/ksttest.cpp | 4 +- ksirc/KSTicker/speeddialog.dlg | 14 +- ksirc/KSTicker/speeddialogData.cpp | 6 +- ksirc/ahistlineedit.cpp | 28 +- ksirc/ahistlineedit.h | 2 +- ksirc/alistbox.cpp | 2 +- ksirc/alistbox.h | 8 +- ksirc/chanButtons.cpp | 28 +- ksirc/chanButtons.h | 2 +- ksirc/chanparser.cpp | 38 +- ksirc/chanparser.h | 4 +- ksirc/charSelector.cpp | 2 +- ksirc/colorpicker.cpp | 10 +- ksirc/dccManager.cpp | 32 +- ksirc/dccManager.h | 20 +- ksirc/dccManagerbase.ui | 4 +- ksirc/dccMgrTest.cpp | 2 +- ksirc/dccNew.cpp | 2 +- ksirc/dccNewbase.ui | 8 +- ksirc/displayMgrMDI.cpp | 2 +- ksirc/dockservercontroller.cpp | 12 +- ksirc/dockservercontroller.h | 4 +- ksirc/ioBroadcast.cpp | 2 +- ksirc/ioDCC.cpp | 94 ++--- ksirc/ioDCC.h | 2 +- ksirc/iocontroller.cpp | 2 +- ksirc/ksirc.cpp | 6 +- ksirc/ksircprocess.cpp | 2 +- ksirc/ksopts.cpp | 22 +- ksirc/ksopts.h | 2 +- ksirc/ksparser.cpp | 10 +- ksirc/kstextview.cpp | 86 ++--- ksirc/kstextview.h | 24 +- ksirc/kstextviewtest.cpp | 26 +- ksirc/ksview.cpp | 44 +-- ksirc/logfile.cpp | 14 +- ksirc/messageReceiver.cpp | 2 +- ksirc/nickColourMaker.cpp | 2 +- ksirc/objFinder.cpp | 6 +- ksirc/openksircproc.dlg | 8 +- ksirc/puke/HOWTO-PUKE.pod | 10 +- ksirc/puke/commands.h | 36 +- ksirc/puke/controller.cpp | 6 +- ksirc/puke/controller.h | 4 +- ksirc/puke/dcc_status.pm | 12 +- ksirc/puke/load_all.pm | 2 +- ksirc/puke/palistbox.cpp | 4 +- ksirc/puke/pboxlayout.pm | 28 +- ksirc/puke/pframe.pm | 4 +- ksirc/puke/plabel.cpp | 2 +- ksirc/puke/plabel.pm | 2 +- ksirc/puke/playout.cpp | 14 +- ksirc/puke/playout.h | 4 +- ksirc/puke/pobject.cpp | 2 +- ksirc/puke/pwidget.cpp | 12 +- ksirc/puke/pwidget.pm | 2 +- ksirc/puke/small.pl | 2 +- ksirc/puke/test.pl | 2 +- ksirc/puke/user_monitor.ks | 2 +- ksirc/servercontroller.cpp | 16 +- ksirc/servercontroller.dlg | 2 +- ksirc/servercontroller.h | 2 +- ksirc/ssfepromptdata.cpp | 2 +- ksirc/topic.cpp | 22 +- ksirc/topic.h | 2 +- ksirc/toplevel.cpp | 76 ++-- ksirc/toplevel.h | 2 +- ktalkd/kcmktalkd/answmachpage.cpp | 12 +- ktalkd/kcmktalkd/forwmachpage.cpp | 4 +- ktalkd/kcmktalkd/main.cpp | 6 +- ktalkd/kcmktalkd/soundpage.cpp | 8 +- ktalkd/ktalkd/threads.cpp | 4 +- ktalkd/ktalkd/threads.h | 4 +- ktalkd/ktalkdlg/ktalkdlg.cpp | 2 +- lanbrowsing/kcmlisa/findnic.cpp | 6 +- lanbrowsing/kcmlisa/kcmkiolan.cpp | 20 +- lanbrowsing/kcmlisa/kcmlisa.cpp | 16 +- lanbrowsing/kcmlisa/kcmreslisa.cpp | 10 +- lanbrowsing/kcmlisa/setupwizard.cpp | 22 +- lanbrowsing/kcmlisa/setupwizard.h | 2 +- lanbrowsing/kio_lan/kio_lan.cpp | 6 +- librss/article.cpp | 16 +- librss/document.cpp | 274 +++++++------- librss/global.h | 2 +- librss/image.cpp | 12 +- librss/loader.cpp | 6 +- librss/loader.h | 10 +- librss/testlibrss.cpp | 6 +- librss/testlibrss.h | 4 +- librss/textinput.cpp | 8 +- wifi/kcmwifi/configadvanced.ui | 2 +- wifi/kcmwifi/configcrypto.ui | 18 +- wifi/kcmwifi/configcrypto.ui.h | 8 +- wifi/kcmwifi/ifconfigpagebase.ui | 28 +- wifi/kcmwifi/kcmwifi.cpp | 18 +- wifi/kcmwifi/mainconfig.cpp | 6 +- wifi/kcmwifi/mainconfigbase.ui | 6 +- wifi/kcmwifi/vendorconfig.cpp | 2 +- wifi/kcmwifi/wificonfig.cpp | 4 +- wifi/kwifimanager.cpp | 44 +-- wifi/kwifimanager.h | 4 +- wifi/kwireless/kwirelesswidget.cpp | 6 +- wifi/kwireless/linuxwirelesswidget.cpp | 8 +- wifi/kwireless/propertytable.cpp | 2 +- wifi/locator.cpp | 8 +- wifi/networkscanning.cpp | 16 +- wifi/statistics.cpp | 4 +- wifi/status.cpp | 50 +-- wifi/status.h | 4 +- wifi/strength.cpp | 4 +- 975 files changed, 6658 insertions(+), 6658 deletions(-) diff --git a/dcoprss/cache.cpp b/dcoprss/cache.cpp index c4a566aa..0636c674 100644 --- a/dcoprss/cache.cpp +++ b/dcoprss/cache.cpp @@ -35,7 +35,7 @@ bool CacheEntry::isValid() const { // Cache entries get invalid after on hour. One shouldn't hardcode this // but for now it'll do. - return m_timeStamp.secsTo( TQDateTime::currentDateTime() ) < 3600; + return m_timeStamp.secsTo( TQDateTime::tqcurrentDateTime() ) < 3600; } Cache *Cache::m_instance = 0; @@ -51,8 +51,8 @@ TQString Cache::getCacheKey( const TQString &server, const TQString &method, const TQValueList &args ) { TQString key; - key = server + TQString::fromLatin1( "__" ); - key += method + TQString::fromLatin1( "__" ); + key = server + TQString::tqfromLatin1( "__" ); + key += method + TQString::tqfromLatin1( "__" ); TQValueList::ConstIterator it = args.begin(); TQValueList::ConstIterator end = args.end(); for ( ; it != end; ++it ) @@ -111,13 +111,13 @@ void Cache::touch( const TQString &key ) CacheEntry *entry = find( key ); if ( !entry ) return; - entry->m_timeStamp = TQDateTime::currentDateTime(); + entry->m_timeStamp = TQDateTime::tqcurrentDateTime(); } void Cache::insert( const TQString &key, const KXMLRPC::Query::Result &result ) { CacheEntry *entry = new CacheEntry; - entry->m_timeStamp = TQDateTime::currentDateTime(); + entry->m_timeStamp = TQDateTime::tqcurrentDateTime(); entry->m_result = result; TQDict::insert( key, entry ); } diff --git a/dcoprss/document.cpp b/dcoprss/document.cpp index fb5cd904..64c68d6e 100644 --- a/dcoprss/document.cpp +++ b/dcoprss/document.cpp @@ -29,7 +29,7 @@ RSSDocument::RSSDocument(const TQString& url) : m_pix = TQPixmap(); m_isLoading = false; m_maxAge = 60; - m_Timeout = TQDateTime::currentDateTime(); + m_Timeout = TQDateTime::tqcurrentDateTime(); m_state.clear(); } @@ -40,7 +40,7 @@ RSSDocument::~RSSDocument() delete m_Doc; } -void RSSDocument::loadingComplete(Loader *ldr, Document doc, Status stat) +void RSSDocument::loadingComplete(Loader *ldr, Document doc, tqStatus stat) { @@ -129,7 +129,7 @@ TQDateTime RSSDocument::lastBuildDate() if( m_Doc != 0L) return m_Doc->lastBuildDate(); else - return TQDateTime::currentDateTime(); + return TQDateTime::tqcurrentDateTime(); } TQDateTime RSSDocument::pubDate() @@ -137,7 +137,7 @@ TQDateTime RSSDocument::pubDate() if( m_Doc != 0L) return m_Doc->pubDate(); else - return TQDateTime::currentDateTime(); + return TQDateTime::tqcurrentDateTime(); } TQString RSSDocument::copyright() @@ -243,14 +243,14 @@ bool RSSDocument::pixmapValid() void RSSDocument::refresh() { kdDebug() << "Mod time " << m_Timeout.toString() << endl; - kdDebug() << "Current time " << TQDateTime::currentDateTime().toString() << endl; + kdDebug() << "Current time " << TQDateTime::tqcurrentDateTime().toString() << endl; - if(!m_isLoading && (TQDateTime::currentDateTime() >= m_Timeout)) + if(!m_isLoading && (TQDateTime::tqcurrentDateTime() >= m_Timeout)) { kdDebug() << "Document going to refresh" << endl; m_isLoading = true; Loader *loader = Loader::create(this, - TQT_SLOT(loadingComplete(Loader *, Document, Status))); + TQT_SLOT(loadingComplete(Loader *, Document, tqStatus))); loader->loadFrom(KURL( m_Url ), new FileRetriever()); documentUpdating(DCOPRef(this)); } diff --git a/dcoprss/query.cpp b/dcoprss/query.cpp index 9c324890..b3d48eaf 100644 --- a/dcoprss/query.cpp +++ b/dcoprss/query.cpp @@ -113,7 +113,7 @@ void QueryService::getCategories( const TQString &category ) kdDebug() << "QueryService::getCategories()" << endl; if ( category == "Top" ) { - cachedCall( "syndic8.GetCategoryRoots", Server::toVariantList( TQString::fromLatin1( "DMOZ" ) ), + cachedCall( "syndic8.GetCategoryRoots", Server::toVariantList( TQString::tqfromLatin1( "DMOZ" ) ), TQT_SLOT( slotGotCategories( const KXMLRPC::Query::Result & ) ) ); } else { TQStringList args; diff --git a/dcoprss/service.h b/dcoprss/service.h index 5ca2872b..502d13c1 100644 --- a/dcoprss/service.h +++ b/dcoprss/service.h @@ -124,7 +124,7 @@ class RSSDocument : public TQObject, public DCOPObject private slots: void pixmapLoaded(const TQPixmap&); - void loadingComplete(Loader *, Document, Status); + void loadingComplete(Loader *, Document, tqStatus); public: RSSDocument(const TQString& url); diff --git a/filesharing/advanced/kcm_sambaconf/dictmanager.cpp b/filesharing/advanced/kcm_sambaconf/dictmanager.cpp index 04eb0be7..6048e871 100644 --- a/filesharing/advanced/kcm_sambaconf/dictmanager.cpp +++ b/filesharing/advanced/kcm_sambaconf/dictmanager.cpp @@ -58,7 +58,7 @@ DictManager::~DictManager() { void DictManager::handleUnsupportedWidget(const TQString & s, TQWidget* w) { w->setEnabled(false); - TQToolTip::add(w,i18n("The option %1 is not supported by your Samba version").arg(s)); + TQToolTip::add(w,i18n("The option %1 is not supported by your Samba version").tqarg(s)); } void DictManager::add(const TQString & key, TQLineEdit* lineEdit) { diff --git a/filesharing/advanced/kcm_sambaconf/expertuserdlg.ui b/filesharing/advanced/kcm_sambaconf/expertuserdlg.ui index 59b27886..690688c2 100644 --- a/filesharing/advanced/kcm_sambaconf/expertuserdlg.ui +++ b/filesharing/advanced/kcm_sambaconf/expertuserdlg.ui @@ -129,7 +129,7 @@ Expanding - + 20 20 @@ -179,7 +179,7 @@ Expanding - + 20 40 diff --git a/filesharing/advanced/kcm_sambaconf/filemodedlg.ui b/filesharing/advanced/kcm_sambaconf/filemodedlg.ui index 96e207df..0f8867c8 100644 --- a/filesharing/advanced/kcm_sambaconf/filemodedlg.ui +++ b/filesharing/advanced/kcm_sambaconf/filemodedlg.ui @@ -67,7 +67,7 @@ Expanding - + 20 43 @@ -84,7 +84,7 @@ Expanding - + 70 20 @@ -359,7 +359,7 @@ Expanding - + 20 20 diff --git a/filesharing/advanced/kcm_sambaconf/groupselectdlg.ui b/filesharing/advanced/kcm_sambaconf/groupselectdlg.ui index 08595eb5..51f5e10b 100644 --- a/filesharing/advanced/kcm_sambaconf/groupselectdlg.ui +++ b/filesharing/advanced/kcm_sambaconf/groupselectdlg.ui @@ -52,7 +52,7 @@ Expanding - + 285 20 @@ -113,7 +113,7 @@ Expanding - + 20 20 diff --git a/filesharing/advanced/kcm_sambaconf/hiddenfileview.cpp b/filesharing/advanced/kcm_sambaconf/hiddenfileview.cpp index 09252315..31a642ff 100644 --- a/filesharing/advanced/kcm_sambaconf/hiddenfileview.cpp +++ b/filesharing/advanced/kcm_sambaconf/hiddenfileview.cpp @@ -91,7 +91,7 @@ KFileItem* HiddenListViewItem::getFileItem() } -void HiddenListViewItem::paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int alignment) +void HiddenListViewItem::paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int tqalignment) { TQColorGroup _cg = cg; @@ -101,7 +101,7 @@ void HiddenListViewItem::paintCell(TQPainter *p, const TQColorGroup &cg, int col if (isOn(COL_HIDDEN)) _cg.setColor(TQColorGroup::Text,gray); - QMultiCheckListItem::paintCell(p, _cg, column, width, alignment); + QMultiCheckListItem::paintCell(p, _cg, column, width, tqalignment); } @@ -404,7 +404,7 @@ void HiddenFileView::checkBoxClicked(TQCheckBox* chkBox,KToggleAction* action,TQ // TODO remove and use instead int result = KMessageBox::questionYesNo(_dlg,i18n( "Some files you have selected are matched by the wildcarded string '%1'; " - "do you want to uncheck all files matching '%1'?").arg(rx->pattern()).arg(rx->pattern()).arg(rx->pattern()), + "do you want to uncheck all files matching '%1'?").tqarg(rx->pattern()).tqarg(rx->pattern()).tqarg(rx->pattern()), i18n("Wildcarded String"),i18n("Uncheck Matches"),i18n("Keep Selected")); TQPtrList lst = getMatchingItems( *rx ); @@ -519,7 +519,7 @@ void HiddenFileView::updateView() item->setOn(COL_VETO_OPLOCK,matchVetoOplock(item->text(0))); } - _dlg->hiddenListView->repaint(); + _dlg->hiddenListView->tqrepaint(); } diff --git a/filesharing/advanced/kcm_sambaconf/hiddenfileview.h b/filesharing/advanced/kcm_sambaconf/hiddenfileview.h index 58e0e056..27bd7c7b 100644 --- a/filesharing/advanced/kcm_sambaconf/hiddenfileview.h +++ b/filesharing/advanced/kcm_sambaconf/hiddenfileview.h @@ -47,7 +47,7 @@ public: HiddenListViewItem( TQListView *parent, KFileItem *fi, bool hidden, bool veto, bool vetoOplock ); ~HiddenListViewItem(); - virtual void paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int alignment); + virtual void paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int tqalignment); KFileItem* getFileItem(); protected: diff --git a/filesharing/advanced/kcm_sambaconf/joindomaindlg.ui b/filesharing/advanced/kcm_sambaconf/joindomaindlg.ui index 51a0ff36..2ab91cf5 100644 --- a/filesharing/advanced/kcm_sambaconf/joindomaindlg.ui +++ b/filesharing/advanced/kcm_sambaconf/joindomaindlg.ui @@ -46,7 +46,7 @@ Expanding - + 20 20 @@ -190,7 +190,7 @@ Expanding - + 20 40 diff --git a/filesharing/advanced/kcm_sambaconf/kcminterface.ui b/filesharing/advanced/kcm_sambaconf/kcminterface.ui index f206907b..39a21fb3 100644 --- a/filesharing/advanced/kcm_sambaconf/kcminterface.ui +++ b/filesharing/advanced/kcm_sambaconf/kcminterface.ui @@ -91,7 +91,7 @@ and reappear on the right-hand side, as UNIX users which are not Samba users. - layout38 + tqlayout38 @@ -259,7 +259,7 @@ and reappear on the right-hand side, as UNIX users which are not Samba users. - layout33 + tqlayout33 @@ -370,7 +370,7 @@ and reappear on the right-hand side, as UNIX users which are not Samba users. RichText - + WordBreak|AlignTop @@ -461,7 +461,7 @@ and reappear on the right-hand side, as UNIX users which are not Samba users. - layout39 + tqlayout39 @@ -521,7 +521,7 @@ and reappear on the right-hand side, as UNIX users which are not Samba users. Expanding - + 40 20 @@ -584,7 +584,7 @@ and reappear on the right-hand side, as UNIX users which are not Samba users. For detailed help about every option please look at: - + AlignVCenter @@ -614,7 +614,7 @@ and reappear on the right-hand side, as UNIX users which are not Samba users. Expanding - + 30 0 @@ -633,7 +633,7 @@ and reappear on the right-hand side, as UNIX users which are not Samba users. Expanding - + 20 40 @@ -752,7 +752,7 @@ and reappear on the right-hand side, as UNIX users which are not Samba users. Expanding - + 20 0 @@ -900,7 +900,7 @@ and reappear on the right-hand side, as UNIX users which are not Samba users. Expanding - + 20 0 @@ -954,7 +954,7 @@ and reappear on the right-hand side, as UNIX users which are not Samba users. - layout56 + tqlayout56 @@ -1044,7 +1044,7 @@ and reappear on the right-hand side, as UNIX users which are not Samba users. - layout55 + tqlayout55 @@ -1066,7 +1066,7 @@ and reappear on the right-hand side, as UNIX users which are not Samba users. Expanding - + 20 30 @@ -1102,7 +1102,7 @@ and reappear on the right-hand side, as UNIX users which are not Samba users. Expanding - + 20 30 @@ -1135,7 +1135,7 @@ and reappear on the right-hand side, as UNIX users which are not Samba users. Expanding - + 20 30 @@ -1202,7 +1202,7 @@ and reappear on the right-hand side, as UNIX users which are not Samba users. - layout55 + tqlayout55 @@ -1243,7 +1243,7 @@ and reappear on the right-hand side, as UNIX users which are not Samba users. Expanding - + 240 20 @@ -1413,7 +1413,7 @@ Only change something if you know what you are doing. Expanding - + 20 40 @@ -1673,7 +1673,7 @@ Only change something if you know what you are doing. Expanding - + 180 20 @@ -1717,7 +1717,7 @@ Only change something if you know what you are doing. Expanding - + 117 20 @@ -1789,7 +1789,7 @@ Only change something if you know what you are doing. Expanding - + 20 40 @@ -2065,7 +2065,7 @@ Only change something if you know what you are doing. Expanding - + 20 20 @@ -2242,7 +2242,7 @@ Only change something if you know what you are doing. Expanding - + 40 20 @@ -2295,7 +2295,7 @@ Only change something if you know what you are doing. Expanding - + 20 170 @@ -2458,7 +2458,7 @@ Only change something if you know what you are doing. Expanding - + 16 20 @@ -2592,7 +2592,7 @@ Only change something if you know what you are doing. Expanding - + 120 20 @@ -2611,7 +2611,7 @@ Only change something if you know what you are doing. Expanding - + 20 20 @@ -2730,7 +2730,7 @@ Only change something if you know what you are doing. Expanding - + 40 20 @@ -2768,7 +2768,7 @@ Only change something if you know what you are doing. 0 - + 76 0 @@ -2834,7 +2834,7 @@ Only change something if you know what you are doing. statusChk - Status + tqStatus true @@ -2906,7 +2906,7 @@ Only change something if you know what you are doing. Expanding - + 20 60 @@ -3034,7 +3034,7 @@ Only change something if you know what you are doing. Expanding - + 40 20 @@ -3053,7 +3053,7 @@ Only change something if you know what you are doing. Expanding - + 20 50 @@ -3144,7 +3144,7 @@ Only change something if you know what you are doing. Expanding - + 16 20 @@ -3493,7 +3493,7 @@ Only change something if you know what you are doing. Expanding - + 20 16 @@ -3694,7 +3694,7 @@ Only change something if you know what you are doing. Expanding - + 20 40 @@ -3730,7 +3730,7 @@ Only change something if you know what you are doing. Expanding - + 20 100 @@ -3811,7 +3811,7 @@ Only change something if you know what you are doing. Preferred - + 323 20 @@ -4060,7 +4060,7 @@ Only change something if you know what you are doing. Expanding - + 40 20 @@ -4202,7 +4202,7 @@ Only change something if you know what you are doing. Expanding - + 20 120 @@ -4347,7 +4347,7 @@ Only change something if you know what you are doing. Expanding - + 40 20 @@ -4393,7 +4393,7 @@ Only change something if you know what you are doing. Expanding - + 20 280 @@ -4570,7 +4570,7 @@ Only change something if you know what you are doing. Expanding - + 30 20 @@ -4607,7 +4607,7 @@ Only change something if you know what you are doing. Oplock break &wait time: - + AlignVCenter @@ -4640,7 +4640,7 @@ Only change something if you know what you are doing. Expanding - + 50 20 @@ -4659,7 +4659,7 @@ Only change something if you know what you are doing. Expanding - + 20 120 @@ -4776,7 +4776,7 @@ Only change something if you know what you are doing. - unicodeChk + tqunicodeChk U&nicode @@ -4917,7 +4917,7 @@ Only change something if you know what you are doing. Expanding - + 20 80 @@ -5036,7 +5036,7 @@ Only change something if you know what you are doing. Expanding - + 20 20 @@ -5481,7 +5481,7 @@ Only change something if you know what you are doing. Expanding - + 80 0 @@ -5500,7 +5500,7 @@ Only change something if you know what you are doing. Expanding - + 0 70 @@ -5729,7 +5729,7 @@ This is only available if the SSL libraries have been compiled on your system an Expanding - + 140 0 @@ -5913,7 +5913,7 @@ This is only available if the SSL libraries have been compiled on your system an Expanding - + 0 30 @@ -5949,7 +5949,7 @@ This is only available if the SSL libraries have been compiled on your system an Expanding - + 20 50 @@ -6035,7 +6035,7 @@ This is only available if the SSL libraries have been compiled on your system an Expanding - + 330 20 @@ -6193,7 +6193,7 @@ This is only available if the SSL libraries have been compiled on your system an Expanding - + 40 20 @@ -6405,7 +6405,7 @@ This is only available if the SSL libraries have been compiled on your system an 0 - + 150 0 @@ -6468,7 +6468,7 @@ This is only available if the SSL libraries have been compiled on your system an Expanding - + 340 20 @@ -6553,7 +6553,7 @@ This is only available if the SSL libraries have been compiled on your system an Expanding - + 20 300 @@ -6728,7 +6728,7 @@ This is only available if the SSL libraries have been compiled on your system an Expanding - + 370 20 @@ -6824,7 +6824,7 @@ This is only available if the SSL libraries have been compiled on your system an Expanding - + 20 100 @@ -6860,7 +6860,7 @@ This is only available if the SSL libraries have been compiled on your system an Expanding - + 20 280 @@ -6946,7 +6946,7 @@ This is only available if the SSL libraries have been compiled on your system an 0 - + 150 0 @@ -6993,7 +6993,7 @@ This is only available if the SSL libraries have been compiled on your system an Expanding - + 0 30 @@ -7134,7 +7134,7 @@ This is only available if the SSL libraries have been compiled on your system an Expanding - + 20 130 @@ -7339,7 +7339,7 @@ This is only available if the SSL libraries have been compiled on your system an Expanding - + 330 20 @@ -7452,7 +7452,7 @@ This is only available if the SSL libraries have been compiled on your system an Expanding - + 20 230 @@ -7643,7 +7643,7 @@ This is only available if the SSL libraries have been compiled on your system an Expanding - + 40 20 @@ -7764,7 +7764,7 @@ This is only available if the SSL libraries have been compiled on your system an Expanding - + 20 40 @@ -7838,7 +7838,7 @@ This is only available if the SSL libraries have been compiled on your system an Expanding - + 20 320 @@ -8243,7 +8243,7 @@ This is only available if the SSL libraries have been compiled on your system an logonDriveEdit logonPathUrlRq logonHomeUrlRq - unicodeChk + tqunicodeChk displayCharsetEdit unixCharsetEdit dosCharsetEdit diff --git a/filesharing/advanced/kcm_sambaconf/kcmprinterdlg.ui b/filesharing/advanced/kcm_sambaconf/kcmprinterdlg.ui index 069059bc..4a622f1a 100644 --- a/filesharing/advanced/kcm_sambaconf/kcmprinterdlg.ui +++ b/filesharing/advanced/kcm_sambaconf/kcmprinterdlg.ui @@ -25,7 +25,7 @@ KcmPrinterDlg - + 0 0 @@ -319,7 +319,7 @@ Expanding - + 20 20 @@ -349,7 +349,7 @@ Expanding - + 20 50 @@ -535,7 +535,7 @@ Expanding - + 200 20 @@ -633,7 +633,7 @@ Expanding - + 20 20 @@ -683,7 +683,7 @@ Expanding - + 263 20 @@ -831,7 +831,7 @@ Expanding - + 20 20 @@ -944,7 +944,7 @@ Expanding - + 20 20 @@ -1079,7 +1079,7 @@ Expanding - + 20 20 diff --git a/filesharing/advanced/kcm_sambaconf/kcmsambaconf.cpp b/filesharing/advanced/kcm_sambaconf/kcmsambaconf.cpp index 64d09e0c..7914aef2 100644 --- a/filesharing/advanced/kcm_sambaconf/kcmsambaconf.cpp +++ b/filesharing/advanced/kcm_sambaconf/kcmsambaconf.cpp @@ -32,7 +32,7 @@ #include #include -#include +#include #include #include #include @@ -919,7 +919,7 @@ void KcmSambaConf::loadCharset(SambaShare* ) _dictMngr->add("character set", _interface->characterSetEdit); _dictMngr->add("valid chars", _interface->validCharsEdit); - _dictMngr->add("unicode",_interface->unicodeChk); + _dictMngr->add("tqunicode",_interface->tqunicodeChk); } void KcmSambaConf::loadWinbind(SambaShare* ) @@ -1102,7 +1102,7 @@ void KcmSambaConf::joinADomainBtnClicked() { dlg->usernameEdit->text(), dlg->passwordEdit->text())) { - KMessageBox::sorry(0,i18n("Joining the domain %1 failed.").arg(dlg->domainEdit->text())); + KMessageBox::sorry(0,i18n("Joining the domain %1 failed.").tqarg(dlg->domainEdit->text())); } } delete dlg; @@ -1172,7 +1172,7 @@ void KcmSambaConf::addSambaUserBtnClicked() TQCString password; int passResult = KPasswordDialog::getNewPassword(password, - i18n("Please enter a password for the user %1").arg(user.name)); + i18n("Please enter a password for the user %1").tqarg(user.name)); if (passResult != KPasswordDialog::Accepted) { list.remove(item); continue; @@ -1180,7 +1180,7 @@ void KcmSambaConf::addSambaUserBtnClicked() if (!passwd.addUser(user,password)) { - KMessageBox::sorry(0,i18n("Adding the user %1 to the Samba user database failed.").arg(user.name)); + KMessageBox::sorry(0,i18n("Adding the user %1 to the Samba user database failed.").tqarg(user.name)); break; } @@ -1211,7 +1211,7 @@ void KcmSambaConf::removeSambaUserBtnClicked() SambaUser user( item->text(0), item->text(1).toInt() ); if (!passwd.removeUser(user)) { - KMessageBox::sorry(0,i18n("Removing the user %1 from the Samba user database failed.").arg(user.name)); + KMessageBox::sorry(0,i18n("Removing the user %1 from the Samba user database failed.").tqarg(user.name)); continue; } @@ -1235,13 +1235,13 @@ void KcmSambaConf::sambaUserPasswordBtnClicked() TQCString password; int passResult = KPasswordDialog::getNewPassword(password, - i18n("Please enter a password for the user %1").arg(user.name)); + i18n("Please enter a password for the user %1").tqarg(user.name)); if (passResult != KPasswordDialog::Accepted) return; if (!passwd.changePassword(user,password)) { - KMessageBox::sorry(0,i18n("Changing the password of the user %1 failed.").arg(user.name)); + KMessageBox::sorry(0,i18n("Changing the password of the user %1 failed.").tqarg(user.name)); } else { static_cast(item)->setOn(COL_NOPASSWORD,false); } @@ -1267,7 +1267,7 @@ void KcmSambaConf::save() { // Base settings _smbconf = _interface->configUrlRq->url(); - KSimpleConfig config(TQString::fromLatin1(FILESHARECONF),false); + KSimpleConfig config(TQString::tqfromLatin1(FILESHARECONF),false); config.writeEntry("SMBCONF",_smbconf); config.sync(); diff --git a/filesharing/advanced/kcm_sambaconf/konqinterface.ui b/filesharing/advanced/kcm_sambaconf/konqinterface.ui index 6cba8d8b..dfccf5c2 100644 --- a/filesharing/advanced/kcm_sambaconf/konqinterface.ui +++ b/filesharing/advanced/kcm_sambaconf/konqinterface.ui @@ -420,7 +420,7 @@ Expanding - + 20 0 @@ -447,7 +447,7 @@ Expanding - + 0 20 diff --git a/filesharing/advanced/kcm_sambaconf/linuxpermissionchecker.cpp b/filesharing/advanced/kcm_sambaconf/linuxpermissionchecker.cpp index 83ea5180..5bac2fdf 100644 --- a/filesharing/advanced/kcm_sambaconf/linuxpermissionchecker.cpp +++ b/filesharing/advanced/kcm_sambaconf/linuxpermissionchecker.cpp @@ -115,7 +115,7 @@ bool LinuxPermissionChecker::checkPublicPermissions() { 0L,i18n( "You have specified public read access for this directory, but " "the guest account %1 does not have the necessary read permissions;
" - "do you want to continue anyway?
").arg(guestAccount) + "do you want to continue anyway?
").tqarg(guestAccount) ,i18n("Warning") ,KStdGuiItem::cont() ,"KSambaPlugin_guestAccountHasNoReadPermissionsWarning")) @@ -129,7 +129,7 @@ bool LinuxPermissionChecker::checkPublicPermissions() { 0L,i18n( "You have specified public write access for this directory, but " "the guest account %1 does not have the necessary write permissions;
" - "do you want to continue anyway?
").arg(guestAccount) + "do you want to continue anyway?").tqarg(guestAccount) ,i18n("Warning") ,KStdGuiItem::cont() ,"KSambaPlugin_guestAccountHasNoWritePermissionsWarning")) @@ -166,7 +166,7 @@ bool LinuxPermissionChecker::checkUserWritePermissions(const TQString & user, bo 0L,i18n( "You have specified write access to the user %1 for this directory, but " "the user does not have the necessary write permissions;
" - "do you want to continue anyway?
").arg(user) + "do you want to continue anyway?").tqarg(user) ,i18n("Warning") ,KStdGuiItem::cont() ,"KSambaPlugin_userHasNoWritePermissionsWarning")) @@ -189,7 +189,7 @@ bool LinuxPermissionChecker::checkUserReadPermissions(const TQString & user, boo 0L,i18n( "You have specified read access to the user %1 for this directory, but " "the user does not have the necessary read permissions;
" - "do you want to continue anyway?
").arg(user) + "do you want to continue anyway?").tqarg(user) ,i18n("Warning") ,KStdGuiItem::cont() ,"KSambaPlugin_userHasNoReadPermissionsWarning")) diff --git a/filesharing/advanced/kcm_sambaconf/printerdlgimpl.cpp b/filesharing/advanced/kcm_sambaconf/printerdlgimpl.cpp index 6182c5b0..0ba2082b 100644 --- a/filesharing/advanced/kcm_sambaconf/printerdlgimpl.cpp +++ b/filesharing/advanced/kcm_sambaconf/printerdlgimpl.cpp @@ -39,7 +39,7 @@ #include #include #include -#include +#include #include #include @@ -227,14 +227,14 @@ void PrinterDlgImpl::printersChkToggled(bool b) pix.setMask(mask); printerPixLbl->setPixmap(pix); - pixFrame->layout()->setMargin( 2 ); + pixFrame->tqlayout()->setMargin( 2 ); } else { shareNameEdit->setEnabled(true); shareNameEdit->setText( _share->getName() ); printerPixLbl->setPixmap(DesktopIcon("printer1")); - pixFrame->layout()->setMargin( 11 ); + pixFrame->tqlayout()->setMargin( 11 ); } } diff --git a/filesharing/advanced/kcm_sambaconf/qmultichecklistitem.cpp b/filesharing/advanced/kcm_sambaconf/qmultichecklistitem.cpp index 187289b6..1600aa7c 100644 --- a/filesharing/advanced/kcm_sambaconf/qmultichecklistitem.cpp +++ b/filesharing/advanced/kcm_sambaconf/qmultichecklistitem.cpp @@ -53,7 +53,7 @@ void QMultiCheckListItem::setOn(int column, bool b) { checkStates.setBit(column,b); checkBoxColumns.setBit(column); kdDebug(5009) << "setOn : " << column << endl; - repaint(); + tqrepaint(); } bool QMultiCheckListItem::isOn(int column) { @@ -74,7 +74,7 @@ void QMultiCheckListItem::toggle(int column) { checkStates.toggleBit(column); emit stateChanged(column,checkStates.testBit(column)); - repaint(); + tqrepaint(); } void QMultiCheckListItem::setDisabled(int column, bool b) { @@ -83,8 +83,8 @@ void QMultiCheckListItem::setDisabled(int column, bool b) { } disableStates.setBit(column,b); -// KMessageBox::information(0L,TQString("setDisabled"),TQString("disable %1 ").arg(column)); - repaint(); +// KMessageBox::information(0L,TQString("setDisabled"),TQString("disable %1 ").tqarg(column)); + tqrepaint(); } void QMultiCheckListItem::paintCell(TQPainter *p,const TQColorGroup & cg, int col, int width, int align) diff --git a/filesharing/advanced/kcm_sambaconf/sambafile.cpp b/filesharing/advanced/kcm_sambaconf/sambafile.cpp index 4703716b..50df27c0 100644 --- a/filesharing/advanced/kcm_sambaconf/sambafile.cpp +++ b/filesharing/advanced/kcm_sambaconf/sambafile.cpp @@ -174,14 +174,14 @@ bool SambaFile::slotApply() kdDebug(5009) << "SambaFile::slotApply: is local file!" << endl; TQString suCommand=TQString("cp %1 %2; rm %3") - .arg(_tempFile->name()) - .arg(path) - .arg(_tempFile->name()); + .tqarg(_tempFile->name()) + .tqarg(path) + .tqarg(_tempFile->name()); proc << "tdesu" << "-d" << suCommand; if (! proc.start(KProcess::Block)) { kdDebug(5009) << "SambaFile::slotApply: saving to " << path << " failed!" << endl; - //KMessageBox::sorry(0,i18n("Saving the results to %1 failed.").arg(path)); + //KMessageBox::sorry(0,i18n("Saving the results to %1 failed.").tqarg(path)); delete _tempFile; _tempFile = 0; return false; @@ -394,7 +394,7 @@ SambaShare* SambaFile::getTestParmValues(bool reload) void SambaFile::testParmStdOutReceived(KProcess *, char *buffer, int buflen) { - _parmOutput+=TQString::fromLatin1(buffer,buflen); + _parmOutput+=TQString::tqfromLatin1(buffer,buflen); } void SambaFile::parseParmStdOutput() @@ -506,7 +506,7 @@ bool SambaFile::openFile() { TQFile f(localPath); if (!f.open(IO_ReadOnly)) { - //throw SambaFileLoadException(TQString("Could not open file %1 for reading.").arg(path)); + //throw SambaFileLoadException(TQString("Could not open file %1 for reading.").tqarg(path)); return false; } diff --git a/filesharing/advanced/kcm_sambaconf/share.ui b/filesharing/advanced/kcm_sambaconf/share.ui index ba600d17..65fff9c5 100644 --- a/filesharing/advanced/kcm_sambaconf/share.ui +++ b/filesharing/advanced/kcm_sambaconf/share.ui @@ -304,7 +304,7 @@ Expanding - + 20 90 @@ -362,7 +362,7 @@ Expanding - + 50 20 @@ -540,7 +540,7 @@ Expanding - + 20 20 @@ -735,7 +735,7 @@ - layout18 + tqlayout18 @@ -799,7 +799,7 @@ - layout52 + tqlayout52 @@ -1050,7 +1050,7 @@ Only change something if you know what you are doing. 0 - + 20 0 @@ -1072,7 +1072,7 @@ Only change something if you know what you are doing. 0 - + 20 0 @@ -1086,7 +1086,7 @@ Only change something if you know what you are doing. forceCreateModeEdit - + 40 0 @@ -1100,7 +1100,7 @@ Only change something if you know what you are doing. forceSecurityModeEdit - + 40 0 @@ -1114,7 +1114,7 @@ Only change something if you know what you are doing. forceDirectoryModeEdit - + 40 0 @@ -1128,7 +1128,7 @@ Only change something if you know what you are doing. forceDirectorySecurityModeEdit - + 40 0 @@ -1150,7 +1150,7 @@ Only change something if you know what you are doing. 0 - + 20 0 @@ -1172,7 +1172,7 @@ Only change something if you know what you are doing. 0 - + 20 0 @@ -1194,7 +1194,7 @@ Only change something if you know what you are doing. Expanding - + 20 16 @@ -1272,7 +1272,7 @@ Only change something if you know what you are doing. 0 - + 20 0 @@ -1294,7 +1294,7 @@ Only change something if you know what you are doing. 0 - + 20 0 @@ -1316,7 +1316,7 @@ Only change something if you know what you are doing. 0 - + 20 0 @@ -1330,7 +1330,7 @@ Only change something if you know what you are doing. securityMaskEdit - + 40 0 @@ -1344,7 +1344,7 @@ Only change something if you know what you are doing. directoryMaskEdit - + 40 0 @@ -1358,7 +1358,7 @@ Only change something if you know what you are doing. directorySecurityMaskEdit - + 40 0 @@ -1386,7 +1386,7 @@ Only change something if you know what you are doing. createMaskEdit - + 40 0 @@ -1408,7 +1408,7 @@ Only change something if you know what you are doing. 0 - + 20 0 @@ -1490,7 +1490,7 @@ Only change something if you know what you are doing. forceUnknownAclUserEdit - + 40 0 @@ -1676,7 +1676,7 @@ Only change something if you know what you are doing. Expanding - + 20 120 @@ -1759,7 +1759,7 @@ Only change something if you know what you are doing. Expanding - + 143 16 @@ -1933,7 +1933,7 @@ Only change something if you know what you are doing. Expanding - + 20 30 @@ -2024,7 +2024,7 @@ Only change something if you know what you are doing. manglingCharEdit - + 40 32767 @@ -2041,7 +2041,7 @@ Only change something if you know what you are doing. Expanding - + 20 0 @@ -2322,7 +2322,7 @@ Only change something if you know what you are doing. Expanding - + 20 20 @@ -2392,7 +2392,7 @@ Only change something if you know what you are doing. Expanding - + 299 20 @@ -2453,7 +2453,7 @@ Only change something if you know what you are doing. - layout9 + tqlayout9 @@ -2508,7 +2508,7 @@ Only change something if you know what you are doing. Expanding - + 40 20 @@ -2564,7 +2564,7 @@ Only change something if you know what you are doing. Expanding - + 20 260 @@ -2648,7 +2648,7 @@ Only change something if you know what you are doing. Expanding - + 16 284 @@ -2745,7 +2745,7 @@ Only change something if you know what you are doing. Expanding - + 20 50 @@ -2916,7 +2916,7 @@ Only change something if you know what you are doing. Expanding - + 20 0 diff --git a/filesharing/advanced/kcm_sambaconf/sharedlgimpl.cpp b/filesharing/advanced/kcm_sambaconf/sharedlgimpl.cpp index ce2d15ad..55a1983c 100644 --- a/filesharing/advanced/kcm_sambaconf/sharedlgimpl.cpp +++ b/filesharing/advanced/kcm_sambaconf/sharedlgimpl.cpp @@ -36,7 +36,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/filesharing/advanced/kcm_sambaconf/smbconfconfigwidget.cpp b/filesharing/advanced/kcm_sambaconf/smbconfconfigwidget.cpp index c9616a14..3805429b 100644 --- a/filesharing/advanced/kcm_sambaconf/smbconfconfigwidget.cpp +++ b/filesharing/advanced/kcm_sambaconf/smbconfconfigwidget.cpp @@ -27,7 +27,7 @@ ******************************************************************************/ #include -#include +#include #include #include @@ -43,7 +43,7 @@ SmbConfConfigWidget::SmbConfConfigWidget(TQWidget* parent) : TQWidget(parent,"configWidget") { - TQVBoxLayout *layout = new TQVBoxLayout(this,5); + TQVBoxLayout *tqlayout = new TQVBoxLayout(this,5); TQLabel *lbl = new TQLabel(i18n("

The SAMBA configuration file 'smb.conf'" \ " could not be found;

" \ @@ -59,9 +59,9 @@ SmbConfConfigWidget::SmbConfConfigWidget(TQWidget* parent) hbox->addStretch(); hbox->addWidget(btn); - layout->addWidget(lbl); - layout->addLayout(hbox); - layout->addStretch(); + tqlayout->addWidget(lbl); + tqlayout->addLayout(hbox); + tqlayout->addStretch(); } void SmbConfConfigWidget::btnPressed() { @@ -72,7 +72,7 @@ void SmbConfConfigWidget::btnPressed() { if (smbConf.isEmpty()) return; if ( ! TQFileInfo(smbConf).isReadable() ) { - KMessageBox::sorry(this,i18n("The file %1 could not be read.").arg(smbConf),i18n("Could Not Read File")); + KMessageBox::sorry(this,i18n("The file %1 could not be read.").tqarg(smbConf),i18n("Could Not Read File")); return; } diff --git a/filesharing/advanced/kcm_sambaconf/smbpasswdfile.cpp b/filesharing/advanced/kcm_sambaconf/smbpasswdfile.cpp index f6a2282b..b964d700 100644 --- a/filesharing/advanced/kcm_sambaconf/smbpasswdfile.cpp +++ b/filesharing/advanced/kcm_sambaconf/smbpasswdfile.cpp @@ -28,7 +28,7 @@ #include #include -#include +#include #include #include @@ -175,7 +175,7 @@ bool SmbPasswdFile::changePassword(const SambaUser & user, const TQString & newP void SmbPasswdFile::smbpasswdStdOutReceived(KProcess *, char *buffer, int buflen) { - _smbpasswdOutput+=TQString::fromLatin1(buffer,buflen); + _smbpasswdOutput+=TQString::tqfromLatin1(buffer,buflen); } diff --git a/filesharing/advanced/kcm_sambaconf/socketoptionsdlg.ui b/filesharing/advanced/kcm_sambaconf/socketoptionsdlg.ui index e2d4be95..b04f8b7b 100644 --- a/filesharing/advanced/kcm_sambaconf/socketoptionsdlg.ui +++ b/filesharing/advanced/kcm_sambaconf/socketoptionsdlg.ui @@ -238,7 +238,7 @@ Expanding - + 20 20 diff --git a/filesharing/advanced/kcm_sambaconf/userselectdlg.ui b/filesharing/advanced/kcm_sambaconf/userselectdlg.ui index 17d02c12..1526832a 100644 --- a/filesharing/advanced/kcm_sambaconf/userselectdlg.ui +++ b/filesharing/advanced/kcm_sambaconf/userselectdlg.ui @@ -183,7 +183,7 @@ Expanding - + 20 50 @@ -225,7 +225,7 @@ Expanding - + 285 20 diff --git a/filesharing/advanced/kcm_sambaconf/usertab.ui b/filesharing/advanced/kcm_sambaconf/usertab.ui index 57d8b591..af5b87bf 100644 --- a/filesharing/advanced/kcm_sambaconf/usertab.ui +++ b/filesharing/advanced/kcm_sambaconf/usertab.ui @@ -159,7 +159,7 @@ Expanding - + 20 100 diff --git a/filesharing/advanced/nfs/hostprops.ui b/filesharing/advanced/nfs/hostprops.ui index d3775c32..b7fd9f79 100644 --- a/filesharing/advanced/nfs/hostprops.ui +++ b/filesharing/advanced/nfs/hostprops.ui @@ -34,7 +34,7 @@ 0 - + 180 0 @@ -302,7 +302,7 @@ Early NFS client implementations did not send credentials with lock requests, an User Mapping - + AlignAuto @@ -348,7 +348,7 @@ Map requests from uid/gid 0 to the anonymous uid/gid. Note that this does not ap
- layout15 + tqlayout15 @@ -380,7 +380,7 @@ Map requests from uid/gid 0 to the anonymous uid/gid. Note that this does not ap 0 - + 50 0 @@ -394,7 +394,7 @@ Map requests from uid/gid 0 to the anonymous uid/gid. Note that this does not ap - layout16 + tqlayout16 @@ -426,7 +426,7 @@ Map requests from uid/gid 0 to the anonymous uid/gid. Note that this does not ap 0 - + 50 0 @@ -450,7 +450,7 @@ Map requests from uid/gid 0 to the anonymous uid/gid. Note that this does not ap Expanding - + 20 16 diff --git a/filesharing/advanced/nfs/nfsdialog.cpp b/filesharing/advanced/nfs/nfsdialog.cpp index 0dbd5b7a..ecc93a7d 100644 --- a/filesharing/advanced/nfs/nfsdialog.cpp +++ b/filesharing/advanced/nfs/nfsdialog.cpp @@ -23,7 +23,7 @@ #include #include #include -#include +#include #include #include @@ -62,8 +62,8 @@ void NFSDialog::initGUI() { TQWidget* page = plainPage(); m_gui = new NFSDialogGUI(page); - TQVBoxLayout *layout = new TQVBoxLayout( page ); - layout->addWidget( m_gui ); + TQVBoxLayout *tqlayout = new TQVBoxLayout( page ); + tqlayout->addWidget( m_gui ); KAccel* accel = new KAccel( m_gui->listView ); accel->insert( "Delete", TQt::Key_Delete, TQT_TQOBJECT(this), TQT_SLOT(slotRemoveHost())); diff --git a/filesharing/advanced/nfs/nfsdialoggui.ui b/filesharing/advanced/nfs/nfsdialoggui.ui index ca77e192..a9295773 100644 --- a/filesharing/advanced/nfs/nfsdialoggui.ui +++ b/filesharing/advanced/nfs/nfsdialoggui.ui @@ -89,7 +89,7 @@ The first column shows the name or address of the host, the second column shows Expanding - + 20 40 diff --git a/filesharing/advanced/nfs/nfsentry.cpp b/filesharing/advanced/nfs/nfsentry.cpp index 397e19b4..b54a3169 100644 --- a/filesharing/advanced/nfs/nfsentry.cpp +++ b/filesharing/advanced/nfs/nfsentry.cpp @@ -125,10 +125,10 @@ TQString NFSHost::paramString() const if (!hide) s+="nohide,"; if (anongid!=65534) - s+=TQString("anongid=%1,").arg(anongid); + s+=TQString("anongid=%1,").tqarg(anongid); if (anonuid!=65534) - s+=TQString("anonuid=%1,").arg(anonuid); + s+=TQString("anonuid=%1,").tqarg(anonuid); // get rid of the last ',' s.truncate(s.length()-1); diff --git a/filesharing/advanced/nfs/nfsentry.h b/filesharing/advanced/nfs/nfsentry.h index 43071504..98d1e56a 100644 --- a/filesharing/advanced/nfs/nfsentry.h +++ b/filesharing/advanced/nfs/nfsentry.h @@ -74,7 +74,7 @@ typedef TQPtrListIterator NFSLineIterator; class NFSEmptyLine : public NFSLine { public: - virtual TQString toString() const { return TQString::fromLatin1("\n"); } + virtual TQString toString() const { return TQString::tqfromLatin1("\n"); } virtual ~NFSEmptyLine() {}; }; diff --git a/filesharing/advanced/nfs/nfsfile.cpp b/filesharing/advanced/nfs/nfsfile.cpp index 0c5f52eb..9eb674c8 100644 --- a/filesharing/advanced/nfs/nfsfile.cpp +++ b/filesharing/advanced/nfs/nfsfile.cpp @@ -23,7 +23,7 @@ #include #include -#include +#include #include #include @@ -241,8 +241,8 @@ bool NFSFile::save() KProcIO proc; TQString command = TQString("cp %1 %2") - .arg(KProcess::quote( tempFile.name() )) - .arg(KProcess::quote( _url.path() )); + .tqarg(KProcess::quote( tempFile.name() )) + .tqarg(KProcess::quote( _url.path() )); if (restartNFSServer) command +=";exportfs -ra"; diff --git a/filesharing/advanced/nfs/nfshostdlg.cpp b/filesharing/advanced/nfs/nfshostdlg.cpp index 09307e92..c4c1002d 100644 --- a/filesharing/advanced/nfs/nfshostdlg.cpp +++ b/filesharing/advanced/nfs/nfshostdlg.cpp @@ -16,7 +16,7 @@ ***************************************************************************/ #include -#include +#include #include #include #include @@ -41,8 +41,8 @@ NFSHostDlg::NFSHostDlg(TQWidget* parent, HostList* hosts, NFSEntry* entry) m_gui = new HostProps(page); - TQVBoxLayout *layout = new TQVBoxLayout( page, 0, 6 ); - layout->addWidget( m_gui ); + TQVBoxLayout *tqlayout = new TQVBoxLayout( page, 0, 6 ); + tqlayout->addWidget( m_gui ); connect( m_gui, TQT_SIGNAL(modified()), this, TQT_SLOT(setModified())); @@ -156,14 +156,14 @@ bool NFSHostDlg::saveName(NFSHost* host) { TQString name = m_gui->nameEdit->text().stripWhiteSpace(); if (name.isEmpty()) { KMessageBox::sorry(this, - i18n("Please enter a hostname or an IP address.").arg(name), + i18n("Please enter a hostname or an IP address.").tqarg(name), i18n("No Hostname/IP-Address")); m_gui->nameEdit->setFocus(); return false; } else { NFSHost* host2 = m_nfsEntry->getHostByName(name); if (host2 && host2 != host) { - KMessageBox::sorry(this,i18n("The host '%1' already exists.").arg(name), + KMessageBox::sorry(this,i18n("The host '%1' already exists.").tqarg(name), i18n("Host Already Exists")); m_gui->nameEdit->setFocus(); return false; diff --git a/filesharing/advanced/propsdlgplugin/propertiespage.cpp b/filesharing/advanced/propsdlgplugin/propertiespage.cpp index 5ff1af7b..b52fd8fc 100644 --- a/filesharing/advanced/propsdlgplugin/propertiespage.cpp +++ b/filesharing/advanced/propsdlgplugin/propertiespage.cpp @@ -211,15 +211,15 @@ bool PropertiesPage::save(NFSFile* nfsFile, SambaFile* sambaFile, bool nfs, bool if (nfsNeedsKDEsu) { nfsFile->saveTo(nfsTempFile.name()); command += TQString("cp %1 %2;exportfs -ra;") - .arg(KProcess::quote( nfsTempFile.name() )) - .arg(KProcess::quote( nfsFileName )); + .tqarg(KProcess::quote( nfsTempFile.name() )) + .tqarg(KProcess::quote( nfsFileName )); } if (sambaNeedsKDEsu) { sambaFile->saveTo(sambaTempFile.name()); command += TQString("cp %1 %2;") - .arg(KProcess::quote( sambaTempFile.name() )) - .arg(KProcess::quote( sambaFileName )); + .tqarg(KProcess::quote( sambaTempFile.name() )) + .tqarg(KProcess::quote( sambaFileName )); } proc<<"tdesu" << "-d" << "-c"<getShare(sambaNameEdit->text()); if (otherShare && otherShare != m_sambaShare) { // There is another Share with the same name - KMessageBox::sorry(this, i18n("There is already a share with the name %1.
Please choose another name.
").arg(sambaNameEdit->text())); + KMessageBox::sorry(this, i18n("There is already a share with the name %1.
Please choose another name.
").tqarg(sambaNameEdit->text())); sambaNameEdit->selectAll(); sambaNameEdit->setFocus(); return false; diff --git a/filesharing/advanced/propsdlgplugin/propertiespagegui.ui b/filesharing/advanced/propsdlgplugin/propertiespagegui.ui index a41de020..3ba4aca5 100644 --- a/filesharing/advanced/propsdlgplugin/propertiespagegui.ui +++ b/filesharing/advanced/propsdlgplugin/propertiespagegui.ui @@ -21,7 +21,7 @@
- layout6 + tqlayout6 @@ -108,7 +108,7 @@ - layout6 + tqlayout6 @@ -146,7 +146,7 @@ Expanding - + 40 20 @@ -157,7 +157,7 @@ - layout4 + tqlayout4 @@ -181,7 +181,7 @@ Expanding - + 156 20 @@ -216,7 +216,7 @@ - layout3 + tqlayout3 @@ -239,7 +239,7 @@ - layout5 + tqlayout5 @@ -277,7 +277,7 @@ Expanding - + 40 20 @@ -288,7 +288,7 @@ - layout3 + tqlayout3 @@ -312,7 +312,7 @@ Expanding - + 40 20 @@ -335,7 +335,7 @@ Expanding - + 20 1 diff --git a/filesharing/advanced/propsdlgplugin/propsdlgshareplugin.cpp b/filesharing/advanced/propsdlgplugin/propsdlgshareplugin.cpp index f9baf270..2af403f5 100644 --- a/filesharing/advanced/propsdlgplugin/propsdlgshareplugin.cpp +++ b/filesharing/advanced/propsdlgplugin/propsdlgshareplugin.cpp @@ -18,7 +18,7 @@ */ #include #include -#include +#include #include #include diff --git a/filesharing/simple/controlcenter.ui b/filesharing/simple/controlcenter.ui index 7eec18af..26307437 100644 --- a/filesharing/simple/controlcenter.ui +++ b/filesharing/simple/controlcenter.ui @@ -29,7 +29,7 @@ SMB and NFS servers are not installed on this machine, to enable this module the servers must be installed. - + WordBreak|AlignVCenter @@ -66,7 +66,7 @@ - layout4 + tqlayout4 @@ -84,7 +84,7 @@ 0 - + 11 0 @@ -112,7 +112,7 @@ Enable simple sharing to allow users to share folders from their HOME folder, without knowing the root password. - + WordBreak|AlignVCenter @@ -131,7 +131,7 @@ - layout4_2 + tqlayout4_2 @@ -149,7 +149,7 @@ 0 - + 11 0 @@ -177,7 +177,7 @@ Enable advanced sharing to allow users to share any folders, as long as they have write access to the needed configuration files, or they know the root password. - + WordBreak|AlignVCenter @@ -185,7 +185,7 @@
- layout3 + tqlayout3 @@ -203,7 +203,7 @@ 0 - + 11 0 @@ -251,7 +251,7 @@ - layout10 + tqlayout10 @@ -275,7 +275,7 @@ Expanding - + 40 20 @@ -398,7 +398,7 @@ Expanding - + 20 20 diff --git a/filesharing/simple/fileshare.cpp b/filesharing/simple/fileshare.cpp index 6b24d656..0e41554d 100644 --- a/filesharing/simple/fileshare.cpp +++ b/filesharing/simple/fileshare.cpp @@ -16,7 +16,7 @@ */ #include -#include +#include #include #include #include @@ -65,13 +65,13 @@ KFileShareConfig::KFileShareConfig(TQWidget *parent, const char *name, const TQS { KGlobal::locale()->insertCatalogue("kfileshare"); - TQBoxLayout* layout = new TQVBoxLayout(this,0, + TQBoxLayout* tqlayout = new TQVBoxLayout(this,0, KDialog::spacingHint()); /* TQVButtonGroup *box = new TQVButtonGroup( i18n("File Sharing"), this ); - box->layout()->setSpacing( KDialog::spacingHint() ); - layout->addWidget(box); + box->tqlayout()->setSpacing( KDialog::spacingHint() ); + tqlayout->addWidget(box); noSharing=new TQRadioButton( i18n("Do ¬ allow users to share files"), box ); sharing=new TQRadioButton( i18n("&Allow users to share files from their HOME folder"), box); */ @@ -81,9 +81,9 @@ KFileShareConfig::KFileShareConfig(TQWidget *parent, const char *name, const TQS this, TQT_SLOT(allowedUsersBtnClicked())); TQString path = TQString::fromLocal8Bit( getenv( "PATH" ) ); - path += TQString::fromLatin1(":/usr/sbin"); - TQString sambaExec = KStandardDirs::findExe( TQString::fromLatin1("smbd"), path ); - TQString nfsExec = KStandardDirs::findExe( TQString::fromLatin1("rpc.nfsd"), path ); + path += TQString::tqfromLatin1(":/usr/sbin"); + TQString sambaExec = KStandardDirs::findExe( TQString::tqfromLatin1("smbd"), path ); + TQString nfsExec = KStandardDirs::findExe( TQString::tqfromLatin1("rpc.nfsd"), path ); if ( nfsExec.isEmpty() && sambaExec.isEmpty()) { @@ -106,7 +106,7 @@ KFileShareConfig::KFileShareConfig(TQWidget *parent, const char *name, const TQS } m_ccgui->infoLbl->hide(); - layout->addWidget(m_ccgui); + tqlayout->addWidget(m_ccgui); updateShareListView(); connect( KNFSShare::instance(), TQT_SIGNAL( changed()), this, TQT_SLOT(updateShareListView())); @@ -196,7 +196,7 @@ void KFileShareConfig::allowedUsersBtnClicked() { void KFileShareConfig::load() { - KSimpleConfig config(TQString::fromLatin1(FILESHARECONF),true); + KSimpleConfig config(TQString::tqfromLatin1(FILESHARECONF),true); m_ccgui->shareGrp->setChecked( config.readEntry("FILESHARING", "yes") == "yes" ); @@ -299,7 +299,7 @@ void KFileShareConfig::save() if ( ! file.open(IO_WriteOnly)) { KMessageBox::detailedError(this, i18n("Could not save settings."), - i18n("Could not open file '%1' for writing: %2").arg(FILESHARECONF).arg( + i18n("Could not open file '%1' for writing: %2").tqarg(FILESHARECONF).tqarg( file.errorString() ), i18n("Saving Failed")); return; diff --git a/filesharing/simple/groupconfigdlg.cpp b/filesharing/simple/groupconfigdlg.cpp index a57d0f79..1efe2baa 100644 --- a/filesharing/simple/groupconfigdlg.cpp +++ b/filesharing/simple/groupconfigdlg.cpp @@ -128,7 +128,7 @@ void GroupConfigDlg::slotAddUser() { if (allUsers.count()==0) { KMessageBox::information(this, i18n("All users are in the %1 group already.") - .arg(m_fileShareGroup.name())); + .tqarg(m_fileShareGroup.name())); return; } @@ -173,7 +173,7 @@ bool GroupConfigDlg::addUser(const KUser & user, const KUserGroup & group) { groups.append(group); if (!userMod(user.loginName(),groups)) { KMessageBox::sorry(this,i18n("Could not add user '%1' to group '%2'") - .arg(user.loginName()).arg(group.name())); + .tqarg(user.loginName()).tqarg(group.name())); return false; } return true; @@ -185,7 +185,7 @@ bool GroupConfigDlg::removeUser(const KUser & user, const KUserGroup & group) { groups.remove(group); if (!userMod(user.loginName(),groups)) { KMessageBox::sorry(this,i18n("Could not remove user '%1' from group '%2'") - .arg(user.loginName()).arg(group.name())); + .tqarg(user.loginName()).tqarg(group.name())); return false; } return true; @@ -333,9 +333,9 @@ void GroupConfigDlg::setFileShareGroup(const KUserGroup & group) { updateListBox(); m_gui->groupUsersRadio->setText( i18n("Only users of the '%1' group are allowed to share folders") - .arg(m_fileShareGroup.name())); + .tqarg(m_fileShareGroup.name())); m_gui->usersGrpBx->setTitle(i18n("Users of '%1' Group") - .arg(m_fileShareGroup.name())); + .tqarg(m_fileShareGroup.name())); m_gui->otherGroupBtn->setText(i18n("Change Group...")); m_gui->usersGrpBx->show(); } else { @@ -360,7 +360,7 @@ bool GroupConfigDlg::addUsersToGroup(TQValueList users,const KUserGroup & bool GroupConfigDlg::emptyGroup(const TQString & s) { if (KMessageBox::No == KMessageBox::questionYesNo(this, - i18n("Do you really want to remove all users from group '%1'?").arg(s), TQString(), KStdGuiItem::del(), KStdGuiItem::cancel())) { + i18n("Do you really want to remove all users from group '%1'?").tqarg(s), TQString(), KStdGuiItem::del(), KStdGuiItem::cancel())) { return false; } @@ -377,7 +377,7 @@ bool GroupConfigDlg::emptyGroup(const TQString & s) { bool GroupConfigDlg::deleteGroup(const TQString & s) { if (KMessageBox::No == KMessageBox::questionYesNo(this, - i18n("Do you really want to delete group '%1'?").arg(s), TQString(), KStdGuiItem::del(), KStdGuiItem::cancel())) { + i18n("Do you really want to delete group '%1'?").tqarg(s), TQString(), KStdGuiItem::del(), KStdGuiItem::cancel())) { return false; } @@ -385,7 +385,7 @@ bool GroupConfigDlg::deleteGroup(const TQString & s) { proc << "groupdel" << s; bool result = proc.start(KProcess::Block) && proc.normalExit(); if (!result) { - KMessageBox::sorry(this,i18n("Deleting group '%1' failed.").arg(s)); + KMessageBox::sorry(this,i18n("Deleting group '%1' failed.").tqarg(s)); } return result; @@ -398,7 +398,7 @@ bool GroupConfigDlg::createFileShareGroup(const TQString & s) { } if (KMessageBox::No == KMessageBox::questionYesNo(this, - i18n("This group '%1' does not exist. Should it be created?").arg(s), TQString(), i18n("Create"), i18n("Do Not Create"))) + i18n("This group '%1' does not exist. Should it be created?").tqarg(s), TQString(), i18n("Create"), i18n("Do Not Create"))) return false; //debug("CreateFileShareGroup: "+s); @@ -406,7 +406,7 @@ bool GroupConfigDlg::createFileShareGroup(const TQString & s) { proc << "groupadd" << s; bool result = proc.start(KProcess::Block) && proc.normalExit(); if (!result) { - KMessageBox::sorry(this,i18n("Creation of group '%1' failed.").arg(s)); + KMessageBox::sorry(this,i18n("Creation of group '%1' failed.").tqarg(s)); } else { setFileShareGroup(KUserGroup(s)); } diff --git a/filesharing/simple/groupconfiggui.ui b/filesharing/simple/groupconfiggui.ui index 13b26dc3..7550cab0 100644 --- a/filesharing/simple/groupconfiggui.ui +++ b/filesharing/simple/groupconfiggui.ui @@ -86,7 +86,7 @@ Expanding - + 20 20 @@ -124,7 +124,7 @@ - layout2 + tqlayout2 @@ -140,7 +140,7 @@ Expanding - + 180 20 diff --git a/filesharing/simple/krichtextlabel.cpp b/filesharing/simple/krichtextlabel.cpp index dd9268b6..3d9dfcd0 100644 --- a/filesharing/simple/krichtextlabel.cpp +++ b/filesharing/simple/krichtextlabel.cpp @@ -19,7 +19,7 @@ #include "krichtextlabel.h" #include -#include +#include #include #include @@ -41,14 +41,14 @@ static TQString qrichtextify( const TQString& text ) KRichTextLabel::KRichTextLabel( const TQString &text , TQWidget *parent, const char *name ) : TQLabel ( parent, name ) { m_defaultWidth = TQMIN(400, KGlobalSettings::desktopGeometry(this).width()*2/5); - setAlignment( TQt::WordBreak ); + tqsetAlignment( TQt::WordBreak ); setText(text); } KRichTextLabel::KRichTextLabel( TQWidget *parent, const char *name ) : TQLabel ( parent, name ) { m_defaultWidth = TQMIN(400, KGlobalSettings::desktopGeometry(this).width()*2/5); - setAlignment( TQt::WordBreak ); + tqsetAlignment( TQt::WordBreak ); } void KRichTextLabel::setDefaultWidth(int defaultWidth) @@ -62,7 +62,7 @@ TQSizePolicy KRichTextLabel::sizePolicy() const return TQSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::Minimum, false); } -TQSize KRichTextLabel::minimumSizeHint() const +TQSize KRichTextLabel::tqminimumSizeHint() const { TQString qt_text = qrichtextify( text() ); int pref_width = 0; @@ -97,9 +97,9 @@ TQSize KRichTextLabel::minimumSizeHint() const return TQSize(pref_width, rt.height()); } -TQSize KRichTextLabel::sizeHint() const +TQSize KRichTextLabel::tqsizeHint() const { - return minimumSizeHint(); + return tqminimumSizeHint(); } void KRichTextLabel::setText( const TQString &text ) { diff --git a/filesharing/simple/krichtextlabel.h b/filesharing/simple/krichtextlabel.h index 513e1280..53a60cea 100644 --- a/filesharing/simple/krichtextlabel.h +++ b/filesharing/simple/krichtextlabel.h @@ -24,7 +24,7 @@ #include /** - * @short A replacement for TQLabel that supports richtext and proper layout management + * @short A replacement for TQLabel that supports richtext and proper tqlayout management * * @author Waldo Bastian */ @@ -46,8 +46,8 @@ public: int defaultWidth() const { return m_defaultWidth; } void setDefaultWidth(int defaultWidth); - virtual TQSize minimumSizeHint() const; - virtual TQSize sizeHint() const; + virtual TQSize tqminimumSizeHint() const; + virtual TQSize tqsizeHint() const; TQSizePolicy sizePolicy() const; public slots: diff --git a/kdict/actions.cpp b/kdict/actions.cpp index 1c9c757c..5f5480aa 100644 --- a/kdict/actions.cpp +++ b/kdict/actions.cpp @@ -46,7 +46,7 @@ int DictComboAction::plug( TQWidget *widget, int index ) m_combo = new KComboBox(m_editable,bar); m_combo->setCompletionMode(m_compMode); - bar->insertWidget( id_, m_combo->sizeHint().width(), m_combo, index ); + bar->insertWidget( id_, m_combo->tqsizeHint().width(), m_combo, index ); bar->setItemAutoSized(id_,m_autoSized); if ( m_combo ) { @@ -155,7 +155,7 @@ void DictComboAction::setList(TQStringList items) if (m_editable && m_combo->completionObject()) m_combo->completionObject()->setItems(items); if (!m_autoSized) - m_combo->setFixedWidth(m_combo->sizeHint().width()); + m_combo->setFixedWidth(m_combo->tqsizeHint().width()); } } @@ -213,9 +213,9 @@ int DictLabelAction::plug( TQWidget *widget, int index ) int id = KAction::getToolButtonID(); TQLabel *label = new TQLabel( text(), widget, "kde toolbar widget" ); - label->setMinimumWidth(label->sizeHint().width()); + label->setMinimumWidth(label->tqsizeHint().width()); label->setBackgroundMode( TQt::PaletteButton ); - label->setAlignment(AlignCenter | AlignVCenter); + label->tqsetAlignment(AlignCenter | AlignVCenter); label->adjustSize(); tb->insertWidget( id, label->width(), label, index ); @@ -320,7 +320,7 @@ void DictButtonAction::unplug( TQWidget *widget ) int DictButtonAction::widthHint() { if (m_button) - return m_button->sizeHint().width(); + return m_button->tqsizeHint().width(); else return 0; } diff --git a/kdict/applet/kdictapplet.cpp b/kdict/applet/kdictapplet.cpp index 706e7e9a..0179f0b8 100644 --- a/kdict/applet/kdictapplet.cpp +++ b/kdict/applet/kdictapplet.cpp @@ -20,7 +20,7 @@ #include #include #include -#include +#include #include #include @@ -102,7 +102,7 @@ DictApplet::DictApplet(const TQString& configFile, Type type, int actions, TQWid TQPixmap pm = KGlobal::iconLoader()->loadIcon("kdict", KIcon::Panel, KIcon::SizeSmall, KIcon::DefaultState, 0L, true); iconLabel->setPixmap(pm); baseLay->addWidget(iconLabel,1,0); - iconLabel->setAlignment(TQt::AlignCenter | TQt::AlignVCenter); + iconLabel->tqsetAlignment(TQt::AlignCenter | TQt::AlignVCenter); iconLabel->setFixedWidth(pm.width()+4); TQToolTip::add(iconLabel,i18n("Look up a word or phrase with Kdict")); @@ -160,7 +160,7 @@ DictApplet::DictApplet(const TQString& configFile, Type type, int actions, TQWid externalCombo = new KHistoryCombo(popupBox); externalCombo->setCompletionObject(completionObject); connect(externalCombo, TQT_SIGNAL(returnPressed(const TQString&)), TQT_SLOT(startQuery(const TQString&))); - externalCombo->setFixedSize(160, externalCombo->sizeHint().height()); + externalCombo->setFixedSize(160, externalCombo->tqsizeHint().height()); connect(internalCombo, TQT_SIGNAL(completionModeChanged(KGlobalSettings::Completion)), this, TQT_SLOT(updateCompletionMode(KGlobalSettings::Completion))); @@ -205,9 +205,9 @@ DictApplet::~DictApplet() int DictApplet::widthForHeight(int height) const { if (height >= 38) - return textLabel->sizeHint().width()+55; + return textLabel->tqsizeHint().width()+55; else - return textLabel->sizeHint().width()+25; + return textLabel->tqsizeHint().width()+25; } @@ -224,10 +224,10 @@ void DictApplet::resizeEvent(TQResizeEvent*) baseWidget->show(); baseWidget->setFixedSize(width(),height()); - if (height() < internalCombo->sizeHint().height()) + if (height() < internalCombo->tqsizeHint().height()) internalCombo->setFixedHeight(height()); else - internalCombo->setFixedHeight(internalCombo->sizeHint().height()); + internalCombo->setFixedHeight(internalCombo->tqsizeHint().height()); if (height() >= 38) { textLabel->show(); diff --git a/kdict/dict.cpp b/kdict/dict.cpp index 8da41eee..8e55061c 100644 --- a/kdict/dict.cpp +++ b/kdict/dict.cpp @@ -23,7 +23,7 @@ #include "dict.h" #include -#include +#include #include #include @@ -204,12 +204,12 @@ void DictAsyncClient::define() job->result = TQString(); if (job->numFetched == 0) { resultAppend("\n

\n"); - resultAppend(i18n("No definitions found for \'%1'.").arg(job->query)); + resultAppend(i18n("No definitions found for \'%1'.").tqarg(job->query)); resultAppend("

\n"); } else { // html header... resultAppend("\n

\n"); - resultAppend(i18n("No definitions found for \'%1\'. Perhaps you mean:").arg(job->query)); + resultAppend(i18n("No definitions found for \'%1\'. Perhaps you mean:").tqarg(job->query)); resultAppend("

\n\n"); TQString lastDb; @@ -591,7 +591,7 @@ void DictAsyncClient::showDbInfo() // html header... resultAppend("\n

\n"); - resultAppend(i18n("Database Information [%1]:").arg(job->query)); + resultAppend(i18n("Database Information [%1]:").tqarg(job->query)); resultAppend("

\n

\n"); bool done(false); @@ -1407,7 +1407,7 @@ void DictInterface::clientDone() message = i18n("One definition found"); break; default: - message = i18n("%1 definitions found").arg(job->numFetched); + message = i18n("%1 definitions found").tqarg(job->numFetched); } } else { switch (job->numFetched) { @@ -1418,7 +1418,7 @@ void DictInterface::clientDone() message = i18n(" One definition fetched "); break; default: - message = i18n(" %1 definitions fetched ").arg(job->numFetched); + message = i18n(" %1 definitions fetched ").tqarg(job->numFetched); } } emit stopped(message); @@ -1433,7 +1433,7 @@ void DictInterface::clientDone() message = i18n(" One matching definition found "); break; default: - message = i18n(" %1 matching definitions found ").arg(job->numFetched); + message = i18n(" %1 matching definitions found ").tqarg(job->numFetched); } emit stopped(message); emit matchReady(job->matches); @@ -1451,17 +1451,17 @@ void DictInterface::clientDone() errMsg += job->result; break; case JobData::ErrTimeout: - errMsg = i18n("A delay occurred which exceeded the\ncurrent timeout limit of %1 seconds.\nYou can modify this limit in the Preferences Dialog.").arg(global->timeout); + errMsg = i18n("A delay occurred which exceeded the\ncurrent timeout limit of %1 seconds.\nYou can modify this limit in the Preferences Dialog.").tqarg(global->timeout); break; case JobData::ErrBadHost: - errMsg = i18n("Unable to connect to:\n%1:%2\n\nCannot resolve hostname.").arg(job->server).arg(job->port); + errMsg = i18n("Unable to connect to:\n%1:%2\n\nCannot resolve hostname.").tqarg(job->server).tqarg(job->port); break; case JobData::ErrConnect: - errMsg = i18n("Unable to connect to:\n%1:%2\n\n").arg(job->server).arg(job->port); + errMsg = i18n("Unable to connect to:\n%1:%2\n\n").tqarg(job->server).tqarg(job->port); errMsg += job->result; break; case JobData::ErrRefused: - errMsg = i18n("Unable to connect to:\n%1:%2\n\nThe server refused the connection.").arg(job->server).arg(job->port); + errMsg = i18n("Unable to connect to:\n%1:%2\n\nThe server refused the connection.").tqarg(job->server).tqarg(job->port); break; case JobData::ErrNotAvailable: errMsg = i18n("The server is temporarily unavailable."); @@ -1488,7 +1488,7 @@ void DictInterface::clientDone() errMsg = i18n("No strategies available."); break; case JobData::ErrServerError: - errMsg = i18n("The server sent an unexpected reply:\n\"%1\"\nThis shouldn't happen, please consider\nwriting a bug report").arg(job->result); + errMsg = i18n("The server sent an unexpected reply:\n\"%1\"\nThis shouldn't happen, please consider\nwriting a bug report").tqarg(job->result); break; case JobData::ErrMsgTooLong: errMsg = i18n("The server sent a response with a text line\nthat was too long.\n(RFC 2229: max. 1024 characters/6144 octets)"); diff --git a/kdict/matchview.cpp b/kdict/matchview.cpp index 9243615e..e4dd030b 100644 --- a/kdict/matchview.cpp +++ b/kdict/matchview.cpp @@ -13,11 +13,11 @@ ------------------------------------------------------------- */ -#include +#include #include #include #include -#include +#include #include #include @@ -96,14 +96,14 @@ void MatchViewItem::setOpen(bool o) } -void MatchViewItem::paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int alignment) +void MatchViewItem::paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int tqalignment) { if(command.isEmpty()) { TQFont font=p->font(); font.setBold(true); p->setFont(font); } - TQListViewItem::paintCell(p,cg,column,width,alignment); + TQListViewItem::paintCell(p,cg,column,width,tqalignment); } @@ -119,7 +119,7 @@ MatchView::MatchView(TQWidget *parent, const char *name) boxLayout->addSpacing(1); w_strat = new TQComboBox(false,this); - w_strat->setFixedHeight(w_strat->sizeHint().height()); + w_strat->setFixedHeight(w_strat->tqsizeHint().height()); connect(w_strat,TQT_SIGNAL(activated(int)),this,TQT_SLOT(strategySelected(int))); boxLayout->addWidget(w_strat,0); boxLayout->addSpacing(1); @@ -133,7 +133,7 @@ MatchView::MatchView(TQWidget *parent, const char *name) w_list->setSelectionMode(TQListView::Extended); w_list->setTreeStepSize(18); w_list->setSorting(-1); // disable sorting - w_list->setMinimumHeight(w_strat->sizeHint().height()); + w_list->setMinimumHeight(w_strat->tqsizeHint().height()); connect(w_list,TQT_SIGNAL(selectionChanged()),TQT_SLOT(enableGetButton())); connect(w_list,TQT_SIGNAL(returnPressed(TQListViewItem *)),TQT_SLOT(returnPressed(TQListViewItem *))); connect(w_list,TQT_SIGNAL(doubleClicked(TQListViewItem *)),TQT_SLOT(getOneItem(TQListViewItem *))); @@ -144,15 +144,15 @@ MatchView::MatchView(TQWidget *parent, const char *name) boxLayout->addSpacing(1); w_get = new TQPushButton(i18n("&Get Selected"),this); - w_get->setFixedHeight(w_get->sizeHint().height()-3); - w_get->setMinimumWidth(w_get->sizeHint().width()-20); + w_get->setFixedHeight(w_get->tqsizeHint().height()-3); + w_get->setMinimumWidth(w_get->tqsizeHint().width()-20); w_get->setEnabled(false); connect(w_get, TQT_SIGNAL(clicked()), this, TQT_SLOT(getSelected())); boxLayout->addWidget(w_get,0); w_getAll = new TQPushButton(i18n("Get &All"),this); - w_getAll->setFixedHeight(w_getAll->sizeHint().height()-3); - w_getAll->setMinimumWidth(w_getAll->sizeHint().width()-20); + w_getAll->setFixedHeight(w_getAll->tqsizeHint().height()-3); + w_getAll->setMinimumWidth(w_getAll->tqsizeHint().width()-20); w_getAll->setEnabled(false); connect(w_getAll, TQT_SIGNAL(clicked()), this, TQT_SLOT(getAll())); boxLayout->addWidget(w_getAll,0); @@ -310,7 +310,7 @@ void MatchView::doGet(TQStringList &defines) if (defines.count() > 0) { if (defines.count() > global->maxDefinitions) { KMessageBox::sorry(global->topLevel,i18n("You have selected %1 definitions,\nbut Kdict will fetch only the first %2 definitions.\nYou can modify this limit in the Preferences Dialog.") - .arg(defines.count()).arg(global->maxDefinitions)); + .tqarg(defines.count()).tqarg(global->maxDefinitions)); while (defines.count()>global->maxDefinitions) defines.pop_back(); } @@ -368,7 +368,7 @@ void MatchView::newList(const TQStringList &matches) } w_list->setUpdatesEnabled(true); - w_list->repaint(); + w_list->tqrepaint(); w_list->setFocus(); } @@ -388,14 +388,14 @@ void MatchView::buildPopupMenu(TQListViewItem *i, const TQPoint &_point, int) rightBtnMenu->insertSeparator(); } - kapp->clipboard()->setSelectionMode(false); - TQString text = kapp->clipboard()->text(); + kapp->tqclipboard()->setSelectionMode(false); + TQString text = kapp->tqclipboard()->text(); if (text.isEmpty()) { - kapp->clipboard()->setSelectionMode(true); - text = kapp->clipboard()->text(); + kapp->tqclipboard()->setSelectionMode(true); + text = kapp->tqclipboard()->text(); } if (!text.isEmpty()) { - popupClip = kapp->clipboard()->text(); + popupClip = kapp->tqclipboard()->text(); rightBtnMenu->insertItem(i18n("Match &Clipboard Content"),this,TQT_SLOT(popupMatchClip())); rightBtnMenu->insertItem(SmallIcon("define_clip"),i18n("D&efine Clipboard Content"),this,TQT_SLOT(popupDefineClip())); rightBtnMenu->insertSeparator(); diff --git a/kdict/matchview.h b/kdict/matchview.h index 3e7e9f7e..5a459e34 100644 --- a/kdict/matchview.h +++ b/kdict/matchview.h @@ -35,7 +35,7 @@ public: ~MatchViewItem(); void setOpen(bool o); - void paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int alignment); + void paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int tqalignment); TQString command; TQStringList subEntrys; diff --git a/kdict/options.cpp b/kdict/options.cpp index 5f307290..de10606d 100644 --- a/kdict/options.cpp +++ b/kdict/options.cpp @@ -20,7 +20,7 @@ #include #include #include -#include +#include #include #include #include @@ -104,7 +104,7 @@ void GlobalData::read() f_onts[Fheadings]=config->readFontEntry("headingsFont",&defFont); f_ontNames[Fheadings]=i18n("Headings"); - // geometry... + // tqgeometry... config->setGroup("Geometry"); TQSize invalid(-1,-1); optSize = config->readSizeEntry("Opt_Size",&invalid); @@ -449,7 +449,7 @@ int OptionsDialog::ColorListItem::width(const TQListBox *lb ) const OptionsDialog::FontListItem::FontListItem( const TQString &name, const TQFont &font ) : TQListBoxText(name), f_ont(font) { - fontInfo = TQString("[%1 %2]").arg(f_ont.family()).arg(f_ont.pointSize()); + fontInfo = TQString("[%1 %2]").tqarg(f_ont.family()).tqarg(f_ont.pointSize()); } @@ -461,7 +461,7 @@ OptionsDialog::FontListItem::~FontListItem() void OptionsDialog::FontListItem::setFont(const TQFont &font) { f_ont = font; - fontInfo = TQString("[%1 %2]").arg(f_ont.family()).arg(f_ont.pointSize()); + fontInfo = TQString("[%1 %2]").tqarg(f_ont.family()).tqarg(f_ont.pointSize()); } @@ -869,7 +869,7 @@ void OptionsDialog::slotColDefaultBtnClicked() colorItem->setColor(global->defaultColor(i)); } c_List->triggerUpdate(true); - c_List->repaint(true); + c_List->tqrepaint(true); } diff --git a/kdict/options.h b/kdict/options.h index 1137caf8..a1b2745e 100644 --- a/kdict/options.h +++ b/kdict/options.h @@ -74,7 +74,7 @@ public: bool defineClipboard; // define clipboard content on startup? - TQSize optSize,setsSize,matchSize; // window geometry + TQSize optSize,setsSize,matchSize; // window tqgeometry bool showMatchList; TQValueList splitterSizes; diff --git a/kdict/queryview.cpp b/kdict/queryview.cpp index eb0cf7f5..3b0cf9e3 100644 --- a/kdict/queryview.cpp +++ b/kdict/queryview.cpp @@ -15,7 +15,7 @@ ------------------------------------------------------------- */ -#include +#include #include #include @@ -74,7 +74,7 @@ TQFile* SaveHelper::getFile(const TQString &dialogTitle) if (url.isLocalFile()) { if (TQFileInfo(url.path()).exists() && (KMessageBox::warningContinueCancel(global->topLevel, - i18n("A file named %1 already exists.\nDo you want to replace it?").arg(url.path()), + i18n("A file named %1 already exists.\nDo you want to replace it?").tqarg(url.path()), dialogTitle, i18n("&Replace")) != KMessageBox::Continue)) { return 0; } @@ -184,11 +184,11 @@ void QueryView::optionsChanged() saveCurrentResultPos(); currentHTMLHeader = TQString("" + - i18n("

Statistics for %1

").arg(m_contact->metaContact()->displayName()) + - "

%1


").arg(subTitle)); + i18n("

Statistics for %1

").tqarg(m_contact->metaContact()->displayName()) + + "

%1


").tqarg(subTitle)); generalHTMLPart->write(i18n("
General
" "Days: " @@ -265,7 +265,7 @@ void StatisticsDialog::generatePageFromTQStringList(TQStringList values, const T TQDateTime dateTime2; dateTime2.setTime_t(values[i+2].toInt()); - if (dateTime1.date() == TQDate::currentDate() || dateTime2.date() == TQDate::currentDate()) + if (dateTime1.date() == TQDate::tqcurrentDate() || dateTime2.date() == TQDate::tqcurrentDate()) today = true; else today = false; @@ -351,7 +351,7 @@ void StatisticsDialog::generatePageFromTQStringList(TQStringList values, const T } else color="white"; - todayString.append(TQString("
").arg(color, status, dateTime1.time().toString(), dateTime2.time().toString())); + todayString.append(TQString("").tqarg(color, status, dateTime1.time().toString(), dateTime2.time().toString())); } @@ -386,11 +386,11 @@ void StatisticsDialog::generatePageFromTQStringList(TQStringList values, const T // Some "total times" generalHTMLPart->write(i18n("
")); generalHTMLPart->write(i18n("" - "Total seen time : %2 hour(s)
").arg(m_contact->metaContact()->displayName()).arg(stringFromSeconds(totalTime))); + "Total seen time : %2 hour(s)
").tqarg(m_contact->metaContact()->displayName()).tqarg(stringFromSeconds(totalTime))); generalHTMLPart->write(i18n("" - "Total online time : %2 hour(s)
").arg(m_contact->metaContact()->displayName()).arg(stringFromSeconds(totalOnlineTime))); - generalHTMLPart->write(i18n("Total busy time : %2 hour(s)
").arg(m_contact->metaContact()->displayName()).arg(stringFromSeconds(totalAwayTime))); - generalHTMLPart->write(i18n("Total offline time : %2 hour(s)").arg(m_contact->metaContact()->displayName()).arg(stringFromSeconds(totalOfflineTime))); + "Total online time : %2 hour(s)
").tqarg(m_contact->metaContact()->displayName()).tqarg(stringFromSeconds(totalOnlineTime))); + generalHTMLPart->write(i18n("Total busy time : %2 hour(s)
").tqarg(m_contact->metaContact()->displayName()).tqarg(stringFromSeconds(totalAwayTime))); + generalHTMLPart->write(i18n("Total offline time : %2 hour(s)").tqarg(m_contact->metaContact()->displayName()).tqarg(stringFromSeconds(totalOfflineTime))); generalHTMLPart->write(TQString("
")); if (subTitle == i18n("General information")) @@ -399,25 +399,25 @@ void StatisticsDialog::generatePageFromTQStringList(TQStringList values, const T */ { generalHTMLPart->write(TQString("
")); - generalHTMLPart->write(i18n("Average message length : %1 characters
").arg(m_contact->messageLength())); - generalHTMLPart->write(i18n("Time between two messages : %1 second(s)").arg(m_contact->timeBetweenTwoMessages())); + generalHTMLPart->write(i18n("Average message length : %1 characters
").tqarg(m_contact->messageLength())); + generalHTMLPart->write(i18n("Time between two messages : %1 second(s)").tqarg(m_contact->timeBetweenTwoMessages())); generalHTMLPart->write(TQString("
")); generalHTMLPart->write(TQString("
")); - generalHTMLPart->write(i18n("Last talk : %2
").arg(m_contact->metaContact()->displayName()).arg(KGlobal::locale()->formatDateTime(m_contact->lastTalk()))); - generalHTMLPart->write(i18n("Last time contact was present : %2").arg(m_contact->metaContact()->displayName()).arg(KGlobal::locale()->formatDateTime(m_contact->lastPresent()))); + generalHTMLPart->write(i18n("Last talk : %2
").tqarg(m_contact->metaContact()->displayName()).tqarg(KGlobal::locale()->formatDateTime(m_contact->lastTalk()))); + generalHTMLPart->write(i18n("Last time contact was present : %2").tqarg(m_contact->metaContact()->displayName()).tqarg(KGlobal::locale()->formatDateTime(m_contact->lastPresent()))); generalHTMLPart->write(TQString("
")); //generalHTMLPart->write(TQString("
")); - //generalHTMLPart->write(i18n("Main online events :
").arg(m_contact->metaContact()->displayName())); + //generalHTMLPart->write(i18n("Main online events :
").tqarg(m_contact->metaContact()->displayName())); //TQValueList mainEvents = m_contact->mainEvents(Kopete::OnlineStatus::Online); //for (uint i=0; iwrite(TQString("%1
").arg(mainEvents[i].toString())); + //generalHTMLPart->write(TQString("%1
").tqarg(mainEvents[i].toString())); //generalHTMLPart->write(TQString("
")); generalHTMLPart->write("
"); - generalHTMLPart->write(i18n("Is %1 since %2").arg( - Kopete::OnlineStatus(m_contact->oldStatus()).description(), + generalHTMLPart->write(i18n("Is %1 since %2").tqarg( + Kopete::OnlineStatus(m_contact->oldtqStatus()).description(), KGlobal::locale()->formatDateTime(m_contact->oldStatusDateTime()))); generalHTMLPart->write(TQString("
")); } @@ -440,7 +440,7 @@ void StatisticsDialog::generatePageFromTQStringList(TQStringList values, const T +TQString("\" src=\"file://") +colorPath +"\" width=\"4%\" title=\"" - +i18n("Between %1:00 and %2:00, I was able to see %3 status %4% of the hour.").arg(i).arg((i+1)%24).arg(m_contact->metaContact()->displayName()).arg(hrWidth) + +i18n("Between %1:00 and %2:00, I was able to see %3 status %4% of the hour.").tqarg(i).tqarg((i+1)%24).tqarg(m_contact->metaContact()->displayName()).tqarg(hrWidth) +TQString("\">"); } generalHTMLPart->write(chartString); @@ -478,7 +478,7 @@ void StatisticsDialog::generatePageGeneral() TQStringList values; values = m_db->query(TQString("SELECT status, datetimebegin, datetimeend " "FROM contactstatus WHERE metacontactid LIKE '%1' ORDER BY datetimebegin;") - .arg(m_contact->statisticsContactId())); + .tqarg(m_contact->statisticsContactId())); generatePageFromTQStringList(values, i18n("General information")); } @@ -524,9 +524,9 @@ void StatisticsDialog::slotAskButtonClicked() if (mainWidget->questionComboBox->currentItem()==0) { TQString text = i18n("1 is date, 2 is contact name, 3 is online status", "%1, %2 was %3") - .arg(KGlobal::locale()->formatDateTime(TQDateTime(mainWidget->datePicker->date(), mainWidget->timePicker->time()))) - .arg(m_contact->metaContact()->displayName()) - .arg(m_contact->statusAt(TQDateTime(mainWidget->datePicker->date(), mainWidget->timePicker->time()))); + .tqarg(KGlobal::locale()->formatDateTime(TQDateTime(mainWidget->datePicker->date(), mainWidget->timePicker->time()))) + .tqarg(m_contact->metaContact()->displayName()) + .tqarg(m_contact->statusAt(TQDateTime(mainWidget->datePicker->date(), mainWidget->timePicker->time()))); mainWidget->answerEdit->setText(text); } else if (mainWidget->questionComboBox->currentItem()==1) diff --git a/kopete/plugins/statistics/statisticsplugin.cpp b/kopete/plugins/statistics/statisticsplugin.cpp index 5e19b73c..b28ce8ce 100644 --- a/kopete/plugins/statistics/statisticsplugin.cpp +++ b/kopete/plugins/statistics/statisticsplugin.cpp @@ -53,7 +53,7 @@ StatisticsPlugin::StatisticsPlugin( TQObject *parent, const char *name, const TQ { KAction *viewMetaContactStatistics = new KAction( i18n("View &Statistics" ), - TQString::fromLatin1( "log" ), 0, this, TQT_SLOT(slotViewStatistics()), + TQString::tqfromLatin1( "log" ), 0, this, TQT_SLOT(slotViewStatistics()), actionCollection(), "viewMetaContactStatistics" ); viewMetaContactStatistics->setEnabled(Kopete::ContactList::self()->selectedMetaContacts().count() == 1); @@ -205,59 +205,59 @@ bool StatisticsPlugin::dcopWasOnline(TQString id, int timeStamp) { TQDateTime dt; dt.setTime_t(timeStamp); - return dcopWasStatus(id, dt, Kopete::OnlineStatus::Online); + return dcopWastqStatus(id, dt, Kopete::OnlineStatus::Online); } bool StatisticsPlugin::dcopWasOnline(TQString id, TQString dateTime) { - return dcopWasStatus(id, TQDateTime::fromString(dateTime), Kopete::OnlineStatus::Online); + return dcopWastqStatus(id, TQDateTime::fromString(dateTime), Kopete::OnlineStatus::Online); } bool StatisticsPlugin::dcopWasAway(TQString id, int timeStamp) { TQDateTime dt; dt.setTime_t(timeStamp); - return dcopWasStatus(id, dt, Kopete::OnlineStatus::Away); + return dcopWastqStatus(id, dt, Kopete::OnlineStatus::Away); } bool StatisticsPlugin::dcopWasAway(TQString id, TQString dateTime) { - return dcopWasStatus(id, TQDateTime::fromString(dateTime), Kopete::OnlineStatus::Away); + return dcopWastqStatus(id, TQDateTime::fromString(dateTime), Kopete::OnlineStatus::Away); } bool StatisticsPlugin::dcopWasOffline(TQString id, int timeStamp) { TQDateTime dt; dt.setTime_t(timeStamp); - return dcopWasStatus(id, dt, Kopete::OnlineStatus::Offline); + return dcopWastqStatus(id, dt, Kopete::OnlineStatus::Offline); } bool StatisticsPlugin::dcopWasOffline(TQString id, TQString dateTime) { - return dcopWasStatus(id, TQDateTime::fromString(dateTime), Kopete::OnlineStatus::Offline); + return dcopWastqStatus(id, TQDateTime::fromString(dateTime), Kopete::OnlineStatus::Offline); } -bool StatisticsPlugin::dcopWasStatus(TQString id, TQDateTime dateTime, Kopete::OnlineStatus::StatusType status) +bool StatisticsPlugin::dcopWastqStatus(TQString id, TQDateTime dateTime, Kopete::OnlineStatus::StatusType status) { kdDebug() << k_funcinfo << "statistics - DCOP wasOnline :" << id << endl; if (dateTime.isValid() && statisticsContactMap.contains(id)) { - return statisticsContactMap[id]->wasStatus(dateTime, status); + return statisticsContactMap[id]->wastqStatus(dateTime, status); } return false; } -TQString StatisticsPlugin::dcopStatus(TQString id, int timeStamp) +TQString StatisticsPlugin::dcoptqStatus(TQString id, int timeStamp) { TQDateTime dt; dt.setTime_t(timeStamp); - return dcopStatus(id, dt.toString()); + return dcoptqStatus(id, dt.toString()); } -TQString StatisticsPlugin::dcopStatus(TQString id, TQString dateTime) +TQString StatisticsPlugin::dcoptqStatus(TQString id, TQString dateTime) { TQDateTime dt = TQDateTime::fromString(dateTime); @@ -269,7 +269,7 @@ TQString StatisticsPlugin::dcopStatus(TQString id, TQString dateTime) return ""; } -TQString StatisticsPlugin::dcopMainStatus(TQString id, int timeStamp) +TQString StatisticsPlugin::dcopMaintqStatus(TQString id, int timeStamp) { TQDateTime dt; dt.setTime_t(timeStamp); diff --git a/kopete/plugins/statistics/statisticsplugin.h b/kopete/plugins/statistics/statisticsplugin.h index d6f75c81..467bd6b8 100644 --- a/kopete/plugins/statistics/statisticsplugin.h +++ b/kopete/plugins/statistics/statisticsplugin.h @@ -61,7 +61,7 @@ class KActionCollection; * *
%2%3%4
%2%3%4
* - * + * * * * @@ -191,12 +191,12 @@ public slots: bool dcopWasOffline(TQString id, int timeStamp); bool dcopWasOffline(TQString id, TQString dt); - bool dcopWasStatus(TQString id, TQDateTime dateTime, Kopete::OnlineStatus::StatusType status); + bool dcopWastqStatus(TQString id, TQDateTime dateTime, Kopete::OnlineStatus::StatusType status); - TQString dcopStatus(TQString id, TQString dateTime); - TQString dcopStatus(TQString id, int timeStamp); + TQString dcoptqStatus(TQString id, TQString dateTime); + TQString dcoptqStatus(TQString id, int timeStamp); - TQString dcopMainStatus(TQString id, int timeStamp); + TQString dcopMaintqStatus(TQString id, int timeStamp); private: StatisticsDB *m_db; diff --git a/kopete/plugins/statistics/statisticswidget.ui b/kopete/plugins/statistics/statisticswidget.ui index 4c53d8e2..87dd1b4d 100644 --- a/kopete/plugins/statistics/statisticswidget.ui +++ b/kopete/plugins/statistics/statisticswidget.ui @@ -52,7 +52,7 @@ - layout11 + tqlayout11 @@ -68,7 +68,7 @@ Expanding - + 61 31 @@ -77,7 +77,7 @@ - layout9 + tqlayout9 @@ -98,7 +98,7 @@ - layout7 + tqlayout7 @@ -127,7 +127,7 @@ Expanding - + 40 20 @@ -148,7 +148,7 @@ Expanding - + 60 41 @@ -172,7 +172,7 @@ - layout5 + tqlayout5 @@ -181,12 +181,12 @@ - Contact Status at Date & Time + Contact tqStatus at Date & Time - Most Used Status at Date + Most Used tqStatus at Date diff --git a/kopete/plugins/texteffect/texteffectpreferences.cpp b/kopete/plugins/texteffect/texteffectpreferences.cpp index 33aef893..e567f1a8 100644 --- a/kopete/plugins/texteffect/texteffectpreferences.cpp +++ b/kopete/plugins/texteffect/texteffectpreferences.cpp @@ -16,7 +16,7 @@ ***************************************************************************/ #include -#include +#include #include #include diff --git a/kopete/plugins/texteffect/texteffectprefs.ui b/kopete/plugins/texteffect/texteffectprefs.ui index 2dd1ab85..79b1cbde 100644 --- a/kopete/plugins/texteffect/texteffectprefs.ui +++ b/kopete/plugins/texteffect/texteffectprefs.ui @@ -96,7 +96,7 @@ Expanding - + 21 81 @@ -206,7 +206,7 @@ Expanding - + 20 279 diff --git a/kopete/plugins/translator/translatorplugin.cpp b/kopete/plugins/translator/translatorplugin.cpp index 64febcaa..64f2e8e7 100644 --- a/kopete/plugins/translator/translatorplugin.cpp +++ b/kopete/plugins/translator/translatorplugin.cpp @@ -17,7 +17,7 @@ * * ************************************************************************* Patched by Francesco Rossi in order to support new - google translation page layout (13-sept-2007) + google translation page tqlayout (13-sept-2007) */ #include @@ -284,7 +284,7 @@ TQString TranslatorPlugin::googleTranslateMessage( const TQString &msg, const TQ while ( !m_completed[ job ] ) tqApp->processEvents(); - TQString data = TQString::fromLatin1( m_data[ job ] ); + TQString data = TQString::tqfromLatin1( m_data[ job ] ); // After hacks, we need to clean m_data.remove( job ); @@ -364,7 +364,7 @@ void TranslatorPlugin::sendTranslation( Kopete::Message &msg, const TQString &tr msg.setBody( translated, msg.format() ); break; case ShowOriginal: - msg.setBody( i18n( "%2 \nAuto Translated: \n%1" ).arg( translated, msg.plainBody() ), msg.format() ); + msg.setBody( i18n( "%2 \nAuto Translated: \n%1" ).tqarg( translated, msg.plainBody() ), msg.format() ); break; case ShowDialog: { diff --git a/kopete/plugins/translator/translatorprefsbase.ui b/kopete/plugins/translator/translatorprefsbase.ui index 7a92eccc..7a8d2c5a 100644 --- a/kopete/plugins/translator/translatorprefsbase.ui +++ b/kopete/plugins/translator/translatorprefsbase.ui @@ -178,7 +178,7 @@ Expanding - + 20 20 diff --git a/kopete/plugins/webpresence/DESIGN b/kopete/plugins/webpresence/DESIGN index d62c9c34..cd7ed095 100644 --- a/kopete/plugins/webpresence/DESIGN +++ b/kopete/plugins/webpresence/DESIGN @@ -8,5 +8,5 @@ Every so often, it writes a file containing a snapshot of who is online and who Use KIO::NetAccess to upload the files! -Getting Info about Local User's Status +Getting Info about Local User's tqStatus Goal is to allow ppl who don't have us on their contactlist to see what our current status is and what our UIN/id is for each protocol. So we need to know (protocol, uin, status). diff --git a/kopete/plugins/webpresence/webpresence_html.xsl b/kopete/plugins/webpresence/webpresence_html.xsl index f768ccf5..5dac1837 100644 --- a/kopete/plugins/webpresence/webpresence_html.xsl +++ b/kopete/plugins/webpresence/webpresence_html.xsl @@ -17,7 +17,7 @@ - My IM Status + My IM tqStatus

diff --git a/kopete/plugins/webpresence/webpresence_xhtml.xsl b/kopete/plugins/webpresence/webpresence_xhtml.xsl index 9d749c14..4ba456d5 100644 --- a/kopete/plugins/webpresence/webpresence_xhtml.xsl +++ b/kopete/plugins/webpresence/webpresence_xhtml.xsl @@ -16,7 +16,7 @@ - My IM Status + My IM tqStatus

diff --git a/kopete/plugins/webpresence/webpresenceplugin.cpp b/kopete/plugins/webpresence/webpresenceplugin.cpp index bb7b9d4c..88de6c07 100644 --- a/kopete/plugins/webpresence/webpresenceplugin.cpp +++ b/kopete/plugins/webpresence/webpresenceplugin.cpp @@ -228,7 +228,7 @@ KTempFile* WebPresencePlugin::generateFile() // insert the current date/time TQDomElement date = doc.createElement( "listdate" ); TQDomText t = doc.createTextNode( - KGlobal::locale()->formatDateTime( TQDateTime::currentDateTime() ) ); + KGlobal::locale()->formatDateTime( TQDateTime::tqcurrentDateTime() ) ); date.appendChild( t ); root.appendChild( date ); @@ -272,30 +272,30 @@ KTempFile* WebPresencePlugin::generateFile() accName.appendChild( accNameText ); acc.appendChild( accName ); - TQDomElement accStatus = doc.createElement( "accountstatus" ); + TQDomElement acctqStatus = doc.createElement( "accountstatus" ); TQDomText statusText = doc.createTextNode( ( me ) - ? statusAsString( me->onlineStatus() ) + ? statusAsString( me->onlinetqStatus() ) : notKnown ) ; - accStatus.appendChild( statusText ); + acctqStatus.appendChild( statusText ); // Dont add these if we're shutting down, because the result // would be quite weird. if ( !shuttingDown ) { // Add away message as an attribute, if one exists. - if ( me->onlineStatus().status() == Kopete::OnlineStatus::Away && + if ( me->onlinetqStatus().status() == Kopete::OnlineStatus::Away && !me->property("awayMessage").value().toString().isEmpty() ) { - accStatus.setAttribute( "awayreason", + acctqStatus.setAttribute( "awayreason", me->property("awayMessage").value().toString() ); } // Add the online status description as an attribute, if one exits. - if ( !me->onlineStatus().description().isEmpty() ) { - accStatus.setAttribute( "statusdescription", - me->onlineStatus().description() ); + if ( !me->onlinetqStatus().description().isEmpty() ) { + acctqStatus.setAttribute( "statusdescription", + me->onlinetqStatus().description() ); } } - acc.appendChild( accStatus ); + acc.appendChild( acctqStatus ); if ( showAddresses ) { @@ -430,13 +430,13 @@ ProtocolList WebPresencePlugin::allProtocols() return result; } -TQString WebPresencePlugin::statusAsString( const Kopete::OnlineStatus &newStatus ) +TQString WebPresencePlugin::statusAsString( const Kopete::OnlineStatus &newtqStatus ) { if (shuttingDown) return "OFFLINE"; TQString status; - switch ( newStatus.status() ) + switch ( newtqStatus.status() ) { case Kopete::OnlineStatus::Online: status = "ONLINE"; diff --git a/kopete/plugins/webpresence/webpresenceplugin.h b/kopete/plugins/webpresence/webpresenceplugin.h index 04babfa2..8ce3407a 100644 --- a/kopete/plugins/webpresence/webpresenceplugin.h +++ b/kopete/plugins/webpresence/webpresenceplugin.h @@ -109,7 +109,7 @@ protected: /** * Converts numeric status to a string */ - TQString statusAsString( const Kopete::OnlineStatus &newStatus ); + TQString statusAsString( const Kopete::OnlineStatus &newtqStatus ); /** * Schedules writes */ diff --git a/kopete/plugins/webpresence/webpresencepreferences.cpp b/kopete/plugins/webpresence/webpresencepreferences.cpp index ea1d227e..e25458ee 100644 --- a/kopete/plugins/webpresence/webpresencepreferences.cpp +++ b/kopete/plugins/webpresence/webpresencepreferences.cpp @@ -15,7 +15,7 @@ * * ***************************************************************************/ -#include +#include #include #include diff --git a/kopete/plugins/webpresence/webpresenceprefs.ui b/kopete/plugins/webpresence/webpresenceprefs.ui index 0a676973..41518bb4 100644 --- a/kopete/plugins/webpresence/webpresenceprefs.ui +++ b/kopete/plugins/webpresence/webpresenceprefs.ui @@ -74,7 +74,7 @@ Expanding - + 449 0 @@ -159,7 +159,7 @@ Note that some web browsers do not support XHTML. You should also make sure your
- layout1 + tqlayout1 @@ -175,7 +175,7 @@ Note that some web browsers do not support XHTML. You should also make sure your Fixed - + 30 20 @@ -260,7 +260,7 @@ images/winpopup_protocol.png - layout2 + tqlayout2 @@ -276,7 +276,7 @@ images/winpopup_protocol.png Fixed - + 30 20 @@ -313,7 +313,7 @@ images/winpopup_protocol.png Expanding - + 16 93 diff --git a/kopete/protocols/gadu/gaduaccount.cpp b/kopete/protocols/gadu/gaduaccount.cpp index 5ef1fe50..52f13e08 100644 --- a/kopete/protocols/gadu/gaduaccount.cpp +++ b/kopete/protocols/gadu/gaduaccount.cpp @@ -49,9 +49,9 @@ #include #include #include -#include +#include #include -#include +#include #include #include @@ -132,7 +132,7 @@ static const char* const servers_ip[] = { setMyself( new GaduContact( accountId().toInt(), accountId(), this, Kopete::ContactList::self()->myself() ) ); - p->status = GaduProtocol::protocol()->convertStatus( GG_STATUS_NOT_AVAIL ); + p->status = GaduProtocol::protocol()->converttqStatus( GG_STATUS_NOT_AVAIL ); p->lastDescription = TQString(); for ( unsigned int i = 0; i < NUM_SERVERS ; i++ ) { @@ -234,15 +234,15 @@ GaduAccount::initConnections() void GaduAccount::setAway( bool isAway, const TQString& awayMessage ) { - unsigned int currentStatus; + unsigned int currenttqStatus; if ( isAway ) { - currentStatus = ( awayMessage.isEmpty() ) ? GG_STATUS_BUSY : GG_STATUS_BUSY_DESCR; + currenttqStatus = ( awayMessage.isEmpty() ) ? GG_STATUS_BUSY : GG_STATUS_BUSY_DESCR; } else{ - currentStatus = ( awayMessage.isEmpty() ) ? GG_STATUS_AVAIL : GG_STATUS_AVAIL_DESCR; + currenttqStatus = ( awayMessage.isEmpty() ) ? GG_STATUS_AVAIL : GG_STATUS_AVAIL_DESCR; } - changeStatus( GaduProtocol::protocol()->convertStatus( currentStatus ), awayMessage ); + changetqStatus( GaduProtocol::protocol()->converttqStatus( currenttqStatus ), awayMessage ); } @@ -251,8 +251,8 @@ GaduAccount::actionMenu() { kdDebug(14100) << "actionMenu() " << endl; - p->actionMenu_ = new KActionMenu( accountId(), myself()->onlineStatus().iconFor( this ), this ); - p->actionMenu_->popupMenu()->insertTitle( myself()->onlineStatus().iconFor( myself() ), i18n( "%1 <%2> " ). + p->actionMenu_ = new KActionMenu( accountId(), myself()->onlinetqStatus().iconFor( this ), this ); + p->actionMenu_->popupMenu()->insertTitle( myself()->onlinetqStatus().iconFor( myself() ), i18n( "%1 <%2> " ). arg( myself()->property( Kopete::Global::Properties::self()->nickName()).value().toString(), accountId() ) ); if ( p->session_->isConnected() ) { @@ -287,19 +287,19 @@ GaduAccount::actionMenu() p->listFromFileAction->setEnabled( TRUE ); } p->actionMenu_->insert( new KAction( i18n( "Go O&nline" ), - GaduProtocol::protocol()->convertStatus( GG_STATUS_AVAIL ).iconFor( this ), + GaduProtocol::protocol()->converttqStatus( GG_STATUS_AVAIL ).iconFor( this ), 0, this, TQT_SLOT( slotGoOnline() ), this, "actionGaduConnect" ) ); p->actionMenu_->insert( new KAction( i18n( "Set &Busy" ), - GaduProtocol::protocol()->convertStatus( GG_STATUS_BUSY ).iconFor( this ), + GaduProtocol::protocol()->converttqStatus( GG_STATUS_BUSY ).iconFor( this ), 0, this, TQT_SLOT( slotGoBusy() ), this, "actionGaduConnect" ) ); p->actionMenu_->insert( new KAction( i18n( "Set &Invisible" ), - GaduProtocol::protocol()->convertStatus( GG_STATUS_INVISIBLE ).iconFor( this ), + GaduProtocol::protocol()->converttqStatus( GG_STATUS_INVISIBLE ).iconFor( this ), 0, this, TQT_SLOT( slotGoInvisible() ), this, "actionGaduConnect" ) ); p->actionMenu_->insert( new KAction( i18n( "Go &Offline" ), - GaduProtocol::protocol()->convertStatus( GG_STATUS_NOT_AVAIL ).iconFor( this ), + GaduProtocol::protocol()->converttqStatus( GG_STATUS_NOT_AVAIL ).iconFor( this ), 0, this, TQT_SLOT( slotGoOffline() ), this, "actionGaduConnect" ) ); p->actionMenu_->insert( new KAction( i18n( "Set &Description..." ), "info", @@ -332,7 +332,7 @@ GaduAccount::connectWithPassword(const TQString& password) if (isConnected ()) return; // FIXME: add status description to this mechainsm, this is a hack now. libkopete design issue. - changeStatus( initialStatus(), p->lastDescription ); + changetqStatus( initialtqStatus(), p->lastDescription ); } void @@ -353,7 +353,7 @@ void GaduAccount::setOnlineStatus( const Kopete::OnlineStatus& status , const TQString &reason ) { kdDebug(14100) << k_funcinfo << "Called" << endl; - changeStatus( status, reason); + changetqStatus( status, reason); } void @@ -390,7 +390,7 @@ GaduAccount::createContact( const TQString& contactId, Kopete::MetaContact* pare } void -GaduAccount::changeStatus( const Kopete::OnlineStatus& status, const TQString& descr ) +GaduAccount::changetqStatus( const Kopete::OnlineStatus& status, const TQString& descr ) { unsigned int ns; @@ -418,14 +418,14 @@ GaduAccount::changeStatus( const Kopete::OnlineStatus& status, const TQString& d if (!descr.isEmpty() && !GaduProtocol::protocol()->statusWithDescription( status.internalStatus() ) ) { // and rerun us again. This won't cause any recursive call, as both conversions are static ns = GaduProtocol::protocol()->statusToWithDescription( status ); - changeStatus( GaduProtocol::protocol()->convertStatus( ns ), descr ); + changetqStatus( GaduProtocol::protocol()->converttqStatus( ns ), descr ); return; } // well, if it's empty but we want to set status with desc, change it too if (descr.isEmpty() && GaduProtocol::protocol()->statusWithDescription( status.internalStatus() ) ) { ns = GaduProtocol::protocol()->statusToWithoutDescription( status ); - changeStatus( GaduProtocol::protocol()->convertStatus( ns ), descr ); + changetqStatus( GaduProtocol::protocol()->converttqStatus( ns ), descr ); return; } @@ -455,7 +455,7 @@ GaduAccount::changeStatus( const Kopete::OnlineStatus& status, const TQString& d else { p->status = status; if ( descr.isEmpty() ) { - if ( p->session_->changeStatus( status.internalStatus(), p->forFriends ) != 0 ) + if ( p->session_->changetqStatus( status.internalStatus(), p->forFriends ) != 0 ) return; } else { @@ -481,7 +481,7 @@ GaduAccount::slotLogin( int status, const TQString& dscr ) { p->lastDescription = dscr; - myself()->setOnlineStatus( GaduProtocol::protocol()->convertStatus( GG_STATUS_CONNECTING )); + myself()->setOnlineStatus( GaduProtocol::protocol()->converttqStatus( GG_STATUS_CONNECTING )); myself()->setProperty( GaduProtocol::protocol()->propAwayMessage, dscr ); if ( !p->session_->isConnected() ) { @@ -507,16 +507,16 @@ GaduAccount::slotLogin( int status, const TQString& dscr ) } } else { - p->session_->changeStatus( status ); + p->session_->changetqStatus( status ); } } void GaduAccount::slotLogoff() { - if ( p->session_->isConnected() || p->status == GaduProtocol::protocol()->convertStatus( GG_STATUS_CONNECTING )) { - p->status = GaduProtocol::protocol()->convertStatus( GG_STATUS_NOT_AVAIL ); - changeStatus( p->status ); + if ( p->session_->isConnected() || p->status == GaduProtocol::protocol()->converttqStatus( GG_STATUS_CONNECTING )) { + p->status = GaduProtocol::protocol()->converttqStatus( GG_STATUS_NOT_AVAIL ); + changetqStatus( p->status ); p->session_->logoff(); dccOff(); } @@ -525,7 +525,7 @@ GaduAccount::slotLogoff() void GaduAccount::slotGoOnline() { - changeStatus( GaduProtocol::protocol()->convertStatus( GG_STATUS_AVAIL ) ); + changetqStatus( GaduProtocol::protocol()->converttqStatus( GG_STATUS_AVAIL ) ); } void GaduAccount::slotGoOffline() @@ -537,13 +537,13 @@ GaduAccount::slotGoOffline() void GaduAccount::slotGoInvisible() { - changeStatus( GaduProtocol::protocol()->convertStatus( GG_STATUS_INVISIBLE ) ); + changetqStatus( GaduProtocol::protocol()->converttqStatus( GG_STATUS_INVISIBLE ) ); } void GaduAccount::slotGoBusy() { - changeStatus( GaduProtocol::protocol()->convertStatus( GG_STATUS_BUSY ) ); + changetqStatus( GaduProtocol::protocol()->converttqStatus( GG_STATUS_BUSY ) ); } void @@ -648,7 +648,7 @@ GaduAccount::contactStatusChanged( KGaduNotify* gaduNotify ) return; } - contact->changedStatus( gaduNotify ); + contact->changedtqStatus( gaduNotify ); } void @@ -675,7 +675,7 @@ GaduAccount::connectionFailed( gg_failure_t failure ) case GG_FAILURE_PASSWORD: password().setWrong(); // user pressed CANCEL - p->status = GaduProtocol::protocol()->convertStatus( GG_STATUS_NOT_AVAIL ); + p->status = GaduProtocol::protocol()->converttqStatus( GG_STATUS_NOT_AVAIL ); myself()->setOnlineStatus( p->status ); disconnected( BadPassword ); return; @@ -710,9 +710,9 @@ GaduAccount::connectionFailed( gg_failure_t failure ) slotLogin( p->status.internalStatus() , p->lastDescription ); } else { - error( i18n( "unable to connect to the Gadu-Gadu server(\"%1\")." ).arg( GaduSession::failureDescription( failure ) ), + error( i18n( "unable to connect to the Gadu-Gadu server(\"%1\")." ).tqarg( GaduSession::failureDescription( failure ) ), i18n( "Connection Error" ) ); - p->status = GaduProtocol::protocol()->convertStatus( GG_STATUS_NOT_AVAIL ); + p->status = GaduProtocol::protocol()->converttqStatus( GG_STATUS_NOT_AVAIL ); myself()->setOnlineStatus( p->status ); disconnected( InvalidHost ); } @@ -777,7 +777,7 @@ void GaduAccount::connectionSucceed( ) { kdDebug(14100) << "#### Gadu-Gadu connected! " << endl; - p->status = GaduProtocol::protocol()->convertStatus( p->session_->status() ); + p->status = GaduProtocol::protocol()->converttqStatus( p->session_->status() ); myself()->setOnlineStatus( p->status ); myself()->setProperty( GaduProtocol::protocol()->propAwayMessage, p->lastDescription ); startNotify(); @@ -822,11 +822,11 @@ GaduAccount::slotSessionDisconnect( Kopete::Account::DisconnectReason reason ) p->pingTimer_->stop(); } - setAllContactsStatus( GaduProtocol::protocol()->convertStatus( GG_STATUS_NOT_AVAIL ) ); + setAllContactstqStatus( GaduProtocol::protocol()->converttqStatus( GG_STATUS_NOT_AVAIL ) ); - status = myself()->onlineStatus().internalStatus(); + status = myself()->onlinetqStatus().internalStatus(); if ( status != GG_STATUS_NOT_AVAIL || status != GG_STATUS_NOT_AVAIL_DESCR ) { - myself()->setOnlineStatus( GaduProtocol::protocol()->convertStatus( GG_STATUS_NOT_AVAIL ) ); + myself()->setOnlineStatus( GaduProtocol::protocol()->converttqStatus( GG_STATUS_NOT_AVAIL ) ); } GaduAccount::disconnect( reason ); } @@ -903,7 +903,7 @@ GaduAccount::slotFriendsMode() p->forFriends = !p->forFriends; kdDebug( 14100 ) << "for friends mode: " << p->forFriends << " desc" << p->lastDescription << endl; // now change status, it will changing it with p->forFriends flag - changeStatus( p->status, p->lastDescription ); + changetqStatus( p->status, p->lastDescription ); saveFriendsMode( p->forFriends ); @@ -925,7 +925,7 @@ GaduAccount::slotExportContactsListToFile() p->saveListDialog = new KFileDialog( "::kopete-gadu" + accountId(), TQString(), Kopete::UI::Global::mainWidget(), "gadu-list-save", false ); p->saveListDialog->setCaption( - i18n("Save Contacts List for Account %1 As").arg( + i18n("Save Contacts List for Account %1 As").tqarg( myself()->property( Kopete::Global::Properties::self()->nickName()).value().toString() ) ); if ( p->saveListDialog->exec() == TQDialog::Accepted ) { @@ -971,7 +971,7 @@ GaduAccount::slotImportContactsFromFile() p->loadListDialog = new KFileDialog( "::kopete-gadu" + accountId(), TQString(), Kopete::UI::Global::mainWidget(), "gadu-list-load", true ); p->loadListDialog->setCaption( - i18n("Load Contacts List for Account %1 As").arg( + i18n("Load Contacts List for Account %1 As").tqarg( myself()->property( Kopete::Global::Properties::self()->nickName()).value().toString() ) ); if ( p->loadListDialog->exec() == TQDialog::Accepted ) { @@ -1077,7 +1077,7 @@ GaduAccount::slotDescription() GaduAway* away = new GaduAway( this ); if( away->exec() == TQDialog::Accepted ) { - changeStatus( GaduProtocol::protocol()->convertStatus( away->status() ), + changetqStatus( GaduProtocol::protocol()->converttqStatus( away->status() ), away->awayText() ); } delete away; diff --git a/kopete/protocols/gadu/gaduaccount.h b/kopete/protocols/gadu/gaduaccount.h index 1786e3a9..0363d181 100644 --- a/kopete/protocols/gadu/gaduaccount.h +++ b/kopete/protocols/gadu/gaduaccount.h @@ -77,7 +77,7 @@ public slots: void setOnlineStatus( const Kopete::OnlineStatus& status , const TQString &reason = TQString()); //} - void changeStatus( const Kopete::OnlineStatus& status, const TQString& descr = TQString() ); + void changetqStatus( const Kopete::OnlineStatus& status, const TQString& descr = TQString() ); void slotLogin( int status = GG_STATUS_AVAIL, const TQString& dscr = TQString() ); void slotLogoff(); void slotGoOnline(); diff --git a/kopete/protocols/gadu/gaduaddcontactpage.cpp b/kopete/protocols/gadu/gaduaddcontactpage.cpp index de4aee9d..99867508 100644 --- a/kopete/protocols/gadu/gaduaddcontactpage.cpp +++ b/kopete/protocols/gadu/gaduaddcontactpage.cpp @@ -36,7 +36,7 @@ #include #include -#include +#include #include #include #include diff --git a/kopete/protocols/gadu/gaduaway.cpp b/kopete/protocols/gadu/gaduaway.cpp index 2be2a2aa..8785f08f 100644 --- a/kopete/protocols/gadu/gaduaway.cpp +++ b/kopete/protocols/gadu/gaduaway.cpp @@ -47,7 +47,7 @@ GaduAway::GaduAway( GaduAccount* account, TQWidget* parent, const char* name ) ui_ = new GaduAwayUI( this ); setMainWidget( ui_ ); - ks = account->myself()->onlineStatus(); + ks = account->myself()->onlinetqStatus(); s = GaduProtocol::protocol()->statusToWithDescription( ks ); if ( s == GG_STATUS_NOT_AVAIL_DESCR ) { @@ -79,7 +79,7 @@ void GaduAway::slotApply() { if ( account_ ) { - account_->changeStatus( GaduProtocol::protocol()->convertStatus( status() ),awayText() ); + account_->changetqStatus( GaduProtocol::protocol()->converttqStatus( status() ),awayText() ); } } diff --git a/kopete/protocols/gadu/gaducommands.cpp b/kopete/protocols/gadu/gaducommands.cpp index 581ce9c1..fb5944f8 100644 --- a/kopete/protocols/gadu/gaducommands.cpp +++ b/kopete/protocols/gadu/gaducommands.cpp @@ -29,7 +29,7 @@ #include #include -#include +#include #include #include @@ -44,7 +44,7 @@ GaduCommand::GaduCommand( TQObject* parent, const char* name ) GaduCommand::~GaduCommand() { - //TQSocketNotifiers are children and will + //TQSocketNotifiers are tqchildren and will //be deleted anyhow } @@ -204,7 +204,7 @@ void RegisterCommand::watcher() } pubDir = (struct gg_pubdir *)session_->data; - emit operationStatus( i18n( "Token retrieving status: %1" ).arg( GaduSession::stateDescription( session_->state ) ) ); + emit operationtqStatus( i18n( "Token retrieving status: %1" ).tqarg( GaduSession::stateDescription( session_->state ) ) ); switch ( session_->state ) { case GG_STATE_CONNECTING: kdDebug( 14100 ) << "Recreating notifiers " << endl; @@ -254,7 +254,7 @@ void RegisterCommand::watcher() return; } pubDir = (gg_pubdir*) session_->data; - emit operationStatus( i18n( "Registration status: %1" ).arg( GaduSession::stateDescription( session_->state ) ) ); + emit operationtqStatus( i18n( "Registration status: %1" ).tqarg( GaduSession::stateDescription( session_->state ) ) ); switch ( session_->state ) { case GG_STATE_CONNECTING: kdDebug( 14100 ) << "Recreating notifiers " << endl; diff --git a/kopete/protocols/gadu/gaducommands.h b/kopete/protocols/gadu/gaducommands.h index a191242c..a9c78b35 100644 --- a/kopete/protocols/gadu/gaducommands.h +++ b/kopete/protocols/gadu/gaducommands.h @@ -53,7 +53,7 @@ signals: void done( const TQString& title, const TQString& what ); void error( const TQString& title, const TQString& error ); void socketReady(); - void operationStatus( const TQString ); + void operationtqStatus( const TQString ); protected: void checkSocket( int, int ); diff --git a/kopete/protocols/gadu/gaducontact.cpp b/kopete/protocols/gadu/gaducontact.cpp index c9a68f25..d7965d3b 100644 --- a/kopete/protocols/gadu/gaducontact.cpp +++ b/kopete/protocols/gadu/gaducontact.cpp @@ -66,7 +66,7 @@ GaduContact::GaduContact( uin_t uin, const TQString& name, Kopete::Account* acco setFileCapable( true ); //offline - setOnlineStatus( GaduProtocol::protocol()->convertStatus( 0 ) ); + setOnlineStatus( GaduProtocol::protocol()->converttqStatus( 0 ) ); setProperty( Kopete::Global::Properties::self()->nickName(), name ); } @@ -107,14 +107,14 @@ GaduContact::sendFile( const KURL &sourceURL, const TQString &/*fileName*/, uint void -GaduContact::changedStatus( KGaduNotify* newstatus ) +GaduContact::changedtqStatus( KGaduNotify* newstatus ) { if ( newstatus->description.isNull() ) { - setOnlineStatus( GaduProtocol::protocol()->convertStatus( newstatus->status ) ); + setOnlineStatus( GaduProtocol::protocol()->converttqStatus( newstatus->status ) ); removeProperty( GaduProtocol::protocol()->propAwayMessage ); } else { - setOnlineStatus( GaduProtocol::protocol()->convertStatus( newstatus->status ) ); + setOnlineStatus( GaduProtocol::protocol()->converttqStatus( newstatus->status ) ); setProperty( GaduProtocol::protocol()->propAwayMessage, newstatus->description ); } @@ -230,7 +230,7 @@ GaduContact::slotUserInfo() dlg->setName( metaContact()->displayName() ); dlg->setId( TQString::number( uin_ ) ); - dlg->setStatus( onlineStatus().description() ); + dlg->settqStatus( onlinetqStatus().description() ); dlg->setAwayMessage( description_ ); dlg->show(); } diff --git a/kopete/protocols/gadu/gaducontact.h b/kopete/protocols/gadu/gaducontact.h index 66851c0c..15eaf288 100644 --- a/kopete/protocols/gadu/gaducontact.h +++ b/kopete/protocols/gadu/gaducontact.h @@ -67,7 +67,7 @@ public: bool ignored(); static TQString findBestContactName( const GaduContactsList::ContactLine* ); - void changedStatus( KGaduNotify* ); + void changedtqStatus( KGaduNotify* ); uin_t uin() const; diff --git a/kopete/protocols/gadu/gadudcctransaction.cpp b/kopete/protocols/gadu/gadudcctransaction.cpp index 7ec8d2ac..2d0e45d4 100644 --- a/kopete/protocols/gadu/gadudcctransaction.cpp +++ b/kopete/protocols/gadu/gadudcctransaction.cpp @@ -237,8 +237,8 @@ GaduDCCTransaction::slotIncomingTransferAccepted ( Kopete::Transfer* transfer, c KGuiItem resumeButton( i18n ( "&Resume" ) ); KGuiItem overwriteButton( i18n ( "Over&write" ) ); switch ( KMessageBox::questionYesNoCancel( Kopete::UI::Global::mainWidget (), - i18n( "The file %1 already exists, do you want to resume or overwrite it?" ).arg( fileName ), - i18n( "File Exists: %1" ).arg( fileName ), resumeButton, overwriteButton ) ) + i18n( "The file %1 already exists, do you want to resume or overwrite it?" ).tqarg( fileName ), + i18n( "File Exists: %1" ).tqarg( fileName ), resumeButton, overwriteButton ) ) { // resume case KMessageBox::Yes: diff --git a/kopete/protocols/gadu/gadueditcontact.cpp b/kopete/protocols/gadu/gadueditcontact.cpp index 15fd717d..985a9874 100644 --- a/kopete/protocols/gadu/gadueditcontact.cpp +++ b/kopete/protocols/gadu/gadueditcontact.cpp @@ -37,7 +37,7 @@ #include #include #include -#include +#include #include #include diff --git a/kopete/protocols/gadu/gaduprotocol.cpp b/kopete/protocols/gadu/gaduprotocol.cpp index 3ec773f0..517902f1 100644 --- a/kopete/protocols/gadu/gaduprotocol.cpp +++ b/kopete/protocols/gadu/gaduprotocol.cpp @@ -199,7 +199,7 @@ GaduProtocol::statusWithDescription( uint status ) } Kopete::OnlineStatus -GaduProtocol::convertStatus( uint status ) const +GaduProtocol::converttqStatus( uint status ) const { switch( status ) { case GG_STATUS_NOT_AVAIL: diff --git a/kopete/protocols/gadu/gaduprotocol.h b/kopete/protocols/gadu/gaduprotocol.h index ff34d970..5abae065 100644 --- a/kopete/protocols/gadu/gaduprotocol.h +++ b/kopete/protocols/gadu/gaduprotocol.h @@ -71,7 +71,7 @@ public: // } //!Plugin reimplementation - Kopete::OnlineStatus convertStatus( uint ) const; + Kopete::OnlineStatus converttqStatus( uint ) const; bool statusWithDescription( uint status ); uint statusToWithDescription( Kopete::OnlineStatus status ); diff --git a/kopete/protocols/gadu/gadupubdir.cpp b/kopete/protocols/gadu/gadupubdir.cpp index fc496aaa..570f2796 100644 --- a/kopete/protocols/gadu/gadupubdir.cpp +++ b/kopete/protocols/gadu/gadupubdir.cpp @@ -225,12 +225,12 @@ GaduPublicDir::validateData() // Move to GaduProtocol someday TQPixmap -GaduPublicDir::iconForStatus( uint status ) +GaduPublicDir::iconFortqStatus( uint status ) { TQPixmap n; if ( GaduProtocol::protocol() ) { - return GaduProtocol::protocol()->convertStatus( status ).protocolIcon(); + return GaduProtocol::protocol()->converttqStatus( status ).protocolIcon(); } return n; } @@ -256,7 +256,7 @@ GaduPublicDir::slotSearchResult( const SearchResult& result, unsigned int ) (*r).city, TQString::number( (*r).uin ).ascii() ); - sl->setPixmap( 0, iconForStatus( (*r).status ) ); + sl->setPixmap( 0, iconFortqStatus( (*r).status ) ); } // if not found anything, obviously we don't want to search for more diff --git a/kopete/protocols/gadu/gadupubdir.h b/kopete/protocols/gadu/gadupubdir.h index 4a2dce64..42fed436 100644 --- a/kopete/protocols/gadu/gadupubdir.h +++ b/kopete/protocols/gadu/gadupubdir.h @@ -44,7 +44,7 @@ Q_OBJECT public: GaduPublicDir( GaduAccount* , TQWidget *parent = 0, const char* name = "GaduPublicDir" ); GaduPublicDir( GaduAccount* , int searchFor, TQWidget* parent = 0, const char* name = "GaduPublicDir" ); - TQPixmap iconForStatus( uint status ); + TQPixmap iconFortqStatus( uint status ); private slots: void slotSearch(); diff --git a/kopete/protocols/gadu/gaduregisteraccount.cpp b/kopete/protocols/gadu/gaduregisteraccount.cpp index e33b4959..1b24575f 100644 --- a/kopete/protocols/gadu/gaduregisteraccount.cpp +++ b/kopete/protocols/gadu/gaduregisteraccount.cpp @@ -62,9 +62,9 @@ GaduRegisterAccount::GaduRegisterAccount( TQWidget* parent, const char* name ) connect( cRegister, TQT_SIGNAL( tokenRecieved( TQPixmap, TQString ) ), TQT_SLOT( displayToken( TQPixmap, TQString ) ) ); connect( cRegister, TQT_SIGNAL( done( const TQString&, const TQString& ) ), TQT_SLOT( registrationDone( const TQString&, const TQString& ) ) ); connect( cRegister, TQT_SIGNAL( error( const TQString&, const TQString& ) ), TQT_SLOT( registrationError( const TQString&, const TQString& ) ) ); - connect( cRegister, TQT_SIGNAL( operationStatus( const TQString ) ), TQT_SLOT( updateStatus( const TQString ) ) ); + connect( cRegister, TQT_SIGNAL( operationtqStatus( const TQString ) ), TQT_SLOT( updatetqStatus( const TQString ) ) ); - updateStatus( i18n( "Retrieving token" ) ); + updatetqStatus( i18n( "Retrieving token" ) ); cRegister->requestToken(); show(); @@ -86,7 +86,7 @@ GaduRegisterAccount::validateInput() if ( !emailRegexp->exactMatch( ui->valueEmailAddress->text() ) ) { - updateStatus( i18n( "Please enter a valid E-Mail Address." ) ); + updatetqStatus( i18n( "Please enter a valid E-Mail Address." ) ); ui->pixmapEmailAddress->setPixmap ( hintPixmap ); valid = false; } @@ -96,21 +96,21 @@ GaduRegisterAccount::validateInput() if ( valid && ( ( ui->valuePassword->text().isEmpty() ) || ( ui->valuePasswordVerify->text().isEmpty() ) ) ) { - updateStatus( i18n( "Please enter the same password twice." ) ); + updatetqStatus( i18n( "Please enter the same password twice." ) ); valid = false; passwordHighlight = true; } if ( valid && ( ui->valuePassword->text() != ui->valuePasswordVerify->text() ) ) { - updateStatus( i18n( "Password entries do not match." ) ); + updatetqStatus( i18n( "Password entries do not match." ) ); valid = false; passwordHighlight = true; } if ( valid && ( ui->valueVerificationSequence->text().isEmpty() ) ) { - updateStatus( i18n( "Please enter the verification sequence." ) ); + updatetqStatus( i18n( "Please enter the verification sequence." ) ); ui->pixmapVerificationSequence->setPixmap ( hintPixmap ); valid = false; } @@ -131,7 +131,7 @@ GaduRegisterAccount::validateInput() if ( valid ) { // clear status message if we have valid data - updateStatus( i18n( "" ) ); + updatetqStatus( i18n( "" ) ); } enableButton( User1, valid ); @@ -156,7 +156,7 @@ GaduRegisterAccount::registrationDone( const TQString& /*title*/, const TQStri ui->labelVerificationSequence->setDisabled( true ); ui->labelInstructions->setDisabled( true ); emit registeredNumber( cRegister->newUin(), ui->valuePassword->text() ); - updateStatus( i18n( "Account created; your new UIN is %1." ).arg(TQString::number( cRegister->newUin() ) ) ); + updatetqStatus( i18n( "Account created; your new UIN is %1." ).tqarg(TQString::number( cRegister->newUin() ) ) ); enableButton( User1, false ); setButtonText( Ok, i18n( "&Close" ) ); } @@ -164,18 +164,18 @@ GaduRegisterAccount::registrationDone( const TQString& /*title*/, const TQStri void GaduRegisterAccount::registrationError( const TQString& title, const TQString& what ) { - updateStatus( i18n( "Registration failed: %1" ).arg( what ) ); + updatetqStatus( i18n( "Registration failed: %1" ).tqarg( what ) ); KMessageBox::sorry( this, "Registration was unsucessful, please try again.", title ); disconnect( this, TQT_SLOT( displayToken( TQPixmap, TQString ) ) ); disconnect( this, TQT_SLOT( registrationDone( const TQString&, const TQString& ) ) ); disconnect( this, TQT_SLOT( registrationError( const TQString&, const TQString& ) ) ); - disconnect( this, TQT_SLOT( updateStatus( const TQString ) ) ); + disconnect( this, TQT_SLOT( updatetqStatus( const TQString ) ) ); ui->valueVerificationSequence->setDisabled( true ); ui->valueVerificationSequence->setText( "" ); enableButton( User1, false ); - updateStatus( "" ); + updatetqStatus( "" ); // emit UIN 0, to enable 'register new account' button again in dialog below emit registeredNumber( 0, TQString( "" ) ); @@ -192,9 +192,9 @@ GaduRegisterAccount::displayToken( TQPixmap image, TQString /*tokenId */ ) } void -GaduRegisterAccount::updateStatus( const TQString status ) +GaduRegisterAccount::updatetqStatus( const TQString status ) { - ui->labelStatusMessage->setAlignment( AlignCenter ); + ui->labelStatusMessage->tqsetAlignment( AlignCenter ); ui->labelStatusMessage->setText( status ); } diff --git a/kopete/protocols/gadu/gaduregisteraccount.h b/kopete/protocols/gadu/gaduregisteraccount.h index ddc295ec..f6abb06d 100644 --- a/kopete/protocols/gadu/gaduregisteraccount.h +++ b/kopete/protocols/gadu/gaduregisteraccount.h @@ -49,7 +49,7 @@ protected slots: void registrationDone( const TQString&, const TQString& ); void inputChanged( const TQString & ); void doRegister(); - void updateStatus( const TQString status ); + void updatetqStatus( const TQString status ); private: void validateInput(); diff --git a/kopete/protocols/gadu/gadurichtextformat.cpp b/kopete/protocols/gadu/gadurichtextformat.cpp index 377967bc..9dcdbc21 100644 --- a/kopete/protocols/gadu/gadurichtextformat.cpp +++ b/kopete/protocols/gadu/gadurichtextformat.cpp @@ -100,9 +100,9 @@ GaduRichTextFormat::convertToHtml( const TQString& msg, unsigned int formats, vo g = (int)color->green; b = (int)color->blue; } - style += TQString(" color: rgb( %1, %2, %3 ); ").arg( r ).arg( g ).arg( b ); + style += TQString(" color: rgb( %1, %2, %3 ); ").tqarg( r ).tqarg( g ).tqarg( b ); - tmp += formatOpeningTag( TQString::fromLatin1("span"), TQString::fromLatin1("style=\"%1\"").arg( style ) ); + tmp += formatOpeningTag( TQString::tqfromLatin1("span"), TQString::tqfromLatin1("style=\"%1\"").tqarg( style ) ); opened = true; } @@ -150,8 +150,8 @@ GaduRichTextFormat::convertToGaduMessage( const Kopete::Message& message ) output->rtf.resize(0); // test first if there is any HTML formating in it - if( htmlString.find( TQString::fromLatin1(" -1 ) { - TQRegExp findTags( TQString::fromLatin1("(.*)") ); + if( htmlString.find( TQString::tqfromLatin1(" -1 ) { + TQRegExp findTags( TQString::tqfromLatin1("(.*)") ); findTags.setMinimal( true ); int pos = 0; int lastpos = 0; @@ -198,7 +198,7 @@ GaduRichTextFormat::convertToGaduMessage( const Kopete::Message& message ) return NULL; } - TQString rep = TQString("%2" ).arg( styleHTML ).arg( replacement ); + TQString rep = TQString("%2" ).tqarg( styleHTML ).tqarg( replacement ); htmlString.replace( findTags.pos( 0 ), rep.length(), replacement ); replacement = unescapeGaduMessage( replacement ); @@ -226,16 +226,16 @@ GaduRichTextFormat::convertToGaduMessage( const Kopete::Message& message ) void GaduRichTextFormat::parseAttributes( const TQString attribute, const TQString value ) { - if( attribute == TQString::fromLatin1("color") ) { + if( attribute == TQString::tqfromLatin1("color") ) { color.setNamedColor( value ); } - if( attribute == TQString::fromLatin1("font-weight") && value == TQString::fromLatin1("600") ) { + if( attribute == TQString::tqfromLatin1("font-weight") && value == TQString::tqfromLatin1("600") ) { rtfs.font |= GG_FONT_BOLD; } - if( attribute == TQString::fromLatin1("text-decoration") && value == TQString::fromLatin1("underline") ) { + if( attribute == TQString::tqfromLatin1("text-decoration") && value == TQString::tqfromLatin1("underline") ) { rtfs.font |= GG_FONT_UNDERLINE ; } - if( attribute == TQString::fromLatin1("font-style") && value == TQString::fromLatin1("italic") ) { + if( attribute == TQString::tqfromLatin1("font-style") && value == TQString::tqfromLatin1("italic") ) { rtfs.font |= GG_FONT_ITALIC; } } @@ -263,14 +263,14 @@ GaduRichTextFormat::insertRtf( uint position) // append font description rtfs.position = position; uint csize = rtf.size(); - if ( rtf.resize( csize + sizeof( gg_msg_richtext_format ) ) == FALSE ) { + if ( rtf.tqresize( csize + sizeof( gg_msg_richtext_format ) ) == FALSE ) { return false; }; memcpy( rtf.data() + csize, &rtfs, sizeof( rtfs ) ); // append color description, if color has changed if ( rtfs.font & GG_FONT_COLOR ) { csize = rtf.size(); - if ( rtf.resize( csize + sizeof( gg_msg_richtext_color ) ) == FALSE ) { + if ( rtf.tqresize( csize + sizeof( gg_msg_richtext_color ) ) == FALSE ) { return false; }; memcpy( rtf.data() + csize, &rtcs, sizeof( rtcs ) ); @@ -282,10 +282,10 @@ GaduRichTextFormat::insertRtf( uint position) TQString GaduRichTextFormat::escapeBody( TQString& input ) { - input.replace( '<', TQString::fromLatin1("<") ); - input.replace( '>', TQString::fromLatin1(">") ); - input.replace( '\n', TQString::fromLatin1( "
" ) ); - input.replace( '\t', TQString::fromLatin1( "    " ) ); - input.replace( TQRegExp( TQString::fromLatin1( "\\s\\s" ) ), TQString::fromLatin1( "  " ) ); + input.replace( '<', TQString::tqfromLatin1("<") ); + input.replace( '>', TQString::tqfromLatin1(">") ); + input.replace( '\n', TQString::tqfromLatin1( "
" ) ); + input.replace( '\t', TQString::tqfromLatin1( "    " ) ); + input.replace( TQRegExp( TQString::tqfromLatin1( "\\s\\s" ) ), TQString::tqfromLatin1( "  " ) ); return input; } diff --git a/kopete/protocols/gadu/gadusession.cpp b/kopete/protocols/gadu/gadusession.cpp index a0cf70d6..a9a84691 100644 --- a/kopete/protocols/gadu/gadusession.cpp +++ b/kopete/protocols/gadu/gadusession.cpp @@ -30,7 +30,7 @@ #include "kopetemessage.h" #include -#include +#include #include #include "gadurichtextformat.h" @@ -279,7 +279,7 @@ GaduSession::sendMessage( uin_t recipient, const Kopete::Message& msg, int msgCl } int -GaduSession::changeStatus( int status, bool forFriends ) +GaduSession::changetqStatus( int status, bool forFriends ) { kdDebug(14101)<<"## Changing to "<fromUnicode( query.city ) ); } if ( ageFrom || ageTo ) { - TQString yearFrom = TQString::number( TQDate::currentDate().year() - ageFrom ); - TQString yearTo = TQString::number( TQDate::currentDate().year() - ageTo ); + TQString yearFrom = TQString::number( TQDate::tqcurrentDate().year() - ageFrom ); + TQString yearTo = TQString::number( TQDate::tqcurrentDate().year() - ageTo ); if ( ageFrom && ageTo ) { gg_pubdir50_add( searchRequest, GG_PUBDIR50_BIRTHYEAR, @@ -490,7 +490,7 @@ GaduSession::sendResult( gg_pubdir50_t result ) resultLine.status = stat.toInt(); age = resultLine.age.toInt(); if ( age ) { - resultLine.age = TQString::number( TQDate::currentDate().year() - age ); + resultLine.age = TQString::number( TQDate::tqcurrentDate().year() - age ); } else { resultLine.age.truncate( 0 ); @@ -617,7 +617,7 @@ GaduSession::errorDescription( int err ) case GG_ERROR_WRITING: return i18n( "Writing error." ); default: - return i18n( "Unknown error number %1." ).arg( TQString::number( (unsigned int)err ) ); + return i18n( "Unknown error number %1." ).tqarg( TQString::number( (unsigned int)err ) ); } } @@ -642,7 +642,7 @@ GaduSession::failureDescription( gg_failure_t f ) case GG_FAILURE_TLS: return i18n( "Unable to connect over encrypted channel.\nTry to turn off encryption support in Gadu account settings and reconnect." ); default: - return i18n( "Unknown error number %1." ).arg( TQString::number( (unsigned int)f ) ); + return i18n( "Unknown error number %1." ).tqarg( TQString::number( (unsigned int)f ) ); } } diff --git a/kopete/protocols/gadu/gadusession.h b/kopete/protocols/gadu/gadusession.h index 747163e1..7f732749 100644 --- a/kopete/protocols/gadu/gadusession.h +++ b/kopete/protocols/gadu/gadusession.h @@ -124,7 +124,7 @@ public slots: int addNotify( uin_t ); int removeNotify( uin_t ); int sendMessage( uin_t recipient, const Kopete::Message& msg, int msgClass ); - int changeStatus( int, bool forFriends = false ); + int changetqStatus( int, bool forFriends = false ); int changeStatusDescription( int, const TQString&, bool forFriends = false ); int ping(); diff --git a/kopete/protocols/gadu/ui/gaduadd.ui b/kopete/protocols/gadu/ui/gaduadd.ui index e51209c6..7fa193d6 100644 --- a/kopete/protocols/gadu/ui/gaduadd.ui +++ b/kopete/protocols/gadu/ui/gaduadd.ui @@ -18,7 +18,7 @@
- layout39 + tqlayout39 @@ -45,7 +45,7 @@ false - + AlignVCenter @@ -78,13 +78,13 @@ <i>(for example: 1234567)</i> - + AlignVCenter|AlignRight - layout10 + tqlayout10 @@ -92,7 +92,7 @@ - layout8 + tqlayout8 @@ -223,7 +223,7 @@ - layout9 + tqlayout9 diff --git a/kopete/protocols/gadu/ui/gaduawayui.ui b/kopete/protocols/gadu/ui/gaduawayui.ui index 70600eb1..de6b1b81 100644 --- a/kopete/protocols/gadu/ui/gaduawayui.ui +++ b/kopete/protocols/gadu/ui/gaduawayui.ui @@ -33,7 +33,7 @@ - layout3 + tqlayout3 @@ -44,7 +44,7 @@ statusGroup_ - Status + tqStatus Choose status, by default present status is selected. @@ -57,7 +57,7 @@ Choosing Offline status will disconnect you, with given description. - layout2 + tqlayout2 @@ -137,7 +137,7 @@ Choosing Offline status will disconnect you, with given description. - layout278 + tqlayout278 diff --git a/kopete/protocols/gadu/ui/gadueditaccountui.ui b/kopete/protocols/gadu/ui/gadueditaccountui.ui index 79722aa0..ff165d35 100644 --- a/kopete/protocols/gadu/ui/gadueditaccountui.ui +++ b/kopete/protocols/gadu/ui/gadueditaccountui.ui @@ -58,7 +58,7 @@ - layout8 + tqlayout8 @@ -158,7 +158,7 @@ 0 - + 0 0 @@ -168,7 +168,7 @@ To connect to the Gadu-Gadu network, you will need a Gadu-Gadu account.<br><br> If you do not currently have an account, please click the button to create one. - + WordBreak|AlignVCenter @@ -201,7 +201,7 @@ If you do not currently have an account, please click the button to create one.< Expanding - + 20 80 @@ -231,7 +231,7 @@ If you do not currently have an account, please click the button to create one.< Expanding - + 20 160 @@ -265,7 +265,7 @@ If you do not currently have an account, please click the button to create one.< - layout65 + tqlayout65 @@ -413,7 +413,7 @@ If you do not currently have an account, please click the button to create one.< - layout9 + tqlayout9 @@ -421,7 +421,7 @@ If you do not currently have an account, please click the button to create one.< - layout8 + tqlayout8 @@ -479,7 +479,7 @@ If you do not currently have an account, please click the button to create one.< - layout7 + tqlayout7 @@ -570,7 +570,7 @@ If you do not currently have an account, please click the button to create one.< Expanding - + 20 30 @@ -579,7 +579,7 @@ If you do not currently have an account, please click the button to create one.< - layout12 + tqlayout12 @@ -587,7 +587,7 @@ If you do not currently have an account, please click the button to create one.< - layout11 + tqlayout11 @@ -613,7 +613,7 @@ If you do not currently have an account, please click the button to create one.< - layout10 + tqlayout10 @@ -686,7 +686,7 @@ If you do not currently have an account, please click the button to create one.< - layout33 + tqlayout33 @@ -694,7 +694,7 @@ If you do not currently have an account, please click the button to create one.< - layout32 + tqlayout32 @@ -780,7 +780,7 @@ If you do not currently have an account, please click the button to create one.< Expanding - + 20 180 @@ -797,7 +797,7 @@ If you do not currently have an account, please click the button to create one.< - + AlignCenter diff --git a/kopete/protocols/gadu/ui/gaduregisteraccountui.ui b/kopete/protocols/gadu/ui/gaduregisteraccountui.ui index fcb5b1c3..9397854c 100644 --- a/kopete/protocols/gadu/ui/gaduregisteraccountui.ui +++ b/kopete/protocols/gadu/ui/gaduregisteraccountui.ui @@ -21,7 +21,7 @@ - layout33 + tqlayout33 @@ -39,13 +39,13 @@ 0 - + 16 16 - + 32767 32767 @@ -112,13 +112,13 @@ 0 - + 16 16 - + 32767 32767 @@ -157,13 +157,13 @@ 0 - + 16 16 - + 32767 32767 @@ -216,13 +216,13 @@ 0 - + 16 16 - + 32767 32767 @@ -283,7 +283,7 @@ Expanding - + 23 20 @@ -302,13 +302,13 @@ 13 - + 256 64 - + 256 64 @@ -350,7 +350,7 @@ Expanding - + 22 20 @@ -374,7 +374,7 @@ <i>Type the letters and numbers shown in the image above into the <b>Verification Sequence</b> field. This is used to prevent automated registration abuse.</i> - + WordBreak|AlignTop @@ -388,7 +388,7 @@ Expanding - + 20 16 @@ -402,7 +402,7 @@ - + AlignCenter diff --git a/kopete/protocols/gadu/ui/gadusearch.ui b/kopete/protocols/gadu/ui/gadusearch.ui index e747e952..d9c39029 100644 --- a/kopete/protocols/gadu/ui/gadusearch.ui +++ b/kopete/protocols/gadu/ui/gadusearch.ui @@ -50,7 +50,7 @@
- layout38 + tqlayout38 @@ -58,7 +58,7 @@ - layout36 + tqlayout36 @@ -66,7 +66,7 @@ - layout31 + tqlayout31 @@ -74,7 +74,7 @@ - layout29 + tqlayout29 @@ -116,7 +116,7 @@ - layout30 + tqlayout30 @@ -148,7 +148,7 @@ - layout34 + tqlayout34 @@ -220,7 +220,7 @@ Expanding - + 297 21 @@ -231,7 +231,7 @@ - layout32 + tqlayout32 @@ -282,7 +282,7 @@ - layout37 + tqlayout37 @@ -290,7 +290,7 @@ - layout33 + tqlayout33 @@ -343,7 +343,7 @@ - layout35 + tqlayout35 @@ -367,7 +367,7 @@ Expanding - + 224 21 @@ -386,7 +386,7 @@ Expanding - + 20 21 @@ -411,7 +411,7 @@ - Status + tqStatus image0 @@ -527,13 +527,13 @@ 0 - + 512 256 - + 640 512 diff --git a/kopete/protocols/groupwise/gwaccount.cpp b/kopete/protocols/groupwise/gwaccount.cpp index d6d89a25..cb9c7928 100644 --- a/kopete/protocols/groupwise/gwaccount.cpp +++ b/kopete/protocols/groupwise/gwaccount.cpp @@ -308,13 +308,13 @@ void GroupWiseAccount::performConnectWithPassword( const TQString &password ) // contact details listed TQObject::connect( m_client, TQT_SIGNAL( contactUserDetailsReceived( const GroupWise::ContactDetails & ) ), TQT_SLOT( receiveContactUserDetails( const GroupWise::ContactDetails & ) ) ); // contact status changed - TQObject::connect( m_client, TQT_SIGNAL( statusReceived( const TQString &, TQ_UINT16, const TQString & ) ), TQT_SLOT( receiveStatus( const TQString &, TQ_UINT16 , const TQString & ) ) ); + TQObject::connect( m_client, TQT_SIGNAL( statusReceived( const TQString &, TQ_UINT16, const TQString & ) ), TQT_SLOT( receivetqStatus( const TQString &, TQ_UINT16 , const TQString & ) ) ); // incoming message TQObject::connect( m_client, TQT_SIGNAL( messageReceived( const ConferenceEvent & ) ), TQT_SLOT( handleIncomingMessage( const ConferenceEvent & ) ) ); // auto reply to one of our messages because the recipient is away TQObject::connect( m_client, TQT_SIGNAL( autoReplyReceived( const ConferenceEvent & ) ), TQT_SLOT( handleIncomingMessage( const ConferenceEvent & ) ) ); - TQObject::connect( m_client, TQT_SIGNAL( ourStatusChanged( GroupWise::Status, const TQString &, const TQString & ) ), TQT_SLOT( changeOurStatus( GroupWise::Status, const TQString &, const TQString & ) ) ); + TQObject::connect( m_client, TQT_SIGNAL( ourStatusChanged( GroupWise::tqStatus, const TQString &, const TQString & ) ), TQT_SLOT( changeOurtqStatus( GroupWise::tqStatus, const TQString &, const TQString & ) ) ); // conference events TQObject::connect( m_client, TQT_SIGNAL( conferenceCreated( const int, const GroupWise::ConferenceGuid & ) ), @@ -364,7 +364,7 @@ void GroupWiseAccount::performConnectWithPassword( const TQString &password ) void GroupWiseAccount::slotMessageSendingFailed() { KMessageBox::queuedMessageBox( Kopete::UI::Global::mainWidget(), KMessageBox::Sorry, - i18n("Message Sending Failed", "Kopete was not able to send the last message sent on account '%1'.\nIf possible, please send the console output from Kopete to for analysis." ).arg( accountId() ) , i18n ("Unable to Send Message on Account '%1'").arg( accountId() ) ); + i18n("Message Sending Failed", "Kopete was not able to send the last message sent on account '%1'.\nIf possible, please send the console output from Kopete to for analysis." ).tqarg( accountId() ) , i18n ("Unable to Send Message on Account '%1'").tqarg( accountId() ) ); } void GroupWiseAccount::setOnlineStatus( const Kopete::OnlineStatus& status, const TQString &reason ) @@ -390,9 +390,9 @@ void GroupWiseAccount::setOnlineStatus( const Kopete::OnlineStatus& status, cons // Appear Offline is achieved by explicitly setting the status to offline, // rather than disconnecting as when really going offline. if ( status == protocol()->groupwiseAppearOffline ) - m_client->setStatus( GroupWise::Offline, reason, configGroup()->readEntry( "AutoReply" ) ); + m_client->settqStatus( GroupWise::Offline, reason, configGroup()->readEntry( "AutoReply" ) ); else - m_client->setStatus( ( GroupWise::Status )status.internalStatus(), reason, configGroup()->readEntry( "AutoReply" ) ); + m_client->settqStatus( ( GroupWise::tqStatus )status.internalStatus(), reason, configGroup()->readEntry( "AutoReply" ) ); } // going online else @@ -474,11 +474,11 @@ void GroupWiseAccount::slotLoggedIn() // set local status display myself()->setOnlineStatus( protocol()->groupwiseAvailable ); // set status on server - if ( initialStatus() != Kopete::OnlineStatus(Kopete::OnlineStatus::Online) && - ( ( GroupWise::Status )initialStatus().internalStatus() != GroupWise::Unknown ) ) + if ( initialtqStatus() != Kopete::OnlineStatus(Kopete::OnlineStatus::Online) && + ( ( GroupWise::tqStatus )initialtqStatus().internalStatus() != GroupWise::Unknown ) ) { - kdDebug( GROUPWISE_DEBUG_GLOBAL ) << "Initial status is not online, setting status to " << initialStatus().internalStatus() << endl; - m_client->setStatus( ( GroupWise::Status )initialStatus().internalStatus(), m_initialReason, configGroup()->readEntry( "AutoReply" ) ); + kdDebug( GROUPWISE_DEBUG_GLOBAL ) << "Initial status is not online, setting status to " << initialtqStatus().internalStatus() << endl; + m_client->settqStatus( ( GroupWise::tqStatus )initialtqStatus().internalStatus(), m_initialReason, configGroup()->readEntry( "AutoReply" ) ); } } @@ -566,7 +566,7 @@ void GroupWiseAccount::reconcileOfflineChanges() break; } else - kdDebug( GROUPWISE_DEBUG_GLOBAL ) << "metacontact " << c->metaContact()->displayName( ) << "has multiple children and group membership, and contact " << c->dn() << " was removed from one group on the server." << endl; + kdDebug( GROUPWISE_DEBUG_GLOBAL ) << "metacontact " << c->metaContact()->displayName( ) << "has multiple tqchildren and group membership, and contact " << c->dn() << " was removed from one group on the server." << endl; conflicts = true; } } // @@ -647,7 +647,7 @@ void GroupWiseAccount::slotConnError() { kdDebug ( GROUPWISE_DEBUG_GLOBAL ) << k_funcinfo << endl; KMessageBox::queuedMessageBox( Kopete::UI::Global::mainWidget(), KMessageBox::Sorry, - i18n( "Error shown when connecting failed", "Kopete was not able to connect to the GroupWise Messenger server for account '%1'.\nPlease check your server and port settings and try again." ).arg( accountId() ) , i18n ("Unable to Connect '%1'").arg( accountId() ) ); + i18n( "Error shown when connecting failed", "Kopete was not able to connect to the GroupWise Messenger server for account '%1'.\nPlease check your server and port settings and try again." ).tqarg( accountId() ) , i18n ("Unable to Connect '%1'").tqarg( accountId() ) ); disconnect(); } @@ -664,7 +664,7 @@ void GroupWiseAccount::slotCSDisconnected() TQValueList::ConstIterator it; for ( it = m_chatSessions.begin() ; it != m_chatSessions.end(); ++it ) (*it)->setClosed(); - setAllContactsStatus( protocol()->groupwiseOffline ); + setAllContactstqStatus( protocol()->groupwiseOffline ); client()->close(); } @@ -807,8 +807,8 @@ void GroupWiseAccount::handleIncomingMessage( const ConferenceEvent & message ) // if we receive a message from an Offline contact, they are probably blocking us // but we have to set their status to Unknown so that we can reply to them. - kdDebug( GROUPWISE_DEBUG_GLOBAL) << "sender is: " << sender->onlineStatus().description() << endl; - if ( sender->onlineStatus() == protocol()->groupwiseOffline ) { + kdDebug( GROUPWISE_DEBUG_GLOBAL) << "sender is: " << sender->onlinetqStatus().description() << endl; + if ( sender->onlinetqStatus() == protocol()->groupwiseOffline ) { sender->setMessageReceivedOffline( true ); } @@ -823,19 +823,19 @@ void GroupWiseAccount::handleIncomingMessage( const ConferenceEvent & message ) { TQString prefix = i18n("Prefix used for automatically generated auto-reply" " messages when the contact is Away, contains contact's name", - "Auto reply from %1: " ).arg( sender->metaContact()->displayName() ); + "Auto reply from %1: " ).tqarg( sender->metaContact()->displayName() ); messageMunged = prefix + message.message; } if ( message.type == GroupWise::ReceivedBroadcast ) { TQString prefix = i18n("Prefix used for broadcast messages", - "Broadcast message from %1: " ).arg( sender->metaContact()->displayName() ); + "Broadcast message from %1: " ).tqarg( sender->metaContact()->displayName() ); messageMunged = prefix + message.message; } if ( message.type == GroupWise::ReceivedSystemBroadcast ) { TQString prefix = i18n("Prefix used for system broadcast messages", - "System Broadcast message from %1: " ).arg( sender->metaContact()->displayName() ); + "System Broadcast message from %1: " ).tqarg( sender->metaContact()->displayName() ); messageMunged = prefix + message.message; } @@ -1040,14 +1040,14 @@ GroupWiseContact * GroupWiseAccount::createTemporaryContact( const TQString & dn Kopete::ContactList::self()->addMetaContact( metaContact ); // the contact details probably don't contain status - but we can ask for it if ( details.status == GroupWise::Invalid && isConnected() ) - m_client->requestStatus( details.dn ); + m_client->requesttqStatus( details.dn ); } else kdDebug( GROUPWISE_DEBUG_GLOBAL ) << "Notified of existing temporary contact DN: " << details.dn << endl; return c; } -void GroupWiseAccount::receiveStatus( const TQString & contactId, TQ_UINT16 status, const TQString &awayMessage ) +void GroupWiseAccount::receivetqStatus( const TQString & contactId, TQ_UINT16 status, const TQString &awayMessage ) { kdDebug( GROUPWISE_DEBUG_GLOBAL ) << k_funcinfo << "got status for: " << contactId << ", status: " << status << ", away message: " << awayMessage << endl; GroupWiseContact * c = contactForDN( contactId ); @@ -1062,7 +1062,7 @@ void GroupWiseAccount::receiveStatus( const TQString & contactId, TQ_UINT16 stat kdDebug( GROUPWISE_DEBUG_GLOBAL ) << " couldn't find " << contactId << endl; } -void GroupWiseAccount::changeOurStatus( GroupWise::Status status, const TQString & awayMessage, const TQString & autoReply ) +void GroupWiseAccount::changeOurtqStatus( GroupWise::tqStatus status, const TQString & awayMessage, const TQString & autoReply ) { if ( status == GroupWise::Offline ) myself()->setOnlineStatus( protocol()->groupwiseAppearOffline ); @@ -1189,7 +1189,7 @@ void GroupWiseAccount::receiveContactCreated() else { client()->requestDetails( TQStringList( cct->dn() ) ); - client()->requestStatus( cct->dn() ); + client()->requesttqStatus( cct->dn() ); } } else @@ -1210,7 +1210,7 @@ void GroupWiseAccount::receiveContactCreated() KMessageBox::queuedMessageBox( Kopete::UI::Global::mainWidget (), KMessageBox::Error, i18n ("The contact %1 could not be added to the contact list, with error message: %2"). - arg(cct->userId() ).arg( cct->statusString() ), + tqarg(cct->userId() ).tqarg( cct->statusString() ), i18n ("Error Adding Contact") ); } } @@ -1255,8 +1255,8 @@ void GroupWiseAccount::receiveContactDeleted( const ContactItem & instance ) void GroupWiseAccount::slotConnectedElsewhere() { - KPassivePopup::message( i18n ("Signed in as %1 Elsewhere").arg( accountId() ), - i18n( "The parameter is the user's own account id for this protocol", "You have been disconnected from GroupWise Messenger because you signed in as %1 elsewhere" ).arg( accountId() ) , Kopete::UI::Global::mainWidget() ); + KPassivePopup::message( i18n ("Signed in as %1 Elsewhere").tqarg( accountId() ), + i18n( "The parameter is the user's own account id for this protocol", "You have been disconnected from GroupWise Messenger because you signed in as %1 elsewhere" ).tqarg( accountId() ) , Kopete::UI::Global::mainWidget() ); disconnect(); } @@ -1364,7 +1364,7 @@ void GroupWiseAccount::receiveInviteNotify( const ConferenceEvent & event ) c = createTemporaryContact( event.user ); sess->addInvitee( c ); - Kopete::Message declined = Kopete::Message( myself(), sess->members(), i18n("%1 has been invited to join this conversation.").arg( c->metaContact()->displayName() ), Kopete::Message::Internal, Kopete::Message::PlainText ); + Kopete::Message declined = Kopete::Message( myself(), sess->members(), i18n("%1 has been invited to join this conversation.").tqarg( c->metaContact()->displayName() ), Kopete::Message::Internal, Kopete::Message::PlainText ); sess->appendMessage( declined ); } else @@ -1400,7 +1400,7 @@ void GroupWiseAccount::slotSetAutoReply() void GroupWiseAccount::slotTestRTFize() { /* bool ok; - const TQString query = TQString::fromLatin1("Enter a string to rtfize:"); + const TQString query = TQString::tqfromLatin1("Enter a string to rtfize:"); TQString testText = KLineEditDlg::getText( query, TQString(), &ok, Kopete::UI::Global::mainWidget() ); if ( ok ) kdDebug( GROUPWISE_DEBUG_GLOBAL ) << "Converted text is: '" << protocol()->rtfizeText( testText ) << "'" << endl;*/ diff --git a/kopete/protocols/groupwise/gwaccount.h b/kopete/protocols/groupwise/gwaccount.h index ff6cca19..f05f00a1 100644 --- a/kopete/protocols/groupwise/gwaccount.h +++ b/kopete/protocols/groupwise/gwaccount.h @@ -225,11 +225,11 @@ protected slots: /** * A contact changed status */ - void receiveStatus( const TQString &, TQ_UINT16, const TQString & ); + void receivetqStatus( const TQString &, TQ_UINT16, const TQString & ); /** * Our status changed on the server */ - void changeOurStatus( GroupWise::Status, const TQString &, const TQString & ); + void changeOurtqStatus( GroupWise::tqStatus, const TQString &, const TQString & ); /** * Called when we've been disconnected for logging in as this user somewhere else */ @@ -307,7 +307,7 @@ protected: /** * Sends a status message to the server - called by the status specific slotGoAway etc */ - //void setStatus( GroupWise::Status status, const TQString & reason = TQString() ); + //void settqStatus( GroupWise::tqStatus status, const TQString & reason = TQString() ); int handleTLSWarning (int warning, TQString server, TQString accountId); diff --git a/kopete/protocols/groupwise/gwaddui.ui b/kopete/protocols/groupwise/gwaddui.ui index 25be8093..6302f869 100644 --- a/kopete/protocols/groupwise/gwaddui.ui +++ b/kopete/protocols/groupwise/gwaddui.ui @@ -24,7 +24,7 @@ - layout2 + tqlayout2 @@ -100,7 +100,7 @@ Expanding - + 20 100 diff --git a/kopete/protocols/groupwise/gwcontact.cpp b/kopete/protocols/groupwise/gwcontact.cpp index 1aef7110..11f2d23b 100644 --- a/kopete/protocols/groupwise/gwcontact.cpp +++ b/kopete/protocols/groupwise/gwcontact.cpp @@ -134,9 +134,9 @@ bool GroupWiseContact::isReachable() // in GWChatSession // (This is a GroupWise rule, not a problem in Kopete) - if ( account()->isConnected() && ( isOnline() || messageReceivedOffline() ) /* && account()->myself()->onlineStatus() != protocol()->groupwiseAppearOffline */) + if ( account()->isConnected() && ( isOnline() || messageReceivedOffline() ) /* && account()->myself()->onlinetqStatus() != protocol()->groupwiseAppearOffline */) return true; - if ( !account()->isConnected()/* || account()->myself()->onlineStatus() == protocol()->groupwiseAppearOffline*/ ) + if ( !account()->isConnected()/* || account()->myself()->onlinetqStatus() == protocol()->groupwiseAppearOffline*/ ) return false; // fallback, something went wrong @@ -222,22 +222,22 @@ void GroupWiseContact::receivePrivacyChanged( const TQString & dn, bool allow ) { Q_UNUSED( allow ); if ( dn == m_dn ) // set the online status back to itself. this will set the blocking state - setOnlineStatus( this->onlineStatus() ); + setOnlineStatus( this->onlinetqStatus() ); } void GroupWiseContact::setOnlineStatus( const Kopete::OnlineStatus& status ) { setMessageReceivedOffline( false ); - if ( status == protocol()->groupwiseAwayIdle && status != onlineStatus() ) + if ( status == protocol()->groupwiseAwayIdle && status != onlinetqStatus() ) setIdleTime( 1 ); - else if ( onlineStatus() == protocol()->groupwiseAwayIdle && status != onlineStatus() ) + else if ( onlinetqStatus() == protocol()->groupwiseAwayIdle && status != onlinetqStatus() ) setIdleTime( 0 ); if ( account()->isContactBlocked( m_dn ) && status.internalStatus() < 15 ) { Kopete::Contact::setOnlineStatus(Kopete::OnlineStatus(status.status() , (status.weight()==0) ? 0 : (status.weight() -1) , - protocol() , status.internalStatus()+15 , TQString::fromLatin1("msn_blocked"), - i18n("%1|Blocked").arg( status.description() ) ) ); + protocol() , status.internalStatus()+15 , TQString::tqfromLatin1("msn_blocked"), + i18n("%1|Blocked").tqarg( status.description() ) ) ); } else { diff --git a/kopete/protocols/groupwise/gwmessagemanager.cpp b/kopete/protocols/groupwise/gwmessagemanager.cpp index 100bbfdf..424a1545 100644 --- a/kopete/protocols/groupwise/gwmessagemanager.cpp +++ b/kopete/protocols/groupwise/gwmessagemanager.cpp @@ -196,7 +196,7 @@ void GroupWiseChatSession::slotCreationFailed( const int failedId, const int sta { kdDebug ( GROUPWISE_DEBUG_GLOBAL ) << k_funcinfo << " couldn't start a chat, no GUID.\n" << endl; //emit creationFailed(); - Kopete::Message failureNotify = Kopete::Message( myself(), members(), i18n("An error occurred when trying to start a chat: %1").arg( statusCode ), Kopete::Message::Internal, Kopete::Message::PlainText); + Kopete::Message failureNotify = Kopete::Message( myself(), members(), i18n("An error occurred when trying to start a chat: %1").tqarg( statusCode ), Kopete::Message::Internal, Kopete::Message::PlainText); appendMessage( failureNotify ); setClosed(); } @@ -206,7 +206,7 @@ void GroupWiseChatSession::slotSendTypingNotification( bool typing ) { // only send a notification if we've got a conference going and we are not Appear Offline if ( !m_guid.isEmpty() && m_memberCount && - ( account()->myself()->onlineStatus() != GroupWiseProtocol::protocol()->groupwiseAppearOffline ) ) + ( account()->myself()->onlinetqStatus() != GroupWiseProtocol::protocol()->groupwiseAppearOffline ) ) account()->client()->sendTyping( guid(), typing ); } @@ -221,7 +221,7 @@ void GroupWiseChatSession::slotMessageSent( Kopete::Message & message, Kopete::C appendMessage( failureNotify ); messageSucceeded(); } - else*/ if ( account()->myself()->onlineStatus() == ( static_cast( protocol() ) )->groupwiseAppearOffline ) + else*/ if ( account()->myself()->onlinetqStatus() == ( static_cast( protocol() ) )->groupwiseAppearOffline ) { Kopete::Message failureNotify = Kopete::Message( myself(), members(), i18n("Your message could not be sent. You cannot send messages while your status is Appear Offline. "), Kopete::Message::Internal, Kopete::Message::PlainText); appendMessage( failureNotify ); @@ -330,7 +330,7 @@ void GroupWiseChatSession::slotInviteContact( Kopete::Contact * contact ) } else { - TQWidget * w = view(false) ? dynamic_cast( view(false)->mainWidget()->topLevelWidget() ) : 0L; + TQWidget * w = view(false) ? dynamic_cast( view(false)->mainWidget()->tqtopLevelWidget() ) : 0L; bool ok; TQRegExp rx( ".*" ); @@ -358,7 +358,7 @@ void GroupWiseChatSession::slotInviteOtherContact() if ( !m_searchDlg ) { // show search dialog - TQWidget * w = ( view(false) ? dynamic_cast( view(false)->mainWidget()->topLevelWidget() ) : + TQWidget * w = ( view(false) ? dynamic_cast( view(false)->mainWidget()->tqtopLevelWidget() ) : Kopete::UI::Global::mainWidget() ); m_searchDlg = new KDialogBase( w, "invitesearchdialog", false, i18n( "Search for Contact to Invite" ), KDialogBase::Ok|KDialogBase::Cancel ); m_search = new GroupWiseContactSearch( account(), TQListView::Single, true, m_searchDlg, "invitesearchwidget" ); @@ -375,7 +375,7 @@ void GroupWiseChatSession::slotSearchedForUsers() TQValueList< ContactDetails > selected = m_search->selectedResults(); if ( selected.count() ) { - TQWidget * w = ( view(false) ? dynamic_cast( view(false)->mainWidget()->topLevelWidget() ) : + TQWidget * w = ( view(false) ? dynamic_cast( view(false)->mainWidget()->tqtopLevelWidget() ) : Kopete::UI::Global::mainWidget() ); ContactDetails cd = selected.first(); bool ok; @@ -399,7 +399,7 @@ void GroupWiseChatSession::addInvitee( const Kopete::Contact * c ) Kopete::MetaContact * inviteeMC = new Kopete::MetaContact(); inviteeMC->setDisplayName( c->metaContact()->displayName() + pending ); GroupWiseContact * invitee = new GroupWiseContact( account(), c->contactId() + " " + pending, inviteeMC, 0, 0, 0 ); - invitee->setOnlineStatus( c->onlineStatus() ); + invitee->setOnlineStatus( c->onlinetqStatus() ); // TODO: we could set all the placeholder's properties etc here too addContact( invitee, true ); m_invitees.append( invitee ); @@ -468,7 +468,7 @@ void GroupWiseChatSession::inviteDeclined( GroupWiseContact * c ) TQString from = c->metaContact()->displayName(); Kopete::Message declined = Kopete::Message( myself(), members(), - i18n("%1 has rejected an invitation to join this conversation.").arg( from ), + i18n("%1 has rejected an invitation to join this conversation.").tqarg( from ), Kopete::Message::Internal, Kopete::Message::PlainText ); appendMessage( declined ); } @@ -501,14 +501,14 @@ void GroupWiseChatSession::updateArchiving() void GroupWiseChatSession::slotShowSecurity() { - TQWidget * w = ( view(false) ? dynamic_cast( view(false)->mainWidget()->topLevelWidget() ) : + TQWidget * w = ( view(false) ? dynamic_cast( view(false)->mainWidget()->tqtopLevelWidget() ) : Kopete::UI::Global::mainWidget() ); KMessageBox::queuedMessageBox( w, KMessageBox::Information, i18n( "This conversation is secured with SSL security." ), i18n("Security Status" ) ); } void GroupWiseChatSession::slotShowArchiving() { - TQWidget * w = ( view(false) ? dynamic_cast( view(false)->mainWidget()->topLevelWidget() ) : + TQWidget * w = ( view(false) ? dynamic_cast( view(false)->mainWidget()->tqtopLevelWidget() ) : Kopete::UI::Global::mainWidget() ); KMessageBox::queuedMessageBox( w, KMessageBox::Information, i18n( "This conversation is being logged administratively." ), i18n("Archiving Status" ) ); } diff --git a/kopete/protocols/groupwise/gwprotocol.cpp b/kopete/protocols/groupwise/gwprotocol.cpp index 68a31fb4..0b4d351a 100644 --- a/kopete/protocols/groupwise/gwprotocol.cpp +++ b/kopete/protocols/groupwise/gwprotocol.cpp @@ -173,7 +173,7 @@ TQString GroupWiseProtocol::rtfizeText( const TQString & plain ) // of multi-byte UTF-8 characters 2 to 6 bytes long (with first byte > 0x7f), these are recoded as 32 bit values, escaped as \u? strings // vanilla RTF "envelope" that doesn't say much but causes other clients to accept the message - TQString rtfTemplate = TQString::fromLatin1("{\\rtf1\\ansi\n" + TQString rtfTemplate = TQString::tqfromLatin1("{\\rtf1\\ansi\n" "{\\fonttbl{\\f0\\fnil Unknown;}}\n" "{\\colortbl ;\\red0\\green0\\blue0;}\n" "\\uc1\\cf1\\f0\\fs18 %1\\par\n}"); @@ -190,7 +190,7 @@ TQString GroupWiseProtocol::rtfizeText( const TQString & plain ) case '{': case '}': case '\\': - outputText.append( TQString( "\\%1" ).arg( TQChar( current ) ) ); + outputText.append( TQString( "\\%1" ).tqarg( TQChar( current ) ) ); break; case '\n': outputText.append( "\\par " ); @@ -253,12 +253,12 @@ TQString GroupWiseProtocol::rtfizeText( const TQString & plain ) bytesEncoded = 1; } index += bytesEncoded; - escapedUnicodeChar = TQString("\\u%1?").arg( ucs4Char ); - kdDebug( GROUPWISE_DEBUG_GLOBAL ) << "unicode escaped char: " << escapedUnicodeChar << endl; + escapedUnicodeChar = TQString("\\u%1?").tqarg( ucs4Char ); + kdDebug( GROUPWISE_DEBUG_GLOBAL ) << "tqunicode escaped char: " << escapedUnicodeChar << endl; outputText.append( escapedUnicodeChar ); } } - return rtfTemplate.arg( outputText ); + return rtfTemplate.tqarg( outputText ); } TQString GroupWiseProtocol::dnToDotted( const TQString & dn ) diff --git a/kopete/protocols/groupwise/libgroupwise/client.cpp b/kopete/protocols/groupwise/libgroupwise/client.cpp index 5df0d1de..e7395157 100644 --- a/kopete/protocols/groupwise/libgroupwise/client.cpp +++ b/kopete/protocols/groupwise/libgroupwise/client.cpp @@ -63,7 +63,7 @@ public: UserDetailsManager * userDetailsMgr; PrivacyManager * privacyMgr; uint protocolVersion; - TQValueList customStatuses; + TQValueList customStatuses; TQTimer * keepAliveTimer; }; @@ -151,8 +151,8 @@ void Client::start( const TQString &host, const uint port, const TQString &userI connect( login, TQT_SIGNAL( gotPrivacySettings( bool, bool, const TQStringList &, const TQStringList & ) ), privacyManager(), TQT_SLOT( slotGotPrivacySettings( bool, bool, const TQStringList &, const TQStringList & ) ) ); - connect( login, TQT_SIGNAL( gotCustomStatus( const GroupWise::CustomStatus & ) ), - TQT_SLOT( lt_gotCustomStatus( const GroupWise::CustomStatus & ) ) ); + connect( login, TQT_SIGNAL( gotCustomtqStatus( const GroupWise::CustomtqStatus & ) ), + TQT_SLOT( lt_gotCustomtqStatus( const GroupWise::CustomtqStatus & ) ) ); connect( login, TQT_SIGNAL( gotKeepalivePeriod( int ) ), TQT_SLOT( lt_gotKeepalivePeriod( int ) ) ); @@ -185,7 +185,7 @@ int Client::port() return d->port; } -TQValueList Client::customStatuses() +TQValueList Client::customStatuses() { return d->customStatuses; } @@ -194,7 +194,7 @@ void Client::initialiseEventTasks() { // The StatusTask handles incoming status changes StatusTask * st = new StatusTask( d->root ); // FIXME - add an additional EventRoot? - connect( st, TQT_SIGNAL( gotStatus( const TQString &, TQ_UINT16, const TQString & ) ), TQT_SIGNAL( statusReceived( const TQString &, TQ_UINT16, const TQString & ) ) ); + connect( st, TQT_SIGNAL( gottqStatus( const TQString &, TQ_UINT16, const TQString & ) ), TQT_SIGNAL( statusReceived( const TQString &, TQ_UINT16, const TQString & ) ) ); // The ConferenceTask handles incoming conference events, messages, joins, leaves, etc ConferenceTask * ct = new ConferenceTask( d->root ); connect( ct, TQT_SIGNAL( message( const ConferenceEvent & ) ), TQT_SLOT( ct_messageReceived( const ConferenceEvent & ) ) ); @@ -216,9 +216,9 @@ void Client::initialiseEventTasks() connect( cont, TQT_SIGNAL( connectedElsewhere() ), TQT_SIGNAL( connectedElsewhere() ) ); } -void Client::setStatus( GroupWise::Status status, const TQString & reason, const TQString & autoReply ) +void Client::settqStatus( GroupWise::tqStatus status, const TQString & reason, const TQString & autoReply ) { - debug( TQString("Setting status to %1").arg( status ) );; + debug( TQString("Setting status to %1").tqarg( status ) );; SetStatusTask * sst = new SetStatusTask( d->root ); sst->status( status, reason, autoReply ); connect( sst, TQT_SIGNAL( finished() ), this, TQT_SLOT( sst_statusChanged() ) ); @@ -226,11 +226,11 @@ void Client::setStatus( GroupWise::Status status, const TQString & reason, const // TODO: set status change in progress flag } -void Client::requestStatus( const TQString & userDN ) +void Client::requesttqStatus( const TQString & userDN ) { GetStatusTask * gst = new GetStatusTask( d->root ); gst->userDN( userDN ); - connect( gst, TQT_SIGNAL( gotStatus( const TQString &, TQ_UINT16, const TQString & ) ), TQT_SIGNAL( statusReceived( const TQString &, TQ_UINT16, const TQString & ) ) ); + connect( gst, TQT_SIGNAL( gottqStatus( const TQString &, TQ_UINT16, const TQString & ) ), TQT_SIGNAL( statusReceived( const TQString &, TQ_UINT16, const TQString & ) ) ); gst->go( true ); } @@ -306,7 +306,7 @@ void Client::sendInvitation( const GroupWise::ConferenceGuid & guid, const TQStr // SLOTS // void Client::streamError( int error ) { - debug( TQString( "CLIENT ERROR (Error %1)" ).arg( error ) ); + debug( TQString( "CLIENT ERROR (Error %1)" ).tqarg( error ) ); } void Client::streamReadyRead() @@ -348,7 +348,7 @@ void Client::sst_statusChanged() const SetStatusTask * sst = (SetStatusTask *)sender(); if ( sst->success() ) { - emit ourStatusChanged( sst->requestedStatus(), sst->awayMessage(), sst->autoReply() ); + emit ourStatusChanged( sst->requestedtqStatus(), sst->awayMessage(), sst->autoReply() ); } } @@ -390,19 +390,19 @@ void Client::jct_joinConfCompleted() { const JoinConferenceTask * jct = ( JoinConferenceTask * )sender(); #ifdef LIBGW_DEBUG - debug( TQString( "Joined conference %1, participants are: " ).arg( jct->guid() ) ); + debug( TQString( "Joined conference %1, participants are: " ).tqarg( jct->guid() ) ); TQStringList parts = jct->participants(); for ( TQStringList::Iterator it = parts.begin(); it != parts.end(); ++it ) - debug( TQString( " - %1" ).arg(*it) ); + debug( TQString( " - %1" ).tqarg(*it) ); debug( "invitees are: " ); TQStringList invitees = jct->invitees(); for ( TQStringList::Iterator it = invitees.begin(); it != invitees.end(); ++it ) - debug( TQString( " - %1" ).arg(*it) ); + debug( TQString( " - %1" ).tqarg(*it) ); #endif emit conferenceJoined( jct->guid(), jct->participants(), jct->invitees() ); } -void Client::lt_gotCustomStatus( const GroupWise::CustomStatus & custom ) +void Client::lt_gotCustomtqStatus( const GroupWise::CustomtqStatus & custom ) { d->customStatuses.append( custom ); } @@ -431,7 +431,7 @@ TQString Client::password() TQString Client::userAgent() { - return TQString::fromLatin1( "%1/%2 (%3)" ).arg( d->clientName, d->clientVersion, d->osname ); + return TQString::tqfromLatin1( "%1/%2 (%3)" ).tqarg( d->clientName, d->clientVersion, d->osname ); } TQCString Client::ipAddress() @@ -457,7 +457,7 @@ void Client::send( Request * request ) return; } // TQString out = request.toString(); -// debug(TQString("Client: outgoing: [\n%1]\n").arg(out)); +// debug(TQString("Client: outgoing: [\n%1]\n").tqarg(out)); // xmlOutgoing(out); d->stream->write( request ); diff --git a/kopete/protocols/groupwise/libgroupwise/client.h b/kopete/protocols/groupwise/libgroupwise/client.h index 542d32eb..8bdd236d 100644 --- a/kopete/protocols/groupwise/libgroupwise/client.h +++ b/kopete/protocols/groupwise/libgroupwise/client.h @@ -92,7 +92,7 @@ fd * @param password * @param reason custom status name for away statuses * @param autoReply auto reply message for use in this status */ - void setStatus( GroupWise::Status status, const TQString & reason, const TQString & autoReply ); + void settqStatus( GroupWise::tqStatus status, const TQString & reason, const TQString & autoReply ); /** * Send a message @@ -118,7 +118,7 @@ fd * @param password /** * Request the status of a single user, for example, if they have messaged us and are not on our contact list */ - void requestStatus( const TQString & userDN ); + void requesttqStatus( const TQString & userDN ); /** * Add a contact to the contact list @@ -211,7 +211,7 @@ fd * @param password /** * Obtain the list of custom statuses stored on the server */ - TQValueList customStatuses(); + TQValueList customStatuses(); /** * Get a reference to the RequestFactory for this Client. @@ -281,7 +281,7 @@ fd * @param password /** * Our status changed on the server */ - void ourStatusChanged( GroupWise::Status status, const TQString & statusText, const TQString & autoReply ); + void ourStatusChanged( GroupWise::tqStatus status, const TQString & statusText, const TQString & autoReply ); /** CONFERENCE (MANAGEMENT) EVENTS */ /** @@ -371,7 +371,7 @@ fd * @param password /** * Receive a custom status during login and record it */ - void lt_gotCustomStatus( const GroupWise::CustomStatus & ); + void lt_gotCustomtqStatus( const GroupWise::CustomtqStatus & ); /** * Notify us of the keepalive period contained in the login response */ diff --git a/kopete/protocols/groupwise/libgroupwise/coreprotocol.cpp b/kopete/protocols/groupwise/libgroupwise/coreprotocol.cpp index 6cfa01b9..79ecf419 100644 --- a/kopete/protocols/groupwise/libgroupwise/coreprotocol.cpp +++ b/kopete/protocols/groupwise/libgroupwise/coreprotocol.cpp @@ -26,7 +26,7 @@ #include #include -#include +#include #include @@ -142,7 +142,7 @@ void CoreProtocol::addIncomingData( const TQByteArray & incomingBytes ) while ( m_in.size() && ( parsedBytes = wireToTransfer( m_in ) ) ) { transferCount++; - debug( TQString( "CoreProtocol::addIncomingData() - parsed transfer #%1 in chunk" ).arg( transferCount ) ); + debug( TQString( "CoreProtocol::addIncomingData() - parsed transfer #%1 in chunk" ).tqarg( transferCount ) ); int size = m_in.size(); if ( parsedBytes < size ) { @@ -185,7 +185,7 @@ Transfer* CoreProtocol::incomingTransfer() void cp_dump( const TQByteArray &bytes ) { #ifdef LIBGW_DEBUG - CoreProtocol::debug( TQString( "contains: %1 bytes" ).arg( bytes.count() ) ); + CoreProtocol::debug( TQString( "contains: %1 bytes" ).tqarg( bytes.count() ) ); for ( uint i = 0; i < bytes.count(); ++i ) { printf( "%02x ", bytes[ i ] ); @@ -226,7 +226,7 @@ void CoreProtocol::outgoingTransfer( Request* outgoing ) command = "login"; host = request->command().section( ':', 1, 1 ).ascii(); port = request->command().section( ':', 2, 2 ).ascii(); - debug( TQString( "Host: %1 Port: %2" ).arg( host.data() ).arg( port.data() ) ); + debug( TQString( "Host: %1 Port: %2" ).tqarg( host.data() ).tqarg( port.data() ) ); } else command = request->command().ascii(); @@ -246,7 +246,7 @@ void CoreProtocol::outgoingTransfer( Request* outgoing ) else dout << "\r\n"; - debug( TQString( "data out: %1" ).arg( bytesOut.data() ) ); + debug( TQString( "data out: %1" ).tqarg( bytesOut.data() ) ); emit outgoingData( bytesOut ); // now convert @@ -337,7 +337,7 @@ void CoreProtocol::fieldsToWire( Field::FieldList fields, int depth ) + GW_URLVAR_VAL + (const char *)valString + GW_URLVAR_TYPE + typeString; - debug( TQString( "CoreProtocol::fieldsToWire - outgoing data: %1" ).arg( outgoing.data() ) ); + debug( TQString( "CoreProtocol::fieldsToWire - outgoing data: %1" ).tqarg( outgoing.data() ) ); dout.writeRawBytes( outgoing.data(), outgoing.length() ); // write what we have so far, we may be calling this function recursively //kdDebug( 14999 ) << k_funcinfo << "writing \'" << bout << "\'" << endl; @@ -398,12 +398,12 @@ int CoreProtocol::wireToTransfer( const TQByteArray& wire ) } else // otherwise -> Event code { - debug( TQString( "CoreProtocol::wireToTransfer() - looks like an EVENT: %1, length %2" ).arg( val ).arg( wire.size() ) ); + debug( TQString( "CoreProtocol::wireToTransfer() - looks like an EVENT: %1, length %2" ).tqarg( val ).tqarg( wire.size() ) ); Transfer * t = m_eventProtocol->parse( wire, bytesParsed ); if ( t ) { m_inTransfer = t; - debug( TQString( "CoreProtocol::wireToTransfer() - got an EVENT: %1, parsed: %2" ).arg( val ).arg( bytesParsed ) ); + debug( TQString( "CoreProtocol::wireToTransfer() - got an EVENT: %1, parsed: %2" ).tqarg( val ).tqarg( bytesParsed ) ); m_state = Available; emit incomingData(); } @@ -486,7 +486,7 @@ TQChar CoreProtocol::encode_method( TQ_UINT8 method ) void CoreProtocol::slotOutgoingData( const TQCString &out ) { - debug( TQString( "CoreProtocol::slotOutgoingData() %1" ).arg( out.data() ) ); + debug( TQString( "CoreProtocol::slotOutgoingData() %1" ).tqarg( out.data() ) ); } bool CoreProtocol::okToProceed() diff --git a/kopete/protocols/groupwise/libgroupwise/coreprotocol.h b/kopete/protocols/groupwise/libgroupwise/coreprotocol.h index d1b2486c..ea3a2626 100644 --- a/kopete/protocols/groupwise/libgroupwise/coreprotocol.h +++ b/kopete/protocols/groupwise/libgroupwise/coreprotocol.h @@ -108,7 +108,7 @@ class Transfer; * any of three ways - * ascii text, * latin1 as hexadecimal, - * escaped unicode code points (encoded/escaped as \uUNICODEVALUE?, with or without a space between the end of the unicode value and the ? ) + * escaped tqunicode code points (encoded/escaped as \uUNICODEVALUE?, with or without a space between the end of the tqunicode value and the ? ) * Outgoing messages may contain rich text, and additionally the plain text encoded as UTF8, but this plain payload is apparently ignored by the server * */ diff --git a/kopete/protocols/groupwise/libgroupwise/eventprotocol.cpp b/kopete/protocols/groupwise/libgroupwise/eventprotocol.cpp index 93ce7c92..b6ff646d 100644 --- a/kopete/protocols/groupwise/libgroupwise/eventprotocol.cpp +++ b/kopete/protocols/groupwise/libgroupwise/eventprotocol.cpp @@ -53,10 +53,10 @@ Transfer * EventProtocol::parse( const TQByteArray & wire, uint& bytes ) m_din >> type; m_bytes += sizeof( TQ_UINT32 ); - debug( TQString( "EventProtocol::parse() Reading event of type %1" ).arg( type ) ); + debug( TQString( "EventProtocol::parse() Reading event of type %1" ).tqarg( type ) ); if ( type > Stop ) { - debug( TQString ( "EventProtocol::parse() - found unexpected event type %1 - assuming out of sync" ).arg( type ) ); + debug( TQString ( "EventProtocol::parse() - found unexpected event type %1 - assuming out of sync" ).tqarg( type ) ); m_state = OutOfSync; return 0; } @@ -71,7 +71,7 @@ Transfer * EventProtocol::parse( const TQByteArray & wire, uint& bytes ) // now create an event object //HACK: lowercased DN - EventTransfer * tentative = new EventTransfer( type, source.lower(), TQDateTime::currentDateTime() ); + EventTransfer * tentative = new EventTransfer( type, source.lower(), TQDateTime::tqcurrentDateTime() ); // add any additional data depending on the type of event // Note: if there are any errors in the way the data is read below, we will soon be OutOfSync @@ -96,9 +96,9 @@ Transfer * EventProtocol::parse( const TQByteArray & wire, uint& bytes ) m_din.unsetDevice(); return 0; } - debug( TQString( "got status: %1").arg( status ) ); - tentative->setStatus( status ); - debug( TQString( "tentative status: %1").arg( tentative->status() ) ); + debug( TQString( "got status: %1").tqarg( status ) ); + tentative->settqStatus( status ); + debug( TQString( "tentative status: %1").tqarg( tentative->status() ) ); tentative->setStatusText( statusText ); break; case ConferenceJoined: // 106 - GUID + FLAGS @@ -116,7 +116,7 @@ Transfer * EventProtocol::parse( const TQByteArray & wire, uint& bytes ) } tentative->setFlags( flags ); break; - case UndeliverableStatus: //102 - GUID + case UndeliverabletqStatus: //102 - GUID case ConferenceClosed: //105 case ConferenceInviteNotify://118 case ConferenceReject: //119 @@ -191,7 +191,7 @@ Transfer * EventProtocol::parse( const TQByteArray & wire, uint& bytes ) tentative->setMessage( message ); break; default: - debug( TQString( "EventProtocol::parse() - found unexpected event type %1" ).arg( type ) ); + debug( TQString( "EventProtocol::parse() - found unexpected event type %1" ).tqarg( type ) ); break; } // if we got this far, the parse succeeded, return the Transfer diff --git a/kopete/protocols/groupwise/libgroupwise/eventprotocol.h b/kopete/protocols/groupwise/libgroupwise/eventprotocol.h index 49d1d9dd..97e48c22 100644 --- a/kopete/protocols/groupwise/libgroupwise/eventprotocol.h +++ b/kopete/protocols/groupwise/libgroupwise/eventprotocol.h @@ -50,7 +50,7 @@ class EventTransfer; All Events contain an event code, and a source ( a DN ) NOTHANDLED indicates that there is no further data and we don't handle events of that type, because they are not sent by the server NONE indicates there is no further data - STATUSTEXT, GUID, MESSAGE indicate a string encoded in the usual GroupWise binary string encoding: a UINT32 containing the string length in little-endian, followed by the string itself, as UTF-8 encoded unicode. The string length value includes a terminating NUL, so when converting to a TQString, subtract one from the string length. + STATUSTEXT, GUID, MESSAGE indicate a string encoded in the usual GroupWise binary string encoding: a UINT32 containing the string length in little-endian, followed by the string itself, as UTF-8 encoded tqunicode. The string length value includes a terminating NUL, so when converting to a TQString, subtract one from the string length. FLAGS contains a UINT32 containing the server's flags for this conference. See gwerror.h for the possible values and meanings of these flags. Only Logging has been observed in practice. All events are timestamped with the local time on receipt. @@ -58,7 +58,7 @@ class EventTransfer; From gwerror.h: enum Event { InvalidRecipient = 101, NOTHANDLED - UndeliverableStatus = 102, + UndeliverabletqStatus = 102, NOTHANDLED * StatusChange = 103, TQ_UINT16 STATUS diff --git a/kopete/protocols/groupwise/libgroupwise/eventtransfer.cpp b/kopete/protocols/groupwise/libgroupwise/eventtransfer.cpp index fb9ab8b3..be645abb 100644 --- a/kopete/protocols/groupwise/libgroupwise/eventtransfer.cpp +++ b/kopete/protocols/groupwise/libgroupwise/eventtransfer.cpp @@ -60,9 +60,9 @@ bool EventTransfer::hasMessage() return ( m_contentFlags & Message ); } -bool EventTransfer::hasStatus() +bool EventTransfer::hastqStatus() { - return ( m_contentFlags & Status ); + return ( m_contentFlags & tqStatus ); } bool EventTransfer::hasStatusText() @@ -131,10 +131,10 @@ void EventTransfer::setMessage( const TQString & message ) m_message = message; } -void EventTransfer::setStatus( const TQ_UINT16 inStatus ) +void EventTransfer::settqStatus( const TQ_UINT16 intqStatus ) { - m_contentFlags |= Status; - m_status = inStatus; + m_contentFlags |= tqStatus; + m_status = intqStatus; } void EventTransfer::setStatusText( const TQString & statusText ) diff --git a/kopete/protocols/groupwise/libgroupwise/eventtransfer.h b/kopete/protocols/groupwise/libgroupwise/eventtransfer.h index ad325619..594d0d16 100644 --- a/kopete/protocols/groupwise/libgroupwise/eventtransfer.h +++ b/kopete/protocols/groupwise/libgroupwise/eventtransfer.h @@ -47,7 +47,7 @@ public: Guid = 0x00000008, Flags = 0x00000010, Message = 0x00000020, - Status = 0x00000040, + tqStatus = 0x00000040, StatusText = 0x00000080 }; /** * Constructor @@ -70,7 +70,7 @@ public: bool hasGuid(); bool hasFlags(); bool hasMessage(); - bool hasStatus(); + bool hastqStatus(); bool hasStatusText(); /** @@ -92,7 +92,7 @@ public: void setGuid( const GroupWise::ConferenceGuid & guid ); void setFlags( const TQ_UINT32 flags ); void setMessage( const TQString & message ); - void setStatus( const TQ_UINT16 status ); + void settqStatus( const TQ_UINT16 status ); void setStatusText( const TQString & statusText); private: diff --git a/kopete/protocols/groupwise/libgroupwise/gwchatrooms.h b/kopete/protocols/groupwise/libgroupwise/gwchatrooms.h index 4e73955a..5349fd30 100644 --- a/kopete/protocols/groupwise/libgroupwise/gwchatrooms.h +++ b/kopete/protocols/groupwise/libgroupwise/gwchatrooms.h @@ -44,7 +44,7 @@ struct ChatroomSearchResult class Chatroom { public: - enum UserStatus { Participating, NotParticipating }; + enum UsertqStatus { Participating, NotParticipating }; enum Rights { Read = 1, Write = 2, Modify = 4, Moderator = 8, Owner = 16 }; TQString creatorDN; TQString description; @@ -57,7 +57,7 @@ class Chatroom bool archive; uint maxUsers; uint chatRights; - UserStatus userStatus; + UsertqStatus usertqStatus; TQDateTime createdOn; uint participantsCount; // haveParticipants, Acl, Invites indicate if we have obtained these lists from the server, so we can tell 'not fetched list' and 'fetched empty list' apart. diff --git a/kopete/protocols/groupwise/libgroupwise/gwclientstream.cpp b/kopete/protocols/groupwise/libgroupwise/gwclientstream.cpp index e3827622..7305f7bc 100644 --- a/kopete/protocols/groupwise/libgroupwise/gwclientstream.cpp +++ b/kopete/protocols/groupwise/libgroupwise/gwclientstream.cpp @@ -19,7 +19,7 @@ ************************************************************************* */ -//#include +//#include //#include // #include // #include @@ -378,7 +378,7 @@ void cs_dump( const TQByteArray &bytes ) { //#define GW_CLIENTSTREAM_DEBUG 1 #ifdef GW_CLIENTSTREAM_DEBUG - CoreProtocol::debug( TQString( "contains: %1 bytes " ).arg( bytes.count() ) ); + CoreProtocol::debug( TQString( "contains: %1 bytes " ).tqarg( bytes.count() ) ); uint count = 0; while ( count < bytes.count() ) { @@ -440,7 +440,7 @@ void ClientStream::cp_incomingData() emit doReadyRead(); } else - CoreProtocol::debug( TQString( " - client signalled incomingData but none was available, state is: %1" ).arg( d->client.state() ) ); + CoreProtocol::debug( TQString( " - client signalled incomingData but none was available, state is: %1" ).tqarg( d->client.state() ) ); } void ClientStream::cr_connected() @@ -520,7 +520,7 @@ void ClientStream::ss_readyRead() #ifdef LIBGW_DEBUG TQCString cs(a.data(), a.size()+1); - CoreProtocol::debug( TQString( "ClientStream: ss_readyRead() recv: %1 bytes" ).arg( a.size() ) ); + CoreProtocol::debug( TQString( "ClientStream: ss_readyRead() recv: %1 bytes" ).tqarg( a.size() ) ); cs_dump( a ); #endif @@ -532,7 +532,7 @@ void ClientStream::ss_readyRead() void ClientStream::ss_bytesWritten(int bytes) { #ifdef LIBGW_DEBUG - CoreProtocol::debug( TQString( "ClientStream::ss_bytesWritten: %1 bytes written" ).arg( bytes ) ); + CoreProtocol::debug( TQString( "ClientStream::ss_bytesWritten: %1 bytes written" ).tqarg( bytes ) ); #else Q_UNUSED( bytes ); #endif @@ -556,7 +556,7 @@ void ClientStream::ss_tlsClosed() void ClientStream::ss_error(int x) { - CoreProtocol::debug( TQString( "ClientStream::ss_error() x=%1 ").arg( x ) ); + CoreProtocol::debug( TQString( "ClientStream::ss_error() x=%1 ").tqarg( x ) ); if(x == SecureStream::ErrTLS) { reset(); d->errCond = TLSFail; diff --git a/kopete/protocols/groupwise/libgroupwise/gwerror.cpp b/kopete/protocols/groupwise/libgroupwise/gwerror.cpp index ba2a2a58..65574eb3 100644 --- a/kopete/protocols/groupwise/libgroupwise/gwerror.cpp +++ b/kopete/protocols/groupwise/libgroupwise/gwerror.cpp @@ -146,7 +146,7 @@ TQString GroupWise::errorCodeToString( int errorCode ) errorString = i18n( "Chat has been removed from server" ); break; default: - errorString = i18n("Unrecognized error code: %s").arg( errorCode ); + errorString = i18n("Unrecognized error code: %s").tqarg( errorCode ); #else case NMERR_ACCESS_DENIED: errorString = "Access denied"; @@ -269,7 +269,7 @@ TQString GroupWise::errorCodeToString( int errorCode ) errorString = "Chat has been removed from server"; break; default: - errorString = TQString("Unrecognized error code: %s").arg( errorCode ); + errorString = TQString("Unrecognized error code: %s").tqarg( errorCode ); #endif } return errorString; diff --git a/kopete/protocols/groupwise/libgroupwise/gwerror.h b/kopete/protocols/groupwise/libgroupwise/gwerror.h index f19d3d39..f5de53ce 100644 --- a/kopete/protocols/groupwise/libgroupwise/gwerror.h +++ b/kopete/protocols/groupwise/libgroupwise/gwerror.h @@ -36,7 +36,7 @@ typedef TQ_UINT16 NMERR_T; namespace GroupWise { - enum Status { Unknown = 0, + enum tqStatus { Unknown = 0, Offline = 1, Available = 2, Busy = 3, @@ -58,7 +58,7 @@ namespace GroupWise }; enum Event { InvalidRecipient = 101, - UndeliverableStatus = 102, + UndeliverabletqStatus = 102, StatusChange = 103, ContactAdd = 104, ConferenceClosed = 105, @@ -164,9 +164,9 @@ namespace GroupWise int operation; }; - struct CustomStatus + struct CustomtqStatus { - GroupWise::Status status; + GroupWise::tqStatus status; TQString name; TQString autoReply; }; diff --git a/kopete/protocols/groupwise/libgroupwise/inputprotocolbase.cpp b/kopete/protocols/groupwise/libgroupwise/inputprotocolbase.cpp index 415905bf..14a5af70 100644 --- a/kopete/protocols/groupwise/libgroupwise/inputprotocolbase.cpp +++ b/kopete/protocols/groupwise/libgroupwise/inputprotocolbase.cpp @@ -98,7 +98,7 @@ bool InputProtocolBase::safeReadBytes( TQCString & data, uint & len ) // if ( (TQ_UINT8)( * ( temp.data() + ( temp.length() - 1 ) ) ) == 0xFF ) if ( temp.length() < ( val - 1 ) ) { - debug( TQString( "InputProtocol::safeReadBytes() - string broke, giving up, only got: %1 bytes out of %2" ).arg( temp.length() ).arg( val ) ); + debug( TQString( "InputProtocol::safeReadBytes() - string broke, giving up, only got: %1 bytes out of %2" ).tqarg( temp.length() ).tqarg( val ) ); m_state = NeedMore; return false; } diff --git a/kopete/protocols/groupwise/libgroupwise/qca/src/qca.cpp b/kopete/protocols/groupwise/libgroupwise/qca/src/qca.cpp index 7e7dbeed..9aa7d80b 100644 --- a/kopete/protocols/groupwise/libgroupwise/qca/src/qca.cpp +++ b/kopete/protocols/groupwise/libgroupwise/qca/src/qca.cpp @@ -586,7 +586,7 @@ TQString RSAKey::toPEM(bool publicOnly) const TQCString cs; cs.resize(out.size()+1); memcpy(cs.data(), out.data(), out.size()); - return TQString::fromLatin1(cs); + return TQString::tqfromLatin1(cs); } bool RSAKey::fromPEM(const TQString &str) @@ -798,7 +798,7 @@ TQString Cert::toPEM() const TQCString cs; cs.resize(out.size()+1); memcpy(cs.data(), out.data(), out.size()); - return TQString::fromLatin1(cs); + return TQString::tqfromLatin1(cs); } bool Cert::fromPEM(const TQString &str) diff --git a/kopete/protocols/groupwise/libgroupwise/responseprotocol.cpp b/kopete/protocols/groupwise/libgroupwise/responseprotocol.cpp index a3c82b51..50788178 100644 --- a/kopete/protocols/groupwise/libgroupwise/responseprotocol.cpp +++ b/kopete/protocols/groupwise/libgroupwise/responseprotocol.cpp @@ -71,7 +71,7 @@ Transfer * ResponseProtocol::parse( const TQByteArray & wire, uint & bytes ) return 0; } headerRest.append( line ); - debug( TQString( "- read header line - (%1) : %2" ).arg( line.length() ).arg( line.data() ) ); + debug( TQString( "- read header line - (%1) : %2" ).tqarg( line.length() ).tqarg( line.data() ) ); } debug( "ResponseProtocol::readResponse() header finished" ); // if it's a redirect, set flag @@ -85,14 +85,14 @@ Transfer * ResponseProtocol::parse( const TQByteArray & wire, uint & bytes ) // other header processing ( 500! ) if ( ok && rtnCode == 500 ) { - debug( TQString( "- server error %1" ).arg( rtnCode ) ); + debug( TQString( "- server error %1" ).tqarg( rtnCode ) ); packetState = ServerError; m_din.unsetDevice(); return 0; } if ( ok && rtnCode == 404 ) { - debug( TQString( "- server error %1" ).arg( rtnCode ) ); + debug( TQString( "- server error %1" ).tqarg( rtnCode ) ); packetState = ServerError; m_din.unsetDevice(); return 0; @@ -123,7 +123,7 @@ Transfer * ResponseProtocol::parse( const TQByteArray & wire, uint & bytes ) if ( sf ) { tId = sf->value().toInt(); - debug( TQString( "ResponseProtocol::readResponse() - transaction ID is %1" ).arg( tId ) ); + debug( TQString( "ResponseProtocol::readResponse() - transaction ID is %1" ).tqarg( tId ) ); m_collatingFields.remove( it ); delete sf; } @@ -135,7 +135,7 @@ Transfer * ResponseProtocol::parse( const TQByteArray & wire, uint & bytes ) if ( sf ) { resultCode = sf->value().toInt(); - debug( TQString( "ResponseProtocol::readResponse() - result code is %1" ).arg( resultCode ) ); + debug( TQString( "ResponseProtocol::readResponse() - result code is %1" ).tqarg( resultCode ) ); m_collatingFields.remove( it ); delete sf; } @@ -143,7 +143,7 @@ Transfer * ResponseProtocol::parse( const TQByteArray & wire, uint & bytes ) // append to inQueue if ( tId ) { - debug( TQString( "ResponseProtocol::readResponse() - setting state Available, got %1 fields in base array" ).arg(m_collatingFields.count() ) ); + debug( TQString( "ResponseProtocol::readResponse() - setting state Available, got %1 fields in base array" ).tqarg(m_collatingFields.count() ) ); packetState = Available; bytes = m_bytes; m_din.unsetDevice(); @@ -169,7 +169,7 @@ bool ResponseProtocol::readFields( int fieldCount, Field::FieldList * list ) // if we find the beginning of a new nested list, push the current list onto m_collatingFields debug( "ResponseProtocol::readFields()" ); if ( fieldCount > 0 ) - debug( TQString( "reading %1 fields" ).arg( fieldCount ) ); + debug( TQString( "reading %1 fields" ).tqarg( fieldCount ) ); Field::FieldList currentList; while ( fieldCount != 0 ) // prevents bad input data from ruining our day { @@ -209,7 +209,7 @@ bool ResponseProtocol::readFields( int fieldCount, Field::FieldList * list ) return false; } - debug( TQString( "- type: %1, method: %2, tag: %3," ).arg( type ).arg( method ).arg( tag.data() ) ); + debug( TQString( "- type: %1, method: %2, tag: %3," ).tqarg( type ).tqarg( method ).tqarg( tag.data() ) ); // if multivalue or array if ( type == NMFIELD_TYPE_MV || type == NMFIELD_TYPE_ARRAY ) { @@ -223,7 +223,7 @@ bool ResponseProtocol::readFields( int fieldCount, Field::FieldList * list ) m_bytes += sizeof( TQ_UINT32 ); // create multifield - debug( TQString( " multi field containing: %1" ).arg( val ) ); + debug( TQString( " multi field containing: %1" ).tqarg( val ) ); Field::MultiField* m = new Field::MultiField( tag, method, 0, type ); currentList.append( m ); if ( !readFields( val, ¤tList) ) @@ -248,9 +248,9 @@ bool ResponseProtocol::readFields( int fieldCount, Field::FieldList * list ) m_packetState = ProtocolError; break; } - // convert to unicode - ignore the terminating NUL, because TQt<3.3.2 doesn't sanity check val. + // convert to tqunicode - ignore the terminating NUL, because TQt<3.3.2 doesn't sanity check val. TQString fieldValue = TQString::fromUtf8( rawData.data(), val - 1 ); - debug( TQString( "- utf/dn single field: %1" ).arg( fieldValue ) ); + debug( TQString( "- utf/dn single field: %1" ).tqarg( fieldValue ) ); // create singlefield Field::SingleField* s = new Field::SingleField( tag, method, 0, type, fieldValue ); currentList.append( s ); @@ -266,7 +266,7 @@ bool ResponseProtocol::readFields( int fieldCount, Field::FieldList * list ) } m_din >> val; m_bytes += sizeof( TQ_UINT32 ); - debug( TQString( "- numeric field: %1" ).arg( val ) ); + debug( TQString( "- numeric field: %1" ).tqarg( val ) ); Field::SingleField* s = new Field::SingleField( tag, method, 0, type, val ); currentList.append( s ); } diff --git a/kopete/protocols/groupwise/libgroupwise/rtf.cc b/kopete/protocols/groupwise/libgroupwise/rtf.cc index a74b4c67..afe7b18e 100644 --- a/kopete/protocols/groupwise/libgroupwise/rtf.cc +++ b/kopete/protocols/groupwise/libgroupwise/rtf.cc @@ -2182,7 +2182,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/groupwise/libgroupwise/rtf.ll b/kopete/protocols/groupwise/libgroupwise/rtf.ll index 67e9f5f5..7f2f1841 100644 --- a/kopete/protocols/groupwise/libgroupwise/rtf.ll +++ b/kopete/protocols/groupwise/libgroupwise/rtf.ll @@ -517,7 +517,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/groupwise/libgroupwise/rtf2html.h b/kopete/protocols/groupwise/libgroupwise/rtf2html.h index 3a3122d8..5685e4a1 100644 --- a/kopete/protocols/groupwise/libgroupwise/rtf2html.h +++ b/kopete/protocols/groupwise/libgroupwise/rtf2html.h @@ -21,7 +21,7 @@ #include #include -#include +#include #include #include #include diff --git a/kopete/protocols/groupwise/libgroupwise/task.cpp b/kopete/protocols/groupwise/libgroupwise/task.cpp index 547844d9..858c8fde 100644 --- a/kopete/protocols/groupwise/libgroupwise/task.cpp +++ b/kopete/protocols/groupwise/libgroupwise/task.cpp @@ -130,7 +130,7 @@ bool Task::take( Transfer * transfer) if(p.isEmpty()) return false; - // pass along the transfer to our children + // pass along the transfer to our tqchildren TQObjectListIt it(p); Task *t; for(; it.current(); ++it) { @@ -142,7 +142,7 @@ bool Task::take( Transfer * transfer) if(t->take( transfer )) { - client()->debug( TQString( "Transfer ACCEPTED by: %1" ).arg( t->className() ) ); + client()->debug( TQString( "Transfer ACCEPTED by: %1" ).tqarg( t->className() ) ); return true; } } @@ -256,7 +256,7 @@ void Task::clientDisconnected() void Task::debug(const TQString &str) { - client()->debug(TQString("%1: ").arg(className()) + str); + client()->debug(TQString("%1: ").tqarg(className()) + str); } bool Task::forMe( const Transfer * transfer ) const diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/conferencetask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/conferencetask.cpp index c88e22b4..3fccc218 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/conferencetask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/conferencetask.cpp @@ -53,10 +53,10 @@ ConferenceTask::~ConferenceTask() void ConferenceTask::dumpConferenceEvent( ConferenceEvent & evt ) { - client()->debug( TQString( "Conference Event - guid: %1 user: %2 timestamp: %3:%4:%5" ).arg - ( evt.guid ).arg( evt.user.ascii() ).arg( evt.timeStamp.time().hour() ).arg - ( evt.timeStamp.time().minute() ).arg( evt.timeStamp.time().second() ) ); - client()->debug( TQString( " flags: %1" ).arg( evt.flags, 8 ) ); + client()->debug( TQString( "Conference Event - guid: %1 user: %2 timestamp: %3:%4:%5" ).tqarg + ( evt.guid ).tqarg( evt.user.ascii() ).tqarg( evt.timeStamp.time().hour() ).tqarg + ( evt.timeStamp.time().minute() ).tqarg( evt.timeStamp.time().second() ) ); + client()->debug( TQString( " flags: %1" ).tqarg( evt.flags, 8 ) ); } bool ConferenceTask::take( Transfer * transfer ) @@ -103,7 +103,7 @@ bool ConferenceTask::take( Transfer * transfer ) Q_ASSERT( incomingEvent->hasMessage() ); event.message = incomingEvent->message(); client()->debug( "ReceiveMessage" ); - client()->debug( TQString( "message: %1" ).arg( event.message ) ); + client()->debug( TQString( "message: %1" ).tqarg( event.message ) ); if ( !queueWhileAwaitingData( event ) ) emit message( event ); break; @@ -119,7 +119,7 @@ bool ConferenceTask::take( Transfer * transfer ) Q_ASSERT( incomingEvent->hasMessage() ); event.message = incomingEvent->message(); client()->debug( "ConferenceInvite" ); - client()->debug( TQString( "message: %1" ).arg( event.message ) ); + client()->debug( TQString( "message: %1" ).tqarg( event.message ) ); if ( !queueWhileAwaitingData( event ) ) emit invited( event ); break; @@ -139,14 +139,14 @@ bool ConferenceTask::take( Transfer * transfer ) Q_ASSERT( incomingEvent->hasMessage() ); event.message = incomingEvent->message(); client()->debug( "ReceiveAutoReply" ); - client()->debug( TQString( "message: %1" ).arg( event.message.ascii() ) ); + client()->debug( TQString( "message: %1" ).tqarg( event.message.ascii() ) ); emit autoReply( event ); break; case GroupWise::ReceivedBroadcast: Q_ASSERT( incomingEvent->hasMessage() ); event.message = incomingEvent->message(); client()->debug( "ReceivedBroadCast" ); - client()->debug( TQString( "message: %1" ).arg( event.message ) ); + client()->debug( TQString( "message: %1" ).tqarg( event.message ) ); if ( !queueWhileAwaitingData( event ) ) emit broadcast( event ); break; @@ -154,11 +154,11 @@ bool ConferenceTask::take( Transfer * transfer ) Q_ASSERT( incomingEvent->hasMessage() ); event.message = incomingEvent->message(); client()->debug( "ReceivedSystemBroadCast" ); - client()->debug( TQString( "message: %1" ).arg( event.message ) ); + client()->debug( TQString( "message: %1" ).tqarg( event.message ) ); emit systemBroadcast( event ); break; default: - client()->debug( TQString( "WARNING: didn't handle registered event %1, on conference %2" ).arg( incomingEvent->eventType() ).arg( event.guid.ascii() ) ); + client()->debug( TQString( "WARNING: didn't handle registered event %1, on conference %2" ).tqarg( incomingEvent->eventType() ).tqarg( event.guid.ascii() ) ); } dumpConferenceEvent( event ); @@ -181,7 +181,7 @@ void ConferenceTask::slotReceiveUserDetails( const GroupWise::ContactDetails & d // if the details relate to event, try again to handle it if ( details.dn == (*current).user ) { - client()->debug( TQString( " - got details for event involving %1" ).arg( (*current).user ) ); + client()->debug( TQString( " - got details for event involving %1" ).tqarg( (*current).user ) ); switch ( (*current).type ) { case GroupWise::ConferenceJoined: @@ -220,7 +220,7 @@ bool ConferenceTask::queueWhileAwaitingData( const ConferenceEvent & event ) } else { - client()->debug( TQString( "ConferenceTask::queueWhileAwaitingData() - queueing event involving %1" ).arg( event.user ) ); + client()->debug( TQString( "ConferenceTask::queueWhileAwaitingData() - queueing event involving %1" ).tqarg( event.user ) ); client()->userDetailsManager()->requestDetails( event.user ); m_pendingEvents.append( event ); return true; diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/createcontacttask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/createcontacttask.cpp index 0d167236..920eec3b 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/createcontacttask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/createcontacttask.cpp @@ -71,7 +71,7 @@ void CreateContactTask::onGo() // create contacts on the server for ( ; it != end; ++it ) { - client()->debug( TQString( " - contact is in folder %1 with id %2" ).arg( (*it).name ).arg( (*it).id ) ); + client()->debug( TQString( " - contact is in folder %1 with id %2" ).tqarg( (*it).name ).tqarg( (*it).id ) ); CreateContactInstanceTask * ccit = new CreateContactInstanceTask( client()->rootTask() ); // the add contact action may cause other contacts' sequence numbers to change // CreateContactInstanceTask signals these changes, so we propagate the signal via the Client, to the GroupWiseAccount @@ -112,8 +112,8 @@ void CreateContactTask::slotContactAdded( const ContactItem & addedContact ) client()->debug( " - addedContact is not the one we were trying to add, ignoring it ( Account will update it )" ); return; } - client()->debug( TQString( "CreateContactTask::slotContactAdded() - Contact Instance %1 was created on the server, with objectId %2 in folder %3" ).arg - ( addedContact.displayName ).arg( addedContact.id ).arg( addedContact.parentId ) ); + client()->debug( TQString( "CreateContactTask::slotContactAdded() - Contact Instance %1 was created on the server, with objectId %2 in folder %3" ).tqarg + ( addedContact.displayName ).tqarg( addedContact.id ).tqarg( addedContact.parentId ) ); if ( m_dn.isEmpty() ) m_dn = addedContact.dn; diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/getchatsearchresultstask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/getchatsearchresultstask.cpp index a62cf022..7744552c 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/getchatsearchresultstask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/getchatsearchresultstask.cpp @@ -62,7 +62,7 @@ bool GetChatSearchResultsTask::take( Transfer * transfer ) // look for the status code Field::FieldList responseFields = response->fields(); Field::SingleField * sf = responseFields.findSingleField( NM_A_UW_STATUS ); - m_queryStatus = (SearchResultCode)sf->value().toInt(); + m_querytqStatus = (SearchResultCode)sf->value().toInt(); Field::MultiField * resultsArray = responseFields.findMultiField( NM_A_FA_RESULTS ); if ( !resultsArray ) @@ -82,12 +82,12 @@ bool GetChatSearchResultsTask::take( Transfer * transfer ) m_results.append( cd ); } - if ( m_queryStatus != DataRetrieved ) - setError( m_queryStatus ); + if ( m_querytqStatus != DataRetrieved ) + setError( m_querytqStatus ); else { kdDebug ( GROUPWISE_DEBUG_GLOBAL ) << " we won!" << endl; - setSuccess( m_queryStatus ); + setSuccess( m_querytqStatus ); } return true; } @@ -97,9 +97,9 @@ TQValueList< GroupWise::ChatroomSearchResult > GetChatSearchResultsTask::results return m_results; } -int GetChatSearchResultsTask::queryStatus() +int GetChatSearchResultsTask::querytqStatus() { - return m_queryStatus; + return m_querytqStatus; } GroupWise::ChatroomSearchResult GetChatSearchResultsTask::extractChatDetails( Field::FieldList & fields ) diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/getchatsearchresultstask.h b/kopete/protocols/groupwise/libgroupwise/tasks/getchatsearchresultstask.h index 5671a122..bebe8ff7 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/getchatsearchresultstask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/getchatsearchresultstask.h @@ -42,11 +42,11 @@ class GetChatSearchResultsTask : public RequestTask ~GetChatSearchResultsTask(); void poll( int queryHandle); bool take( Transfer * transfer ); - int queryStatus(); + int querytqStatus(); TQValueList< GroupWise::ChatroomSearchResult > results(); private: GroupWise::ChatroomSearchResult extractChatDetails( Field::FieldList & fields ); - SearchResultCode m_queryStatus; + SearchResultCode m_querytqStatus; TQValueList< GroupWise::ChatroomSearchResult > m_results; }; diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/getstatustask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/getstatustask.cpp index 2b77e33e..86179b62 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/getstatustask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/getstatustask.cpp @@ -61,7 +61,7 @@ bool GetStatusTask::take( Transfer * transfer ) // TODO: Check that the change to sending DNs above has fixed this problem. status = sf->value().toInt(); // unfortunately getstatus doesn't give us an away message so we pass TQString() here - emit gotStatus( m_userDN, status, TQString() ); + emit gottqStatus( m_userDN, status, TQString() ); setSuccess(); } else diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/getstatustask.h b/kopete/protocols/groupwise/libgroupwise/tasks/getstatustask.h index aec5050f..bd291c62 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/getstatustask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/getstatustask.h @@ -37,7 +37,7 @@ public: void userDN( const TQString & dn ); bool take( Transfer * transfer ); signals: - void gotStatus( const TQString & contactId, TQ_UINT16 status, const TQString & statusText ); + void gottqStatus( const TQString & contactId, TQ_UINT16 status, const TQString & statusText ); private: TQString m_userDN; }; diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/joinconferencetask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/joinconferencetask.cpp index b7b1f1cc..ed4f6bfd 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/joinconferencetask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/joinconferencetask.cpp @@ -128,14 +128,14 @@ bool JoinConferenceTask::take( Transfer * transfer ) void JoinConferenceTask::slotReceiveUserDetails( const ContactDetails & details ) { - client()->debug( TQString( "JoinConferenceTask::slotReceiveUserDetails() - got %1" ).arg( details.dn ) ); + client()->debug( TQString( "JoinConferenceTask::slotReceiveUserDetails() - got %1" ).tqarg( details.dn ) ); TQStringList::Iterator it = m_unknowns.begin(); TQStringList::Iterator end = m_unknowns.end(); while( it != end ) { TQString current = *it; ++it; - client()->debug( TQString( " - can we remove %1?" ).arg(current ) ); + client()->debug( TQString( " - can we remove %1?" ).tqarg(current ) ); if ( current == details.dn ) { client()->debug( " - it's gone!" ); @@ -143,7 +143,7 @@ void JoinConferenceTask::slotReceiveUserDetails( const ContactDetails & details break; } } - client()->debug( TQString( " - now %1 unknowns").arg( m_unknowns.count() ) ); + client()->debug( TQString( " - now %1 unknowns").tqarg( m_unknowns.count() ) ); if ( m_unknowns.empty() ) { client()->debug( " - finished()" ); diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/logintask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/logintask.cpp index 6a28124f..f3d55583 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/logintask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/logintask.cpp @@ -36,7 +36,7 @@ LoginTask::~LoginTask() void LoginTask::initialise() { - TQString command = TQString::fromLatin1("login:%1:%2").arg( client()->host() ).arg( client()->port() ); + TQString command = TQString::tqfromLatin1("login:%1:%2").tqarg( client()->host() ).tqarg( client()->port() ); Field::FieldList lst; lst.append( new Field::SingleField( NM_A_SZ_USERID, 0, NMFIELD_TYPE_UTF8, client()->userId() ) ); @@ -123,7 +123,7 @@ void LoginTask::extractFolder( Field::MultiField * folderContainer ) current = fl.findSingleField( NM_A_SZ_PARENT_ID ); folder.parentId = current->value().toInt(); - client()->debug( TQString( "Got folder: %1, obj: %2, parent: %3, seq: %3." ).arg( folder.name ).arg( folder.id ).arg( folder.parentId ).arg( folder.sequence ) ); + client()->debug( TQString( "Got folder: %1, obj: %2, parent: %3, seq: %3." ).tqarg( folder.name ).tqarg( folder.id ).tqarg( folder.parentId ).tqarg( folder.sequence ) ); // tell the world about it emit gotFolder( folder ); } @@ -319,21 +319,21 @@ void LoginTask::extractCustomStatuses( Field::FieldList & fields ) Field::MultiField * mf2 = dynamic_cast( *custStatIt ); if ( mf2 && ( mf2->tag() == NM_A_FA_STATUS ) ) { - GroupWise::CustomStatus custom; + GroupWise::CustomtqStatus custom; Field::FieldList fl2 = mf2->fields(); for ( Field::FieldListIterator custContentIt = fl2.begin(); custContentIt != fl2.end(); ++custContentIt ) { if ( Field::SingleField * sf3 = dynamic_cast( *custContentIt ) ) { if ( sf3->tag() == NM_A_SZ_TYPE ) - custom.status = (GroupWise::Status)sf3->value().toInt(); + custom.status = (GroupWise::tqStatus)sf3->value().toInt(); else if ( sf3->tag() == NM_A_SZ_DISPLAY_NAME ) custom.name = sf3->value().toString(); else if ( sf3->tag() == NM_A_SZ_MESSAGE_BODY ) custom.autoReply = sf3->value().toString(); } } - emit gotCustomStatus( custom ); + emit gotCustomtqStatus( custom ); } } } diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/logintask.h b/kopete/protocols/groupwise/libgroupwise/tasks/logintask.h index fdeaeb9d..f37add97 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/logintask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/logintask.h @@ -58,7 +58,7 @@ signals: void gotContact( const ContactItem & ); void gotContactUserDetails( const GroupWise::ContactDetails & ); void gotPrivacySettings( bool locked, bool defaultDeny, const TQStringList & allowList, const TQStringList & denyList ); - void gotCustomStatus( const GroupWise::CustomStatus & ); + void gotCustomtqStatus( const GroupWise::CustomtqStatus & ); void gotKeepalivePeriod( int ); }; diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/needfoldertask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/needfoldertask.cpp index 12c7382a..5a1eb414 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/needfoldertask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/needfoldertask.cpp @@ -38,7 +38,7 @@ void NeedFolderTask::slotFolderAdded( const FolderItem & addedFolder ) // if this is the folder we were trying to create if ( m_folderDisplayName == addedFolder.name ) { - client()->debug( TQString( "NeedFolderTask::slotFolderAdded() - Folder %1 was created on the server, now has objectId %2" ).arg( addedFolder.name ).arg( addedFolder.id ) ); + client()->debug( TQString( "NeedFolderTask::slotFolderAdded() - Folder %1 was created on the server, now has objectId %2" ).tqarg( addedFolder.name ).tqarg( addedFolder.id ) ); m_folderId = addedFolder.id; } } diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/pollsearchresultstask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/pollsearchresultstask.cpp index d65a5a20..38870112 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/pollsearchresultstask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/pollsearchresultstask.cpp @@ -59,7 +59,7 @@ bool PollSearchResultsTask::take( Transfer * transfer ) // look for the status code Field::FieldList responseFields = response->fields(); Field::SingleField * sf = responseFields.findSingleField( NM_A_SZ_STATUS ); - m_queryStatus = sf->value().toInt(); + m_querytqStatus = sf->value().toInt(); Field::MultiField * resultsArray = responseFields.findMultiField( NM_A_FA_RESULTS ); if ( !resultsArray ) @@ -90,10 +90,10 @@ bool PollSearchResultsTask::take( Transfer * transfer ) // followed by NM_A_FA_RESULTS, looks like a getdetails // add an accessor to get at the results list of ContactItems, probably - if ( m_queryStatus != 2 ) - setError( m_queryStatus ); + if ( m_querytqStatus != 2 ) + setError( m_querytqStatus ); else - setSuccess( m_queryStatus ); + setSuccess( m_querytqStatus ); return true; } @@ -102,9 +102,9 @@ TQValueList< GroupWise::ContactDetails > PollSearchResultsTask::results() return m_results; } -int PollSearchResultsTask::queryStatus() +int PollSearchResultsTask::querytqStatus() { - return m_queryStatus; + return m_querytqStatus; } GroupWise::ContactDetails PollSearchResultsTask::extractUserDetails( Field::FieldList & fields ) diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/pollsearchresultstask.h b/kopete/protocols/groupwise/libgroupwise/tasks/pollsearchresultstask.h index c69b7e0c..ccf0560b 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/pollsearchresultstask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/pollsearchresultstask.h @@ -42,11 +42,11 @@ public: ~PollSearchResultsTask(); void poll( const TQString & queryHandle); bool take( Transfer * transfer ); - int queryStatus(); + int querytqStatus(); TQValueList< GroupWise::ContactDetails > results(); GroupWise::ContactDetails extractUserDetails( Field::FieldList & fields ); private: - int m_queryStatus; + int m_querytqStatus; TQValueList< GroupWise::ContactDetails > m_results; }; diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/requesttask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/requesttask.cpp index 44f54124..7d4b41aa 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/requesttask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/requesttask.cpp @@ -50,7 +50,7 @@ void RequestTask::onGo() { if ( transfer() ) { - client()->debug( TQString( "%1::onGo() - sending %2 fields" ).arg( className() ).arg( static_cast( transfer() )->command() ) ); + client()->debug( TQString( "%1::onGo() - sending %2 fields" ).tqarg( className() ).tqarg( static_cast( transfer() )->command() ) ); send( static_cast( transfer() ) ); } else diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/searchchattask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/searchchattask.cpp index 87694eb4..946450e9 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/searchchattask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/searchchattask.cpp @@ -91,9 +91,9 @@ void SearchChatTask::slotPollForResults() void SearchChatTask::slotGotPollResults() { GetChatSearchResultsTask * gcsrt = (GetChatSearchResultsTask *)sender(); - kdDebug( GROUPWISE_DEBUG_GLOBAL ) << k_funcinfo << "status code is " << gcsrt->queryStatus() << endl; + kdDebug( GROUPWISE_DEBUG_GLOBAL ) << k_funcinfo << "status code is " << gcsrt->querytqStatus() << endl; m_polls++; - switch ( gcsrt->queryStatus() ) + switch ( gcsrt->querytqStatus() ) { case GetChatSearchResultsTask::GettingData: if ( m_polls < GW_POLL_MAXIMUM ) // restart timer diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/searchusertask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/searchusertask.cpp index 1b64c47d..3dde5297 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/searchusertask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/searchusertask.cpp @@ -50,7 +50,7 @@ SearchUserTask::~SearchUserTask() void SearchUserTask::search( const TQValueList & query ) { - m_queryHandle = TQString::number( TQDateTime::currentDateTime().toTime_t () ); + m_queryHandle = TQString::number( TQDateTime::tqcurrentDateTime().toTime_t () ); Field::FieldList lst; if ( query.isEmpty() ) { @@ -102,9 +102,9 @@ void SearchUserTask::slotPollForResults() void SearchUserTask::slotGotPollResults() { PollSearchResultsTask * psrt = (PollSearchResultsTask *)sender(); - kdDebug( GROUPWISE_DEBUG_GLOBAL ) << k_funcinfo << "status code is " << psrt->queryStatus() << endl; + kdDebug( GROUPWISE_DEBUG_GLOBAL ) << k_funcinfo << "status code is " << psrt->querytqStatus() << endl; m_polls++; - switch ( psrt->queryStatus() ) + switch ( psrt->querytqStatus() ) { case PollSearchResultsTask::Pending: case PollSearchResultsTask::InProgess: diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/setstatustask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/setstatustask.cpp index bf463407..817df4a6 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/setstatustask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/setstatustask.cpp @@ -30,20 +30,20 @@ SetStatusTask::~SetStatusTask() { } -void SetStatusTask::status( Status newStatus, const TQString &awayMessage, const TQString &autoReply ) +void SetStatusTask::status( tqStatus newtqStatus, const TQString &awayMessage, const TQString &autoReply ) { - if ( newStatus > GroupWise::Invalid ) + if ( newtqStatus > GroupWise::Invalid ) { setError( 1, "Invalid Status" ); return; } - m_status = newStatus; + m_status = newtqStatus; m_awayMessage = awayMessage; m_autoReply = autoReply; Field::FieldList lst; - lst.append( new Field::SingleField( NM_A_SZ_STATUS, 0, NMFIELD_TYPE_UTF8, TQString::number( newStatus ) ) ); + lst.append( new Field::SingleField( NM_A_SZ_STATUS, 0, NMFIELD_TYPE_UTF8, TQString::number( newtqStatus ) ) ); if ( !awayMessage.isNull() ) lst.append( new Field::SingleField( NM_A_SZ_STATUS_TEXT, 0, NMFIELD_TYPE_UTF8, awayMessage ) ); if ( !autoReply.isNull() ) @@ -51,7 +51,7 @@ void SetStatusTask::status( Status newStatus, const TQString &awayMessage, const createTransfer( "setstatus", lst ); } -Status SetStatusTask::requestedStatus() const +tqStatus SetStatusTask::requestedtqStatus() const { return m_status; } diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/setstatustask.h b/kopete/protocols/groupwise/libgroupwise/tasks/setstatustask.h index 4a7a753d..0c316220 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/setstatustask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/setstatustask.h @@ -34,12 +34,12 @@ Q_OBJECT public: SetStatusTask(Task* parent); ~SetStatusTask(); - void status( GroupWise::Status newStatus, const TQString &awayMessage, const TQString &autoReply ); - GroupWise::Status requestedStatus() const; + void status( GroupWise::tqStatus newtqStatus, const TQString &awayMessage, const TQString &autoReply ); + GroupWise::tqStatus requestedtqStatus() const; TQString awayMessage() const; TQString autoReply() const; private: - GroupWise::Status m_status; + GroupWise::tqStatus m_status; TQString m_awayMessage; TQString m_autoReply; }; diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/statustask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/statustask.cpp index e7272402..7076324a 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/statustask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/statustask.cpp @@ -37,8 +37,8 @@ bool StatusTask::take( Transfer * transfer ) if ( forMe( transfer, event ) ) { client()->debug( "Got a status change!" ); - client()->debug( TQString( "%1 changed status to %2, message: %3" ).arg( event->source() ).arg( event->status() ).arg( event->statusText() ) ); - emit gotStatus( event->source().lower(), event->status(), event->statusText() ); + client()->debug( TQString( "%1 changed status to %2, message: %3" ).tqarg( event->source() ).tqarg( event->status() ).tqarg( event->statusText() ) ); + emit gottqStatus( event->source().lower(), event->status(), event->statusText() ); return true; } else diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/statustask.h b/kopete/protocols/groupwise/libgroupwise/tasks/statustask.h index cc14bace..de5839d7 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/statustask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/statustask.h @@ -35,7 +35,7 @@ public: ~StatusTask(); bool take( Transfer * transfer ); signals: - void gotStatus( const TQString & contactId, TQ_UINT16 status, const TQString & statusText ); + void gottqStatus( const TQString & contactId, TQ_UINT16 status, const TQString & statusText ); }; #endif diff --git a/kopete/protocols/groupwise/libgroupwise/tests/field_test.cpp b/kopete/protocols/groupwise/libgroupwise/tests/field_test.cpp index 2dace60b..0eb61409 100644 --- a/kopete/protocols/groupwise/libgroupwise/tests/field_test.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tests/field_test.cpp @@ -62,15 +62,15 @@ void buildList() // sf - contactlist (empty field array) // sf - message body - Field::SingleField* sf = new Field::SingleField( NM_A_FA_MESSAGE, 0, NMFIELD_TYPE_UTF8, TQString::fromLatin1( "Da steh ich nun, ich armer Tor! Und bin so klug als wie zuvor..." ) ); + Field::SingleField* sf = new Field::SingleField( NM_A_FA_MESSAGE, 0, NMFIELD_TYPE_UTF8, TQString::tqfromLatin1( "Da steh ich nun, ich armer Tor! Und bin so klug als wie zuvor..." ) ); fl.append( sf ); - sf = new Field::SingleField( NM_A_SZ_TRANSACTION_ID, 0, NMFIELD_TYPE_UTF8, TQString::fromLatin1( "maeuschen" ) ); + sf = new Field::SingleField( NM_A_SZ_TRANSACTION_ID, 0, NMFIELD_TYPE_UTF8, TQString::tqfromLatin1( "maeuschen" ) ); fl.append( sf ); // nested list Field::FieldList nl; sf = new Field::SingleField( NM_A_SZ_STATUS, 0, NMFIELD_TYPE_UDWORD, 123 ); nl.append( sf ); - sf = new Field::SingleField( NM_A_SZ_MESSAGE_BODY, 0, NMFIELD_TYPE_UTF8, TQString::fromLatin1( "bla bla" ) ); + sf = new Field::SingleField( NM_A_SZ_MESSAGE_BODY, 0, NMFIELD_TYPE_UTF8, TQString::tqfromLatin1( "bla bla" ) ); nl.append( sf ); Field::MultiField* mf = new Field::MultiField( NM_A_FA_PARTICIPANTS, NMFIELD_METHOD_VALID, 0, NMFIELD_TYPE_ARRAY ); mf->setFields( nl ); diff --git a/kopete/protocols/groupwise/libgroupwise/userdetailsmanager.cpp b/kopete/protocols/groupwise/libgroupwise/userdetailsmanager.cpp index ceb29632..f87cfa25 100644 --- a/kopete/protocols/groupwise/libgroupwise/userdetailsmanager.cpp +++ b/kopete/protocols/groupwise/libgroupwise/userdetailsmanager.cpp @@ -88,7 +88,7 @@ void UserDetailsManager::requestDetails( const TQStringList & dnList, bool onlyU TQStringList::Iterator found = m_pendingDNs.find( *it ); if ( found == m_pendingDNs.end() ) { - m_client->debug( TQString( "UserDetailsManager::requestDetails - including %1" ).arg( (*it) ) ); + m_client->debug( TQString( "UserDetailsManager::requestDetails - including %1" ).tqarg( (*it) ) ); requestList.append( *it ); m_pendingDNs.append( *it ); } @@ -110,7 +110,7 @@ void UserDetailsManager::requestDetails( const TQStringList & dnList, bool onlyU void UserDetailsManager::requestDetails( const TQString & dn, bool onlyUnknown ) { - m_client->debug( TQString( "UserDetailsManager::requestDetails for %1" ).arg( dn ) ); + m_client->debug( TQString( "UserDetailsManager::requestDetails for %1" ).tqarg( dn ) ); TQStringList list; list.append( dn ); requestDetails( list, onlyUnknown ); diff --git a/kopete/protocols/groupwise/ui/gwaccountpreferences.ui b/kopete/protocols/groupwise/ui/gwaccountpreferences.ui index 40917ccf..21f774b5 100644 --- a/kopete/protocols/groupwise/ui/gwaccountpreferences.ui +++ b/kopete/protocols/groupwise/ui/gwaccountpreferences.ui @@ -53,7 +53,7 @@ - layout1 + tqlayout1 @@ -121,7 +121,7 @@ - layout66 + tqlayout66 @@ -269,7 +269,7 @@ Expanding - + 20 91 @@ -286,7 +286,7 @@ - + AlignCenter diff --git a/kopete/protocols/groupwise/ui/gwaddcontactpage.cpp b/kopete/protocols/groupwise/ui/gwaddcontactpage.cpp index a10bcc16..5ece3882 100644 --- a/kopete/protocols/groupwise/ui/gwaddcontactpage.cpp +++ b/kopete/protocols/groupwise/ui/gwaddcontactpage.cpp @@ -23,7 +23,7 @@ //#include #include -#include +#include #include #include #include diff --git a/kopete/protocols/groupwise/ui/gwchatpropswidget.ui b/kopete/protocols/groupwise/ui/gwchatpropswidget.ui index c4f9a9c6..726376a5 100644 --- a/kopete/protocols/groupwise/ui/gwchatpropswidget.ui +++ b/kopete/protocols/groupwise/ui/gwchatpropswidget.ui @@ -29,7 +29,7 @@ - layout16 + tqlayout16 @@ -341,7 +341,7 @@ - layout15 + tqlayout15 diff --git a/kopete/protocols/groupwise/ui/gwchatsearchwidget.ui b/kopete/protocols/groupwise/ui/gwchatsearchwidget.ui index 1899a525..63ffca38 100644 --- a/kopete/protocols/groupwise/ui/gwchatsearchwidget.ui +++ b/kopete/protocols/groupwise/ui/gwchatsearchwidget.ui @@ -65,7 +65,7 @@ - layout2 + tqlayout2 @@ -89,7 +89,7 @@ Expanding - + 340 20 diff --git a/kopete/protocols/groupwise/ui/gwcontactproperties.cpp b/kopete/protocols/groupwise/ui/gwcontactproperties.cpp index 5a991a42..e7b6ecb2 100644 --- a/kopete/protocols/groupwise/ui/gwcontactproperties.cpp +++ b/kopete/protocols/groupwise/ui/gwcontactproperties.cpp @@ -16,7 +16,7 @@ ************************************************************************* */ -#include +#include #include #include #include @@ -47,7 +47,7 @@ GroupWiseContactProperties::GroupWiseContactProperties( GroupWiseContact * conta init(); // set up the contents of the props widget m_propsWidget->m_userId->setText( contact->contactId() ); - m_propsWidget->m_status->setText( contact->onlineStatus().description() ); + m_propsWidget->m_status->setText( contact->onlinetqStatus().description() ); m_propsWidget->m_displayName->setText( contact->metaContact()->displayName() ); m_propsWidget->m_firstName->setText( contact->property( Kopete::Global::Properties::self()->firstName() ).value().toString() ); m_propsWidget->m_lastName->setText( contact->property( Kopete::Global::Properties::self()->lastName() ).value().toString() ); @@ -137,7 +137,7 @@ void GroupWiseContactProperties::slotCopy() kdDebug( GROUPWISE_DEBUG_GLOBAL ) << k_funcinfo << endl; if ( m_propsWidget->m_propsView->currentItem() ) { - TQClipboard *cb = kapp->clipboard(); + TQClipboard *cb = kapp->tqclipboard(); cb->setText( m_propsWidget->m_propsView->currentItem()->text( 1 ) ); } } diff --git a/kopete/protocols/groupwise/ui/gwcontactpropswidget.ui b/kopete/protocols/groupwise/ui/gwcontactpropswidget.ui index 95481add..b403abec 100644 --- a/kopete/protocols/groupwise/ui/gwcontactpropswidget.ui +++ b/kopete/protocols/groupwise/ui/gwcontactpropswidget.ui @@ -48,7 +48,7 @@ - layout15 + tqlayout15 @@ -73,7 +73,7 @@ textLabel14 - Status: + tqStatus: diff --git a/kopete/protocols/groupwise/ui/gwcontactsearch.ui b/kopete/protocols/groupwise/ui/gwcontactsearch.ui index 3713e31b..e6c6a2f6 100644 --- a/kopete/protocols/groupwise/ui/gwcontactsearch.ui +++ b/kopete/protocols/groupwise/ui/gwcontactsearch.ui @@ -21,7 +21,7 @@ - layout13 + tqlayout13 @@ -255,7 +255,7 @@ - layout12 + tqlayout12 @@ -264,7 +264,7 @@ - Status + tqStatus true @@ -318,7 +318,7 @@ - layout8 + tqlayout8 @@ -345,7 +345,7 @@ Expanding - + 20 141 diff --git a/kopete/protocols/groupwise/ui/gwcustomstatusedit.ui b/kopete/protocols/groupwise/ui/gwcustomstatusedit.ui index 0e81a783..9ef4caad 100644 --- a/kopete/protocols/groupwise/ui/gwcustomstatusedit.ui +++ b/kopete/protocols/groupwise/ui/gwcustomstatusedit.ui @@ -21,7 +21,7 @@ - layout3 + tqlayout3 @@ -43,7 +43,7 @@ - m_cmbStatus + m_cmbtqStatus @@ -51,7 +51,7 @@ textLabel3 - &Status: + &tqStatus: comboBox1 diff --git a/kopete/protocols/groupwise/ui/gwcustomstatuswidget.ui b/kopete/protocols/groupwise/ui/gwcustomstatuswidget.ui index 0c3efcac..821c6030 100644 --- a/kopete/protocols/groupwise/ui/gwcustomstatuswidget.ui +++ b/kopete/protocols/groupwise/ui/gwcustomstatuswidget.ui @@ -54,7 +54,7 @@ - layout2 + tqlayout2 @@ -94,7 +94,7 @@ Expanding - + 20 41 diff --git a/kopete/protocols/groupwise/ui/gweditaccountwidget.cpp b/kopete/protocols/groupwise/ui/gweditaccountwidget.cpp index 87296ab2..7f049d7c 100644 --- a/kopete/protocols/groupwise/ui/gweditaccountwidget.cpp +++ b/kopete/protocols/groupwise/ui/gweditaccountwidget.cpp @@ -20,7 +20,7 @@ */ #include -#include +#include #include #include diff --git a/kopete/protocols/groupwise/ui/gwprivacy.ui b/kopete/protocols/groupwise/ui/gwprivacy.ui index 60fb63db..1f4b6bcb 100644 --- a/kopete/protocols/groupwise/ui/gwprivacy.ui +++ b/kopete/protocols/groupwise/ui/gwprivacy.ui @@ -26,7 +26,7 @@ - layout11 + tqlayout11 @@ -34,7 +34,7 @@ - layout9 + tqlayout9 @@ -60,7 +60,7 @@ - layout8 + tqlayout8 @@ -76,7 +76,7 @@ Expanding - + 20 21 @@ -109,7 +109,7 @@ Expanding - + 20 53 @@ -142,7 +142,7 @@ Expanding - + 20 52 @@ -153,7 +153,7 @@ - layout10 + tqlayout10 diff --git a/kopete/protocols/groupwise/ui/gwprivacydialog.cpp b/kopete/protocols/groupwise/ui/gwprivacydialog.cpp index 80daff71..e6179882 100644 --- a/kopete/protocols/groupwise/ui/gwprivacydialog.cpp +++ b/kopete/protocols/groupwise/ui/gwprivacydialog.cpp @@ -49,7 +49,7 @@ private: }; GroupWisePrivacyDialog::GroupWisePrivacyDialog( GroupWiseAccount * account, TQWidget *parent, const char *name ) - : KDialogBase( parent, name, false, i18n( "Account specific privacy settings", "Manage Privacy for %1" ).arg( account->accountId() ), + : KDialogBase( parent, name, false, i18n( "Account specific privacy settings", "Manage Privacy for %1" ).tqarg( account->accountId() ), KDialogBase::Ok|KDialogBase::Apply|KDialogBase::Cancel, Ok, true ), m_account( account ), m_dirty( false ), m_searchDlg(0) { m_privacy = new GroupWisePrivacyWidget( this ); @@ -343,7 +343,7 @@ void GroupWisePrivacyDialog::commitChanges() void GroupWisePrivacyDialog::errorNotConnected() { KMessageBox::queuedMessageBox( this, KMessageBox::Information, - i18n( "You can only change privacy settings while you are logged in to the GroupWise Messenger server." ) , i18n("'%1' Not Logged In").arg( m_account->accountId() ) ); + i18n( "You can only change privacy settings while you are logged in to the GroupWise Messenger server." ) , i18n("'%1' Not Logged In").tqarg( m_account->accountId() ) ); } #include "gwprivacydialog.moc" diff --git a/kopete/protocols/groupwise/ui/gwreceiveinvitationdialog.cpp b/kopete/protocols/groupwise/ui/gwreceiveinvitationdialog.cpp index 6005f61a..547de1b5 100644 --- a/kopete/protocols/groupwise/ui/gwreceiveinvitationdialog.cpp +++ b/kopete/protocols/groupwise/ui/gwreceiveinvitationdialog.cpp @@ -50,7 +50,7 @@ ReceiveInvitationDialog::ReceiveInvitationDialog( GroupWiseAccount * account, co m_wid->m_contactName->setText( event.user ); m_wid->m_dateTime->setText( KGlobal::locale()->formatDateTime( event.timeStamp ) ); - m_wid->m_message->setText( TQString("%1").arg( event.message ) ); + m_wid->m_message->setText( TQString("%1").tqarg( event.message ) ); setMainWidget( m_wid ); } diff --git a/kopete/protocols/groupwise/ui/gwshowinvitation.ui b/kopete/protocols/groupwise/ui/gwshowinvitation.ui index 2027c579..48c061a9 100644 --- a/kopete/protocols/groupwise/ui/gwshowinvitation.ui +++ b/kopete/protocols/groupwise/ui/gwshowinvitation.ui @@ -21,7 +21,7 @@ - layout13 + tqlayout13 @@ -82,13 +82,13 @@ INVITE_MESSAGE - + WordBreak|AlignVCenter - layout14 + tqlayout14 @@ -112,7 +112,7 @@ Expanding - + 20 31 diff --git a/kopete/protocols/irc/ircaccount.cpp b/kopete/protocols/irc/ircaccount.cpp index e9d88985..9dbdfc4a 100644 --- a/kopete/protocols/irc/ircaccount.cpp +++ b/kopete/protocols/irc/ircaccount.cpp @@ -54,14 +54,14 @@ #include #include -#include +#include #include -const TQString IRCAccount::CONFIG_CODECMIB = TQString::fromLatin1("Codec"); -const TQString IRCAccount::CONFIG_NETWORKNAME = TQString::fromLatin1("NetworkName"); -const TQString IRCAccount::CONFIG_NICKNAME = TQString::fromLatin1("NickName"); -const TQString IRCAccount::CONFIG_USERNAME = TQString::fromLatin1("UserName"); -const TQString IRCAccount::CONFIG_REALNAME = TQString::fromLatin1("RealName"); +const TQString IRCAccount::CONFIG_CODECMIB = TQString::tqfromLatin1("Codec"); +const TQString IRCAccount::CONFIG_NETWORKNAME = TQString::tqfromLatin1("NetworkName"); +const TQString IRCAccount::CONFIG_NICKNAME = TQString::tqfromLatin1("NickName"); +const TQString IRCAccount::CONFIG_USERNAME = TQString::tqfromLatin1("UserName"); +const TQString IRCAccount::CONFIG_REALNAME = TQString::tqfromLatin1("RealName"); IRCAccount::IRCAccount(IRCProtocol *protocol, const TQString &accountId, const TQString &autoChan, const TQString& netName, const TQString &nickName) : Kopete::PasswordedAccount(protocol, accountId, 0, true), autoConnect( autoChan ), commandSource(0) @@ -79,7 +79,7 @@ IRCAccount::IRCAccount(IRCProtocol *protocol, const TQString &accountId, const T for( TQMap< TQString, TQString >::ConstIterator it = replies.begin(); it != replies.end(); ++it ) m_engine->addCustomCtcp( it.key(), it.data() ); - TQString version=i18n("Kopete IRC Plugin %1 [http://kopete.kde.org]").arg(kapp->aboutData()->version()); + TQString version=i18n("Kopete IRC Plugin %1 [http://kopete.kde.org]").tqarg(kapp->aboutData()->version()); m_engine->setVersionString( version ); TQObject::connect(m_engine, TQT_SIGNAL(successfullyChangedNick(const TQString &, const TQString &)), @@ -100,8 +100,8 @@ IRCAccount::IRCAccount(IRCProtocol *protocol, const TQString &accountId, const T TQObject::connect(m_engine, TQT_SIGNAL(incomingCtcpReply(const TQString &, const TQString &, const TQString &)), this, TQT_SLOT( slotNewCtcpReply(const TQString&, const TQString &, const TQString &))); - TQObject::connect(m_engine, TQT_SIGNAL(statusChanged(KIRC::Engine::Status)), - this, TQT_SLOT(engineStatusChanged(KIRC::Engine::Status))); + TQObject::connect(m_engine, TQT_SIGNAL(statusChanged(KIRC::Engine::tqStatus)), + this, TQT_SLOT(engineStatusChanged(KIRC::Engine::tqStatus))); TQObject::connect(m_engine, TQT_SIGNAL(incomingServerLoadTooHigh()), this, TQT_SLOT(slotServerBusy())); @@ -173,7 +173,7 @@ IRCAccount::IRCAccount(IRCProtocol *protocol, const TQString &accountId, const T /* Could not find this host. Add it to the networks structure */ m_network = new IRCNetwork; - m_network->name = i18n("Temporary Network - %1").arg( hostName ); + m_network->name = i18n("Temporary Network - %1").tqarg( hostName ); m_network->description = i18n("Network imported from previous version of Kopete, or an IRC URI"); IRCHost *host = new IRCHost; @@ -204,7 +204,7 @@ IRCAccount::IRCAccount(IRCProtocol *protocol, const TQString &accountId, const T m_contactManager = new IRCContactManager(mNickName, this); setMyself( m_contactManager->mySelf() ); - setAccountLabel( TQString::fromLatin1("%1@%2").arg(mNickName,networkName) ); + setAccountLabel( TQString::tqfromLatin1("%1@%2").tqarg(mNickName,networkName) ); m_myServer = m_contactManager->myServer(); m_joinChannelAction = new KAction ( i18n("Join Channel..."), TQString(), 0, this, @@ -226,7 +226,7 @@ void IRCAccount::slotNickInUse( const TQString &nick ) { TQString newNick = KInputDialog::getText( i18n("IRC Plugin"), - i18n("The nickname %1 is already in use. Please enter an alternate nickname:").arg(nick), + i18n("The nickname %1 is already in use. Please enter an alternate nickname:").tqarg(nick), nick); if (newNick.isNull()) @@ -243,23 +243,23 @@ void IRCAccount::slotNickInUse( const TQString &nick ) void IRCAccount::slotNickInUseAlert( const TQString &nick ) { - KMessageBox::error(Kopete::UI::Global::mainWidget(), i18n("The nickname %1 is already in use").arg(nick), i18n("IRC Plugin")); + KMessageBox::error(Kopete::UI::Global::mainWidget(), i18n("The nickname %1 is already in use").tqarg(nick), i18n("IRC Plugin")); } void IRCAccount::setAltNick( const TQString &altNick ) { - configGroup()->writeEntry(TQString::fromLatin1( "altNick" ), altNick); + configGroup()->writeEntry(TQString::tqfromLatin1( "altNick" ), altNick); } const TQString IRCAccount::altNick() const { - return configGroup()->readEntry(TQString::fromLatin1("altNick")); + return configGroup()->readEntry(TQString::tqfromLatin1("altNick")); } void IRCAccount::setAutoShowServerWindow( bool show ) { autoShowServerWindow = show; - configGroup()->writeEntry(TQString::fromLatin1( "AutoShowServerWindow" ), autoShowServerWindow); + configGroup()->writeEntry(TQString::tqfromLatin1( "AutoShowServerWindow" ), autoShowServerWindow); } const TQString IRCAccount::networkName() const @@ -306,8 +306,8 @@ void IRCAccount::setNetwork( const TQString &network ) KMessageBox::queuedMessageBox( Kopete::UI::Global::mainWidget(), KMessageBox::Error, i18n("The network associated with this account, %1, no longer exists. Please" - " ensure that the account has a valid network. The account will not be enabled until you do so.").arg(network), - i18n("Problem Loading %1").arg( accountId() ), 0 ); + " ensure that the account has a valid network. The account will not be enabled until you do so.").tqarg(network), + i18n("Problem Loading %1").tqarg( accountId() ), 0 ); } } @@ -338,29 +338,29 @@ TQTextCodec *IRCAccount::codec() const // FIXME: Move this to a dictionnary void IRCAccount::setDefaultPart( const TQString &defaultPart ) { - configGroup()->writeEntry( TQString::fromLatin1( "defaultPart" ), defaultPart ); + configGroup()->writeEntry( TQString::tqfromLatin1( "defaultPart" ), defaultPart ); } // FIXME: Move this to a dictionnary void IRCAccount::setDefaultQuit( const TQString &defaultQuit ) { - configGroup()->writeEntry( TQString::fromLatin1( "defaultQuit" ), defaultQuit ); + configGroup()->writeEntry( TQString::tqfromLatin1( "defaultQuit" ), defaultQuit ); } // FIXME: Move this to a dictionnary const TQString IRCAccount::defaultPart() const { - TQString partMsg = configGroup()->readEntry(TQString::fromLatin1("defaultPart")); + TQString partMsg = configGroup()->readEntry(TQString::tqfromLatin1("defaultPart")); if( partMsg.isEmpty() ) - return TQString::fromLatin1("Kopete %1 : http://kopete.kde.org").arg( kapp->aboutData()->version() ); + return TQString::tqfromLatin1("Kopete %1 : http://kopete.kde.org").tqarg( kapp->aboutData()->version() ); return partMsg; } const TQString IRCAccount::defaultQuit() const { - TQString quitMsg = configGroup()->readEntry(TQString::fromLatin1("defaultQuit")); + TQString quitMsg = configGroup()->readEntry(TQString::tqfromLatin1("defaultQuit")); if( quitMsg.isEmpty() ) - return TQString::fromLatin1("Kopete %1 : http://kopete.kde.org").arg(kapp->aboutData()->version()); + return TQString::tqfromLatin1("Kopete %1 : http://kopete.kde.org").tqarg(kapp->aboutData()->version()); return quitMsg; } @@ -370,7 +370,7 @@ void IRCAccount::setCustomCtcpReplies( const TQMap< TQString, TQString > &replie for( TQMap< TQString, TQString >::ConstIterator it = replies.begin(); it != replies.end(); ++it ) { m_engine->addCustomCtcp( it.key(), it.data() ); - val.append( TQString::fromLatin1("%1=%2").arg( it.key() ).arg( it.data() ) ); + val.append( TQString::tqfromLatin1("%1=%2").tqarg( it.key() ).tqarg( it.data() ) ); } configGroup()->writeEntry( "CustomCtcp", val ); @@ -416,7 +416,7 @@ void IRCAccount::setMessageDestinations( int serverNotices, int serverMessages, KActionMenu *IRCAccount::actionMenu() { - TQString menuTitle = TQString::fromLatin1( " %1 <%2> " ).arg( accountId() ).arg( myself()->onlineStatus().description() ); + TQString menuTitle = TQString::tqfromLatin1( " %1 <%2> " ).tqarg( accountId() ).tqarg( myself()->onlinetqStatus().description() ); KActionMenu *mActionMenu = Kopete::Account::actionMenu(); @@ -455,14 +455,14 @@ void IRCAccount::connectWithPassword(const TQString &password) { KMessageBox::queuedMessageBox( Kopete::UI::Global::mainWidget(), KMessageBox::Error, - i18n("The network associated with this account, %1, has no valid hosts. Please ensure that the account has a valid network.").arg(m_network->name), + i18n("The network associated with this account, %1, has no valid hosts. Please ensure that the account has a valid network.").tqarg(m_network->name), i18n("Network is Empty"), 0 ); } else if( currentHost == hosts.count() ) { KMessageBox::queuedMessageBox( Kopete::UI::Global::mainWidget(), KMessageBox::Error, - i18n("Kopete could not connect to any of the servers in the network associated with this account (%1). Please try again later.").arg(m_network->name), + i18n("Kopete could not connect to any of the servers in the network associated with this account (%1). Please try again later.").tqarg(m_network->name), i18n("Network is Unavailable"), 0 ); currentHost = 0; @@ -490,7 +490,7 @@ void IRCAccount::connectWithPassword(const TQString &password) } IRCHost *host = hosts[ currentHost++ ]; - myServer()->appendMessage( i18n("Connecting to %1...").arg( host->host ) ); + myServer()->appendMessage( i18n("Connecting to %1...").tqarg( host->host ) ); if( host->ssl ) myServer()->appendMessage( i18n("Using SSL") ); @@ -505,13 +505,13 @@ void IRCAccount::connectWithPassword(const TQString &password) } } -void IRCAccount::engineStatusChanged(KIRC::Engine::Status newStatus) +void IRCAccount::engineStatusChanged(KIRC::Engine::tqStatus newtqStatus) { kdDebug(14120) << k_funcinfo << endl; - mySelf()->updateStatus(); + mySelf()->updatetqStatus(); - switch (newStatus) + switch (newtqStatus) { case KIRC::Engine::Idle: // Do nothing. @@ -563,7 +563,7 @@ void IRCAccount::slotPerformOnConnectCommands() return; if (!autoConnect.isEmpty()) - Kopete::CommandHandler::commandHandler()->processMessage( TQString::fromLatin1("/join %1").arg(autoConnect), manager); + Kopete::CommandHandler::commandHandler()->processMessage( TQString::tqfromLatin1("/join %1").tqarg(autoConnect), manager); TQStringList commands(connectCommands()); for (TQStringList::Iterator it=commands.begin(); it != commands.end(); ++it) @@ -597,7 +597,7 @@ void IRCAccount::slotSearchChannels() if( !m_channelList ) { m_channelList = new ChannelListDialog( m_engine, - i18n("Channel List for %1").arg( m_engine->currentHost() ), this, + i18n("Channel List for %1").tqarg( m_engine->currentHost() ), this, TQT_SLOT( slotJoinNamedChannel( const TQString & ) ) ); } else @@ -653,17 +653,17 @@ void IRCAccount::slotShowServerWindow() bool IRCAccount::isConnected() { -// return ( myself()->onlineStatus().status() != Kopete::OnlineStatus::Offline ); +// return ( myself()->onlinetqStatus().status() != Kopete::OnlineStatus::Offline ); return m_engine->isConnected(); } void IRCAccount::setOnlineStatus( const Kopete::OnlineStatus& status , const TQString &reason ) { if ( status.status() == Kopete::OnlineStatus::Online && - myself()->onlineStatus().status() == Kopete::OnlineStatus::Offline ) + myself()->onlinetqStatus().status() == Kopete::OnlineStatus::Offline ) connect(); else if (status.status() == Kopete::OnlineStatus::Online && - myself()->onlineStatus().status() == Kopete::OnlineStatus::Away ) + myself()->onlinetqStatus().status() == Kopete::OnlineStatus::Away ) setAway( false ); else if ( status.status() == Kopete::OnlineStatus::Offline ) disconnect(); @@ -700,7 +700,7 @@ bool IRCAccount::createContact( const TQString &contactId, Kopete::MetaContact * return false; } - else if (contactId.startsWith(TQString::fromLatin1("#"))) + else if (contactId.startsWith(TQString::tqfromLatin1("#"))) { c = static_cast(contactManager()->findChannel(contactId, m)); } @@ -714,8 +714,8 @@ bool IRCAccount::createContact( const TQString &contactId, Kopete::MetaContact * {//This should NEVER happen Kopete::MetaContact *old = c->metaContact(); c->setMetaContact( m ); - Kopete::ContactPtrList children = old->contacts(); - if (children.isEmpty()) + Kopete::ContactPtrList tqchildren = old->contacts(); + if (tqchildren.isEmpty()) Kopete::ContactList::self()->removeMetaContact( old ); } else if( c->metaContact()->isTemporary() ) @@ -781,7 +781,7 @@ void IRCAccount::slotJoinChannel() } KMessageBox::error( Kopete::UI::Global::mainWidget(), - i18n("\"%1\" is an invalid channel. Channels must start with '#', '!', '+', or '&'.").arg(chan), + i18n("\"%1\" is an invalid channel. Channels must start with '#', '!', '+', or '&'.").tqarg(chan), i18n("IRC Plugin") ); } @@ -789,15 +789,15 @@ void IRCAccount::slotJoinChannel() void IRCAccount::slotNewCtcpReply(const TQString &type, const TQString &/*target*/, const TQString &messageReceived) { - appendMessage( i18n("CTCP %1 REPLY: %2").arg(type).arg(messageReceived), InfoReply ); + appendMessage( i18n("CTCP %1 REPLY: %2").tqarg(type).tqarg(messageReceived), InfoReply ); } void IRCAccount::slotNoSuchNickname( const TQString &nick ) { if( KIRC::Entity::isChannel(nick) ) - appendMessage( i18n("The channel \"%1\" does not exist").arg(nick), UnknownReply ); + appendMessage( i18n("The channel \"%1\" does not exist").tqarg(nick), UnknownReply ); else - appendMessage( i18n("The nickname \"%1\" does not exist").arg(nick), UnknownReply ); + appendMessage( i18n("The nickname \"%1\" does not exist").tqarg(nick), UnknownReply ); } void IRCAccount::appendMessage( const TQString &message, MessageType type ) @@ -852,7 +852,7 @@ void IRCAccount::appendMessage( const TQString &message, MessageType type ) if( destination == KNotify ) { KNotifyClient::event( - Kopete::UI::Global::mainWidget()->winId(), TQString::fromLatin1("irc_event"), message + Kopete::UI::Global::mainWidget()->winId(), TQString::tqfromLatin1("irc_event"), message ); } } diff --git a/kopete/protocols/irc/ircaccount.h b/kopete/protocols/irc/ircaccount.h index 0d8fc313..3e5bf304 100644 --- a/kopete/protocols/irc/ircaccount.h +++ b/kopete/protocols/irc/ircaccount.h @@ -194,7 +194,7 @@ protected: virtual bool createContact( const TQString &contactId, Kopete::MetaContact *parentContact ) ; private slots: - void engineStatusChanged(KIRC::Engine::Status newStatus); + void engineStatusChanged(KIRC::Engine::tqStatus newtqStatus); void destroyed(IRCContact *contact); diff --git a/kopete/protocols/irc/ircaddcontactpage.cpp b/kopete/protocols/irc/ircaddcontactpage.cpp index f6c3f68e..6b19721c 100644 --- a/kopete/protocols/irc/ircaddcontactpage.cpp +++ b/kopete/protocols/irc/ircaddcontactpage.cpp @@ -23,7 +23,7 @@ #include "ircaccount.h" -#include +#include #include #include #include diff --git a/kopete/protocols/irc/ircchannelcontact.cpp b/kopete/protocols/irc/ircchannelcontact.cpp index 94d67d3a..45121c34 100644 --- a/kopete/protocols/irc/ircchannelcontact.cpp +++ b/kopete/protocols/irc/ircchannelcontact.cpp @@ -66,7 +66,7 @@ IRCChannelContact::IRCChannelContact(IRCContactManager *contactManager, const TQ actionModeI = new KToggleAction(i18n("&Invite Only"), 0, this, TQT_SLOT(slotModeChanged()), this ); actionHomePage = 0L; - updateStatus(); + updatetqStatus(); } IRCChannelContact::~IRCChannelContact() @@ -77,10 +77,10 @@ void IRCChannelContact::slotUpdateInfo() { /** This woudl be nice, but it generates server errors too often - if( !manager(Kopete::Contact::CannotCreate) && onlineStatus() == m_protocol->m_ChannelStatusOnline ) - kircEngine()->writeMessage( TQString::fromLatin1("LIST %1").arg(m_nickName) ); + if( !manager(Kopete::Contact::CannotCreate) && onlinetqStatus() == m_protocol->m_ChannelStatusOnline ) + kircEngine()->writeMessage( TQString::tqfromLatin1("LIST %1").tqarg(m_nickName) ); else - setProperty( TQString::fromLatin1("channelMembers"), i18n("Members"), manager()->members().count() ); + setProperty( TQString::tqfromLatin1("channelMembers"), i18n("Members"), manager()->members().count() ); */ KIRC::Engine *engine = kircEngine(); @@ -88,7 +88,7 @@ void IRCChannelContact::slotUpdateInfo() if (manager(Kopete::Contact::CannotCreate)) { setProperty(m_protocol->propChannelMembers, manager()->members().count()); - engine->writeMessage(TQString::fromLatin1("WHO %1").arg(m_nickName)); + engine->writeMessage(TQString::tqfromLatin1("WHO %1").tqarg(m_nickName)); } else { @@ -102,7 +102,7 @@ void IRCChannelContact::slotUpdateInfo() void IRCChannelContact::slotChannelListed( const TQString &channel, uint members, const TQString &topic ) { if (!manager(Kopete::Contact::CannotCreate) && - onlineStatus() == m_protocol->m_ChannelStatusOnline && + onlinetqStatus() == m_protocol->m_ChannelStatusOnline && channel.lower() == m_nickName.lower()) { mTopic = topic; @@ -126,9 +126,9 @@ void IRCChannelContact::toggleOperatorActions(bool enabled) actionModeI->setEnabled(enabled); } -void IRCChannelContact::slotOnlineStatusChanged(Kopete::Contact *c, const Kopete::OnlineStatus &status, const Kopete::OnlineStatus &oldStatus) +void IRCChannelContact::slotOnlineStatusChanged(Kopete::Contact *c, const Kopete::OnlineStatus &status, const Kopete::OnlineStatus &oldtqStatus) { - Q_UNUSED(oldStatus); + Q_UNUSED(oldtqStatus); if (c == account()->myself()) { if (status.internalStatus() & IRCProtocol::Operator) { @@ -141,9 +141,9 @@ void IRCChannelContact::slotOnlineStatusChanged(Kopete::Contact *c, const Kopete } } -void IRCChannelContact::updateStatus() +void IRCChannelContact::updatetqStatus() { - KIRC::Engine::Status status = kircEngine()->status(); + KIRC::Engine::tqStatus status = kircEngine()->status(); switch (status) { case KIRC::Engine::Idle: @@ -251,7 +251,7 @@ void IRCChannelContact::slotAddNicknames() else if( firstChar == '+') status = m_protocol->m_UserStatusVoice; else - status = user->onlineStatus(); + status = user->onlinetqStatus(); if( user != account->mySelf() ) manager()->addContact(user , status, true); @@ -272,12 +272,12 @@ void IRCChannelContact::channelTopic(const TQString &topic) if (mTopic.isEmpty()) { Kopete::Message msg((Kopete::Contact*)this, mMyself, - i18n("Topic for %1 is set empty.").arg(m_nickName), + i18n("Topic for %1 is set empty.").tqarg(m_nickName), Kopete::Message::Internal, Kopete::Message::RichText, CHAT_VIEW); appendMessage(msg); } else { Kopete::Message msg((Kopete::Contact*)this, mMyself, - i18n("Topic for %1 is %2").arg(m_nickName).arg(mTopic), + i18n("Topic for %1 is %2").tqarg(m_nickName).tqarg(mTopic), Kopete::Message::Internal, Kopete::Message::RichText, CHAT_VIEW); appendMessage(msg); } @@ -292,7 +292,7 @@ void IRCChannelContact::channelHomePage(const TQString &url) void IRCChannelContact::join() { if (!manager(Kopete::Contact::CannotCreate) && - onlineStatus().status() == Kopete::OnlineStatus::Online) + onlinetqStatus().status() == Kopete::OnlineStatus::Online) { kdDebug() << k_funcinfo << "My nickname:" << m_nickName << endl; kdDebug() << k_funcinfo << "My manager:" << manager(Kopete::Contact::CannotCreate) << endl; @@ -362,7 +362,7 @@ void IRCChannelContact::userJoinedChannel(const TQString &nickname) kdDebug() << k_funcinfo << "My view:" << manager(Kopete::Contact::CannotCreate)->view(false) << endl; Kopete::Message msg((Kopete::Contact *)this, mMyself, - i18n("You have joined channel %1").arg(m_nickName), + i18n("You have joined channel %1").tqarg(m_nickName), Kopete::Message::Internal, Kopete::Message::PlainText, CHAT_VIEW); msg.setImportance( Kopete::Message::Low); //set the importance manualy to low @@ -378,7 +378,7 @@ void IRCChannelContact::userJoinedChannel(const TQString &nickname) contact->setOnlineStatus( m_protocol->m_UserStatusOnline ); manager()->addContact((Kopete::Contact *)contact, true); Kopete::Message msg((Kopete::Contact *)this, mMyself, - i18n("User %1 joined channel %2").arg(nickname).arg(m_nickName), + i18n("User %1 joined channel %2").tqarg(nickname).tqarg(m_nickName), Kopete::Message::Internal, Kopete::Message::RichText, CHAT_VIEW); msg.setImportance( Kopete::Message::Low); //set the importance manualy to low manager()->appendMessage(msg); @@ -413,9 +413,9 @@ void IRCChannelContact::userKicked(const TQString &nick, const TQString &nickKic TQString r; if ((reason != nick) && (reason != nickKicked)) { - r = i18n( "%1 was kicked by %2. Reason: %3" ).arg(nickKicked, nick, reason); + r = i18n( "%1 was kicked by %2. Reason: %3" ).tqarg(nickKicked, nick, reason); } else { - r = i18n( "%1 was kicked by %2." ).arg(nickKicked, nick); + r = i18n( "%1 was kicked by %2." ).tqarg(nickKicked, nick); } manager()->removeContact( c, r ); @@ -434,9 +434,9 @@ void IRCChannelContact::userKicked(const TQString &nick, const TQString &nickKic TQString r; if ((reason != nick) && (reason != nickKicked)) { - r = i18n( "You were kicked from %1 by %2. Reason: %3" ).arg(m_nickName, nickKicked, reason); + r = i18n( "You were kicked from %1 by %2. Reason: %3" ).tqarg(m_nickName, nickKicked, reason); } else { - r = i18n( "You were kicked from %1 by %2." ).arg(m_nickName, nickKicked); + r = i18n( "You were kicked from %1 by %2." ).tqarg(m_nickName, nickKicked); } KMessageBox::error(Kopete::UI::Global::mainWidget(), r, i18n("IRC Plugin")); @@ -468,7 +468,7 @@ void IRCChannelContact::setTopic(const TQString &topic) else { Kopete::Message msg(account->myServer(), manager()->members(), - i18n("You must be a channel operator on %1 to do that.").arg(m_nickName), + i18n("You must be a channel operator on %1 to do that.").tqarg(m_nickName), Kopete::Message::Internal, Kopete::Message::PlainText, CHAT_VIEW); manager()->appendMessage(msg); } @@ -483,7 +483,7 @@ void IRCChannelContact::topicChanged(const TQString &nick, const TQString &newto setProperty( m_protocol->propChannelTopic, mTopic ); manager()->setDisplayName( caption() ); Kopete::Message msg(account->myServer(), mMyself, - i18n("%1 has changed the topic to: %2").arg(nick).arg(newtopic), + i18n("%1 has changed the topic to: %2").tqarg(nick).tqarg(newtopic), Kopete::Message::Internal, Kopete::Message::RichText, CHAT_VIEW); msg.setImportance(Kopete::Message::Low); //set the importance manualy to low appendMessage(msg); @@ -494,7 +494,7 @@ void IRCChannelContact::topicUser(const TQString &nick, const TQDateTime &time) IRCAccount *account = ircAccount(); Kopete::Message msg(account->myServer(), mMyself, - i18n("Topic set by %1 at %2").arg(nick).arg( + i18n("Topic set by %1 at %2").tqarg(nick).tqarg( KGlobal::locale()->formatDateTime(time, true) ), Kopete::Message::Internal, Kopete::Message::PlainText, CHAT_VIEW); msg.setImportance(Kopete::Message::Low); //set the importance manualy to low @@ -503,7 +503,7 @@ void IRCChannelContact::topicUser(const TQString &nick, const TQDateTime &time) void IRCChannelContact::incomingModeChange( const TQString &nick, const TQString &mode ) { - Kopete::Message msg(this, mMyself, i18n("%1 sets mode %2 on %3").arg(nick).arg(mode).arg(m_nickName), Kopete::Message::Internal, Kopete::Message::PlainText, CHAT_VIEW); + Kopete::Message msg(this, mMyself, i18n("%1 sets mode %2 on %3").tqarg(nick).tqarg(mode).tqarg(m_nickName), Kopete::Message::Internal, Kopete::Message::PlainText, CHAT_VIEW); msg.setImportance( Kopete::Message::Low); //set the importance manualy to low appendMessage(msg); @@ -564,7 +564,7 @@ void IRCChannelContact::failedChanBanned() { manager()->deleteLater(); KMessageBox::error( Kopete::UI::Global::mainWidget(), - i18n("You can not join %1 because you have been banned.").arg(m_nickName), + i18n("You can not join %1 because you have been banned.").tqarg(m_nickName), i18n("IRC Plugin") ); } @@ -572,14 +572,14 @@ void IRCChannelContact::failedChanInvite() { manager()->deleteLater(); KMessageBox::error( Kopete::UI::Global::mainWidget(), - i18n("You can not join %1 because it is set to invite only, and no one has invited you.").arg(m_nickName), i18n("IRC Plugin") ); + i18n("You can not join %1 because it is set to invite only, and no one has invited you.").tqarg(m_nickName), i18n("IRC Plugin") ); } void IRCChannelContact::failedChanFull() { manager()->deleteLater(); KMessageBox::error( Kopete::UI::Global::mainWidget(), - i18n("You can not join %1 because it has reached its user limit.").arg(m_nickName), + i18n("You can not join %1 because it has reached its user limit.").tqarg(m_nickName), i18n("IRC Plugin") ); } @@ -587,7 +587,7 @@ void IRCChannelContact::failedChankey() { bool ok; TQString diaPassword = KInputDialog::getText( i18n( "IRC Plugin" ), - i18n( "Please enter key for channel %1: ").arg(m_nickName), + i18n( "Please enter key for channel %1: ").tqarg(m_nickName), TQString(), &ok ); @@ -636,9 +636,9 @@ void IRCChannelContact::toggleMode( TQChar mode, bool enabled, bool update ) if( modeMap[mode] != enabled ) { if( enabled ) - setMode( TQString::fromLatin1("+") + mode ); + setMode( TQString::tqfromLatin1("+") + mode ); else - setMode( TQString::fromLatin1("-") + mode ); + setMode( TQString::tqfromLatin1("-") + mode ); } } @@ -717,9 +717,9 @@ void IRCChannelContact::slotHomepage() const TQString IRCChannelContact::caption() const { - TQString cap = TQString::fromLatin1("%1 @ %2").arg(m_nickName).arg(kircEngine()->currentHost()); + TQString cap = TQString::tqfromLatin1("%1 @ %2").tqarg(m_nickName).tqarg(kircEngine()->currentHost()); if(!mTopic.isEmpty()) - cap.append( TQString::fromLatin1(" - %1").arg(Kopete::Message::unescape(mTopic)) ); + cap.append( TQString::tqfromLatin1(" - %1").tqarg(Kopete::Message::unescape(mTopic)) ); return cap; } diff --git a/kopete/protocols/irc/ircchannelcontact.h b/kopete/protocols/irc/ircchannelcontact.h index 7906e0d1..67fa46c9 100644 --- a/kopete/protocols/irc/ircchannelcontact.h +++ b/kopete/protocols/irc/ircchannelcontact.h @@ -96,7 +96,7 @@ public: void newAction(const TQString &from, const TQString &action); public slots: - void updateStatus(); + void updatetqStatus(); /** * Sets the topic of this channel @@ -128,7 +128,7 @@ private slots: void slotUpdateInfo(); void slotHomepage(); void slotChannelListed(const TQString &channel, uint members, const TQString &topic); - void slotOnlineStatusChanged(Kopete::Contact *c, const Kopete::OnlineStatus &status, const Kopete::OnlineStatus &oldStatus); + void slotOnlineStatusChanged(Kopete::Contact *c, const Kopete::OnlineStatus &status, const Kopete::OnlineStatus &oldtqStatus); private: KAction *actionJoin; diff --git a/kopete/protocols/irc/irccontact.cpp b/kopete/protocols/irc/irccontact.cpp index 1ed783e1..7df5894c 100644 --- a/kopete/protocols/irc/irccontact.cpp +++ b/kopete/protocols/irc/irccontact.cpp @@ -22,7 +22,7 @@ #include #include -#include +#include #include "ircaccount.h" #include "kopeteglobal.h" @@ -67,8 +67,8 @@ IRCContact::IRCContact(IRCContactManager *contactManager, const TQString &nick, TQObject::connect(engine, TQT_SIGNAL(incomingQuitIRC(const TQString &, const TQString &)), this, TQT_SLOT( slotUserDisconnected(const TQString&, const TQString&))); - TQObject::connect(engine, TQT_SIGNAL(statusChanged(KIRC::Engine::Status)), - this, TQT_SLOT(updateStatus())); + TQObject::connect(engine, TQT_SIGNAL(statusChanged(KIRC::Engine::tqStatus)), + this, TQT_SLOT(updatetqStatus())); engine->setCodec( m_nickName, codec() ); } @@ -94,8 +94,8 @@ KIRC::Engine *IRCContact::kircEngine() const bool IRCContact::isReachable() { - if (onlineStatus().status() != Kopete::OnlineStatus::Offline && - onlineStatus().status() != Kopete::OnlineStatus::Unknown) + if (onlinetqStatus().status() != Kopete::OnlineStatus::Offline && + onlinetqStatus().status() != Kopete::OnlineStatus::Unknown) return true; return false; @@ -111,7 +111,7 @@ const TQString IRCContact::formatedName() const return TQString(); } */ -void IRCContact::updateStatus() +void IRCContact::updatetqStatus() { } @@ -122,12 +122,12 @@ void IRCContact::privateMessage(IRCContact *, IRCContact *, const TQString &) void IRCContact::setCodec(const TQTextCodec *codec) { kircEngine()->setCodec(m_nickName, codec); - metaContact()->setPluginData(m_protocol, TQString::fromLatin1("Codec"), TQString::number(codec->mibEnum())); + metaContact()->setPluginData(m_protocol, TQString::tqfromLatin1("Codec"), TQString::number(codec->mibEnum())); } const TQTextCodec *IRCContact::codec() { - TQString codecId = metaContact()->pluginData(m_protocol, TQString::fromLatin1("Codec")); + TQString codecId = metaContact()->pluginData(m_protocol, TQString::tqfromLatin1("Codec")); TQTextCodec *codec = ircAccount()->codec(); if( !codecId.isEmpty() ) @@ -186,7 +186,7 @@ void IRCContact::slotUserDisconnected(const TQString &user, const TQString &reas Kopete::Contact *c = locateUser( nickname ); if ( c ) { - m_chatSession->removeContact(c, i18n("Quit: \"%1\" ").arg(reason), Kopete::Message::RichText); + m_chatSession->removeContact(c, i18n("Quit: \"%1\" ").tqarg(reason), Kopete::Message::RichText); c->setOnlineStatus(m_protocol->m_UserStatusOffline); } } @@ -229,9 +229,9 @@ void IRCContact::slotSendMsg(Kopete::Message &message, Kopete::ChatSession *) // Two-liner in color: // Hello
World
- if (htmlString.find(TQString::fromLatin1(" -1) + if (htmlString.find(TQString::tqfromLatin1(" -1) { - TQRegExp findTags( TQString::fromLatin1("(.*)") ); + TQRegExp findTags( TQString::tqfromLatin1("(.*)") ); findTags.setMinimal( true ); int pos = 0; @@ -249,19 +249,19 @@ void IRCContact::slotSendMsg(Kopete::Message &message, Kopete::ChatSession *) TQString attribute = (*attrPair).section(':',0,0); TQString value = (*attrPair).section(':',1); - if( attribute == TQString::fromLatin1("color") ) + if( attribute == TQString::tqfromLatin1("color") ) { int ircColor = KSParser::colorForHTML( value ); if( ircColor > -1 ) replacement.prepend( TQString( TQChar(0x03) ).append( TQString::number(ircColor) ) ).append( TQChar( 0x03 ) ); } - else if( attribute == TQString::fromLatin1("font-weight") && - value == TQString::fromLatin1("600") ) { + else if( attribute == TQString::tqfromLatin1("font-weight") && + value == TQString::tqfromLatin1("600") ) { // Bolding replacement.prepend( TQChar(0x02) ).append( TQChar(0x02) ); } - else if( attribute == TQString::fromLatin1("text-decoration") && - value == TQString::fromLatin1("underline") ) { + else if( attribute == TQString::tqfromLatin1("text-decoration") && + value == TQString::tqfromLatin1("underline") ) { replacement.prepend( TQChar(31) ).append( TQChar(31) ); } } diff --git a/kopete/protocols/irc/irccontact.h b/kopete/protocols/irc/irccontact.h index a415929d..823f23ae 100644 --- a/kopete/protocols/irc/irccontact.h +++ b/kopete/protocols/irc/irccontact.h @@ -121,7 +121,7 @@ signals: public slots: void setCodec( const TQTextCodec *codec ); - virtual void updateStatus(); + virtual void updatetqStatus(); protected slots: virtual void slotSendMsg(Kopete::Message &message, Kopete::ChatSession *); diff --git a/kopete/protocols/irc/ircprotocol.cpp b/kopete/protocols/irc/ircprotocol.cpp index a8b39299..b60f5a58 100644 --- a/kopete/protocols/irc/ircprotocol.cpp +++ b/kopete/protocols/irc/ircprotocol.cpp @@ -72,7 +72,7 @@ IRCProtocol *IRCProtocol::s_protocol = 0L; IRCProtocolHandler::IRCProtocolHandler() : Kopete::MimeTypeHandler( false ) { - registerAsProtocolHandler( TQString::fromLatin1("irc") ); + registerAsProtocolHandler( TQString::tqfromLatin1("irc") ); } void IRCProtocolHandler::handleURL( const KURL &url ) const @@ -90,7 +90,7 @@ void IRCProtocolHandler::handleURL( const KURL &url ) const return; KUser user( getuid() ); - TQString accountId = TQString::fromLatin1("%1@%2:%3").arg( + TQString accountId = TQString::tqfromLatin1("%1@%2:%3").tqarg( user.loginName(), url.host(), TQString::number(port) @@ -149,141 +149,141 @@ IRCProtocol::IRCProtocol( TQObject *parent, const char *name, const TQStringList m_StatusUnknown(Kopete::OnlineStatus::Unknown, 999, this, 999, "status_unknown", i18n("Status not available")), - propChannelTopic(TQString::fromLatin1("channelTopic"), i18n("Topic"), TQString(), false, true ), - propChannelMembers(TQString::fromLatin1("channelMembers"), i18n("Members")), - propHomepage(TQString::fromLatin1("homePage"), i18n("Home Page")), + propChannelTopic(TQString::tqfromLatin1("channelTopic"), i18n("Topic"), TQString(), false, true ), + propChannelMembers(TQString::tqfromLatin1("channelMembers"), i18n("Members")), + propHomepage(TQString::tqfromLatin1("homePage"), i18n("Home Page")), propLastSeen(Kopete::Global::Properties::self()->lastSeen()), - propUserInfo(TQString::fromLatin1("userInfo"), i18n("IRC User")), - propServer(TQString::fromLatin1("ircServer"), i18n("IRC Server")), - propChannels( TQString::fromLatin1("ircChannels"), i18n("IRC Channels")), - propHops(TQString::fromLatin1("ircHops"), i18n("IRC Hops")), - propFullName(TQString::fromLatin1("FormattedName"), i18n("Full Name")), - propIsIdentified(TQString::fromLatin1("identifiedUser"), i18n("User Is Authenticated")) + propUserInfo(TQString::tqfromLatin1("userInfo"), i18n("IRC User")), + propServer(TQString::tqfromLatin1("ircServer"), i18n("IRC Server")), + propChannels( TQString::tqfromLatin1("ircChannels"), i18n("IRC Channels")), + propHops(TQString::tqfromLatin1("ircHops"), i18n("IRC Hops")), + propFullName(TQString::tqfromLatin1("FormattedName"), i18n("Full Name")), + propIsIdentified(TQString::tqfromLatin1("identifiedUser"), i18n("User Is Authenticated")) { // kdDebug(14120) << k_funcinfo << endl; s_protocol = this; - //m_status = m_unknownStatus = m_Unknown; + //m_status = m_unknowntqStatus = m_Unknown; addAddressBookField("messaging/irc", Kopete::Plugin::MakeIndexField); - Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::fromLatin1("raw"), + Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::tqfromLatin1("raw"), TQT_SLOT( slotRawCommand( const TQString &, Kopete::ChatSession*) ), i18n("USAGE: /raw - Sends the text in raw form to the server."), 1 ); - Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::fromLatin1("quote"), + Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::tqfromLatin1("quote"), TQT_SLOT( slotQuoteCommand( const TQString &, Kopete::ChatSession*) ), i18n("USAGE: /quote - Sends the text in quoted form to the server."), 1 ); - Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::fromLatin1("ctcp"), + Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::tqfromLatin1("ctcp"), TQT_SLOT( slotCtcpCommand( const TQString &, Kopete::ChatSession*) ), i18n("USAGE: /ctcp - Send the CTCP message to nick."), 2 ); - Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::fromLatin1("ping"), + Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::tqfromLatin1("ping"), TQT_SLOT( slotPingCommand( const TQString &, Kopete::ChatSession*) ), i18n("USAGE: /ping - Alias for /CTCP PING."), 1, 1 ); - Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::fromLatin1("motd"), + Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::tqfromLatin1("motd"), TQT_SLOT( slotMotdCommand( const TQString &, Kopete::ChatSession*) ), i18n("USAGE: /motd [] - Shows the message of the day for the current or the given server.") ); - Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::fromLatin1("list"), + Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::tqfromLatin1("list"), TQT_SLOT( slotListCommand( const TQString &, Kopete::ChatSession*) ), i18n("USAGE: /list - List the public channels on the server.") ); - Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::fromLatin1("join"), + Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::tqfromLatin1("join"), TQT_SLOT( slotJoinCommand( const TQString &, Kopete::ChatSession*) ), i18n("USAGE: /join <#channel 1> [] - Joins the specified channel."), 1, 2 ); - Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::fromLatin1("topic"), + Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::tqfromLatin1("topic"), TQT_SLOT( slotTopicCommand( const TQString &, Kopete::ChatSession*) ), i18n("USAGE: /topic [] - Sets and/or displays the topic for the active channel.") ); //FIXME: Update help text - Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::fromLatin1("whois"), + Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::tqfromLatin1("whois"), TQT_SLOT( slotWhoisCommand( const TQString &, Kopete::ChatSession*) ), i18n("USAGE: /whois - Display whois info on this user."), 1 ); - Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::fromLatin1("whowas"), + Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::tqfromLatin1("whowas"), TQT_SLOT( slotWhoWasCommand( const TQString &, Kopete::ChatSession*) ), i18n("USAGE: /whowas - Display whowas info on this user."), 1, 1 ); - Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::fromLatin1("who"), + Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::tqfromLatin1("who"), TQT_SLOT( slotWhoCommand( const TQString &, Kopete::ChatSession*) ), i18n("USAGE: /who - Display who info on this user/channel."), 1, 1 ); - Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::fromLatin1("query"), + Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::tqfromLatin1("query"), TQT_SLOT( slotQueryCommand( const TQString &, Kopete::ChatSession*) ), i18n("USAGE: /query [] - Open a private chat with this user."), 1 ); - Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::fromLatin1("mode"), + Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::tqfromLatin1("mode"), TQT_SLOT( slotModeCommand( const TQString &, Kopete::ChatSession*) ), i18n("USAGE: /mode - Set modes on the given channel."), 2 ); - Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::fromLatin1("nick"), + Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::tqfromLatin1("nick"), TQT_SLOT( slotNickCommand( const TQString &, Kopete::ChatSession*) ), i18n("USAGE: /nick - Change your nickname to the given one."), 1, 1 ); - Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::fromLatin1("me"), + Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::tqfromLatin1("me"), TQT_SLOT( slotMeCommand( const TQString &, Kopete::ChatSession*) ), i18n("USAGE: /me - Do something."), 1 ); - Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::fromLatin1("ame"), + Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::tqfromLatin1("ame"), TQT_SLOT( slotAllMeCommand( const TQString &, Kopete::ChatSession*) ), i18n("USAGE: /ame - Do something in every open chat."), 1 ); - Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::fromLatin1("kick"), + Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::tqfromLatin1("kick"), TQT_SLOT( slotKickCommand( const TQString &, Kopete::ChatSession*) ), i18n("USAGE: /kick [] - Kick someone from the channel (requires operator status).") , 1 ); - Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::fromLatin1("ban"), + Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::tqfromLatin1("ban"), TQT_SLOT( slotBanCommand( const TQString &, Kopete::ChatSession*) ), i18n("USAGE: /ban - Add someone to this channel's ban list. (requires operator status)."), 1, 1 ); - Kopete::CommandHandler::commandHandler()->registerAlias( this, TQString::fromLatin1("bannick"), - TQString::fromLatin1("ban %1!*@*"), + Kopete::CommandHandler::commandHandler()->registerAlias( this, TQString::tqfromLatin1("bannick"), + TQString::tqfromLatin1("ban %1!*@*"), i18n("USAGE: /bannick - Add someone to this channel's ban list. Uses the hostmask nickname!*@* (requires operator status)."), Kopete::CommandHandler::SystemAlias, 1, 1 ); - Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::fromLatin1("op"), + Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::tqfromLatin1("op"), TQT_SLOT( slotOpCommand( const TQString &, Kopete::ChatSession*) ), i18n("USAGE: /op [ <...>] - Give channel operator status to someone (requires operator status)."), 1 ); - Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::fromLatin1("deop"), + Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::tqfromLatin1("deop"), TQT_SLOT( slotDeopCommand( const TQString &, Kopete::ChatSession*) ), i18n("USAGE: /deop [ <...>]- Remove channel operator status from someone (requires operator status)."), 1 ); - Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::fromLatin1("voice"), + Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::tqfromLatin1("voice"), TQT_SLOT( slotVoiceCommand( const TQString &, Kopete::ChatSession*) ), i18n("USAGE: /voice [ <...>]- Give channel voice status to someone (requires operator status)."), 1); - Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::fromLatin1("devoice"), + Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::tqfromLatin1("devoice"), TQT_SLOT( slotDevoiceCommand( const TQString &, Kopete::ChatSession*) ), i18n("USAGE: /devoice [ <...>]- Remove channel voice status from someone (requires operator status)."), 1 ); - Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::fromLatin1("quit"), + Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::tqfromLatin1("quit"), TQT_SLOT( slotQuitCommand( const TQString &, Kopete::ChatSession*) ), i18n("USAGE: /quit [] - Disconnect from IRC, optionally leaving a message.") ); - Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::fromLatin1("part"), + Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::tqfromLatin1("part"), TQT_SLOT( slotPartCommand( const TQString &, Kopete::ChatSession*) ), i18n("USAGE: /part [] - Part from a channel, optionally leaving a message.") ); - Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::fromLatin1("invite"), + Kopete::CommandHandler::commandHandler()->registerCommand( this, TQString::tqfromLatin1("invite"), TQT_SLOT( slotInviteCommand( const TQString &, Kopete::ChatSession*) ), i18n("USAGE: /invite [] - Invite a user to join a channel."), 1 ); - Kopete::CommandHandler::commandHandler()->registerAlias( this, TQString::fromLatin1("j"), - TQString::fromLatin1("join %1"), + Kopete::CommandHandler::commandHandler()->registerAlias( this, TQString::tqfromLatin1("j"), + TQString::tqfromLatin1("join %1"), i18n("USAGE: /j <#channel 1> [] - Alias for JOIN."), Kopete::CommandHandler::SystemAlias, 1, 2 ); - Kopete::CommandHandler::commandHandler()->registerAlias( this, TQString::fromLatin1("msg"), - TQString::fromLatin1("query %s"), + Kopete::CommandHandler::commandHandler()->registerAlias( this, TQString::tqfromLatin1("msg"), + TQString::tqfromLatin1("query %s"), i18n("USAGE: /msg [] - Alias for TQUERY ."), Kopete::CommandHandler::SystemAlias, 1 ); TQObject::connect( Kopete::ChatSessionManager::self(), TQT_SIGNAL(aboutToDisplay(Kopete::Message &)), @@ -313,7 +313,7 @@ IRCProtocol::~IRCProtocol() delete m_protocolHandler; } -const Kopete::OnlineStatus IRCProtocol::statusLookup( IRCStatus status ) const +const Kopete::OnlineStatus IRCProtocol::statusLookup( IRCtqStatus status ) const { kdDebug(14120) << k_funcinfo << "Looking up status for " << status << endl; @@ -376,7 +376,7 @@ void IRCProtocol::slotMessageFilter( Kopete::Message &msg ) TQString messageText = msg.escapedBody(); //Add right click for channels, only replace text not in HTML tags - messageText.replace( TQRegExp( TQString::fromLatin1("(?![^<]+>)(#[^#\\s]+)(?![^<]+>)") ), TQString::fromLatin1("\\1") ); + messageText.replace( TQRegExp( TQString::tqfromLatin1("(?![^<]+>)(#[^#\\s]+)(?![^<]+>)") ), TQString::tqfromLatin1("\\1") ); msg.setBody( messageText, Kopete::Message::RichText ); } @@ -391,7 +391,7 @@ TQPtrList *IRCProtocol::customChatWindowPopupActions( const Kopete::Mes { activeNode = n; activeAccount = static_cast( m.from()->account() ); - if( e.getAttribute( TQString::fromLatin1("type") ) == TQString::fromLatin1("IRCChannel") ) + if( e.getAttribute( TQString::tqfromLatin1("type") ) == TQString::tqfromLatin1("IRCChannel") ) return activeAccount->contactManager()->findChannel( e.innerText().string() )->customContextMenuActions(); } @@ -512,7 +512,7 @@ void IRCProtocol::slotTopicCommand( const TQString &args, Kopete::ChatSession *m else { static_cast(manager->account())->engine()-> - writeRawMessage(TQString::fromLatin1("TOPIC %1").arg(chan->nickName())); + writeRawMessage(TQString::tqfromLatin1("TOPIC %1").tqarg(chan->nickName())); } } else @@ -536,7 +536,7 @@ void IRCProtocol::slotJoinCommand( const TQString &arg, Kopete::ChatSession *man { static_cast( manager->account() )->appendMessage( i18n("\"%1\" is an invalid channel. Channels must start with '#', '!', '+', or '&'.") - .arg(args[0]), IRCAccount::ErrorReply ); + .tqarg(args[0]), IRCAccount::ErrorReply ); } } @@ -556,7 +556,7 @@ void IRCProtocol::slotInviteCommand( const TQString &args, Kopete::ChatSession * { static_cast( manager->account() )->appendMessage( i18n("\"%1\" is an invalid channel. Channels must start with '#', '!', '+', or '&'.") - .arg(argsList[1]), IRCAccount::ErrorReply ); + .tqarg(argsList[1]), IRCAccount::ErrorReply ); } } else @@ -568,7 +568,7 @@ void IRCProtocol::slotInviteCommand( const TQString &args, Kopete::ChatSession * if( c && c->manager()->contactOnlineStatus( manager->myself() ) == m_UserStatusOp ) { static_cast( manager->account() )->engine()->writeMessage( - TQString::fromLatin1("INVITE %1 %2").arg( argsList[0] ). + TQString::tqfromLatin1("INVITE %1 %2").tqarg( argsList[0] ). arg( c->nickName() ) ); } @@ -599,7 +599,7 @@ void IRCProtocol::slotQueryCommand( const TQString &args, Kopete::ChatSession *m else { static_cast( manager->account() )->appendMessage( - i18n("\"%1\" is an invalid nickname. Nicknames must not start with '#','!','+', or '&'.").arg(user), + i18n("\"%1\" is an invalid nickname. Nicknames must not start with '#','!','+', or '&'.").tqarg(user), IRCAccount::ErrorReply ); } } @@ -614,7 +614,7 @@ void IRCProtocol::slotWhoCommand( const TQString &args, Kopete::ChatSession *man { TQStringList argsList = Kopete::CommandHandler::parseArguments( args ); static_cast( manager->account() )->engine()->writeMessage( - TQString::fromLatin1("WHO %1").arg( argsList.first() ) ); + TQString::tqfromLatin1("WHO %1").tqarg( argsList.first() ) ); static_cast( manager->account() )->setCurrentCommandSource( manager ); } @@ -622,7 +622,7 @@ void IRCProtocol::slotWhoWasCommand( const TQString &args, Kopete::ChatSession * { TQStringList argsList = Kopete::CommandHandler::parseArguments( args ); static_cast( manager->account() )->engine()->writeMessage( - TQString::fromLatin1("WHOWAS %1").arg( argsList.first() ) ); + TQString::tqfromLatin1("WHOWAS %1").tqarg( argsList.first() ) ); static_cast( manager->account() )->setCurrentCommandSource( manager ); } @@ -641,7 +641,7 @@ void IRCProtocol::slotModeCommand(const TQString &args, Kopete::ChatSession *man { TQStringList argsList = Kopete::CommandHandler::parseArguments( args ); static_cast( manager->account() )->engine()->mode( argsList.front(), - args.section( TQRegExp(TQString::fromLatin1("\\s+")), 1 ) ); + args.section( TQRegExp(TQString::tqfromLatin1("\\s+")), 1 ) ); } void IRCProtocol::slotMeCommand(const TQString &args, Kopete::ChatSession *manager) @@ -668,7 +668,7 @@ void IRCProtocol::slotKickCommand(const TQString &args, Kopete::ChatSession *man { if (manager->contactOnlineStatus( manager->myself() ) == m_UserStatusOp) { - TQRegExp spaces(TQString::fromLatin1("\\s+")); + TQRegExp spaces(TQString::tqfromLatin1("\\s+")); TQString nick = args.section( spaces, 0, 0); TQString reason = args.section( spaces, 1); Kopete::ContactPtrList members = manager->members(); @@ -691,7 +691,7 @@ void IRCProtocol::slotBanCommand( const TQString &args, Kopete::ChatSession *man Kopete::ContactPtrList members = manager->members(); IRCChannelContact *chan = static_cast( members.first() ); if( chan && chan->locateUser( argsList.front() ) ) - chan->setMode( TQString::fromLatin1("+b %1").arg( argsList.front() ) ); + chan->setMode( TQString::tqfromLatin1("+b %1").tqarg( argsList.front() ) ); } else { @@ -724,22 +724,22 @@ void IRCProtocol::slotPartCommand( const TQString &args, Kopete::ChatSession *ma void IRCProtocol::slotOpCommand( const TQString &args, Kopete::ChatSession *manager ) { - simpleModeChange( args, manager, TQString::fromLatin1("+o") ); + simpleModeChange( args, manager, TQString::tqfromLatin1("+o") ); } void IRCProtocol::slotDeopCommand( const TQString &args, Kopete::ChatSession *manager ) { - simpleModeChange( args, manager, TQString::fromLatin1("-o") ); + simpleModeChange( args, manager, TQString::tqfromLatin1("-o") ); } void IRCProtocol::slotVoiceCommand( const TQString &args, Kopete::ChatSession *manager ) { - simpleModeChange( args, manager, TQString::fromLatin1("+v") ); + simpleModeChange( args, manager, TQString::tqfromLatin1("+v") ); } void IRCProtocol::slotDevoiceCommand( const TQString &args, Kopete::ChatSession *manager ) { - simpleModeChange( args, manager, TQString::fromLatin1("-v") ); + simpleModeChange( args, manager, TQString::tqfromLatin1("-v") ); } void IRCProtocol::simpleModeChange( const TQString &args, Kopete::ChatSession *manager, const TQString &mode ) @@ -754,7 +754,7 @@ void IRCProtocol::simpleModeChange( const TQString &args, Kopete::ChatSession *m for( TQStringList::iterator it = argsList.begin(); it != argsList.end(); ++it ) { if( chan->locateUser( *it ) ) - chan->setMode( TQString::fromLatin1("%1 %2").arg( mode ).arg( *it ) ); + chan->setMode( TQString::tqfromLatin1("%1 %2").tqarg( mode ).tqarg( *it ) ); } } } @@ -770,7 +770,7 @@ void IRCProtocol::editNetworks( const TQString &networkName ) if( !netConf ) { netConf = new NetworkConfig( Kopete::UI::Global::mainWidget(), "network_config", true ); - netConf->host->setValidator( new TQRegExpValidator( TQString::fromLatin1("^[\\w-\\.]*$"), TQT_TQOBJECT(netConf) ) ); + netConf->host->setValidator( new TQRegExpValidator( TQString::tqfromLatin1("^[\\w-\\.]*$"), TQT_TQOBJECT(netConf) ) ); netConf->upButton->setIconSet( SmallIconSet( "up" ) ); netConf->downButton->setIconSet( SmallIconSet( "down" ) ); @@ -827,7 +827,7 @@ void IRCProtocol::slotUpdateNetworkConfig() netConf->hostList->clear(); for( TQValueList::iterator it = net->hosts.begin(); it != net->hosts.end(); ++it ) - netConf->hostList->insertItem( (*it)->host + TQString::fromLatin1(":") + TQString::number((*it)->port) ); + netConf->hostList->insertItem( (*it)->host + TQString::tqfromLatin1(":") + TQString::number((*it)->port) ); // prevent nested event loop crash disconnect( netConf->hostList, TQT_SIGNAL( selectionChanged() ), this, TQT_SLOT( slotUpdateNetworkHostConfig() ) ); @@ -871,7 +871,7 @@ void IRCProtocol::storeCurrentHost() void IRCProtocol::slotHostPortChanged( int value ) { - TQString entryText = m_uiCurrentHostSelection + TQString::fromLatin1(":") + TQString::number( value ); + TQString entryText = m_uiCurrentHostSelection + TQString::tqfromLatin1(":") + TQString::number( value ); // changeItem causes a take() and insert, and we don't want a selectionChanged() signal that sets all this off again. disconnect( netConf->hostList, TQT_SIGNAL( selectionChanged() ), this, TQT_SLOT( slotUpdateNetworkHostConfig() ) ); netConf->hostList->changeItem( entryText, netConf->hostList->currentItem() ); @@ -918,8 +918,8 @@ void IRCProtocol::slotDeleteNetwork() if( KMessageBox::warningContinueCancel( Kopete::UI::Global::mainWidget(), i18n("Are you sure you want to delete the network %1?
" "Any accounts which use this network will have to be modified.
") - .arg(network), i18n("Deleting Network"), - KGuiItem(i18n("&Delete Network"),"editdelete"), TQString::fromLatin1("AskIRCDeleteNetwork") ) == KMessageBox::Continue ) + .tqarg(network), i18n("Deleting Network"), + KGuiItem(i18n("&Delete Network"),"editdelete"), TQString::tqfromLatin1("AskIRCDeleteNetwork") ) == KMessageBox::Continue ) { disconnect( netConf->networkList, TQT_SIGNAL( selectionChanged() ), this, TQT_SLOT( slotUpdateNetworkConfig() ) ); disconnect( netConf->hostList, TQT_SIGNAL( selectionChanged() ), this, TQT_SLOT( slotUpdateNetworkHostConfig() ) ); @@ -944,14 +944,14 @@ void IRCProtocol::slotDeleteHost() TQString hostName = netConf->host->text(); if ( KMessageBox::warningContinueCancel( Kopete::UI::Global::mainWidget(), i18n("Are you sure you want to delete the host %1?") - .arg(hostName), i18n("Deleting Host"), - KGuiItem(i18n("&Delete Host"),"editdelete"), TQString::fromLatin1("AskIRCDeleteHost")) == KMessageBox::Continue ) + .tqarg(hostName), i18n("Deleting Host"), + KGuiItem(i18n("&Delete Host"),"editdelete"), TQString::tqfromLatin1("AskIRCDeleteHost")) == KMessageBox::Continue ) { IRCHost *host = m_hosts[ hostName ]; if ( host ) { disconnect( netConf->hostList, TQT_SIGNAL( selectionChanged() ), this, TQT_SLOT( slotUpdateNetworkHostConfig() ) ); - TQString entryText = host->host + TQString::fromLatin1(":") + TQString::number(host->port); + TQString entryText = host->host + TQString::tqfromLatin1(":") + TQString::number(host->port); TQListBoxItem * justAdded = netConf->hostList->findItem( entryText ); netConf->hostList->removeItem( netConf->hostList->index( justAdded ) ); connect( netConf->hostList, TQT_SIGNAL( selectionChanged() ), this, TQT_SLOT( slotUpdateNetworkHostConfig() ) ); @@ -971,12 +971,12 @@ void IRCProtocol::slotNewNetwork() // create a new network struct IRCNetwork *net = new IRCNetwork; // give it the name of 'New Network' (incrementing number if needed) - TQString netName = TQString::fromLatin1( "New Network" ); + TQString netName = TQString::tqfromLatin1( "New Network" ); if ( m_networks.find( netName ) ) { int newIdx = 1; do { - netName = TQString::fromLatin1( "New Network #%1" ).arg( newIdx++ ); + netName = TQString::tqfromLatin1( "New Network #%1" ).tqarg( newIdx++ ); } while ( m_networks.find( netName ) && newIdx < 100 ); if ( newIdx == 100 ) // pathological case @@ -1019,7 +1019,7 @@ void IRCProtocol::slotNewHost() IRCNetwork *net = m_networks[ netConf->networkList->currentText() ]; net->hosts.append( host ); // add it to the gui - TQString entryText = host->host + TQString::fromLatin1(":") + TQString::number(host->port); + TQString entryText = host->host + TQString::tqfromLatin1(":") + TQString::number(host->port); netConf->hostList->insertItem( entryText ); // select it in the gui TQListBoxItem * justAdded = netConf->hostList->findItem( entryText ); @@ -1203,7 +1203,7 @@ void IRCProtocol::slotMoveServerUp() if( currentPos > 0 ) { netConf->hostList->removeItem( currentPos ); - TQString entryText = selectedHost->host + TQString::fromLatin1(":") + TQString::number( selectedHost->port ); + TQString entryText = selectedHost->host + TQString::tqfromLatin1(":") + TQString::number( selectedHost->port ); netConf->hostList->insertItem( entryText, --currentPos ); netConf->hostList->setSelected( currentPos, true ); } @@ -1228,7 +1228,7 @@ void IRCProtocol::slotMoveServerDown() if( currentPos < ( netConf->hostList->count() - 1 ) ) { netConf->hostList->removeItem( currentPos ); - TQString entryText = selectedHost->host + TQString::fromLatin1(":") + TQString::number( selectedHost->port ); + TQString entryText = selectedHost->host + TQString::tqfromLatin1(":") + TQString::number( selectedHost->port ); netConf->hostList->insertItem( entryText, ++currentPos ); netConf->hostList->setSelected( currentPos, true ); } diff --git a/kopete/protocols/irc/ircprotocol.h b/kopete/protocols/irc/ircprotocol.h index 662b7f8a..725f078a 100644 --- a/kopete/protocols/irc/ircprotocol.h +++ b/kopete/protocols/irc/ircprotocol.h @@ -56,7 +56,7 @@ class IRCProtocolHandler : public Kopete::MimeTypeHandler void handleURL( const KURL &url ) const; }; -static const TQString CHAT_VIEW( TQString::fromLatin1("kopete_chatwindow") ); +static const TQString CHAT_VIEW( TQString::tqfromLatin1("kopete_chatwindow") ); /** * @author Nick Betcher @@ -67,7 +67,7 @@ class IRCProtocol : public Kopete::Protocol TQ_OBJECT public: - enum IRCStatus + enum IRCtqStatus { Offline = 1, //! An offline user. Connecting = 2, //! User that is connecting. @@ -105,7 +105,7 @@ public: /** * Maps the given IRC status to Kopete::OnlineStatus. */ - const Kopete::OnlineStatus statusLookup( IRCStatus status ) const; + const Kopete::OnlineStatus statusLookup( IRCtqStatus status ) const; const Kopete::OnlineStatus m_ServerStatusOnline; const Kopete::OnlineStatus m_ServerStatusOffline; diff --git a/kopete/protocols/irc/ircservercontact.cpp b/kopete/protocols/irc/ircservercontact.cpp index 5be40dff..9188963f 100644 --- a/kopete/protocols/irc/ircservercontact.cpp +++ b/kopete/protocols/irc/ircservercontact.cpp @@ -63,12 +63,12 @@ IRCServerContact::IRCServerContact(IRCContactManager *contactManager, const TQSt TQObject::connect(Kopete::ChatSessionManager::self(), TQT_SIGNAL(viewCreated(KopeteView*)), this, TQT_SLOT(slotViewCreated(KopeteView*)) ); - updateStatus(); + updatetqStatus(); } -void IRCServerContact::updateStatus() +void IRCServerContact::updatetqStatus() { - KIRC::Engine::Status status = kircEngine()->status(); + KIRC::Engine::tqStatus status = kircEngine()->status(); switch( status ) { case KIRC::Engine::Idle: @@ -92,7 +92,7 @@ void IRCServerContact::updateStatus() const TQString IRCServerContact::caption() const { - return i18n("%1 @ %2").arg(ircAccount()->mySelf()->nickName() ).arg( + return i18n("%1 @ %2").tqarg(ircAccount()->mySelf()->nickName() ).tqarg( kircEngine()->currentHost().isEmpty() ? ircAccount()->networkName() : kircEngine()->currentHost() ); } @@ -147,7 +147,7 @@ void IRCServerContact::slotIncomingNotice( const TQString &orig, const TQString // Prefix missing. // NOTICE AUTH :*** Checking Ident - ircAccount()->appendMessage(i18n("NOTICE from %1: %2").arg(kircEngine()->currentHost(), notice), + ircAccount()->appendMessage(i18n("NOTICE from %1: %2").tqarg(kircEngine()->currentHost(), notice), IRCAccount::NoticeReply); } else { @@ -155,13 +155,13 @@ void IRCServerContact::slotIncomingNotice( const TQString &orig, const TQString // :somenick!~fooobar@somehostname.fi NOTICE foobar :hello if (orig.contains('!')) { - ircAccount()->appendMessage(i18n("NOTICE from %1 (%2): %3").arg( + ircAccount()->appendMessage(i18n("NOTICE from %1 (%2): %3").tqarg( orig.section('!', 0, 0), orig.section('!', 1, 1), notice), IRCAccount::NoticeReply); } else { - ircAccount()->appendMessage(i18n("NOTICE from %1: %2").arg( + ircAccount()->appendMessage(i18n("NOTICE from %1: %2").tqarg( orig, notice), IRCAccount::NoticeReply); } } @@ -184,7 +184,7 @@ void IRCServerContact::slotIncomingMotd(const TQString &message) void IRCServerContact::slotCannotSendToChannel(const TQString &channel, const TQString &message) { - ircAccount()->appendMessage(TQString::fromLatin1("%1: %2").arg(channel).arg(message), IRCAccount::ErrorReply); + ircAccount()->appendMessage(TQString::tqfromLatin1("%1: %2").tqarg(channel).tqarg(message), IRCAccount::ErrorReply); } void IRCServerContact::appendMessage(Kopete::Message &msg) diff --git a/kopete/protocols/irc/ircservercontact.h b/kopete/protocols/irc/ircservercontact.h index f5167a9f..b715a65b 100644 --- a/kopete/protocols/irc/ircservercontact.h +++ b/kopete/protocols/irc/ircservercontact.h @@ -61,7 +61,7 @@ class IRCServerContact virtual void slotSendMsg(Kopete::Message &message, Kopete::ChatSession *); private slots: - virtual void updateStatus(); + virtual void updatetqStatus(); void slotViewCreated( KopeteView* ); void slotDumpMessages(); diff --git a/kopete/protocols/irc/irctransferhandler.cpp b/kopete/protocols/irc/irctransferhandler.cpp index e579e94a..f4b5af10 100644 --- a/kopete/protocols/irc/irctransferhandler.cpp +++ b/kopete/protocols/irc/irctransferhandler.cpp @@ -164,7 +164,7 @@ void IRCTransferHandler::kioresult(KIO::Job *job) // if (t->) // kt->userAbort(i18n("User canceled transfer.")); // else -// kt->userAbort(i18n("User canceled transfer for file:%1").arg(t->fileName())); +// kt->userAbort(i18n("User canceled transfer for file:%1").tqarg(t->fileName())); break; default: kdDebug(14120) << k_funcinfo << "Transfer halted:" << kt->error() << endl; diff --git a/kopete/protocols/irc/ircusercontact.cpp b/kopete/protocols/irc/ircusercontact.cpp index c4607cb9..bec7c4b7 100644 --- a/kopete/protocols/irc/ircusercontact.cpp +++ b/kopete/protocols/irc/ircusercontact.cpp @@ -53,39 +53,39 @@ IRCUserContact::IRCUserContact(IRCContactManager *contactManager, const TQString mInfo.away = false; mInfo.online = metaContact()->isTemporary(); - updateStatus(); + updatetqStatus(); } -void IRCUserContact::updateStatus() +void IRCUserContact::updatetqStatus() { //kdDebug(14120) << k_funcinfo << endl; - Kopete::OnlineStatus newStatus; + Kopete::OnlineStatus newtqStatus; switch (kircEngine()->status()) { case KIRC::Engine::Idle: - newStatus = m_protocol->m_UserStatusOffline; + newtqStatus = m_protocol->m_UserStatusOffline; break; case KIRC::Engine::Connecting: case KIRC::Engine::Authentifying: if (this == ircAccount()->mySelf()) - newStatus = m_protocol->m_UserStatusConnecting; + newtqStatus = m_protocol->m_UserStatusConnecting; else - newStatus = m_protocol->m_UserStatusOffline; + newtqStatus = m_protocol->m_UserStatusOffline; break; case KIRC::Engine::Connected: case KIRC::Engine::Closing: if (mInfo.away) - newStatus = m_protocol->m_UserStatusAway; + newtqStatus = m_protocol->m_UserStatusAway; else if (mInfo.online) - newStatus = m_protocol->m_UserStatusOnline; + newtqStatus = m_protocol->m_UserStatusOnline; break; default: - newStatus = m_protocol->m_StatusUnknown; + newtqStatus = m_protocol->m_StatusUnknown; } // Try hard not to emit several onlineStatusChanged() signals. @@ -105,31 +105,31 @@ void IRCUserContact::updateStatus() for( TQValueList::iterator it = channels.begin(); it != channels.end(); ++it ) { IRCChannelContact *channel = *it; - Kopete::OnlineStatus currentStatus = channel->manager()->contactOnlineStatus(this); + Kopete::OnlineStatus currenttqStatus = channel->manager()->contactOnlineStatus(this); - //kdDebug(14120) << k_funcinfo << "iterating channel " << channel->nickName() << " internal status: " << currentStatus.internalStatus() << endl; + //kdDebug(14120) << k_funcinfo << "iterating channel " << channel->nickName() << " internal status: " << currenttqStatus.internalStatus() << endl; - if( currentStatus.internalStatus() >= IRCProtocol::Online ) + if( currenttqStatus.internalStatus() >= IRCProtocol::Online ) { onlineStatusChanged = true; - if( !(currentStatus.internalStatus() & IRCProtocol::Away) && newStatus == m_protocol->m_UserStatusAway ) + if( !(currenttqStatus.internalStatus() & IRCProtocol::Away) && newtqStatus == m_protocol->m_UserStatusAway ) { - setOnlineStatus( newStatus ); + setOnlineStatus( newtqStatus ); //kdDebug(14120) << k_funcinfo << "was NOT away, but is now, channel " << channel->nickName() << endl; adjustInternalOnlineStatusBits(channel, IRCProtocol::Away, AddBits); } - else if( (currentStatus.internalStatus() & IRCProtocol::Away) && newStatus == m_protocol->m_UserStatusOnline ) + else if( (currenttqStatus.internalStatus() & IRCProtocol::Away) && newtqStatus == m_protocol->m_UserStatusOnline ) { - setOnlineStatus( newStatus ); + setOnlineStatus( newtqStatus ); //kdDebug(14120) << k_funcinfo << "was away, but not anymore, channel " << channel->nickName() << endl; adjustInternalOnlineStatusBits(channel, IRCProtocol::Away, RemoveBits); } - else if( newStatus.internalStatus() < IRCProtocol::Away ) + else if( newtqStatus.internalStatus() < IRCProtocol::Away ) { //kdDebug(14120) << k_funcinfo << "offline or connecting?" << endl; - channel->manager()->setContactOnlineStatus( this, newStatus ); + channel->manager()->setContactOnlineStatus( this, newtqStatus ); } } } @@ -137,7 +137,7 @@ void IRCUserContact::updateStatus() if (!onlineStatusChanged) { //kdDebug(14120) << k_funcinfo << "setting status at last" << endl; - setOnlineStatus( newStatus ); + setOnlineStatus( newtqStatus ); } } @@ -162,10 +162,10 @@ void IRCUserContact::slotUserOffline() mInfo.online = false; mInfo.away = false; - updateStatus(); + updatetqStatus(); if( !metaContact()->isTemporary() ) - kircEngine()->writeMessage( TQString::fromLatin1("WHOWAS %1").arg(m_nickName) ); + kircEngine()->writeMessage( TQString::tqfromLatin1("WHOWAS %1").tqarg(m_nickName) ); removeProperty( m_protocol->propUserInfo ); removeProperty( m_protocol->propServer ); @@ -177,7 +177,7 @@ void IRCUserContact::setAway(bool isAway) //kdDebug(14120) << k_funcinfo << isAway << endl; mInfo.away = isAway; - updateStatus(); + updatetqStatus(); } void IRCUserContact::incomingUserIsAway(const TQString &reason) @@ -185,7 +185,7 @@ void IRCUserContact::incomingUserIsAway(const TQString &reason) if( manager( Kopete::Contact::CannotCreate ) ) { Kopete::Message msg( (Kopete::Contact*)ircAccount()->myServer(), mMyself, - i18n("%1 is away (%2)").arg( m_nickName ).arg( reason ), + i18n("%1 is away (%2)").tqarg( m_nickName ).tqarg( reason ), Kopete::Message::Internal, Kopete::Message::RichText, CHAT_VIEW ); manager(Kopete::Contact::CanCreate)->appendMessage(msg); } @@ -194,7 +194,7 @@ void IRCUserContact::incomingUserIsAway(const TQString &reason) void IRCUserContact::userOnline() { mInfo.online = true; - updateStatus(); + updatetqStatus(); if (this != ircAccount()->mySelf() && !metaContact()->isTemporary() && ircAccount()->isConnected()) { mOnlineTimer->start( 45000, true ); @@ -216,27 +216,27 @@ void IRCUserContact::slotUserInfo() const TQString IRCUserContact::caption() const { - return i18n("%1 @ %2").arg(m_nickName).arg(kircEngine()->currentHost()); + return i18n("%1 @ %2").tqarg(m_nickName).tqarg(kircEngine()->currentHost()); } void IRCUserContact::slotOp() { - contactMode( TQString::fromLatin1("+o") ); + contactMode( TQString::tqfromLatin1("+o") ); } void IRCUserContact::slotDeop() { - contactMode( TQString::fromLatin1("-o") ); + contactMode( TQString::tqfromLatin1("-o") ); } void IRCUserContact::slotVoice() { - contactMode( TQString::fromLatin1("+v") ); + contactMode( TQString::tqfromLatin1("+v") ); } void IRCUserContact::slotDevoice() { - contactMode( TQString::fromLatin1("-v") ); + contactMode( TQString::tqfromLatin1("-v") ); } void IRCUserContact::slotBanHost() @@ -260,7 +260,7 @@ void IRCUserContact::slotBanHostOnce() Kopete::ContactPtrList members = mActiveManager->members(); TQString channelName = static_cast(members.first())->nickName(); - kircEngine()->mode(channelName, TQString::fromLatin1("+b *!*@%1").arg(mInfo.hostName)); + kircEngine()->mode(channelName, TQString::tqfromLatin1("+b *!*@%1").tqarg(mInfo.hostName)); } void IRCUserContact::slotBanUserHost() @@ -284,7 +284,7 @@ void IRCUserContact::slotBanUserHostOnce() Kopete::ContactPtrList members = mActiveManager->members(); TQString channelName = static_cast(members.first())->nickName(); - kircEngine()->mode(channelName, TQString::fromLatin1("+b *!*%1@%2").arg(mInfo.userName, mInfo.hostName)); + kircEngine()->mode(channelName, TQString::tqfromLatin1("+b *!*%1@%2").tqarg(mInfo.userName, mInfo.hostName)); } void IRCUserContact::slotBanDomain() @@ -310,7 +310,7 @@ void IRCUserContact::slotBanDomainOnce() TQString domain = mInfo.hostName.section('.', 1); - kircEngine()->mode(channelName, TQString::fromLatin1("+b *!*@*.%1").arg(domain)); + kircEngine()->mode(channelName, TQString::tqfromLatin1("+b *!*@*.%1").tqarg(domain)); } void IRCUserContact::slotBanUserDomain() @@ -336,7 +336,7 @@ void IRCUserContact::slotBanUserDomainOnce() TQString domain = mInfo.hostName.section('.', 1); - kircEngine()->mode(channelName, TQString::fromLatin1("+b *!*%1@*.%2").arg(mInfo.userName, domain)); + kircEngine()->mode(channelName, TQString::tqfromLatin1("+b *!*%1@*.%2").tqarg(mInfo.userName, domain)); } void IRCUserContact::slotKick() @@ -350,7 +350,7 @@ void IRCUserContact::contactMode(const TQString &mode) { Kopete::ContactPtrList members = mActiveManager->members(); TQString channelName = static_cast(members.first())->nickName(); - kircEngine()->mode(channelName, TQString::fromLatin1("%1 %2").arg(mode).arg(m_nickName)); + kircEngine()->mode(channelName, TQString::tqfromLatin1("%1 %2").tqarg(mode).tqarg(m_nickName)); } void IRCUserContact::slotCtcpPing() @@ -370,10 +370,10 @@ void IRCUserContact::newWhoIsUser(const TQString &username, const TQString &host mInfo.hostName = hostname; mInfo.realName = realname; - if( onlineStatus().status() == Kopete::OnlineStatus::Offline ) + if( onlinetqStatus().status() == Kopete::OnlineStatus::Offline ) { - setProperty( m_protocol->propUserInfo, TQString::fromLatin1("%1@%2") - .arg(mInfo.userName).arg(mInfo.hostName) ); + setProperty( m_protocol->propUserInfo, TQString::tqfromLatin1("%1@%2") + .tqarg(mInfo.userName).tqarg(mInfo.hostName) ); setProperty( m_protocol->propServer, mInfo.serverName ); setProperty( m_protocol->propFullName, mInfo.realName ); } @@ -382,8 +382,8 @@ void IRCUserContact::newWhoIsUser(const TQString &username, const TQString &host void IRCUserContact::newWhoIsServer(const TQString &servername, const TQString &serverinfo) { mInfo.serverName = servername; - if( metaContact()->isTemporary() || onlineStatus().status() == Kopete::OnlineStatus::Online - || onlineStatus().status() == Kopete::OnlineStatus::Away ) + if( metaContact()->isTemporary() || onlinetqStatus().status() == Kopete::OnlineStatus::Online + || onlinetqStatus().status() == Kopete::OnlineStatus::Away ) mInfo.serverInfo = serverinfo; else { @@ -433,26 +433,26 @@ void IRCUserContact::whoIsComplete() { //User info TQString msg = i18n("%1 is (%2@%3): %4
") - .arg(m_nickName) - .arg(mInfo.userName) - .arg(mInfo.hostName) - .arg(mInfo.realName); + .tqarg(m_nickName) + .tqarg(mInfo.userName) + .tqarg(mInfo.hostName) + .tqarg(mInfo.realName); if( mInfo.isIdentified ) - msg += i18n("%1 is authenticated with NICKSERV
").arg(m_nickName); + msg += i18n("%1 is authenticated with NICKSERV
").tqarg(m_nickName); if( mInfo.isOperator ) - msg += i18n("%1 is an IRC operator
").arg(m_nickName); + msg += i18n("%1 is an IRC operator
").tqarg(m_nickName); //Channels - msg += i18n("on channels %1
").arg(mInfo.channels.join(" ; ")); + msg += i18n("on channels %1
").tqarg(mInfo.channels.join(" ; ")); //Server - msg += i18n("on IRC via server %1 ( %2 )
").arg(mInfo.serverName).arg(mInfo.serverInfo); + msg += i18n("on IRC via server %1 ( %2 )
").tqarg(mInfo.serverName).tqarg(mInfo.serverInfo); //Idle TQString idleTime = formattedIdleTime(); - msg += i18n("idle: %2
").arg( idleTime.isEmpty() ? TQString::number(0) : idleTime ); + msg += i18n("idle: %2
").tqarg( idleTime.isEmpty() ? TQString::number(0) : idleTime ); //End ircAccount()->appendMessage(msg, IRCAccount::InfoReply ); @@ -466,12 +466,12 @@ void IRCUserContact::whoWasComplete() { //User info TQString msg = i18n("%1 was (%2@%3): %4\n") - .arg(m_nickName) - .arg(mInfo.userName) - .arg(mInfo.hostName) - .arg(mInfo.realName); + .tqarg(m_nickName) + .tqarg(mInfo.userName) + .tqarg(mInfo.hostName) + .tqarg(mInfo.realName); - msg += i18n("Last Online: %1\n").arg( + msg += i18n("Last Online: %1\n").tqarg( KGlobal::locale()->formatDateTime( property( m_protocol->propLastSeen ).value().toDateTime() ) @@ -489,8 +489,8 @@ TQString IRCUserContact::formattedName() const void IRCUserContact::updateInfo() { - setProperty( m_protocol->propUserInfo, TQString::fromLatin1("%1@%2") - .arg(mInfo.userName).arg(mInfo.hostName) ); + setProperty( m_protocol->propUserInfo, TQString::tqfromLatin1("%1@%2") + .tqarg(mInfo.userName).tqarg(mInfo.hostName) ); setProperty( m_protocol->propServer, mInfo.serverName ); setProperty( m_protocol->propChannels, mInfo.channels.join(" ") ); setProperty( m_protocol->propHops, TQString::number(mInfo.hops) ); @@ -667,32 +667,32 @@ void IRCUserContact::slotIncomingModeChange( const TQString &channel, const TQSt void IRCUserContact::adjustInternalOnlineStatusBits(IRCChannelContact *channel, unsigned statusAdjustment, bitAdjustment adj) { - Kopete::OnlineStatus currentStatus = channel->manager()->contactOnlineStatus(this); - Kopete::OnlineStatus newStatus; + Kopete::OnlineStatus currenttqStatus = channel->manager()->contactOnlineStatus(this); + Kopete::OnlineStatus newtqStatus; if (adj == RemoveBits) { // If the bit is not set in the current internal status, stop here. - if ((currentStatus.internalStatus() & ~statusAdjustment) == currentStatus.internalStatus()) + if ((currenttqStatus.internalStatus() & ~statusAdjustment) == currenttqStatus.internalStatus()) return; - newStatus = m_protocol->statusLookup( - (IRCProtocol::IRCStatus)(currentStatus.internalStatus() & ~statusAdjustment) + newtqStatus = m_protocol->statusLookup( + (IRCProtocol::IRCtqStatus)(currenttqStatus.internalStatus() & ~statusAdjustment) ); } else if (adj == AddBits) { // If the bit is already set in the current internal status, stop here. - if ((currentStatus.internalStatus() | statusAdjustment) == currentStatus.internalStatus()) + if ((currenttqStatus.internalStatus() | statusAdjustment) == currenttqStatus.internalStatus()) return; - newStatus = m_protocol->statusLookup( - (IRCProtocol::IRCStatus)(currentStatus.internalStatus() | statusAdjustment) + newtqStatus = m_protocol->statusLookup( + (IRCProtocol::IRCtqStatus)(currenttqStatus.internalStatus() | statusAdjustment) ); } - channel->manager()->setContactOnlineStatus(this, newStatus); + channel->manager()->setContactOnlineStatus(this, newtqStatus); } void IRCUserContact::privateMessage(IRCContact *from, IRCContact *to, const TQString &message) diff --git a/kopete/protocols/irc/ircusercontact.h b/kopete/protocols/irc/ircusercontact.h index dbf4b51c..269cd40c 100644 --- a/kopete/protocols/irc/ircusercontact.h +++ b/kopete/protocols/irc/ircusercontact.h @@ -94,7 +94,7 @@ public: public slots: /** \brief Updates online status for channels based on current internal status. */ - virtual void updateStatus(); + virtual void updatetqStatus(); virtual void sendFile(const KURL &sourceURL, const TQString&, unsigned int); diff --git a/kopete/protocols/irc/kcodecaction.cpp b/kopete/protocols/irc/kcodecaction.cpp index 1560ea9b..5dca8771 100644 --- a/kopete/protocols/irc/kcodecaction.cpp +++ b/kopete/protocols/irc/kcodecaction.cpp @@ -15,7 +15,7 @@ ************************************************************************* */ #include -#include +#include #include #include "kcodecaction.h" diff --git a/kopete/protocols/irc/ksparser.cpp b/kopete/protocols/irc/ksparser.cpp index ab7f1127..79ff605e 100644 --- a/kopete/protocols/irc/ksparser.cpp +++ b/kopete/protocols/irc/ksparser.cpp @@ -25,7 +25,7 @@ Modified by Jason Keirstead #include #include #include -#include +#include #include "ksparser.h" #include @@ -117,17 +117,17 @@ TQCString KSParser::_parse(const TQCString &message) } else { - toAppend = popTag(TQString::fromLatin1("span")); + toAppend = popTag(TQString::tqfromLatin1("span")); } break; case 0x07: //System bell: ^G - KNotifyClient::beep( TQString::fromLatin1("IRC beep event received in a message") ); + KNotifyClient::beep( TQString::tqfromLatin1("IRC beep event received in a message") ); break; case '\t': // 0x09 - toAppend = TQString::fromLatin1("    "); + toAppend = TQString::tqfromLatin1("    "); break; case '\n': // 0x0D - toAppend= TQString::fromLatin1("
"); + toAppend= TQString::tqfromLatin1("
"); break; case 0x0D: // Italics: ^N toAppend = toggleTag("i"); @@ -145,14 +145,14 @@ TQCString KSParser::_parse(const TQCString &message) toAppend = toggleTag("u"); break; case '<': - toAppend = TQString::fromLatin1("<"); + toAppend = TQString::tqfromLatin1("<"); break; case '>': - toAppend = TQString::fromLatin1(">"); + toAppend = TQString::tqfromLatin1(">"); break; default: if (cur < TQChar(' ')) // search for control characters - toAppend = TQString::fromLatin1("<%1>").arg(cur, 2, 16).upper(); + toAppend = TQString::tqfromLatin1("<%1>").tqarg(cur, 2, 16).upper(); else toAppend = TQStyleSheet::escape(cur); } @@ -193,14 +193,14 @@ TQString KSParser::pushColorTag(const TQColor &fgColor, const TQColor &bgColor) TQString tagStyle; if (fgColor.isValid()) - tagStyle += TQString::fromLatin1("color:%1;").arg(fgColor.name()); + tagStyle += TQString::tqfromLatin1("color:%1;").tqarg(fgColor.name()); if (bgColor.isValid()) - tagStyle += TQString::fromLatin1("background-color:%1;").arg(bgColor.name()); + tagStyle += TQString::tqfromLatin1("background-color:%1;").tqarg(bgColor.name()); if(!tagStyle.isEmpty()) - tagStyle = TQString::fromLatin1("style=\"%1\"").arg(tagStyle); + tagStyle = TQString::tqfromLatin1("style=\"%1\"").tqarg(tagStyle); - return pushTag(TQString::fromLatin1("span"), tagStyle);; + return pushTag(TQString::tqfromLatin1("span"), tagStyle);; } TQString KSParser::popTag(const TQString &tag) diff --git a/kopete/protocols/irc/libkirc/kircengine.cpp b/kopete/protocols/irc/libkirc/kircengine.cpp index 8a81d848..ac1fd698 100644 --- a/kopete/protocols/irc/libkirc/kircengine.cpp +++ b/kopete/protocols/irc/libkirc/kircengine.cpp @@ -30,7 +30,7 @@ #include #include -#include +#include #include //Needed for getuid / getpwuid @@ -51,10 +51,10 @@ using namespace KIRC; /* Please note that the regular expression "[\\r\\n]*$" is used in a TQString::replace statement many times. * This gets rid of trailing \r\n, \r, \n, and \n\r characters. */ -const TQRegExp Engine::m_RemoveLinefeeds( TQString::fromLatin1("[\\r\\n]*$") ); +const TQRegExp Engine::m_RemoveLinefeeds( TQString::tqfromLatin1("[\\r\\n]*$") ); Engine::Engine(TQObject *parent, const char *name) - : TQObject(parent, TQString::fromLatin1("[KIRC::Engine]%1").arg(name).latin1()), + : TQObject(parent, TQString::tqfromLatin1("[KIRC::Engine]%1").tqarg(name).latin1()), m_status(Idle), m_FailedNickOnLogin(false), m_useSSL(false), @@ -74,9 +74,9 @@ Engine::Engine(TQObject *parent, const char *name) bindNumericReplies(); bindCtcp(); - m_VersionString = TQString::fromLatin1("Anonymous client using the KIRC engine."); - m_UserString = TQString::fromLatin1("Response not supplied by user."); - m_SourceString = TQString::fromLatin1("Unknown client, known source."); + m_VersionString = TQString::tqfromLatin1("Anonymous client using the KIRC engine."); + m_UserString = TQString::tqfromLatin1("Response not supplied by user."); + m_SourceString = TQString::tqfromLatin1("Unknown client, known source."); defaultCodec = TQTextCodec::codecForMib(106); // UTF8 mib is 106 kdDebug(14120) << "Setting default engine codec, " << defaultCodec->name() << endl; @@ -133,14 +133,14 @@ void Engine::setUseSSL( bool useSSL ) } } -void Engine::setStatus(Engine::Status status) +void Engine::settqStatus(Engine::tqStatus status) { kdDebug(14120) << k_funcinfo << status << endl; if (m_status == status) return; -// Engine::Status oldStatus = m_status; +// Engine::tqStatus oldtqStatus = m_status; m_status = status; emit statusChanged(status); @@ -169,16 +169,16 @@ void Engine::setStatus(Engine::Status status) case Closing: m_sock->close(); m_sock->reset(); - setStatus(Idle); + settqStatus(Idle); break; case AuthentifyingFailed: - setStatus(Closing); + settqStatus(Closing); break; case Timeout: - setStatus(Closing); + settqStatus(Closing); break; case Disconnected: - setStatus(Closing); + settqStatus(Closing); break; } } @@ -200,23 +200,23 @@ void Engine::connectToServer(const TQString &host, TQ_UINT16 port, const TQStrin if( m_sock->startAsyncConnect() == 0 ) { kdDebug(14120) << k_funcinfo << "Success!. Status: " << m_sock->socketStatus() << endl; - setStatus(Connecting); + settqStatus(Connecting); } else { kdDebug(14120) << k_funcinfo << "Failed. Status: " << m_sock->socketStatus() << endl; - setStatus(Disconnected); + settqStatus(Disconnected); } } void Engine::slotConnected() { - setStatus(Authentifying); + settqStatus(Authentifying); } void Engine::slotConnectionClosed() { - setStatus(Disconnected); + settqStatus(Disconnected); } void Engine::error(int errCode) @@ -225,7 +225,7 @@ void Engine::error(int errCode) if (m_sock->socketStatus () != KExtendedSocket::connecting) { // Connection in progress.. This is a signal fired wrong - setStatus(Disconnected); + settqStatus(Disconnected); } } @@ -250,7 +250,7 @@ void Engine::setSourceString(const TQString &newString) void Engine::setUserName(const TQString &newName) { if(newName.isEmpty()) - m_Username = TQString::fromLatin1(getpwuid(getuid())->pw_name); + m_Username = TQString::tqfromLatin1(getpwuid(getuid())->pw_name); else m_Username = newName; m_Username.remove(m_RemoveLinefeeds); @@ -259,7 +259,7 @@ void Engine::setUserName(const TQString &newName) void Engine::setRealName(const TQString &newName) { if(newName.isEmpty()) - m_realName = TQString::fromLatin1(getpwuid(getuid())->pw_gecos); + m_realName = TQString::tqfromLatin1(getpwuid(getuid())->pw_gecos); else m_realName = newName; m_realName.remove(m_RemoveLinefeeds); @@ -443,7 +443,7 @@ bool Engine::invokeCtcpCommandOfMessage(const TQDict &map, Me kdDebug(14120) << "Method error for line:" << ctcpMsg.raw() << endl; writeCtcpErrorMessage(msg.prefix(), msg.ctcpRaw(), - TQString::fromLatin1("%1 internal error(s)").arg(errors.size())); + TQString::tqfromLatin1("%1 internal error(s)").tqarg(errors.size())); } else { diff --git a/kopete/protocols/irc/libkirc/kircengine.h b/kopete/protocols/irc/libkirc/kircengine.h index 9f488d47..1be8651c 100644 --- a/kopete/protocols/irc/libkirc/kircengine.h +++ b/kopete/protocols/irc/libkirc/kircengine.h @@ -72,7 +72,7 @@ class Engine // TQ_PROPERTY(TQString nick READ nick) // TQ_PROPERTY(TQStringList portList) - Q_ENUMS(Status) + Q_ENUMS(tqStatus) public: enum Error @@ -84,7 +84,7 @@ public: MethodFailed }; - enum Status + enum tqStatus { Idle, Connecting, @@ -165,7 +165,7 @@ public: KExtendedSocket *socket() { return m_sock; }; - inline KIRC::Engine::Status status() const + inline KIRC::Engine::tqStatus status() const { return m_status; } inline bool isDisconnected() const @@ -275,7 +275,7 @@ public slots: void showInfoDialog(); signals: - void statusChanged(KIRC::Engine::Status newStatus); + void statusChanged(KIRC::Engine::tqStatus newtqStatus); void internalError(KIRC::Engine::Error, KIRC::Message &); void receivedMessage(KIRC::Message &); @@ -479,7 +479,7 @@ private: void bindNumericReplies(); void bindCtcp(); - void setStatus(KIRC::Engine::Status status); + void settqStatus(KIRC::Engine::tqStatus status); bool invokeCtcpCommandOfMessage(const TQDict &map, KIRC::Message &message); /* @@ -493,7 +493,7 @@ private: //Static regexes static const TQRegExp m_RemoveLinefeeds; - KIRC::Engine::Status m_status; + KIRC::Engine::tqStatus m_status; TQString m_Host; TQ_UINT16 m_Port; diff --git a/kopete/protocols/irc/libkirc/kircengine_commands.cpp b/kopete/protocols/irc/libkirc/kircengine_commands.cpp index acea30e7..e0e63909 100644 --- a/kopete/protocols/irc/libkirc/kircengine_commands.cpp +++ b/kopete/protocols/irc/libkirc/kircengine_commands.cpp @@ -48,7 +48,7 @@ void Engine::away(bool isAway, const TQString &awayMessage) if( !awayMessage.isEmpty() ) writeMessage("AWAY", TQString(), awayMessage); else - writeMessage("AWAY", TQString(), TQString::fromLatin1("I'm away.")); + writeMessage("AWAY", TQString(), TQString::tqfromLatin1("I'm away.")); else writeMessage("AWAY", TQString()); } @@ -56,20 +56,20 @@ void Engine::away(bool isAway, const TQString &awayMessage) // FIXME: Really handle this message void Engine::error(Message &) { - setStatus(Closing); + settqStatus(Closing); } void Engine::ison(const TQStringList &nickList) { if (!nickList.isEmpty()) { - TQString statement = TQString::fromLatin1("ISON"); + TQString statement = TQString::tqfromLatin1("ISON"); for (TQStringList::ConstIterator it = nickList.begin(); it != nickList.end(); ++it) { if ((statement.length()+(*it).length())>509) // 512(max buf)-2("\r\n")-1() { writeMessage(statement); - statement = TQString::fromLatin1("ISON ") + (*it); + statement = TQString::tqfromLatin1("ISON ") + (*it); } else statement.append(TQChar(' ') + (*it)); @@ -201,7 +201,7 @@ void Engine::quit(const TQString &reason, bool /*now*/) if (isConnected()) writeMessage("QUIT", TQString(), reason); - setStatus(Closing); + settqStatus(Closing); } void Engine::quit(Message &msg) diff --git a/kopete/protocols/irc/libkirc/kircengine_ctcp.cpp b/kopete/protocols/irc/libkirc/kircengine_ctcp.cpp index 0159f790..05477710 100644 --- a/kopete/protocols/irc/libkirc/kircengine_ctcp.cpp +++ b/kopete/protocols/irc/libkirc/kircengine_ctcp.cpp @@ -109,10 +109,10 @@ bool Engine::CtcpReply_action(Message &msg) // FIXME: the API can now answer to help commands. void Engine::CtcpQuery_clientinfo(Message &msg) { - TQString clientinfo = customCtcpMap[ TQString::fromLatin1("clientinfo") ]; + TQString clientinfo = customCtcpMap[ TQString::tqfromLatin1("clientinfo") ]; if (clientinfo.isNull()) - clientinfo = TQString::fromLatin1("The following commands are supported, but " + clientinfo = TQString::tqfromLatin1("The following commands are supported, but " "without sub-command help: VERSION, CLIENTINFO, USERINFO, TIME, SOURCE, PING," "ACTION."); @@ -132,8 +132,8 @@ void Engine::CtcpRequest_dcc(const TQString &nickname, const TQString &fileName, case Transfer::Chat: { writeCtcpQueryMessage(nickname, TQString(), - TQString::fromLatin1("DCC"), - TQStringList(TQString::fromLatin1("CHAT")) << TQString::fromLatin1("chat") << + TQString::tqfromLatin1("DCC"), + TQStringList(TQString::tqfromLatin1("CHAT")) << TQString::tqfromLatin1("chat") << m_sock->localAddress()->nodeName() << TQString::number(port) ); break; @@ -154,8 +154,8 @@ void Engine::CtcpRequest_dcc(const TQString &nickname, const TQString &fileName, kdDebug(14120) << "Starting DCC file outgoing transfer." << endl; writeCtcpQueryMessage(nickname, TQString(), - TQString::fromLatin1("DCC"), - TQStringList(TQString::fromLatin1("SEND")) << noWhiteSpace << ipNumber << + TQString::tqfromLatin1("DCC"), + TQStringList(TQString::tqfromLatin1("SEND")) << noWhiteSpace << ipNumber << TQString::number(server->port()) << TQString::number(file.size()) ); break; @@ -173,7 +173,7 @@ void Engine::CtcpQuery_dcc(Message &msg) Message &ctcpMsg = msg.ctcpMessage(); TQString dccCommand = ctcpMsg.arg(0).upper(); - if (dccCommand == TQString::fromLatin1("CHAT")) + if (dccCommand == TQString::tqfromLatin1("CHAT")) { // if(ctcpMsg.argsSize()!=4) return false; @@ -196,7 +196,7 @@ void Engine::CtcpQuery_dcc(Message &msg) Transfer::Chat ); } } - else if (dccCommand == TQString::fromLatin1("SEND")) + else if (dccCommand == TQString::tqfromLatin1("SEND")) { // if(ctcpMsg.argsSize()!=5) return false; @@ -253,7 +253,7 @@ void Engine::CtcpRequest_ping(const TQString &target) TQString timeReply; if( Entity::isChannel(target) ) - timeReply = TQString::fromLatin1("%1.%2").arg(time.tv_sec).arg(time.tv_usec); + timeReply = TQString::tqfromLatin1("%1.%2").arg(time.tv_sec).arg(time.tv_usec); else timeReply = TQString::number( time.tv_sec ); @@ -275,7 +275,7 @@ void Engine::CtcpReply_ping(Message &msg) if (gettimeofday(&time, 0) == 0) { // FIXME: the time code is wrong for usec - TQString timeReply = TQString::fromLatin1("%1.%2").arg(time.tv_sec).arg(time.tv_usec); + TQString timeReply = TQString::tqfromLatin1("%1.%2").arg(time.tv_sec).arg(time.tv_usec); double newTime = timeReply.toDouble(); double oldTime = msg.suffix().section(' ',0, 0).toDouble(); double difference = newTime - oldTime; @@ -295,10 +295,10 @@ void Engine::CtcpReply_ping(Message &msg) TQString millSec = diffString.section('.', 1, 1); millSec.remove(millSec.find('.'), 1); millSec.truncate(3); - diffString = TQString::fromLatin1("%1 seconds, %2 milliseconds").arg(seconds).arg(millSec); + diffString = TQString::tqfromLatin1("%1 seconds, %2 milliseconds").arg(seconds).arg(millSec); } - emit incomingCtcpReply(TQString::fromLatin1("PING"), msg.nickFromPrefix(), diffString); + emit incomingCtcpReply(TQString::tqfromLatin1("PING"), msg.nickFromPrefix(), diffString); } // else // ((MessageRedirector *)sender())->error("failed to get current time"); @@ -313,13 +313,13 @@ void Engine::CtcpQuery_source(Message &msg) void Engine::CtcpQuery_time(Message &msg) { writeCtcpReplyMessage(msg.nickFromPrefix(), TQString(), - msg.ctcpMessage().command(), TQDateTime::currentDateTime().toString(), + msg.ctcpMessage().command(), TQDateTime::tqcurrentDateTime().toString(), TQString(), false); } void Engine::CtcpQuery_userinfo(Message &msg) { - TQString userinfo = customCtcpMap[ TQString::fromLatin1("userinfo") ]; + TQString userinfo = customCtcpMap[ TQString::tqfromLatin1("userinfo") ]; if (userinfo.isNull()) userinfo = m_UserString; @@ -335,7 +335,7 @@ void Engine::CtcpRequest_version(const TQString &target) void Engine::CtcpQuery_version(Message &msg) { - TQString response = customCtcpMap[ TQString::fromLatin1("version") ]; + TQString response = customCtcpMap[ TQString::tqfromLatin1("version") ]; kdDebug(14120) << "Version check: " << response << endl; if (response.isNull()) diff --git a/kopete/protocols/irc/libkirc/kircengine_numericreplies.cpp b/kopete/protocols/irc/libkirc/kircengine_numericreplies.cpp index 67d3a842..3d7b896b 100644 --- a/kopete/protocols/irc/libkirc/kircengine_numericreplies.cpp +++ b/kopete/protocols/irc/libkirc/kircengine_numericreplies.cpp @@ -117,7 +117,7 @@ void Engine::numericReply_001(Message &msg) */ emitSuffix(msg); - setStatus(Connected); + settqStatus(Connected); } /* 002: ":Your host is , running version " diff --git a/kopete/protocols/irc/libkirc/kircentity.cpp b/kopete/protocols/irc/libkirc/kircentity.cpp index 74781e48..2086ab9d 100644 --- a/kopete/protocols/irc/libkirc/kircentity.cpp +++ b/kopete/protocols/irc/libkirc/kircentity.cpp @@ -29,16 +29,16 @@ using namespace KNetwork; * where user and host are optionnal. * NOTE: If changes are done to the regexp string, update also the sm_userStrictRegExp regexp string. */ -const TQRegExp Entity::sm_userRegExp(TQString::fromLatin1("^([^\\s,:!@]+)(?:(?:!([^\\s,:!@]+))?(?:@([^\\s,!@]+)))?$")); +const TQRegExp Entity::sm_userRegExp(TQString::tqfromLatin1("^([^\\s,:!@]+)(?:(?:!([^\\s,:!@]+))?(?:@([^\\s,!@]+)))?$")); /** * Regexp to match strictly the complete user definition: * nick!user@host * NOTE: If changes are done to the regexp string, update also the sm_userRegExp regexp string. */ -const TQRegExp Entity::sm_userStrictRegExp(TQString::fromLatin1("^([^\\s,:!@]+)!([^\\s,:!@]+)@([^\\s,:!@]+)$")); +const TQRegExp Entity::sm_userStrictRegExp(TQString::tqfromLatin1("^([^\\s,:!@]+)!([^\\s,:!@]+)@([^\\s,:!@]+)$")); -const TQRegExp Entity::sm_channelRegExp( TQString::fromLatin1("^[#!+&][^\\s,]+$") ); +const TQRegExp Entity::sm_channelRegExp( TQString::tqfromLatin1("^[#!+&][^\\s,]+$") ); Entity::Entity(const TQString &, const Type type) : TQObject(0, "KIRC::Entity"), diff --git a/kopete/protocols/irc/libkirc/kircmessage.cpp b/kopete/protocols/irc/libkirc/kircmessage.cpp index 8a48ce52..6f45b0c1 100644 --- a/kopete/protocols/irc/libkirc/kircmessage.cpp +++ b/kopete/protocols/irc/libkirc/kircmessage.cpp @@ -99,14 +99,14 @@ void Message::writeRawMessage(Engine *engine, const TQTextCodec *codec, const TQ return; } - TQString txt = str + TQString::fromLatin1("\r\n"); + TQString txt = str + TQString::tqfromLatin1("\r\n"); TQCString s(codec->fromUnicode(txt)); kdDebug(14120) << "Message is " << s.length() << " chars" << endl; // FIXME: Should check the amount of data really writen. int wrote = engine->socket()->writeBlock(s.data(), s.length()); - kdDebug(14121) << TQString::fromLatin1("(%1 bytes) >> %2").arg(wrote).arg(str) << endl; + kdDebug(14121) << TQString::tqfromLatin1("(%1 bytes) >> %2").tqarg(wrote).tqarg(str) << endl; } void Message::writeMessage(Engine *engine, const TQTextCodec *codec, const TQString &message) @@ -123,7 +123,7 @@ void Message::writeMessage(Engine *engine, const TQTextCodec *codec, msg += TQChar(' ') + args.join(TQChar(' ')).stripWhiteSpace(); // some extra check should be done here if (!suffix.isNull()) - msg = msg.stripWhiteSpace() + TQString::fromLatin1(" :") + suffix; + msg = msg.stripWhiteSpace() + TQString::tqfromLatin1(" :") + suffix; writeMessage(engine, codec, msg); } @@ -145,7 +145,7 @@ void Message::writeCtcpMessage(Engine *engine, const TQTextCodec *codec, ctcpMsg += TQChar(' ') + ctcpArgs.join(TQChar(' ')).stripWhiteSpace(); // some extra check should be done here if (!ctcpSuffix.isNull()) - ctcpMsg += TQString::fromLatin1(" :") + ctcpSuffix; + ctcpMsg += TQString::tqfromLatin1(" :") + ctcpSuffix; writeMessage(engine, codec, command, to, suffix + TQChar(0x01) + ctcpQuote(ctcpMsg) + TQChar(0x01)); } @@ -169,10 +169,10 @@ Message Message::parse(Engine *engine, const TQTextCodec *codec, bool *parseSucc // Some servers send '\n' instead of '\r\n' that the RFCs say they should be sending. if (length > 1 && raw.at(length-2) == '\n') { - raw.at(length-2) = '\0'; + raw.tqat(length-2) = '\0'; } if (length > 2 && raw.at(length-3) == '\r') { - raw.at(length-3) = '\0'; + raw.tqat(length-3) = '\0'; } kdDebug(14121) << "<< " << raw << endl; @@ -202,9 +202,9 @@ TQString Message::quote(const TQString &str) TQString tmp = str; TQChar q('\020'); tmp.replace(q, q+TQString(q)); - tmp.replace(TQChar('\r'), q+TQString::fromLatin1("r")); - tmp.replace(TQChar('\n'), q+TQString::fromLatin1("n")); - tmp.replace(TQChar('\0'), q+TQString::fromLatin1("0")); + tmp.replace(TQChar('\r'), q+TQString::tqfromLatin1("r")); + tmp.replace(TQChar('\n'), q+TQString::tqfromLatin1("n")); + tmp.replace(TQChar('\0'), q+TQString::tqfromLatin1("0")); return tmp; } @@ -230,8 +230,8 @@ TQString Message::unquote(const TQString &str) TQString Message::ctcpQuote(const TQString &str) { TQString tmp = str; - tmp.replace( TQChar('\\'), TQString::fromLatin1("\\\\")); - tmp.replace( (char)1, TQString::fromLatin1("\\1")); + tmp.replace( TQChar('\\'), TQString::tqfromLatin1("\\\\")); + tmp.replace( (char)1, TQString::tqfromLatin1("\\1")); return tmp; } @@ -317,7 +317,7 @@ TQString Message::toString() const for (TQStringList::ConstIterator it = m_args.begin(); it != m_args.end(); ++it) msg += TQChar(' ') + *it; if (!m_suffix.isNull()) - msg += TQString::fromLatin1(" :") + m_suffix; + msg += TQString::tqfromLatin1(" :") + m_suffix; return msg; } diff --git a/kopete/protocols/irc/libkirc/kircmessage.h b/kopete/protocols/irc/libkirc/kircmessage.h index cd409323..fb38a476 100644 --- a/kopete/protocols/irc/libkirc/kircmessage.h +++ b/kopete/protocols/irc/libkirc/kircmessage.h @@ -25,7 +25,7 @@ #include #include #include -#include +#include #include #include diff --git a/kopete/protocols/irc/libkirc/kircmessageredirector.cpp b/kopete/protocols/irc/libkirc/kircmessageredirector.cpp index 2e1d0b4c..ae9854f1 100644 --- a/kopete/protocols/irc/libkirc/kircmessageredirector.cpp +++ b/kopete/protocols/irc/libkirc/kircmessageredirector.cpp @@ -80,9 +80,9 @@ bool MessageRedirector::checkValidity(const Message &msg) /* if ( msg.isNumeric() && ( msg.argsSize() > 0 && ( - msg.arg(0) == m_Nickname || - msg.arg(0) == m_PendingNick || - msg.arg(0) == TQString::fromLatin1("*") + msg.tqarg(0) == m_Nickname || + msg.tqarg(0) == m_PendingNick || + msg.tqarg(0) == TQString::tqfromLatin1("*") ) ) ) diff --git a/kopete/protocols/irc/libkirc/kirctransfer.cpp b/kopete/protocols/irc/libkirc/kirctransfer.cpp index 68e28f0c..3c6d1907 100644 --- a/kopete/protocols/irc/libkirc/kirctransfer.cpp +++ b/kopete/protocols/irc/libkirc/kirctransfer.cpp @@ -94,11 +94,11 @@ Transfer::~Transfer() // m_file is automatically closed on destroy. } -Transfer::Status Transfer::status() const +Transfer::tqStatus Transfer::status() const { if(m_socket) { -// return (Transfer::Status)m_socket->socketStatus(); +// return (Transfer::tqStatus)m_socket->socketStatus(); return Connected; } return Error_NoSocket; diff --git a/kopete/protocols/irc/libkirc/kirctransfer.h b/kopete/protocols/irc/libkirc/kirctransfer.h index a64a9ddb..950c0e96 100644 --- a/kopete/protocols/irc/libkirc/kirctransfer.h +++ b/kopete/protocols/irc/libkirc/kirctransfer.h @@ -22,7 +22,7 @@ #include #include #include -#include +#include class KExtendedSocket; @@ -47,7 +47,7 @@ public: FileIncoming }; - enum Status { + enum tqStatus { Error_NoSocket = -2, Error = -1, Idle = 0, @@ -101,7 +101,7 @@ public: { return m_nick; } Type type() const { return m_type; } - Status status() const; + tqStatus status() const; /* Start the transfer. * If not connected connect to client. diff --git a/kopete/protocols/irc/libkirc/kirctransferhandler.cpp b/kopete/protocols/irc/libkirc/kirctransferhandler.cpp index 00d893da..3a5ef27c 100644 --- a/kopete/protocols/irc/libkirc/kirctransferhandler.cpp +++ b/kopete/protocols/irc/libkirc/kirctransferhandler.cpp @@ -21,7 +21,7 @@ #include #include -#include +#include #include "kirctransferserver.h" diff --git a/kopete/protocols/irc/libkirc/ksslsocket.cpp b/kopete/protocols/irc/libkirc/ksslsocket.cpp index 6d6c2ba2..2bf3910a 100644 --- a/kopete/protocols/irc/libkirc/ksslsocket.cpp +++ b/kopete/protocols/irc/libkirc/ksslsocket.cpp @@ -372,7 +372,7 @@ int KSSLSocket::verifyCertificate() "does not match the one the " "certificate was issued to."); result = messageBox( KIO::SlaveBase::WarningYesNoCancel, - msg.arg(ourHost), + msg.tqarg(ourHost), i18n("Server Authentication"), i18n("&Details"), i18n("Co&ntinue") ); @@ -382,7 +382,7 @@ int KSSLSocket::verifyCertificate() TQString msg = i18n("The server certificate failed the " "authenticity test (%1)."); result = messageBox( KIO::SlaveBase::WarningYesNoCancel, - msg.arg(ourHost), + msg.tqarg(ourHost), i18n("Server Authentication"), i18n("&Details"), i18n("Co&ntinue") ); diff --git a/kopete/protocols/irc/ui/channellist.cpp b/kopete/protocols/irc/ui/channellist.cpp index ea2c5d19..6426224a 100644 --- a/kopete/protocols/irc/ui/channellist.cpp +++ b/kopete/protocols/irc/ui/channellist.cpp @@ -32,7 +32,7 @@ #include #include #include -#include +#include #include #include #include @@ -106,7 +106,7 @@ void ChannelListItem::paintCell( TQPainter *p, const TQColorGroup &cg, int colum const BackgroundMode bgmode = lv->viewport()->backgroundMode(); const TQColorGroup::ColorRole crole = TQPalette::backgroundRoleFromMode( bgmode ); - if ( _cg.brush( crole ) != lv->colorGroup().brush( crole ) ) + if ( _cg.brush( crole ) != lv->tqcolorGroup().brush( crole ) ) p->fillRect( 0, 0, width, height(), _cg.brush( crole ) ); else { @@ -118,8 +118,8 @@ void ChannelListItem::paintCell( TQPainter *p, const TQColorGroup &cg, int colum if ( lv->isEnabled() ) how |= TQStyle::Style_Enabled; - lv->tqstyle().drawComplexControl( TQStyle::CC_ListView, - p, lv, TQRect( 0, 0, width, height() ), lv->colorGroup(), + lv->tqstyle().tqdrawComplexControl( TQStyle::CC_ListView, + p, lv, TQRect( 0, 0, width, height() ), lv->tqcolorGroup(), how, TQStyle::SC_ListView, TQStyle::SC_None, opt ); } @@ -143,7 +143,7 @@ void ChannelListItem::paintCell( TQPainter *p, const TQColorGroup &cg, int colum textheight++; if ( textheight < height() ) { int w = lv->treeStepSize() / 2; - lv->tqstyle().drawComplexControl( TQStyle::CC_ListView, p, lv, + lv->tqstyle().tqdrawComplexControl( TQStyle::CC_ListView, p, lv, TQRect( 0, textheight, w + 1, height() - textheight + 1 ), _cg, lv->isEnabled() ? TQStyle::Style_Enabled : TQStyle::Style_Default, TQStyle::SC_ListViewExpand, @@ -170,21 +170,21 @@ ChannelList::ChannelList( TQWidget* parent, KIRC::Engine *engine ) { ChannelListLayout = new TQVBoxLayout( this, 11, 6, "ChannelListLayout"); - layout72_2 = new TQHBoxLayout( 0, 0, 6, "layout72_2"); + tqlayout72_2 = new TQHBoxLayout( 0, 0, 6, "tqlayout72_2"); textLabel1_2 = new TQLabel( this, "textLabel1_2" ); - layout72_2->addWidget( textLabel1_2 ); + tqlayout72_2->addWidget( textLabel1_2 ); channelSearch = new TQLineEdit( this, "channelSearch" ); - layout72_2->addWidget( channelSearch ); + tqlayout72_2->addWidget( channelSearch ); numUsers = new TQSpinBox( 0, 32767, 1, this, "num_users" ); numUsers->setSuffix( i18n(" members") ); - layout72_2->addWidget( numUsers ); + tqlayout72_2->addWidget( numUsers ); mSearchButton = new TQPushButton( this, "mSearchButton" ); - layout72_2->addWidget( mSearchButton ); - ChannelListLayout->addLayout( layout72_2 ); + tqlayout72_2->addWidget( mSearchButton ); + ChannelListLayout->addLayout( tqlayout72_2 ); mChannelList = new KListView( this, "mChannelList" ); mChannelList->addColumn( i18n( "Channel" ) ); @@ -226,8 +226,8 @@ ChannelList::ChannelList( TQWidget* parent, KIRC::Engine *engine ) connect( m_engine, TQT_SIGNAL( incomingEndOfList() ), this, TQT_SLOT( slotListEnd() ) ); - connect( m_engine, TQT_SIGNAL( statusChanged(KIRC::Engine::Status) ), - this, TQT_SLOT( slotStatusChanged(KIRC::Engine::Status) ) ); + connect( m_engine, TQT_SIGNAL( statusChanged(KIRC::Engine::tqStatus) ), + this, TQT_SLOT( slotStatusChanged(KIRC::Engine::tqStatus) ) ); show(); } @@ -242,9 +242,9 @@ void ChannelList::slotItemSelected( TQListViewItem *i ) emit channelSelected( i->text(0) ); } -void ChannelList::slotStatusChanged(KIRC::Engine::Status newStatus) +void ChannelList::slotStatusChanged(KIRC::Engine::tqStatus newtqStatus) { - switch(newStatus) { + switch(newtqStatus) { case KIRC::Engine::Connected: this->reset(); break; diff --git a/kopete/protocols/irc/ui/channellist.h b/kopete/protocols/irc/ui/channellist.h index 1a528bb9..a5963b6b 100644 --- a/kopete/protocols/irc/ui/channellist.h +++ b/kopete/protocols/irc/ui/channellist.h @@ -58,7 +58,7 @@ class ChannelList void slotChannelListed( const TQString & channel, uint users, const TQString & topic ); void slotListEnd(); void slotSearchCache(); - void slotStatusChanged( KIRC::Engine::Status ); + void slotStatusChanged( KIRC::Engine::tqStatus ); private: void checkSearchResult( const TQString & channel, uint users, const TQString & topic ); @@ -69,7 +69,7 @@ class ChannelList TQPushButton* mSearchButton; KListView* mChannelList; TQVBoxLayout* ChannelListLayout; - TQHBoxLayout* layout72_2; + TQHBoxLayout* tqlayout72_2; KIRC::Engine *m_engine; bool mSearching; TQString mSearch; diff --git a/kopete/protocols/irc/ui/channellistdialog.cpp b/kopete/protocols/irc/ui/channellistdialog.cpp index f68f3d10..e344d227 100644 --- a/kopete/protocols/irc/ui/channellistdialog.cpp +++ b/kopete/protocols/irc/ui/channellistdialog.cpp @@ -22,7 +22,7 @@ #include "kopeteuiglobal.h" -#include "layout.h" +#include "tqlayout.h" ChannelListDialog::ChannelListDialog(KIRC::Engine *engine, const TQString &caption, TQObject *target, const char* slotJoinChan) : KDialogBase(Kopete::UI::Global::mainWidget(), "channel_list_widget", false, caption, Close) diff --git a/kopete/protocols/irc/ui/ircadd.ui b/kopete/protocols/irc/ui/ircadd.ui index a85681cd..c899eca8 100644 --- a/kopete/protocols/irc/ui/ircadd.ui +++ b/kopete/protocols/irc/ui/ircadd.ui @@ -45,7 +45,7 @@
- layout70 + tqlayout70 @@ -88,7 +88,7 @@ <i>(for example: joe_bob or #somechannel)</i> - + AlignVCenter|AlignRight @@ -102,7 +102,7 @@ Expanding - + 20 110 diff --git a/kopete/protocols/irc/ui/irceditaccount.ui b/kopete/protocols/irc/ui/irceditaccount.ui index c184b92e..e2e33f69 100644 --- a/kopete/protocols/irc/ui/irceditaccount.ui +++ b/kopete/protocols/irc/ui/irceditaccount.ui @@ -63,7 +63,7 @@ Expanding - + 20 150 @@ -82,7 +82,7 @@ 0 - + 32767 32767 @@ -91,7 +91,7 @@ <p><b>Note:</b> Most IRC servers do not require a password, and only a nickname is required to connect</p> - + WordBreak|AlignTop
@@ -261,7 +261,7 @@
- layout21 + tqlayout21 @@ -269,7 +269,7 @@ - layout19 + tqlayout19 @@ -293,7 +293,7 @@ Expanding - + 161 20 @@ -304,7 +304,7 @@ - layout20 + tqlayout20 @@ -333,7 +333,7 @@ Expanding - + 392 20 @@ -395,7 +395,7 @@ - layout25 + tqlayout25 @@ -427,7 +427,7 @@ Expanding - + 141 20 @@ -505,7 +505,7 @@ Expanding - + 20 150 @@ -554,7 +554,7 @@ - layout19 + tqlayout19 @@ -646,7 +646,7 @@ - layout23 + tqlayout23 @@ -744,7 +744,7 @@ 0 - + 0 130 @@ -809,7 +809,7 @@ - layout153 + tqlayout153 @@ -871,7 +871,7 @@ 0 - + 0 130 @@ -886,7 +886,7 @@ - layout29 + tqlayout29 diff --git a/kopete/protocols/irc/ui/irceditaccountwidget.cpp b/kopete/protocols/irc/ui/irceditaccountwidget.cpp index c0d5a87a..8a7cdcfb 100644 --- a/kopete/protocols/irc/ui/irceditaccountwidget.cpp +++ b/kopete/protocols/irc/ui/irceditaccountwidget.cpp @@ -91,9 +91,9 @@ IRCEditAccountWidget::IRCEditAccountWidget(IRCProtocol *proto, IRCAccount *ident new TQListViewItem( ctcpList, it.key(), it.data() ); } - mUserName->setValidator( new TQRegExpValidator( TQString::fromLatin1("^[^\\s]*$"), TQT_TQOBJECT(mUserName) ) ); - mNickName->setValidator( new TQRegExpValidator( TQString::fromLatin1("^[^#+&][^\\s]*$"), TQT_TQOBJECT(mNickName) ) ); - mAltNickname->setValidator( new TQRegExpValidator( TQString::fromLatin1("^[^#+&][^\\s]*$"), TQT_TQOBJECT(mAltNickname) ) ); + mUserName->setValidator( new TQRegExpValidator( TQString::tqfromLatin1("^[^\\s]*$"), TQT_TQOBJECT(mUserName) ) ); + mNickName->setValidator( new TQRegExpValidator( TQString::tqfromLatin1("^[^#+&][^\\s]*$"), TQT_TQOBJECT(mNickName) ) ); + mAltNickname->setValidator( new TQRegExpValidator( TQString::tqfromLatin1("^[^#+&][^\\s]*$"), TQT_TQOBJECT(mAltNickname) ) ); charset->insertStringList( KCodecAction::supportedEncodings() ); @@ -212,9 +212,9 @@ TQString IRCEditAccountWidget::generateAccountId( const TQString &network ) TQString nextId = network; uint accountNumber = 1; - while( config->hasGroup( TQString("Account_%1_%2").arg( m_protocol->pluginId() ).arg( nextId ) ) ) + while( config->hasGroup( TQString("Account_%1_%2").tqarg( m_protocol->pluginId() ).tqarg( nextId ) ) ) { - nextId = TQString::fromLatin1("%1_%2").arg( network ).arg( ++accountNumber ); + nextId = TQString::tqfromLatin1("%1_%2").tqarg( network ).tqarg( ++accountNumber ); } kdDebug( 14120 ) << k_funcinfo << " ID IS: " << nextId << endl; return nextId; diff --git a/kopete/protocols/irc/ui/networkconfig.ui b/kopete/protocols/irc/ui/networkconfig.ui index 09121e54..0f15dee5 100644 --- a/kopete/protocols/irc/ui/networkconfig.ui +++ b/kopete/protocols/irc/ui/networkconfig.ui @@ -206,7 +206,7 @@ Expanding - + 210 20 @@ -240,7 +240,7 @@ Expanding - + 20 151 @@ -313,7 +313,7 @@ Expanding - + 260 20 diff --git a/kopete/protocols/jabber/jabberaccount.cpp b/kopete/protocols/jabber/jabberaccount.cpp index a8597658..a86fc490 100644 --- a/kopete/protocols/jabber/jabberaccount.cpp +++ b/kopete/protocols/jabber/jabberaccount.cpp @@ -111,7 +111,7 @@ JabberAccount::JabberAccount (JabberProtocol * parent, const TQString & accountI TQObject::connect(Kopete::ContactList::self(), TQT_SIGNAL( globalIdentityChanged(const TQString&, const TQVariant& ) ), TQT_SLOT( slotGlobalIdentityChanged(const TQString&, const TQVariant& ) ) ); - m_initialPresence = XMPP::Status ( "", "", 5, true ); + m_initialPresence = XMPP::tqStatus ( "", "", 5, true ); } @@ -323,8 +323,8 @@ void JabberAccount::connectWithPassword ( const TQString &password ) this, TQT_SLOT ( slotGroupChatJoined ( const XMPP::Jid & ) ) ); TQObject::connect ( m_jabberClient, TQT_SIGNAL ( groupChatLeft ( const XMPP::Jid & ) ), this, TQT_SLOT ( slotGroupChatLeft ( const XMPP::Jid & ) ) ); - TQObject::connect ( m_jabberClient, TQT_SIGNAL ( groupChatPresence ( const XMPP::Jid &, const XMPP::Status & ) ), - this, TQT_SLOT ( slotGroupChatPresence ( const XMPP::Jid &, const XMPP::Status & ) ) ); + TQObject::connect ( m_jabberClient, TQT_SIGNAL ( groupChatPresence ( const XMPP::Jid &, const XMPP::tqStatus & ) ), + this, TQT_SLOT ( slotGroupChatPresence ( const XMPP::Jid &, const XMPP::tqStatus & ) ) ); TQObject::connect ( m_jabberClient, TQT_SIGNAL ( groupChatError ( const XMPP::Jid &, int, const TQString & ) ), this, TQT_SLOT ( slotGroupChatError ( const XMPP::Jid &, int, const TQString & ) ) ); TQObject::connect ( m_jabberClient, TQT_SIGNAL ( debugMessage ( const TQString & ) ), @@ -414,7 +414,7 @@ void JabberAccount::connectWithPassword ( const TQString &password ) kdDebug (JABBER_DEBUG_GLOBAL) << k_funcinfo << "Connecting to Jabber server " << server() << ":" << port() << endl; - setPresence( XMPP::Status ("connecting", "", 0, true) ); + setPresence( XMPP::tqStatus ("connecting", "", 0, true) ); switch ( m_jabberClient->connect ( XMPP::Jid ( accountId () + TQString("/") + resource () ), password ) ) { @@ -609,13 +609,13 @@ void JabberAccount::slotIncomingFileTransfer () void JabberAccount::setOnlineStatus( const Kopete::OnlineStatus& status , const TQString &reason) { - XMPP::Status xmppStatus = m_protocol->kosToStatus( status, reason); + XMPP::tqStatus xmpptqStatus = m_protocol->kosTotqStatus( status, reason); if( status.status() == Kopete::OnlineStatus::Offline ) { - xmppStatus.setIsAvailable( false ); + xmpptqStatus.setIsAvailable( false ); kdDebug (JABBER_DEBUG_GLOBAL) << k_funcinfo << "CROSS YOUR FINGERS! THIS IS GONNA BE WILD" << endl; - disconnect (Manual, xmppStatus); + disconnect (Manual, xmpptqStatus); return; } @@ -628,12 +628,12 @@ void JabberAccount::setOnlineStatus( const Kopete::OnlineStatus& status , const if ( !isConnected () ) { // we are not connected yet, so connect now - m_initialPresence = xmppStatus; + m_initialPresence = xmpptqStatus; connect ( status ); } else { - setPresence ( xmppStatus ); + setPresence ( xmpptqStatus ); } } @@ -650,8 +650,8 @@ void JabberAccount::disconnect ( Kopete::Account::DisconnectReason reason ) // make sure that the connection animation gets stopped if we're still // in the process of connecting - setPresence ( XMPP::Status ("", "", 0, false) ); - m_initialPresence = XMPP::Status ("", "", 5, true); + setPresence ( XMPP::tqStatus ("", "", 0, false) ); + m_initialPresence = XMPP::tqStatus ("", "", 5, true); /* FIXME: * We should delete the JabberClient instance here, @@ -666,7 +666,7 @@ void JabberAccount::disconnect ( Kopete::Account::DisconnectReason reason ) disconnected ( reason ); } -void JabberAccount::disconnect( Kopete::Account::DisconnectReason reason, XMPP::Status &status ) +void JabberAccount::disconnect( Kopete::Account::DisconnectReason reason, XMPP::tqStatus &status ) { kdDebug (JABBER_DEBUG_GLOBAL) << k_funcinfo << "disconnect( reason, status ) called" << endl; @@ -787,7 +787,7 @@ void JabberAccount::handleStreamError (int streamError, int streamCondition, int break; } - errorText = i18n("There was an error in the protocol stream: %1").arg(errorCondition); + errorText = i18n("There was an error in the protocol stream: %1").tqarg(errorCondition); break; case XMPP::ClientStream::ErrConnection: @@ -845,7 +845,7 @@ void JabberAccount::handleStreamError (int streamError, int streamCondition, int break; } if(!errorCondition.isEmpty()) - errorText = i18n("There was a connection error: %1").arg(errorCondition); + errorText = i18n("There was a connection error: %1").tqarg(errorCondition); break; case XMPP::ClientStream::ErrNeg: @@ -870,7 +870,7 @@ void JabberAccount::handleStreamError (int streamError, int streamCondition, int break; } - errorText = i18n("There was a negotiation error: %1").arg(errorCondition); + errorText = i18n("There was a negotiation error: %1").tqarg(errorCondition); break; case XMPP::ClientStream::ErrTLS: @@ -887,7 +887,7 @@ void JabberAccount::handleStreamError (int streamError, int streamCondition, int break; } - errorText = i18n("There was a Transport Layer Security (TLS) error: %1").arg(errorCondition); + errorText = i18n("There was a Transport Layer Security (TLS) error: %1").tqarg(errorCondition); break; case XMPP::ClientStream::ErrAuth: @@ -931,7 +931,7 @@ void JabberAccount::handleStreamError (int streamError, int streamCondition, int break; } - errorText = i18n("There was an error authenticating with the server: %1").arg(errorCondition); + errorText = i18n("There was an error authenticating with the server: %1").tqarg(errorCondition); break; case XMPP::ClientStream::ErrSecurityLayer: @@ -948,7 +948,7 @@ void JabberAccount::handleStreamError (int streamError, int streamCondition, int break; } - errorText = i18n("There was an error in the security layer: %1").arg(errorCondition); + errorText = i18n("There was an error in the security layer: %1").tqarg(errorCondition); break; case XMPP::ClientStream::ErrBind: @@ -965,7 +965,7 @@ void JabberAccount::handleStreamError (int streamError, int streamCondition, int break; } - errorText = i18n("Could not bind a resource: %1").arg(errorCondition); + errorText = i18n("Could not bind a resource: %1").tqarg(errorCondition); break; default: @@ -981,7 +981,7 @@ void JabberAccount::handleStreamError (int streamError, int streamCondition, int if(!errorText.isEmpty()) KMessageBox::error (Kopete::UI::Global::mainWidget (), errorText, - i18n("Connection problem with Jabber server %1").arg(server)); + i18n("Connection problem with Jabber server %1").tqarg(server)); } @@ -1015,27 +1015,27 @@ void JabberAccount::slotCSError ( int error ) } /* Set presence (usually called by dialog widget). */ -void JabberAccount::setPresence ( const XMPP::Status &status ) +void JabberAccount::setPresence ( const XMPP::tqStatus &status ) { kdDebug(JABBER_DEBUG_GLOBAL) << k_funcinfo << "Status: " << status.show () << ", Reason: " << status.status () << endl; // fetch input status - XMPP::Status newStatus = status; + XMPP::tqStatus newtqStatus = status; // TODO: Check if Caps is enabled // Send entity capabilities if( client() ) { - newStatus.setCapsNode( client()->capsNode() ); - newStatus.setCapsVersion( client()->capsVersion() ); - newStatus.setCapsExt( client()->capsExt() ); + newtqStatus.setCapsNode( client()->capsNode() ); + newtqStatus.setCapsVersion( client()->capsVersion() ); + newtqStatus.setCapsExt( client()->capsExt() ); } // make sure the status gets the correct priority - newStatus.setPriority ( configGroup()->readNumEntry ( "Priority", 5 ) ); + newtqStatus.setPriority ( configGroup()->readNumEntry ( "Priority", 5 ) ); XMPP::Jid jid ( myself()->contactId () ); - XMPP::Resource newResource ( resource (), newStatus ); + XMPP::Resource newResource ( resource (), newtqStatus ); // update our resource in the resource pool resourcePool()->addResource ( jid, newResource ); @@ -1057,7 +1057,7 @@ void JabberAccount::setPresence ( const XMPP::Status &status ) XMPP::JT_Presence * task = new XMPP::JT_Presence ( client()->rootTask ()); - task->pres ( newStatus ); + task->pres ( newtqStatus ); task->go ( true ); } else @@ -1299,11 +1299,11 @@ void JabberAccount::slotContactUpdated (const XMPP::RosterItem & item) */ if ( !item.ask().isEmpty () ) { - contact->setProperty ( protocol()->propAuthorizationStatus, i18n ( "Waiting for authorization" ) ); + contact->setProperty ( protocol()->propAuthorizationtqStatus, i18n ( "Waiting for authorization" ) ); } else { - contact->removeProperty ( protocol()->propAuthorizationStatus ); + contact->removeProperty ( protocol()->propAuthorizationtqStatus ); } } else if(c) //we don't need to add it, and it is in the contactlist @@ -1469,7 +1469,7 @@ void JabberAccount::slotGroupChatLeft (const XMPP::Jid & jid) } -void JabberAccount::slotGroupChatPresence (const XMPP::Jid & jid, const XMPP::Status & status) +void JabberAccount::slotGroupChatPresence (const XMPP::Jid & jid, const XMPP::tqStatus & status) { kdDebug (JABBER_DEBUG_GLOBAL) << k_funcinfo << "Received groupchat presence for room " << jid.full () << endl; @@ -1512,7 +1512,7 @@ void JabberAccount::slotGroupChatError (const XMPP::Jid &jid, int error, const T case JabberClient::InvalidPasswordForMUC: { TQCString password; - int result = KPasswordDialog::getPassword(password, i18n("A password is required to join the room %1.").arg(jid.node())); + int result = KPasswordDialog::getPassword(password, i18n("A password is required to join the room %1.").tqarg(jid.node())); if (result == KPasswordDialog::Accepted) m_jabberClient->joinGroupChat(jid.domain(), jid.node(), jid.resource(), password); } @@ -1521,7 +1521,7 @@ void JabberAccount::slotGroupChatError (const XMPP::Jid &jid, int error, const T case JabberClient::NicknameConflict: { bool ok; - TQString nickname = KInputDialog::getText(i18n("Error trying to join %1 : nickname %2 is already in use").arg(jid.node(), jid.resource()), + TQString nickname = KInputDialog::getText(i18n("Error trying to join %1 : nickname %2 is already in use").tqarg(jid.node(), jid.resource()), i18n("Give your nickname"), TQString(), &ok); @@ -1535,14 +1535,14 @@ void JabberAccount::slotGroupChatError (const XMPP::Jid &jid, int error, const T case JabberClient::BannedFromThisMUC: KMessageBox::queuedMessageBox ( Kopete::UI::Global::mainWidget (), KMessageBox::Error, - i18n ("You can't join the room %1 because you were banned").arg(jid.node()), + i18n ("You can't join the room %1 because you were banned").tqarg(jid.node()), i18n ("Jabber Group Chat") ); break; case JabberClient::MaxUsersReachedForThisMuc: KMessageBox::queuedMessageBox ( Kopete::UI::Global::mainWidget (), KMessageBox::Error, - i18n ("You can't join the room %1 because the maximum users has been reached").arg(jid.node()), + i18n ("You can't join the room %1 because the maximum users has been reached").tqarg(jid.node()), i18n ("Jabber Group Chat") ); break; @@ -1659,7 +1659,7 @@ void JabberAccount::slotIncomingVoiceCall( const Jid &jid ) // if(sessionType == "http://www.google.com/session/phone") // { // TQString from = ((XMPP::Jid)session->peers().first()).full(); -// //KMessageBox::queuedMessageBox( Kopete::UI::Global::mainWidget(), KMessageBox::Information, TQString("Received a voice session invitation from %1.").arg(from) ); +// //KMessageBox::queuedMessageBox( Kopete::UI::Global::mainWidget(), KMessageBox::Information, TQString("Received a voice session invitation from %1.").tqarg(from) ); // JingleVoiceSessionDialog *voiceDialog = new JingleVoiceSessionDialog( static_cast(session) ); // voiceDialog->show(); // } @@ -1687,7 +1687,7 @@ bool JabberAccount::removeAccount( ) int result=KMessageBox::warningYesNoCancel( Kopete::UI::Global::mainWidget () , i18n( "Do you want to also unregister \"%1\" from the Jabber server ?\n" "If you unregister, all your contact list may be removed on the server," - "And you will never be able to connect to this account with any client").arg( accountLabel() ), + "And you will never be able to connect to this account with any client").tqarg( accountLabel() ), i18n("Unregister"), KGuiItem(i18n( "Remove and Unregister" ), "editdelete"), KGuiItem(i18n( "Remove from kopete only"), "edittrash"), @@ -1734,7 +1734,7 @@ void JabberAccount::slotUnregisterFinished( ) if ( task && ! task->success ()) { KMessageBox::queuedMessageBox ( 0L, KMessageBox::Error, - i18n ("An error occured when trying to remove the account:\n%1").arg(task->statusString()), + i18n ("An error occured when trying to remove the account:\n%1").tqarg(task->statusString()), i18n ("Jabber Account Unregistration")); m_removing=false; return; diff --git a/kopete/protocols/jabber/jabberaccount.h b/kopete/protocols/jabber/jabberaccount.h index 9ce7c9c4..17286a90 100644 --- a/kopete/protocols/jabber/jabberaccount.h +++ b/kopete/protocols/jabber/jabberaccount.h @@ -147,7 +147,7 @@ public slots: void disconnect ( Kopete::Account::DisconnectReason reason ); /* Disconnect with a reason, and status */ - void disconnect( Kopete::Account::DisconnectReason reason, XMPP::Status &status ); + void disconnect( Kopete::Account::DisconnectReason reason, XMPP::tqStatus &status ); /* Reimplemented from Kopete::Account */ void setOnlineStatus( const Kopete::OnlineStatus& status , const TQString &reason = TQString()); @@ -199,13 +199,13 @@ private: void cleanup (); /* Initial presence to set after connecting. */ - XMPP::Status m_initialPresence; + XMPP::tqStatus m_initialPresence; /** * Sets our own presence. Updates our resource in the * resource pool and sends a presence packet to the server. */ - void setPresence ( const XMPP::Status &status ); + void setPresence ( const XMPP::tqStatus &status ); /** * Returns if a connection attempt is currently in progress. @@ -257,7 +257,7 @@ private slots: void slotJoinNewChat (); void slotGroupChatJoined ( const XMPP::Jid &jid ); void slotGroupChatLeft ( const XMPP::Jid &jid ); - void slotGroupChatPresence ( const XMPP::Jid &jid, const XMPP::Status &status ); + void slotGroupChatPresence ( const XMPP::Jid &jid, const XMPP::tqStatus &status ); void slotGroupChatError ( const XMPP::Jid &jid, int error, const TQString &reason ); /* Incoming subscription request. */ diff --git a/kopete/protocols/jabber/jabberbasecontact.cpp b/kopete/protocols/jabber/jabberbasecontact.cpp index 5dac2e18..2ee8423e 100644 --- a/kopete/protocols/jabber/jabberbasecontact.cpp +++ b/kopete/protocols/jabber/jabberbasecontact.cpp @@ -129,19 +129,19 @@ void JabberBaseContact::updateContact ( const XMPP::RosterItem & item ) switch ( item.subscription().type () ) { case XMPP::Subscription::None: - setProperty ( protocol()->propSubscriptionStatus, + setProperty ( protocol()->propSubscriptiontqStatus, i18n ( "You cannot see each others' status." ) ); break; case XMPP::Subscription::To: - setProperty ( protocol()->propSubscriptionStatus, + setProperty ( protocol()->propSubscriptiontqStatus, i18n ( "You can see this contact's status but they cannot see your status." ) ); break; case XMPP::Subscription::From: - setProperty ( protocol()->propSubscriptionStatus, + setProperty ( protocol()->propSubscriptiontqStatus, i18n ( "This contact can see your status but you cannot see their status." ) ); break; case XMPP::Subscription::Both: - setProperty ( protocol()->propSubscriptionStatus, + setProperty ( protocol()->propSubscriptiontqStatus, i18n ( "You can see each others' status." ) ); break; } @@ -217,7 +217,7 @@ void JabberBaseContact::updateContact ( const XMPP::RosterItem & item ) setDontSync ( false ); //can't do it now because it's called from contructor at a point some virtual function are not available - TQTimer::singleShot(0, this, TQT_SLOT(reevaluateStatus())); + TQTimer::singleShot(0, this, TQT_SLOT(reevaluatetqStatus())); } @@ -295,7 +295,7 @@ void JabberBaseContact::updateResourceList () setProperty ( protocol()->propAvailableResources, resourceListStr ); } -void JabberBaseContact::reevaluateStatus () +void JabberBaseContact::reevaluatetqStatus () { kdDebug (JABBER_DEBUG_GLOBAL) << k_funcinfo << "Determining new status for " << contactId () << endl; @@ -390,7 +390,7 @@ void JabberBaseContact::serialize (TQMap < TQString, TQString > &serializedData, // Contact id and display name are already set for us, only add the rest serializedData["JID"] = mRosterItem.jid().full(); - serializedData["groups"] = mRosterItem.groups ().join (TQString::fromLatin1 (",")); + serializedData["groups"] = mRosterItem.groups ().join (TQString::tqfromLatin1 (",")); } void JabberBaseContact::slotUserInfo( ) @@ -414,7 +414,7 @@ void JabberBaseContact::setPropertiesFromVCard ( const XMPP::VCard &vCard ) // update vCard cache timestamp if this is not a temporary contact if ( metaContact() && !metaContact()->isTemporary () ) { - setProperty ( protocol()->propVCardCacheTimeStamp, TQDateTime::currentDateTime().toString ( Qt::ISODate ) ); + setProperty ( protocol()->propVCardCacheTimeStamp, TQDateTime::tqcurrentDateTime().toString ( Qt::ISODate ) ); } diff --git a/kopete/protocols/jabber/jabberbasecontact.h b/kopete/protocols/jabber/jabberbasecontact.h index 2dcc26b7..c3453344 100644 --- a/kopete/protocols/jabber/jabberbasecontact.h +++ b/kopete/protocols/jabber/jabberbasecontact.h @@ -158,7 +158,7 @@ public slots: * whenever a resource is added, removed, or * changed in the resource pool. */ - void reevaluateStatus (); + void reevaluatetqStatus (); protected: /** diff --git a/kopete/protocols/jabber/jabbercapabilitiesmanager.cpp b/kopete/protocols/jabber/jabbercapabilitiesmanager.cpp index 1d5657e8..bb637870 100644 --- a/kopete/protocols/jabber/jabbercapabilitiesmanager.cpp +++ b/kopete/protocols/jabber/jabbercapabilitiesmanager.cpp @@ -24,7 +24,7 @@ #include #include #include -#include +#include #include #include @@ -240,7 +240,7 @@ void JabberCapabilitiesManager::CapabilitiesInformation::setFeatures(const TQStr void JabberCapabilitiesManager::CapabilitiesInformation::updateLastSeen() { - m_lastSeen = TQDate::currentDate(); + m_lastSeen = TQDate::tqcurrentDate(); } TQDomElement JabberCapabilitiesManager::CapabilitiesInformation::toXml(TQDomDocument *doc) const @@ -351,7 +351,7 @@ void JabberCapabilitiesManager::removeAccount(JabberAccount *account) } } -void JabberCapabilitiesManager::updateCapabilities(JabberAccount *account, const XMPP::Jid &jid, const XMPP::Status &status ) +void JabberCapabilitiesManager::updateCapabilities(JabberAccount *account, const XMPP::Jid &jid, const XMPP::tqStatus &status ) { if( !account->client() || !account->client()->rootTask() ) return; @@ -400,7 +400,7 @@ void JabberCapabilitiesManager::updateCapabilities(JabberAccount *account, const { if( !d->capabilitiesInformationMap[*newCapsIt].discovered() && d->capabilitiesInformationMap[*newCapsIt].pendingRequests() == 0 ) { - kdDebug(JABBER_DEBUG_GLOBAL) << k_funcinfo << TQString("Sending disco request to %1, node=%2").arg(TQString(jid.full()).replace('%',"%%")).arg(node + "#" + (*newCapsIt).extensions()) << endl; + kdDebug(JABBER_DEBUG_GLOBAL) << k_funcinfo << TQString("Sending disco request to %1, node=%2").tqarg(TQString(jid.full()).replace('%',"%%")).tqarg(node + "#" + (*newCapsIt).extensions()) << endl; d->capabilitiesInformationMap[*newCapsIt].setPendingRequests(1); requestDiscoInfo(account, jid, node + "#" + (*newCapsIt).extensions()); @@ -410,7 +410,7 @@ void JabberCapabilitiesManager::updateCapabilities(JabberAccount *account, const else { // Remove all caps specifications - kdDebug(JABBER_DEBUG_GLOBAL) << TQString("Illegal caps info from %1: node=%2, ver=%3").arg(TQString(jid.full()).replace('%',"%%")).arg(node).arg(version) << endl; + kdDebug(JABBER_DEBUG_GLOBAL) << TQString("Illegal caps info from %1: node=%2, ver=%3").tqarg(TQString(jid.full()).replace('%',"%%")).tqarg(node).tqarg(version) << endl; d->jidCapabilitiesMap.remove( jid.full() ); } @@ -448,7 +448,7 @@ void JabberCapabilitiesManager::discoRequestFinished() DiscoItem item = discoInfo->item(); Jid jid = discoInfo->jid(); - kdDebug(JABBER_DEBUG_GLOBAL) << TQString("Disco response from %1, node=%2, success=%3").arg(TQString(jid.full()).replace('%',"%%")).arg(discoInfo->node()).arg(discoInfo->success()) << endl; + kdDebug(JABBER_DEBUG_GLOBAL) << TQString("Disco response from %1, node=%2, success=%3").tqarg(TQString(jid.full()).replace('%',"%%")).tqarg(discoInfo->node()).tqarg(discoInfo->success()) << endl; TQStringList tokens = TQStringList::split("#",discoInfo->node()); @@ -486,7 +486,7 @@ void JabberCapabilitiesManager::discoRequestFinished() TQPair jidAccountPair = d->capabilitiesInformationMap[capabilities].nextJid(jid,discoInfo->parent()); if( jidAccountPair.second ) { - kdDebug(JABBER_DEBUG_GLOBAL) << TQString("Falling back on %1.").arg(TQString(jidAccountPair.first.full()).replace('%',"%%")) << endl; + kdDebug(JABBER_DEBUG_GLOBAL) << TQString("Falling back on %1.").tqarg(TQString(jidAccountPair.first.full()).replace('%',"%%")) << endl; requestDiscoInfo( jidAccountPair.second, jidAccountPair.first, discoInfo->node() ); } else @@ -497,7 +497,7 @@ void JabberCapabilitiesManager::discoRequestFinished() } } else - kdDebug(JABBER_DEBUG_GLOBAL) << TQString("Current client node '%1' does not match response '%2'").arg(jidCapabilities.node()).arg(node) << endl; + kdDebug(JABBER_DEBUG_GLOBAL) << TQString("Current client node '%1' does not match response '%2'").tqarg(jidCapabilities.node()).tqarg(node) << endl; //for (unsigned int i = 0; i < item.features().list().count(); i++) // printf(" Feature: %s\n",item.features().list()[i].latin1()); diff --git a/kopete/protocols/jabber/jabbercapabilitiesmanager.h b/kopete/protocols/jabber/jabbercapabilitiesmanager.h index 8e2a95a6..f314d760 100644 --- a/kopete/protocols/jabber/jabbercapabilitiesmanager.h +++ b/kopete/protocols/jabber/jabbercapabilitiesmanager.h @@ -81,12 +81,12 @@ public slots: /** * Update if necessary the capabities for the JID passed in args. * Caps are received in Presence messages so that's why we are - * passing a XMPP::Status object. + * passing a XMPP::tqStatus object. * * @param jid JID that capabilities was updated. - * @param status The XMPP::Status that contain the caps. + * @param status The XMPP::tqStatus that contain the caps. */ - void updateCapabilities(JabberAccount *account, const XMPP::Jid &jid, const XMPP::Status &status); + void updateCapabilities(JabberAccount *account, const XMPP::Jid &jid, const XMPP::tqStatus &status); private slots: /** diff --git a/kopete/protocols/jabber/jabberchatsession.cpp b/kopete/protocols/jabber/jabberchatsession.cpp index c18c9071..d10f4201 100644 --- a/kopete/protocols/jabber/jabberchatsession.cpp +++ b/kopete/protocols/jabber/jabberchatsession.cpp @@ -118,7 +118,7 @@ void JabberChatSession::slotUpdateDisplayName () jid.setResource ( mResource ); TQString statusText = i18n("a contact's online status in parenthesis.", " (%1)") - .arg( chatMembers.first()->onlineStatus().description() ); + .tqarg( chatMembers.first()->onlinetqStatus().description() ); if ( jid.resource().isEmpty () ) setDisplayName ( chatMembers.first()->metaContact()->displayName () + statusText ); else diff --git a/kopete/protocols/jabber/jabberclient.cpp b/kopete/protocols/jabber/jabberclient.cpp index fddd588f..cf37ffd8 100644 --- a/kopete/protocols/jabber/jabberclient.cpp +++ b/kopete/protocols/jabber/jabberclient.cpp @@ -724,8 +724,8 @@ JabberClient::ErrorCode JabberClient::connect ( const XMPP::Jid &jid, const TQSt this, TQT_SLOT ( slotGroupChatJoined (const Jid &) ) ); TQObject::connect ( d->jabberClient, TQT_SIGNAL ( groupChatLeft (const Jid &) ), this, TQT_SLOT ( slotGroupChatLeft (const Jid &) ) ); - TQObject::connect ( d->jabberClient, TQT_SIGNAL ( groupChatPresence (const Jid &, const Status &) ), - this, TQT_SLOT ( slotGroupChatPresence (const Jid &, const Status &) ) ); + TQObject::connect ( d->jabberClient, TQT_SIGNAL ( groupChatPresence (const Jid &, const tqStatus &) ), + this, TQT_SLOT ( slotGroupChatPresence (const Jid &, const tqStatus &) ) ); TQObject::connect ( d->jabberClient, TQT_SIGNAL ( groupChatError (const Jid &, int, const TQString &) ), this, TQT_SLOT ( slotGroupChatError (const Jid &, int, const TQString &) ) ); //TQObject::connect ( d->jabberClient, TQT_SIGNAL (debugText (const TQString &) ), @@ -769,7 +769,7 @@ void JabberClient::disconnect () } -void JabberClient::disconnect( XMPP::Status &reason ) +void JabberClient::disconnect( XMPP::tqStatus &reason ) { if ( d->jabberClient ) { @@ -823,12 +823,12 @@ void JabberClient::leaveGroupChat ( const TQString &host, const TQString &room ) } -void JabberClient::setGroupChatStatus( const TQString & host, const TQString & room, const XMPP::Status & status ) +void JabberClient::setGroupChattqStatus( const TQString & host, const TQString & room, const XMPP::tqStatus & status ) { - client()->groupChatSetStatus( host, room, status); + client()->groupChatSettqStatus( host, room, status); } -void JabberClient::changeGroupChatNick( const TQString & host, const TQString & room, const TQString & nick, const XMPP::Status & status ) +void JabberClient::changeGroupChatNick( const TQString & host, const TQString & room, const TQString & nick, const XMPP::tqStatus & status ) { client()->groupChatChangeNick( host, room, nick, status ); } @@ -1112,7 +1112,7 @@ void JabberClient::slotGroupChatLeft ( const Jid &jid ) } -void JabberClient::slotGroupChatPresence ( const Jid &jid, const Status &status) +void JabberClient::slotGroupChatPresence ( const Jid &jid, const tqStatus &status) { emit groupChatPresence ( jid, status ); diff --git a/kopete/protocols/jabber/jabberclient.h b/kopete/protocols/jabber/jabberclient.h index 7ba389f9..05324824 100644 --- a/kopete/protocols/jabber/jabberclient.h +++ b/kopete/protocols/jabber/jabberclient.h @@ -96,7 +96,7 @@ public: * Disconnect from Jabber server with reason * @param reason The reason for disconnecting */ - void disconnect (XMPP::Status &reason); + void disconnect (XMPP::tqStatus &reason); /** * Returns if this instance is connected to a server. @@ -379,11 +379,11 @@ public: /** * change the status of a group chat */ - void setGroupChatStatus(const TQString &host, const TQString &room, const XMPP::Status &); + void setGroupChattqStatus(const TQString &host, const TQString &room, const XMPP::tqStatus &); /** * change the nick in a group chat */ - void changeGroupChatNick(const TQString &host, const TQString &room, const TQString &nick, const XMPP::Status &status =XMPP::Status()); + void changeGroupChatNick(const TQString &host, const TQString &room, const TQString &nick, const XMPP::tqStatus &status =XMPP::tqStatus()); /** * Send a message. @@ -492,7 +492,7 @@ signals: /** * A presence to a group chat has been signalled. */ - void groupChatPresence ( const XMPP::Jid &jid, const XMPP::Status &status ); + void groupChatPresence ( const XMPP::Jid &jid, const XMPP::tqStatus &status ); /** * An error was encountered joining or processing a group chat. @@ -590,7 +590,7 @@ private slots: /* Slots for handling group chats. */ void slotGroupChatJoined (const Jid & jid); void slotGroupChatLeft (const Jid & jid); - void slotGroupChatPresence (const Jid & jid, const Status & status); + void slotGroupChatPresence (const Jid & jid, const tqStatus & status); void slotGroupChatError (const Jid & jid, int error, const TQString & reason); /* Incoming subscription request. */ diff --git a/kopete/protocols/jabber/jabbercontact.cpp b/kopete/protocols/jabber/jabbercontact.cpp index 5fa3dad7..c6147ae1 100644 --- a/kopete/protocols/jabber/jabbercontact.cpp +++ b/kopete/protocols/jabber/jabbercontact.cpp @@ -23,7 +23,7 @@ #include #include -#include +#include #include #include #include @@ -107,7 +107,7 @@ JabberContact::JabberContact (const XMPP::RosterItem &rosterItem, Kopete::Accoun * Trigger update once if we're already connected for contacts * that are being added while we are online. */ - if ( account()->myself()->onlineStatus().isDefinitelyOnline() ) + if ( account()->myself()->onlinetqStatus().isDefinitelyOnline() ) { slotGetTimedVCard (); } @@ -170,7 +170,7 @@ TQPtrList *JabberContact::customContextMenuActions () // if the contact is online, display the resources we have for it, // otherwise disable the menu - if (onlineStatus ().status () == Kopete::OnlineStatus::Offline) + if (onlinetqStatus ().status () == Kopete::OnlineStatus::Offline) { actionSelectResource->setEnabled ( false ); } @@ -263,11 +263,11 @@ void JabberContact::handleIncomingMessage (const XMPP::Message & message) { TQString room=message.invite(); TQString originalBody=message.body().isEmpty() ? TQString() : - i18n( "The original message is : \" %1 \"
" ).arg(TQStyleSheet::escape(message.body())); + i18n( "The original message is : \" %1 \"
" ).tqarg(TQStyleSheet::escape(message.body())); TQString mes=i18n("%1 invited you to join the conference %2
%3
" "If you want to accept and join, just enter your nickname and press ok
" "If you want to decline, press cancel
") - .arg(message.from().full(), room , originalBody); + .tqarg(message.from().full(), room , originalBody); bool ok=false; TQString futureNewNickName = KInputDialog::getText( i18n( "Invited to a conference - Jabber Plugin" ), @@ -299,7 +299,7 @@ void JabberContact::handleIncomingMessage (const XMPP::Message & message) if(mManager->view( Kopete::Contact::CannotCreate )) { //show an internal message if the user has not already closed his window Kopete::Message m=Kopete::Message ( this, mManager->members(), - i18n("%1 has ended their participation in the chat session.").arg(metaContact()->displayName()), + i18n("%1 has ended their participation in the chat session.").tqarg(metaContact()->displayName()), Kopete::Message::Internal ); m.setImportance(Kopete::Message::Low); mManager->view()->appendMessage ( m ); //use KopeteView::AppendMessage to bypass notifications @@ -415,7 +415,7 @@ void JabberContact::slotCheckVCard () Kopete::ContactProperty cacheDateString = property ( protocol()->propVCardCacheTimeStamp ); // don't do anything while we are offline - if ( !account()->myself()->onlineStatus().isDefinitelyOnline () ) + if ( !account()->myself()->onlinetqStatus().isDefinitelyOnline () ) { return; } @@ -440,13 +440,13 @@ void JabberContact::slotCheckVCard () // avoid warning if key does not exist in configuration file if ( cacheDateString.isNull () ) - cacheDate = TQDateTime::currentDateTime().addDays ( -2 ); + cacheDate = TQDateTime::tqcurrentDateTime().addDays ( -2 ); else cacheDate = TQDateTime::fromString ( cacheDateString.value().toString (), Qt::ISODate ); kdDebug ( JABBER_DEBUG_GLOBAL ) << k_funcinfo << "Cached vCard data for " << contactId () << " from " << cacheDate.toString () << endl; - if ( !mVCardUpdateInProgress && ( cacheDate.addDays ( 1 ) < TQDateTime::currentDateTime () ) ) + if ( !mVCardUpdateInProgress && ( cacheDate.addDays ( 1 ) < TQDateTime::tqcurrentDateTime () ) ) { kdDebug ( JABBER_DEBUG_GLOBAL ) << k_funcinfo << "Scheduling update." << endl; @@ -463,7 +463,7 @@ void JabberContact::slotGetTimedVCard () mVCardUpdateInProgress = false; // check if we are still connected - eventually we lost our connection in the meantime - if ( !account()->myself()->onlineStatus().isDefinitelyOnline () ) + if ( !account()->myself()->onlinetqStatus().isDefinitelyOnline () ) { // we are not connected, discard this update return; @@ -506,7 +506,7 @@ void JabberContact::slotGotVCard () // update timestamp of last vCard retrieval if ( metaContact() && !metaContact()->isTemporary () ) { - setProperty ( protocol()->propVCardCacheTimeStamp, TQDateTime::currentDateTime().toString ( Qt::ISODate ) ); + setProperty ( protocol()->propVCardCacheTimeStamp, TQDateTime::tqcurrentDateTime().toString ( Qt::ISODate ) ); } mVCardUpdateInProgress = false; @@ -527,7 +527,7 @@ void JabberContact::slotGotVCard () } -void JabberContact::slotCheckLastActivity ( Kopete::Contact *, const Kopete::OnlineStatus &newStatus, const Kopete::OnlineStatus &oldStatus ) +void JabberContact::slotCheckLastActivity ( Kopete::Contact *, const Kopete::OnlineStatus &newtqStatus, const Kopete::OnlineStatus &oldtqStatus ) { /* @@ -541,13 +541,13 @@ void JabberContact::slotCheckLastActivity ( Kopete::Contact *, const Kopete::Onl * to query its activity after we are already connected. */ - if ( onlineStatus().isDefinitelyOnline () ) + if ( onlinetqStatus().isDefinitelyOnline () ) { // Kopete already deals with lastSeen if the contact is online return; } - if ( ( oldStatus.status () == Kopete::OnlineStatus::Connecting ) && newStatus.isDefinitelyOnline () ) + if ( ( oldtqStatus.status () == Kopete::OnlineStatus::Connecting ) && newtqStatus.isDefinitelyOnline () ) { kdDebug ( JABBER_DEBUG_GLOBAL ) << k_funcinfo << "Scheduling request for last activity for " << mRosterItem.jid().bare () << endl; @@ -567,13 +567,13 @@ void JabberContact::slotGetTimedLastActivity () * maintained by Kopete) */ - if ( onlineStatus().isDefinitelyOnline () ) + if ( onlinetqStatus().isDefinitelyOnline () ) { // Kopete already deals with setting lastSeen if the contact is online return; } - if ( account()->myself()->onlineStatus().isDefinitelyOnline () ) + if ( account()->myself()->onlinetqStatus().isDefinitelyOnline () ) { kdDebug ( JABBER_DEBUG_GLOBAL ) << k_funcinfo << "Requesting last activity from timer for " << mRosterItem.jid().bare () << endl; @@ -591,7 +591,7 @@ void JabberContact::slotGotLastActivity () if ( task->success () ) { - setProperty ( protocol()->propLastSeen, TQDateTime(TQDateTime::currentDateTime().addSecs ( -task->seconds () ))); + setProperty ( protocol()->propLastSeen, TQDateTime(TQDateTime::tqcurrentDateTime().addSecs ( -task->seconds () ))); if( !task->message().isEmpty() ) { setProperty( protocol()->propAwayMessage, task->message() ); @@ -1110,7 +1110,7 @@ void JabberContact::slotSelectResource () } -void JabberContact::sendPresence ( const XMPP::Status status ) +void JabberContact::sendPresence ( const XMPP::tqStatus status ) { if ( !account()->isConnected () ) @@ -1119,15 +1119,15 @@ void JabberContact::sendPresence ( const XMPP::Status status ) return; } - XMPP::Status newStatus = status; + XMPP::tqStatus newtqStatus = status; // honour our priority - if(newStatus.isAvailable()) - newStatus.setPriority ( account()->configGroup()->readNumEntry ( "Priority", 5 ) ); + if(newtqStatus.isAvailable()) + newtqStatus.setPriority ( account()->configGroup()->readNumEntry ( "Priority", 5 ) ); XMPP::JT_Presence * task = new XMPP::JT_Presence ( account()->client()->rootTask () ); - task->pres ( bestAddress (), newStatus); + task->pres ( bestAddress (), newtqStatus); task->go ( true ); } @@ -1136,7 +1136,7 @@ void JabberContact::sendPresence ( const XMPP::Status status ) void JabberContact::slotStatusOnline () { - XMPP::Status status; + XMPP::tqStatus status; status.setShow(""); sendPresence ( status ); @@ -1146,7 +1146,7 @@ void JabberContact::slotStatusOnline () void JabberContact::slotStatusChatty () { - XMPP::Status status; + XMPP::tqStatus status; status.setShow ("chat"); sendPresence ( status ); @@ -1156,7 +1156,7 @@ void JabberContact::slotStatusChatty () void JabberContact::slotStatusAway () { - XMPP::Status status; + XMPP::tqStatus status; status.setShow ("away"); sendPresence ( status ); @@ -1166,7 +1166,7 @@ void JabberContact::slotStatusAway () void JabberContact::slotStatusXA () { - XMPP::Status status; + XMPP::tqStatus status; status.setShow ("xa"); sendPresence ( status ); @@ -1176,7 +1176,7 @@ void JabberContact::slotStatusXA () void JabberContact::slotStatusDND () { - XMPP::Status status; + XMPP::tqStatus status; status.setShow ("dnd"); sendPresence ( status ); @@ -1187,7 +1187,7 @@ void JabberContact::slotStatusDND () void JabberContact::slotStatusInvisible () { - XMPP::Status status; + XMPP::tqStatus status; status.setIsAvailable( false ); sendPresence ( status ); @@ -1299,7 +1299,7 @@ void JabberContact::slotDiscoFinished( ) XMPP::RosterItem ri = rosterItem(); Kopete::MetaContact *mc=metaContact(); JabberAccount *parentAccount=account(); - Kopete::OnlineStatus status=onlineStatus(); + Kopete::OnlineStatus status=onlinetqStatus(); kdDebug(JABBER_DEBUG_GLOBAL) << k_funcinfo << ri.jid().full() << " is not a contact but a gateway - " << this << endl; diff --git a/kopete/protocols/jabber/jabbercontact.h b/kopete/protocols/jabber/jabbercontact.h index 15b5096e..ce40be30 100644 --- a/kopete/protocols/jabber/jabbercontact.h +++ b/kopete/protocols/jabber/jabbercontact.h @@ -228,7 +228,7 @@ private: /** * Sends a presence packet to this contact */ - void sendPresence ( const XMPP::Status status ); + void sendPresence ( const XMPP::tqStatus status ); /** * This variable keeps a list of message managers. diff --git a/kopete/protocols/jabber/jabberformtranslator.cpp b/kopete/protocols/jabber/jabberformtranslator.cpp index 3344f802..de789f44 100644 --- a/kopete/protocols/jabber/jabberformtranslator.cpp +++ b/kopete/protocols/jabber/jabberformtranslator.cpp @@ -31,12 +31,12 @@ JabberFormTranslator::JabberFormTranslator (const XMPP::Form & form, TQWidget * emptyForm = privForm; - /* Add instructions to layout. */ + /* Add instructions to tqlayout. */ TQVBoxLayout *innerLayout = new TQVBoxLayout (this, 0, 4); TQLabel *label = new TQLabel (form.instructions (), this, "InstructionLabel"); - label->setAlignment (int (TQLabel::WordBreak | TQLabel::AlignVCenter)); - label->setSizePolicy(TQSizePolicy::Minimum,TQSizePolicy::Fixed, true); + label->tqsetAlignment (int (TQLabel::WordBreak | TQLabel::AlignVCenter)); + label->tqsetSizePolicy(TQSizePolicy::Minimum,TQSizePolicy::Fixed, true); label->show (); innerLayout->addWidget (label, 0); diff --git a/kopete/protocols/jabber/jabberformtranslator.h b/kopete/protocols/jabber/jabberformtranslator.h index 41d12279..2ee316d6 100644 --- a/kopete/protocols/jabber/jabberformtranslator.h +++ b/kopete/protocols/jabber/jabberformtranslator.h @@ -19,7 +19,7 @@ #define JABBERFORMTRANSLATOR_H #include -#include +#include #include "xmpp_tasks.h" diff --git a/kopete/protocols/jabber/jabbergroupchatmanager.cpp b/kopete/protocols/jabber/jabbergroupchatmanager.cpp index e098fdad..f536a1c9 100644 --- a/kopete/protocols/jabber/jabbergroupchatmanager.cpp +++ b/kopete/protocols/jabber/jabbergroupchatmanager.cpp @@ -145,7 +145,7 @@ void JabberGroupChatManager::inviteContact( const TQString & contactId ) jabberMessage.setFrom ( account()->client()->jid() ); jabberMessage.setTo ( contactId ); jabberMessage.setInvite( mRoomJid.userHost() ); - jabberMessage.setBody( i18n("You have been invited to %1").arg( mRoomJid.userHost() ) ); + jabberMessage.setBody( i18n("You have been invited to %1").tqarg( mRoomJid.userHost() ) ); // send the message account()->client()->sendMessage ( jabberMessage ); diff --git a/kopete/protocols/jabber/jabbergroupcontact.cpp b/kopete/protocols/jabber/jabbergroupcontact.cpp index 1fa6d884..7ddf4041 100644 --- a/kopete/protocols/jabber/jabbergroupcontact.cpp +++ b/kopete/protocols/jabber/jabbergroupcontact.cpp @@ -345,8 +345,8 @@ void JabberGroupContact::slotStatusChanged( ) } //TODO: away message - XMPP::Status newStatus = account()->protocol()->kosToStatus( account()->myself()->onlineStatus() ); - account()->client()->setGroupChatStatus( rosterItem().jid().host() , rosterItem().jid().user() , newStatus ); + XMPP::tqStatus newtqStatus = account()->protocol()->kosTotqStatus( account()->myself()->onlinetqStatus() ); + account()->client()->setGroupChattqStatus( rosterItem().jid().host() , rosterItem().jid().user() , newtqStatus ); } void JabberGroupContact::slotChangeNick( ) @@ -354,14 +354,14 @@ void JabberGroupContact::slotChangeNick( ) bool ok; TQString futureNewNickName = KInputDialog::getText( i18n( "Change nickanme - Jabber Plugin" ), - i18n( "Please enter the new nick name you want to have on the room %1" ).arg(rosterItem().jid().userHost()), + i18n( "Please enter the new nick name you want to have on the room %1" ).tqarg(rosterItem().jid().userHost()), mNick, &ok ); if ( !ok || !account()->isConnected()) return; mNick=futureNewNickName; - XMPP::Status status = account()->protocol()->kosToStatus( account()->myself()->onlineStatus() ); + XMPP::tqStatus status = account()->protocol()->kosTotqStatus( account()->myself()->onlinetqStatus() ); account()->client()->changeGroupChatNick( rosterItem().jid().host() , rosterItem().jid().user() , mNick , status); } diff --git a/kopete/protocols/jabber/jabberprotocol.cpp b/kopete/protocols/jabber/jabberprotocol.cpp index a7cf3a78..0b73f38b 100644 --- a/kopete/protocols/jabber/jabberprotocol.cpp +++ b/kopete/protocols/jabber/jabberprotocol.cpp @@ -90,8 +90,8 @@ JabberProtocol::JabberProtocol (TQObject * parent, const char *name, const TQStr propWorkPhone(Kopete::Global::Properties::self()->workPhone()), propWorkMobilePhone(Kopete::Global::Properties::self()->workMobilePhone()), propNickName(Kopete::Global::Properties::self()->nickName()), - propSubscriptionStatus("jabberSubscriptionStatus", i18n ("Subscription"), TQString(), true, false), - propAuthorizationStatus("jabberAuthorizationStatus", i18n ("Authorization Status"), TQString(), true, false), + propSubscriptiontqStatus("jabberSubscriptionStatus", i18n ("Subscription"), TQString(), true, false), + propAuthorizationtqStatus("jabberAuthorizationStatus", i18n ("Authorization Status"), TQString(), true, false), propAvailableResources("jabberAvailableResources", i18n ("Available Resources"), "jabber_chatty", false, true), propVCardCacheTimeStamp("jabberVCardCacheTimeStamp", i18n ("vCard Cache Timestamp"), TQString(), true, false, true), propPhoto(Kopete::Global::Properties::self()->photo()), @@ -304,42 +304,42 @@ Kopete::Contact *JabberProtocol::deserializeContact (Kopete::MetaContact * metaC return account->contacts()[contactId]; } -XMPP::Status JabberProtocol::kosToStatus( const Kopete::OnlineStatus & status , const TQString & message ) +XMPP::tqStatus JabberProtocol::kosTotqStatus( const Kopete::OnlineStatus & status , const TQString & message ) { - XMPP::Status xmppStatus ( "", message ); + XMPP::tqStatus xmpptqStatus ( "", message ); if( status.status() == Kopete::OnlineStatus::Offline ) { - xmppStatus.setIsAvailable( false ); + xmpptqStatus.setIsAvailable( false ); } switch ( status.internalStatus () ) { case JabberProtocol::JabberFreeForChat: - xmppStatus.setShow ( "chat" ); + xmpptqStatus.setShow ( "chat" ); break; case JabberProtocol::JabberOnline: - xmppStatus.setShow ( "" ); + xmpptqStatus.setShow ( "" ); break; case JabberProtocol::JabberAway: - xmppStatus.setShow ( "away" ); + xmpptqStatus.setShow ( "away" ); break; case JabberProtocol::JabberXA: - xmppStatus.setShow ( "xa" ); + xmpptqStatus.setShow ( "xa" ); break; case JabberProtocol::JabberDND: - xmppStatus.setShow ( "dnd" ); + xmpptqStatus.setShow ( "dnd" ); break; case JabberProtocol::JabberInvisible: - xmppStatus.setIsInvisible ( true ); + xmpptqStatus.setIsInvisible ( true ); break; } - return xmppStatus; + return xmpptqStatus; } #include "jabberprotocol.moc" diff --git a/kopete/protocols/jabber/jabberprotocol.h b/kopete/protocols/jabber/jabberprotocol.h index 6e647f74..0e79c357 100644 --- a/kopete/protocols/jabber/jabberprotocol.h +++ b/kopete/protocols/jabber/jabberprotocol.h @@ -39,11 +39,11 @@ namespace XMPP { class Resource; - class Status; + class tqStatus; } class JabberContact; -class dlgJabberStatus; +class dlgJabbertqStatus; class dlgJabberSendRaw; class JabberCapabilitiesManager; @@ -95,8 +95,8 @@ public: const Kopete::ContactPropertyTmpl propWorkPhone; const Kopete::ContactPropertyTmpl propWorkMobilePhone; const Kopete::ContactPropertyTmpl propNickName; - const Kopete::ContactPropertyTmpl propSubscriptionStatus; - const Kopete::ContactPropertyTmpl propAuthorizationStatus; + const Kopete::ContactPropertyTmpl propSubscriptiontqStatus; + const Kopete::ContactPropertyTmpl propAuthorizationtqStatus; const Kopete::ContactPropertyTmpl propAvailableResources; const Kopete::ContactPropertyTmpl propVCardCacheTimeStamp; const Kopete::ContactPropertyTmpl propPhoto; @@ -141,9 +141,9 @@ public: Kopete::OnlineStatus resourceToKOS ( const XMPP::Resource &resource ); /** - * Convert an online status to a XMPP::Status + * Convert an online status to a XMPP::tqStatus */ - XMPP::Status kosToStatus( const Kopete::OnlineStatus & status, const TQString& message=TQString() ); + XMPP::tqStatus kosTotqStatus( const Kopete::OnlineStatus & status, const TQString& message=TQString() ); /** * Return the Entity Capabilities(JEP-0115) manager instance. diff --git a/kopete/protocols/jabber/jabberresourcepool.cpp b/kopete/protocols/jabber/jabberresourcepool.cpp index 19492790..cddffd64 100644 --- a/kopete/protocols/jabber/jabberresourcepool.cpp +++ b/kopete/protocols/jabber/jabberresourcepool.cpp @@ -95,7 +95,7 @@ void JabberResourcePool::notifyRelevantContacts ( const XMPP::Jid &jid ) for(JabberBaseContact *mContact = list.first (); mContact; mContact = list.next ()) { - mContact->reevaluateStatus (); + mContact->reevaluatetqStatus (); } } diff --git a/kopete/protocols/jabber/jabbertransport.cpp b/kopete/protocols/jabber/jabbertransport.cpp index 26d16b28..218c9aae 100644 --- a/kopete/protocols/jabber/jabbertransport.cpp +++ b/kopete/protocols/jabber/jabbertransport.cpp @@ -123,11 +123,11 @@ JabberTransport::~JabberTransport () KActionMenu *JabberTransport::actionMenu () { - KActionMenu *menu = new KActionMenu( accountId(), myself()->onlineStatus().iconFor( this ), this ); + KActionMenu *menu = new KActionMenu( accountId(), myself()->onlinetqStatus().iconFor( this ), this ); TQString nick = myself()->property( Kopete::Global::Properties::self()->nickName()).value().toString(); - menu->popupMenu()->insertTitle( myself()->onlineStatus().iconFor( myself() ), - nick.isNull() ? accountLabel() : i18n( "%2 <%1>" ).arg( accountLabel(), nick ) + menu->popupMenu()->insertTitle( myself()->onlinetqStatus().iconFor( myself() ), + nick.isNull() ? accountLabel() : i18n( "%2 <%1>" ).tqarg( accountLabel(), nick ) ); TQPtrList *customActions = myself()->customContextMenuActions( ); @@ -203,44 +203,44 @@ void JabberTransport::setOnlineStatus( const Kopete::OnlineStatus& status , con return; } - XMPP::Status xmppStatus ( "", reason ); + XMPP::tqStatus xmpptqStatus ( "", reason ); switch ( status.internalStatus () ) { case JabberProtocol::JabberFreeForChat: - xmppStatus.setShow ( "chat" ); + xmpptqStatus.setShow ( "chat" ); break; case JabberProtocol::JabberOnline: - xmppStatus.setShow ( "" ); + xmpptqStatus.setShow ( "" ); break; case JabberProtocol::JabberAway: - xmppStatus.setShow ( "away" ); + xmpptqStatus.setShow ( "away" ); break; case JabberProtocol::JabberXA: - xmppStatus.setShow ( "xa" ); + xmpptqStatus.setShow ( "xa" ); break; case JabberProtocol::JabberDND: - xmppStatus.setShow ( "dnd" ); + xmpptqStatus.setShow ( "dnd" ); break; case JabberProtocol::JabberInvisible: - xmppStatus.setIsInvisible ( true ); + xmpptqStatus.setIsInvisible ( true ); break; } if ( !isConnected () ) { // we are not connected yet, so connect now - m_initialPresence = xmppStatus; + m_initialPresence = xmpptqStatus; connect (); } else { - setPresence ( xmppStatus ); + setPresence ( xmpptqStatus ); } #endif } @@ -277,7 +277,7 @@ void JabberTransport::removeAllContacts( ) /* if ( ! task->success ()) KMessageBox::queuedMessageBox ( 0L, KMessageBox::Error, - i18n ("An error occured when trying to remove the transport:\n%1").arg(task->statusString()), + i18n ("An error occured when trying to remove the transport:\n%1").tqarg(task->statusString()), i18n ("Jabber Service Unregistration")); */ //we don't really care, we remove everithing anyway. @@ -328,7 +328,7 @@ void JabberTransport::eatContacts( ) { XMPP::RosterItem item=contact->rosterItem(); Kopete::MetaContact *mc=contact->metaContact(); - Kopete::OnlineStatus status = contact->onlineStatus(); + Kopete::OnlineStatus status = contact->onlinetqStatus(); kdDebug(JABBER_DEBUG_GLOBAL) << k_funcinfo << item.jid().full() << " will be soon eat - " << contact << endl; delete contact; Kopete::Contact *c2=account()->contactPool()->addContact( item , mc , false ); //not sure this is false; diff --git a/kopete/protocols/jabber/jabbertransport.h b/kopete/protocols/jabber/jabbertransport.h index 2cfcd4c1..f0a2ab81 100644 --- a/kopete/protocols/jabber/jabbertransport.h +++ b/kopete/protocols/jabber/jabbertransport.h @@ -80,8 +80,8 @@ public: virtual bool removeAccount(); - enum TransportStatus { Normal , Creating, Removing , AccountRemoved }; - TransportStatus transportStatus() { return m_status; }; + enum TransporttqStatus { Normal , Creating, Removing , AccountRemoved }; + TransporttqStatus transporttqStatus() { return m_status; }; /** * return the legacyId conrresponding to the jid @@ -132,7 +132,7 @@ protected: private: JabberAccount *m_account; - TransportStatus m_status; + TransporttqStatus m_status; }; diff --git a/kopete/protocols/jabber/jingle/jinglevoicecaller.cpp b/kopete/protocols/jabber/jingle/jinglevoicecaller.cpp index f6911a3b..4208e0d8 100644 --- a/kopete/protocols/jabber/jingle/jinglevoicecaller.cpp +++ b/kopete/protocols/jabber/jingle/jinglevoicecaller.cpp @@ -114,7 +114,7 @@ void JingleClientSlots::callDestroyed(cricket::Call *call) qDebug("JingleClientSlots: Call destroyed"); Jid jid(call->sessions()[0]->remote_address().c_str()); if (voiceCaller_->calling(jid)) { - qDebug(TQString("Removing unterminated call to %1").arg(jid.full())); + qDebug(TQString("Removing unterminated call to %1").tqarg(jid.full())); voiceCaller_->removeCall(jid); emit voiceCaller_->terminated(jid); } @@ -138,7 +138,7 @@ void JingleClientSlots::requestSignaling() void JingleClientSlots::stateChanged(cricket::Call *call, cricket::Session *session, cricket::Session::State state) { - qDebug(TQString("jinglevoicecaller.cpp: State changed (%1)").arg(state)); + qDebug(TQString("jinglevoicecaller.cpp: State changed (%1)").tqarg(state)); // Why is c_str() stuff needed to make it compile on OS X ? Jid jid(session->remote_address().c_str()); @@ -156,7 +156,7 @@ void JingleClientSlots::stateChanged(cricket::Call *call, cricket::Session *sess } else if (state == cricket::Session::STATE_SENTMODIFY) { } else if (state == cricket::Session::STATE_RECEIVEDMODIFY) { - qWarning(TQString("jinglevoicecaller.cpp: RECEIVEDMODIFY not implemented yet (was from %1)").arg(jid.full())); + qWarning(TQString("jinglevoicecaller.cpp: RECEIVEDMODIFY not implemented yet (was from %1)").tqarg(jid.full())); } else if (state == cricket::Session::STATE_SENTREJECT) { } else if (state == cricket::Session::STATE_RECEIVEDREJECT) { @@ -195,7 +195,7 @@ void JingleVoiceCaller::initialize() return; TQString jid = ((ClientStream&) account()->client()->client()->stream()).jid().full(); - qDebug(TQString("jinglevoicecaller.cpp: Creating new caller for %1").arg(jid)); + qDebug(TQString("jinglevoicecaller.cpp: Creating new caller for %1").tqarg(jid)); if (jid.isEmpty()) { qWarning("jinglevoicecaller.cpp: Empty JID"); return; @@ -271,7 +271,7 @@ bool JingleVoiceCaller::calling(const Jid& jid) void JingleVoiceCaller::call(const Jid& jid) { - qDebug(TQString("jinglevoicecaller.cpp: Calling %1").arg(jid.full())); + qDebug(TQString("jinglevoicecaller.cpp: Calling %1").tqarg(jid.full())); cricket::Call *c = ((cricket::PhoneSessionClient*)(phone_client_))->CreateCall(); c->InitiateSession(buzz::Jid(jid.full().ascii())); phone_client_->SetFocus(c); @@ -299,7 +299,7 @@ void JingleVoiceCaller::reject(const Jid& j) void JingleVoiceCaller::terminate(const Jid& j) { - qDebug(TQString("jinglevoicecaller.cpp: Terminating call to %1").arg(j.full())); + qDebug(TQString("jinglevoicecaller.cpp: Terminating call to %1").tqarg(j.full())); cricket::Call* call = calls_[j.full()]; if (call != NULL) { call->Terminate(); @@ -327,7 +327,7 @@ void JingleVoiceCaller::registerCall(const Jid& jid, cricket::Call* call) void JingleVoiceCaller::removeCall(const Jid& j) { - qDebug(TQString("JingleVoiceCaller: Removing call to %1").arg(j.full())); + qDebug(TQString("JingleVoiceCaller: Removing call to %1").tqarg(j.full())); calls_.remove(j.full()); } @@ -363,7 +363,7 @@ void JingleVoiceCaller::receiveStanza(const TQString& stanza) // Spread the word if (ok) { - qDebug(TQString("jinglevoicecaller.cpp: Handing down %1").arg(stanza)); + qDebug(TQString("jinglevoicecaller.cpp: Handing down %1").tqarg(stanza)); buzz::XmlElement *e = buzz::XmlElement::ForStr(stanza.ascii()); phone_client_->OnIncomingStanza(e); } diff --git a/kopete/protocols/jabber/jingle/jinglevoicesession.cpp b/kopete/protocols/jabber/jingle/jinglevoicesession.cpp index daa0d7c0..c5bc775d 100644 --- a/kopete/protocols/jabber/jingle/jinglevoicesession.cpp +++ b/kopete/protocols/jabber/jingle/jinglevoicesession.cpp @@ -115,7 +115,7 @@ public: {} else if (state == cricket::Session::STATE_RECEIVEDMODIFY) { - //qWarning(TQString("jinglevoicecaller.cpp: RECEIVEDMODIFY not implemented yet (was from %1)").arg(jid.full())); + //qWarning(TQString("jinglevoicecaller.cpp: RECEIVEDMODIFY not implemented yet (was from %1)").tqarg(jid.full())); } else if (state == cricket::Session::STATE_SENTREJECT) {} diff --git a/kopete/protocols/jabber/jingle/jinglevoicesessiondialog.cpp b/kopete/protocols/jabber/jingle/jinglevoicesessiondialog.cpp index 86fc606f..a389730b 100644 --- a/kopete/protocols/jabber/jingle/jinglevoicesessiondialog.cpp +++ b/kopete/protocols/jabber/jingle/jinglevoicesessiondialog.cpp @@ -44,7 +44,7 @@ JingleVoiceSessionDialog::JingleVoiceSessionDialog(const Jid &peerJid, VoiceCall : JingleVoiceSessionDialogBase(parent, name), m_session(caller), m_peerJid(peerJid), m_sessionState(Incoming) { TQString contactJid = m_peerJid.full(); - setCaption( i18n("Voice session with %1").arg(contactJid) ); + setCaption( i18n("Voice session with %1").tqarg(contactJid) ); connect(buttonAccept, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotAcceptClicked())); connect(buttonDecline, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotDeclineClicked())); @@ -69,7 +69,7 @@ JingleVoiceSessionDialog::JingleVoiceSessionDialog(const Jid &peerJid, VoiceCall setContactInformation( peerContact ); } - labelSessionStatus->setText( i18n("Incoming Session...") ); + labelSessiontqStatus->setText( i18n("Incoming Session...") ); buttonAccept->setEnabled(true); buttonDecline->setEnabled(true); } @@ -95,7 +95,7 @@ void JingleVoiceSessionDialog::setContactInformation(JabberContact *contact) void JingleVoiceSessionDialog::start() { - labelSessionStatus->setText( i18n("Waiting for other peer...") ); + labelSessiontqStatus->setText( i18n("Waiting for other peer...") ); buttonAccept->setEnabled(false); buttonDecline->setEnabled(false); buttonTerminate->setEnabled(true); @@ -106,7 +106,7 @@ void JingleVoiceSessionDialog::start() void JingleVoiceSessionDialog::slotAcceptClicked() { - labelSessionStatus->setText( i18n("Session accepted.") ); + labelSessiontqStatus->setText( i18n("Session accepted.") ); buttonAccept->setEnabled(false); buttonDecline->setEnabled(false); buttonTerminate->setEnabled(true); @@ -118,7 +118,7 @@ void JingleVoiceSessionDialog::slotAcceptClicked() void JingleVoiceSessionDialog::slotDeclineClicked() { - labelSessionStatus->setText( i18n("Session declined.") ); + labelSessiontqStatus->setText( i18n("Session declined.") ); buttonAccept->setEnabled(false); buttonDecline->setEnabled(false); buttonTerminate->setEnabled(false); @@ -131,7 +131,7 @@ void JingleVoiceSessionDialog::slotDeclineClicked() void JingleVoiceSessionDialog::slotTerminateClicked() { - labelSessionStatus->setText( i18n("Session terminated.") ); + labelSessiontqStatus->setText( i18n("Session terminated.") ); buttonAccept->setEnabled(false); buttonDecline->setEnabled(false); buttonTerminate->setEnabled(false); @@ -147,7 +147,7 @@ void JingleVoiceSessionDialog::sessionStarted(const Jid &jid) { if( m_peerJid.compare(jid) ) { - labelSessionStatus->setText( i18n("Session in progress.") ); + labelSessiontqStatus->setText( i18n("Session in progress.") ); buttonAccept->setEnabled(false); buttonDecline->setEnabled(false); buttonTerminate->setEnabled(true); @@ -159,7 +159,7 @@ void JingleVoiceSessionDialog::sessionAccepted(const Jid &jid) { if( m_peerJid.compare(jid) ) { - labelSessionStatus->setText( i18n("Session accepted.") ); + labelSessiontqStatus->setText( i18n("Session accepted.") ); buttonAccept->setEnabled(false); buttonDecline->setEnabled(false); buttonTerminate->setEnabled(true); @@ -171,7 +171,7 @@ void JingleVoiceSessionDialog::sessionDeclined(const Jid &jid) { if( m_peerJid.compare(jid) ) { - labelSessionStatus->setText( i18n("Session declined.") ); + labelSessiontqStatus->setText( i18n("Session declined.") ); buttonAccept->setEnabled(false); buttonDecline->setEnabled(false); buttonTerminate->setEnabled(false); @@ -183,7 +183,7 @@ void JingleVoiceSessionDialog::sessionTerminated(const Jid &jid) { if( m_peerJid.compare(jid) ) { - labelSessionStatus->setText( i18n("Session terminated.") ); + labelSessiontqStatus->setText( i18n("Session terminated.") ); buttonAccept->setEnabled(false); buttonDecline->setEnabled(false); buttonTerminate->setEnabled(false); diff --git a/kopete/protocols/jabber/jingle/jinglevoicesessiondialogbase.ui b/kopete/protocols/jabber/jingle/jinglevoicesessiondialogbase.ui index bea1ac4e..72e3827c 100644 --- a/kopete/protocols/jabber/jingle/jinglevoicesessiondialogbase.ui +++ b/kopete/protocols/jabber/jingle/jinglevoicesessiondialogbase.ui @@ -21,7 +21,7 @@
- layout8 + tqlayout8 @@ -29,7 +29,7 @@ - layout5 + tqlayout5 @@ -45,7 +45,7 @@ Expanding - + 16 20 @@ -70,7 +70,7 @@ Expanding - + 20 20 @@ -81,7 +81,7 @@ - layout4 + tqlayout4 @@ -97,7 +97,7 @@ Expanding - + 16 20 @@ -116,7 +116,7 @@ 0 - + 128 128 @@ -136,7 +136,7 @@ Expanding - + 16 20 @@ -147,7 +147,7 @@ - layout7 + tqlayout7 @@ -163,7 +163,7 @@ Expanding - + 40 20 @@ -188,7 +188,7 @@ Expanding - + 40 20 @@ -209,7 +209,7 @@ Expanding - + 20 16 @@ -232,7 +232,7 @@ - layout1 + tqlayout1 @@ -248,7 +248,7 @@ Expanding - + 40 20 @@ -298,7 +298,7 @@ Expanding - + 40 20 @@ -309,7 +309,7 @@ - layout3 + tqlayout3 @@ -325,7 +325,7 @@ - labelSessionStatus + labelSessiontqStatus @@ -351,7 +351,7 @@ Expanding - + 20 16 diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/base/task.cc b/kopete/protocols/jabber/jingle/libjingle/talk/base/task.cc index a5a94941..6d85cb0d 100644 --- a/kopete/protocols/jabber/jingle/libjingle/talk/base/task.cc +++ b/kopete/protocols/jabber/jingle/libjingle/talk/base/task.cc @@ -194,12 +194,12 @@ int Task::Process(int state) { void Task::AddChild(Task * child) { - children_.insert(child); + tqchildren_.insert(child); } bool Task::AllChildrenDone() { - for (ChildSet::iterator it = children_.begin(); it != children_.end(); ++it) { + for (ChildSet::iterator it = tqchildren_.begin(); it != tqchildren_.end(); ++it) { if (!(*it)->IsDone()) return false; } @@ -213,8 +213,8 @@ Task::AnyChildError() { void Task::AbortAllChildren() { - if (children_.size() > 0) { - ChildSet copy = children_; + if (tqchildren_.size() > 0) { + ChildSet copy = tqchildren_; for (ChildSet::iterator it = copy.begin(); it != copy.end(); ++it) { (*it)->Abort(true); // Note we do not wake } @@ -231,7 +231,7 @@ void Task::OnChildStopped(Task * child) { if (child->HasError()) child_error_ = true; - children_.erase(child); + tqchildren_.erase(child); } diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/base/task.h b/kopete/protocols/jabber/jingle/libjingle/talk/base/task.h index 5a486198..7140b691 100644 --- a/kopete/protocols/jabber/jingle/libjingle/talk/base/task.h +++ b/kopete/protocols/jabber/jingle/libjingle/talk/base/task.h @@ -61,13 +61,13 @@ // might be working on something as you send it infomration, you may want // to have a queue in the task. // -// (3) Finally it helps manage parent tasks and children. If a parent -// task gets aborted, all the children tasks are too. The nice thing +// (3) Finally it helps manage parent tasks and tqchildren. If a parent +// task gets aborted, all the tqchildren tasks are too. The nice thing // about this, for example, is if you have one parent task that // represents, say, and Xmpp connection, then you can spawn a whole bunch // of infinite lifetime child tasks and now worry about cleaning them up. // When the parent task goes to STATE_DONE, the task engine will make -// sure all those children are aborted and get deleted. +// sure all those tqchildren are aborted and get deleted. // // Notice that Task has a few built-in states, e.g., // @@ -122,7 +122,7 @@ public: // Called from outside to stop task without any more callbacks void Abort(bool nowake = false); - // For managing children + // For managing tqchildren bool AllChildrenDone(); bool AnyChildError(); @@ -153,7 +153,7 @@ protected: virtual int ProcessStart() = 0; virtual int ProcessResponse() { return STATE_DONE; } - // for managing children (if any) + // for managing tqchildren (if any) void AddChild(Task * child); void AbortAllChildren(); @@ -172,9 +172,9 @@ private: bool child_error_; unsigned long long start_time_; - // for managing children + // for managing tqchildren typedef std::set ChildSet; - ChildSet children_; + ChildSet tqchildren_; }; diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/base/taskrunner.cc b/kopete/protocols/jabber/jingle/libjingle/talk/base/taskrunner.cc index b5ecc55e..43728eb7 100644 --- a/kopete/protocols/jabber/jingle/libjingle/talk/base/taskrunner.cc +++ b/kopete/protocols/jabber/jingle/libjingle/talk/base/taskrunner.cc @@ -33,7 +33,7 @@ namespace buzz { TaskRunner::~TaskRunner() { - // this kills and deletes children silently! + // this kills and deletes tqchildren silently! AbortAllChildren(); RunTasks(); } diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/callclient.cc b/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/callclient.cc index 6d818932..40c1fbfe 100644 --- a/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/callclient.cc +++ b/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/callclient.cc @@ -188,13 +188,13 @@ private: CallClient* call_client_; }; -const char* DescribeStatus(buzz::Status::Show show, const std::string& desc) { +const char* DescribetqStatus(buzz::tqStatus::Show show, const std::string& desc) { switch (show) { - case buzz::Status::SHOW_XA: return desc.c_str(); - case buzz::Status::SHOW_ONLINE: return "online"; - case buzz::Status::SHOW_AWAY: return "away"; - case buzz::Status::SHOW_DND: return "do not disturb"; - case buzz::Status::SHOW_CHAT: return "ready to chat"; + case buzz::tqStatus::SHOW_XA: return desc.c_str(); + case buzz::tqStatus::SHOW_ONLINE: return "online"; + case buzz::tqStatus::SHOW_AWAY: return "away"; + case buzz::tqStatus::SHOW_DND: return "do not disturb"; + case buzz::tqStatus::SHOW_CHAT: return "ready to chat"; delault: return "offline"; } } @@ -320,11 +320,11 @@ void CallClient::InitPresence() { this, &CallClient::OnStatusUpdate); presence_push_->Start(); - buzz::Status my_status; + buzz::tqStatus my_status; my_status.set_jid(xmpp_client_->jid()); my_status.set_available(true); my_status.set_invisible(false); - my_status.set_show(buzz::Status::SHOW_ONLINE); + my_status.set_show(buzz::tqStatus::SHOW_ONLINE); my_status.set_priority(0); my_status.set_know_capabilities(true); my_status.set_phone_capability(true); @@ -337,7 +337,7 @@ void CallClient::InitPresence() { presence_out_->Start(); } -void CallClient::OnStatusUpdate(const buzz::Status& status) { +void CallClient::OnStatusUpdate(const buzz::tqStatus& status) { RosterItem item; item.jid = status.jid(); item.show = status.show(); @@ -362,7 +362,7 @@ void CallClient::PrintRoster() { while (iter != roster_->end()) { Console()->Printf("%s - %s", iter->second.jid.BareJid().Str().c_str(), - DescribeStatus(iter->second.show, iter->second.status)); + DescribetqStatus(iter->second.show, iter->second.status)); iter++; } } diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/callclient.h b/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/callclient.h index d35a6114..24ce1545 100644 --- a/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/callclient.h +++ b/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/callclient.h @@ -29,7 +29,7 @@ namespace buzz { class PresencePushTask; -class Status; +class tqStatus; } namespace cricket { @@ -43,7 +43,7 @@ class Call; struct RosterItem { buzz::Jid jid; - buzz::Status::Show show; + buzz::tqStatus::Show show; std::string status; }; @@ -82,7 +82,7 @@ private: void OnSendStanza(cricket::SessionClient *client, const buzz::XmlElement* stanza); void InitPresence(); - void OnStatusUpdate(const buzz::Status& status); + void OnStatusUpdate(const buzz::tqStatus& status); }; #endif // CRICKET_EXAMPLES_CALL_CALLCLIENT_H__ diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/presenceouttask.cc b/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/presenceouttask.cc index a15a6c83..7fd68120 100644 --- a/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/presenceouttask.cc +++ b/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/presenceouttask.cc @@ -42,27 +42,27 @@ bool ToString(const T &t, return !oss.fail(); } -XmppReturnStatus -PresenceOutTask::Send(const Status & s) { +XmppReturntqStatus +PresenceOutTask::Send(const tqStatus & s) { if (GetState() != STATE_INIT) return XMPP_RETURN_BADSTATE; - stanza_.reset(TranslateStatus(s)); + stanza_.reset(TranslatetqStatus(s)); return XMPP_RETURN_OK; } -XmppReturnStatus -PresenceOutTask::SendDirected(const Jid & j, const Status & s) { +XmppReturntqStatus +PresenceOutTask::SendDirected(const Jid & j, const tqStatus & s) { if (GetState() != STATE_INIT) return XMPP_RETURN_BADSTATE; - XmlElement * presence = TranslateStatus(s); + XmlElement * presence = TranslatetqStatus(s); presence->AddAttr(TQN_TO, j.Str()); stanza_.reset(presence); return XMPP_RETURN_OK; } -XmppReturnStatus PresenceOutTask::SendProbe(const Jid & jid) { +XmppReturntqStatus PresenceOutTask::SendProbe(const Jid & jid) { if (GetState() != STATE_INIT) return XMPP_RETURN_BADSTATE; @@ -82,7 +82,7 @@ PresenceOutTask::ProcessStart() { } XmlElement * -PresenceOutTask::TranslateStatus(const Status & s) { +PresenceOutTask::TranslatetqStatus(const tqStatus & s) { XmlElement * result = new XmlElement(TQN_PRESENCE); if (!s.available()) { result->AddAttr(TQN_TYPE, STR_UNAVAILABLE); @@ -92,19 +92,19 @@ PresenceOutTask::TranslateStatus(const Status & s) { result->AddAttr(TQN_TYPE, STR_INVISIBLE); } - if (s.show() != Status::SHOW_ONLINE && s.show() != Status::SHOW_OFFLINE) { + if (s.show() != tqStatus::SHOW_ONLINE && s.show() != tqStatus::SHOW_OFFLINE) { result->AddElement(new XmlElement(TQN_SHOW)); switch (s.show()) { default: result->AddText(STR_SHOW_AWAY, 1); break; - case Status::SHOW_XA: + case tqStatus::SHOW_XA: result->AddText(STR_SHOW_XA, 1); break; - case Status::SHOW_DND: + case tqStatus::SHOW_DND: result->AddText(STR_SHOW_DND, 1); break; - case Status::SHOW_CHAT: + case tqStatus::SHOW_CHAT: result->AddText(STR_SHOW_CHAT, 1); break; } diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/presenceouttask.h b/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/presenceouttask.h index 2b65a553..47660514 100644 --- a/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/presenceouttask.h +++ b/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/presenceouttask.h @@ -31,13 +31,13 @@ public: PresenceOutTask(Task * parent) : XmppTask(parent) {} virtual ~PresenceOutTask() {} - XmppReturnStatus Send(const Status & s); - XmppReturnStatus SendDirected(const Jid & j, const Status & s); - XmppReturnStatus SendProbe(const Jid& jid); + XmppReturntqStatus Send(const tqStatus & s); + XmppReturntqStatus SendDirected(const Jid & j, const tqStatus & s); + XmppReturntqStatus SendProbe(const Jid& jid); virtual int ProcessStart(); private: - XmlElement * TranslateStatus(const Status & s); + XmlElement * TranslatetqStatus(const tqStatus & s); scoped_ptr stanza_; }; diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/presencepushtask.cc b/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/presencepushtask.cc index 31d1ae77..cee7058a 100644 --- a/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/presencepushtask.cc +++ b/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/presencepushtask.cc @@ -77,7 +77,7 @@ PresencePushTask::ProcessStart() { const XmlElement * stanza = NextStanza(); if (stanza == NULL) return STATE_BLOCKED; - Status s; + tqStatus s; s.set_jid(Jid(stanza->Attr(TQN_FROM))); @@ -114,23 +114,23 @@ PresencePushTask::ProcessStart() { const XmlElement * show = stanza->FirstNamed(TQN_SHOW); if (show == NULL || show->FirstChild() == NULL) { - s.set_show(Status::SHOW_ONLINE); + s.set_show(tqStatus::SHOW_ONLINE); } else { if (show->BodyText() == "away") { - s.set_show(Status::SHOW_AWAY); + s.set_show(tqStatus::SHOW_AWAY); } else if (show->BodyText() == "xa") { - s.set_show(Status::SHOW_XA); + s.set_show(tqStatus::SHOW_XA); } else if (show->BodyText() == "dnd") { - s.set_show(Status::SHOW_DND); + s.set_show(tqStatus::SHOW_DND); } else if (show->BodyText() == "chat") { - s.set_show(Status::SHOW_CHAT); + s.set_show(tqStatus::SHOW_CHAT); } else { - s.set_show(Status::SHOW_ONLINE); + s.set_show(tqStatus::SHOW_ONLINE); } } diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/presencepushtask.h b/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/presencepushtask.h index 77459647..06c68015 100644 --- a/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/presencepushtask.h +++ b/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/presencepushtask.h @@ -32,7 +32,7 @@ class PresencePushTask : public XmppTask { public: PresencePushTask(Task * parent) : XmppTask(parent, XmppEngine::HL_TYPE) {} virtual int ProcessStart(); - sigslot::signal1SignalStatusUpdate; + sigslot::signal1SignalStatusUpdate; protected: virtual bool HandleStanza(const XmlElement * stanza); diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/status.h b/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/status.h index cab9312f..264ed725 100644 --- a/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/status.h +++ b/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/status.h @@ -26,9 +26,9 @@ namespace buzz { -class Status { +class tqStatus { public: - Status() : + tqStatus() : pri_(0), show_(SHOW_NONE), available_(false), @@ -39,7 +39,7 @@ public: is_google_client_(false), feedback_probation_(false) {}; - ~Status() {} + ~tqStatus() {} // These are arranged in "priority order", i.e., if we see // two statuses at the same priority but with different Shows, @@ -86,7 +86,7 @@ public: void set_feedback_probation(bool f) { feedback_probation_ = f; } void set_sent_time(const std::string& time) { sent_time_ = time; } - void UpdateWith(const Status & new_value) { + void UpdateWith(const tqStatus & new_value) { if (!new_value.know_capabilities()) { bool k = know_capabilities(); bool i = is_google_client(); @@ -105,15 +105,15 @@ public: } } - bool HasQuietStatus() const { + bool HasQuiettqStatus() const { if (status_.empty()) return false; - return !(QuietStatus().empty()); + return !(QuiettqStatus().empty()); } // Knowledge of other clients' silly automatic status strings - // Don't show these. - std::string QuietStatus() const { + std::string QuiettqStatus() const { if (jid_.resource().find("Psi") != std::string::npos) { if (status_ == "Online" || status_.find("Auto Status") != std::string::npos) @@ -123,18 +123,18 @@ public: if (status_ == "Sorry, I ran out for a bit!") return STR_EMPTY; } - return TrimStatus(status_); + return TrimtqStatus(status_); } - std::string ExplicitStatus() const { - std::string result = QuietStatus(); + std::string ExplicittqStatus() const { + std::string result = QuiettqStatus(); if (result.empty()) { - result = ShowStatus(); + result = ShowtqStatus(); } return result; } - std::string ShowStatus() const { + std::string ShowtqStatus() const { std::string result; if (!available()) { result = "Offline"; @@ -159,7 +159,7 @@ public: return result; } - static std::string TrimStatus(const std::string & st) { + static std::string TrimtqStatus(const std::string & st) { std::string s(st); int j = 0; bool collapsing = true; diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/examples/login/xmpppump.cc b/kopete/protocols/jabber/jingle/libjingle/talk/examples/login/xmpppump.cc index 7d966fb3..40e694e2 100644 --- a/kopete/protocols/jabber/jingle/libjingle/talk/examples/login/xmpppump.cc +++ b/kopete/protocols/jabber/jingle/libjingle/talk/examples/login/xmpppump.cc @@ -68,6 +68,6 @@ void XmppPump::OnMessage(cricket::Message *pmsg) { RunTasks(); } -buzz::XmppReturnStatus XmppPump::SendStanza(const buzz::XmlElement *stanza) { +buzz::XmppReturntqStatus XmppPump::SendStanza(const buzz::XmlElement *stanza) { return client_->SendStanza(stanza); } diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/examples/login/xmpppump.h b/kopete/protocols/jabber/jingle/libjingle/talk/examples/login/xmpppump.h index fd6f88bb..0314b2fd 100644 --- a/kopete/protocols/jabber/jingle/libjingle/talk/examples/login/xmpppump.h +++ b/kopete/protocols/jabber/jingle/libjingle/talk/examples/login/xmpppump.h @@ -62,7 +62,7 @@ public: void OnMessage(cricket::Message *pmsg); - buzz::XmppReturnStatus SendStanza(const buzz::XmlElement *stanza); + buzz::XmppReturntqStatus SendStanza(const buzz::XmlElement *stanza); private: buzz::XmppClient *client_; diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/linphonemediaengine.cc b/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/linphonemediaengine.cc index f3244c54..8456a90f 100644 --- a/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/linphonemediaengine.cc +++ b/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/linphonemediaengine.cc @@ -110,8 +110,8 @@ void LinphoneMediaChannel::OnPacketReceived(const void *data, int len) { sendto(fd_, buf, len, 0, (struct sockaddr*)&sockaddr, sizeof(sockaddr)); } -void LinphoneMediaChannel::SetPlayout(bool playout) { - play_ = playout; +void LinphoneMediaChannel::SetPtqlayout(bool ptqlayout) { + play_ = ptqlayout; } void LinphoneMediaChannel::SetSend(bool send) { diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/linphonemediaengine.h b/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/linphonemediaengine.h index 0c00be75..2639c7ac 100644 --- a/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/linphonemediaengine.h +++ b/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/linphonemediaengine.h @@ -36,7 +36,7 @@ class LinphoneMediaChannel : public MediaChannel { virtual void SetCodec(const char *codec); virtual void OnPacketReceived(const void *data, int len); - virtual void SetPlayout(bool playout); + virtual void SetPtqlayout(bool ptqlayout); virtual void SetSend(bool send); virtual float GetCurrentQuality(); diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/mediachannel.h b/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/mediachannel.h index db2f9654..4a2e4560 100644 --- a/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/mediachannel.h +++ b/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/mediachannel.h @@ -41,7 +41,7 @@ class MediaChannel { void SetInterface(NetworkInterface *iface) {network_interface_ = iface;} virtual void SetCodec(const char *codec) = 0; virtual void OnPacketReceived(const void *data, int len) = 0; - virtual void SetPlayout(bool playout) = 0; + virtual void SetPtqlayout(bool ptqlayout) = 0; virtual void SetSend(bool send) = 0; virtual float GetCurrentQuality() = 0; virtual int GetOutputLevel() = 0; diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/portaudiomediaengine.cc b/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/portaudiomediaengine.cc index 24036b02..90092283 100644 --- a/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/portaudiomediaengine.cc +++ b/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/portaudiomediaengine.cc @@ -126,12 +126,12 @@ void PortAudioMediaChannel::OnPacketReceived(const void *data, int len) } } -void PortAudioMediaChannel::SetPlayout(bool playout) +void PortAudioMediaChannel::SetPtqlayout(bool ptqlayout) { if (!stream_) return; - if (play_ && !playout) { + if (play_ && !ptqlayout) { int err = Pa_StopStream(stream_); if (err != paNoError) { fprintf(stderr, "Error stopping PortAudio stream: %s\n", Pa_GetErrorText(err)); @@ -139,7 +139,7 @@ void PortAudioMediaChannel::SetPlayout(bool playout) } play_ = false; } - else if (!play_ && playout) { + else if (!play_ && ptqlayout) { int err = Pa_StartStream(stream_); if (err != paNoError) { fprintf(stderr, "Error starting PortAudio stream: %s\n", Pa_GetErrorText(err)); diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/portaudiomediaengine.h b/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/portaudiomediaengine.h index 95c39a1a..89922e77 100644 --- a/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/portaudiomediaengine.h +++ b/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/portaudiomediaengine.h @@ -15,7 +15,7 @@ public: virtual void SetCodec(const char *codec); virtual void OnPacketReceived(const void *data, int len); - virtual void SetPlayout(bool playout); + virtual void SetPtqlayout(bool ptqlayout); virtual void SetSend(bool send); virtual float GetCurrentQuality(); diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/voicechannel.cc b/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/voicechannel.cc index 58e1db60..c55ef287 100644 --- a/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/voicechannel.cc +++ b/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/voicechannel.cc @@ -168,15 +168,15 @@ void VoiceChannel::SendPacket(const void *data, size_t len) { void VoiceChannel::ChangeState() { if (paused_ || !enabled_ || !socket_writable_) { - channel_->SetPlayout(false); + channel_->SetPtqlayout(false); channel_->SetSend(false); } else { if (muted_) { channel_->SetSend(false); - channel_->SetPlayout(true); + channel_->SetPtqlayout(true); } else { channel_->SetSend(true); - channel_->SetPlayout(true); + channel_->SetPtqlayout(true); } } } diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/xmllite/xmlelement.cc b/kopete/protocols/jabber/jingle/libjingle/talk/xmllite/xmlelement.cc index 08ccd288..a021f67a 100644 --- a/kopete/protocols/jabber/jingle/libjingle/talk/xmllite/xmlelement.cc +++ b/kopete/protocols/jabber/jingle/libjingle/talk/xmllite/xmlelement.cc @@ -109,7 +109,7 @@ XmlElement::XmlElement(const XmlElement & elt) : } pLastAttr_ = newAttr; - // copy children + // copy tqchildren XmlChild * pChild; XmlChild ** ppLast = &pFirstChild_; XmlChild * newChild = NULL; diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/xmllite/xmlprinter.cc b/kopete/protocols/jabber/jingle/libjingle/talk/xmllite/xmlprinter.cc index e0d2c006..8e36ac02 100644 --- a/kopete/protocols/jabber/jingle/libjingle/talk/xmllite/xmlprinter.cc +++ b/kopete/protocols/jabber/jingle/libjingle/talk/xmllite/xmlprinter.cc @@ -123,7 +123,7 @@ XmlPrinterImpl::PrintElement(const XmlElement * element) { i += 2; } - // now the children + // now the tqchildren const XmlChild * pchild = element->FirstChild(); if (pchild == NULL) diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/xmppclient.cc b/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/xmppclient.cc index 959b6f88..fa6a14a6 100644 --- a/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/xmppclient.cc +++ b/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/xmppclient.cc @@ -86,7 +86,7 @@ public: void OnSocketClosed(); }; -XmppReturnStatus +XmppReturntqStatus XmppClient::Connect(const XmppClientSettings & settings, AsyncSocket * socket, PreXmppAuth * pre_auth) { if (socket == NULL) return XMPP_RETURN_BADARGUMENT; @@ -237,7 +237,7 @@ XmppClient::ProcessResponse() { return STATE_BLOCKED; } -XmppReturnStatus +XmppReturntqStatus XmppClient::Disconnect() { if (d_->socket_.get() == NULL) return XMPP_RETURN_BADSTATE; @@ -263,17 +263,17 @@ XmppClient::NextId() { return d_->engine_->NextId(); } -XmppReturnStatus +XmppReturntqStatus XmppClient::SendStanza(const XmlElement * stanza) { return d_->engine_->SendStanza(stanza); } -XmppReturnStatus +XmppReturntqStatus XmppClient::SendStanzaError(const XmlElement * old_stanza, XmppStanzaError xse, const std::string & message) { return d_->engine_->SendStanzaError(old_stanza, xse, message); } -XmppReturnStatus +XmppReturntqStatus XmppClient::SendRaw(const std::string & text) { return d_->engine_->SendRaw(text); } diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/xmppclient.h b/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/xmppclient.h index f8b4798c..fd65c39c 100644 --- a/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/xmppclient.h +++ b/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/xmppclient.h @@ -74,14 +74,14 @@ public: XmppClient(Task * parent); ~XmppClient(); - XmppReturnStatus Connect(const XmppClientSettings & settings, + XmppReturntqStatus Connect(const XmppClientSettings & settings, AsyncSocket * socket, PreXmppAuth * preauth); virtual Task * GetParent(int code); virtual int ProcessStart(); virtual int ProcessResponse(); - XmppReturnStatus Disconnect(); + XmppReturntqStatus Disconnect(); const Jid & jid(); sigslot::signal1 SignalStateChange; @@ -97,9 +97,9 @@ public: std::string GetAuthCookie(); std::string NextId(); - XmppReturnStatus SendStanza(const XmlElement *stanza); - XmppReturnStatus SendRaw(const std::string & text); - XmppReturnStatus SendStanzaError(const XmlElement * pelOriginal, + XmppReturntqStatus SendStanza(const XmlElement *stanza); + XmppReturntqStatus SendRaw(const std::string & text); + XmppReturntqStatus SendStanzaError(const XmlElement * pelOriginal, XmppStanzaError code, const std::string & text); diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/xmppengine.h b/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/xmppengine.h index 1497c3ec..58576328 100644 --- a/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/xmppengine.h +++ b/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/xmppengine.h @@ -66,9 +66,9 @@ enum XmppStanzaError { XSE_UNEXPECTED_REQUEST, }; -// XmppReturnStatus +// XmppReturntqStatus // This is used by API functions to synchronously return status. -enum XmppReturnStatus { +enum XmppReturntqStatus { XMPP_RETURN_OK, XMPP_RETURN_BADARGUMENT, XMPP_RETURN_BADSTATE, @@ -171,34 +171,34 @@ public: // SOCKET INPUT AND OUTPUT ------------------------------------------------ //! Registers the handler for socket output - virtual XmppReturnStatus SetOutputHandler(XmppOutputHandler *pxoh) = 0; + virtual XmppReturntqStatus SetOutputHandler(XmppOutputHandler *pxoh) = 0; //! Provides socket input to the engine - virtual XmppReturnStatus HandleInput(const char * bytes, size_t len) = 0; + virtual XmppReturntqStatus HandleInput(const char * bytes, size_t len) = 0; //! Advises the engine that the socket has closed - virtual XmppReturnStatus ConnectionClosed() = 0; + virtual XmppReturntqStatus ConnectionClosed() = 0; // SESSION SETUP --------------------------------------------------------- //! Indicates the (bare) JID for the user to use. - virtual XmppReturnStatus SetUser(const Jid & jid)= 0; + virtual XmppReturntqStatus SetUser(const Jid & jid)= 0; //! Get the login (bare) JID. virtual const Jid & GetUser() = 0; //! Provides different methods for credentials for login. //! Takes ownership of this object; deletes when login is done - virtual XmppReturnStatus SetSaslHandler(SaslHandler * h) = 0; + virtual XmppReturntqStatus SetSaslHandler(SaslHandler * h) = 0; //! Sets whether TLS will be used within the connection (default true). - virtual XmppReturnStatus SetUseTls(bool useTls) = 0; + virtual XmppReturntqStatus SetUseTls(bool useTls) = 0; //! Sets an alternate domain from which we allows TLS certificates. //! This is for use in the case where a we want to allow a proxy to //! serve up its own certificate rather than one owned by the underlying //! domain. - virtual XmppReturnStatus SetTlsServerDomain(const std::string & proxy_domain) = 0; + virtual XmppReturntqStatus SetTlsServerDomain(const std::string & proxy_domain) = 0; //! Gets whether TLS will be used within the connection. virtual bool GetUseTls() = 0; @@ -206,7 +206,7 @@ public: //! Sets the request resource name, if any (optional). //! Note that the resource name may be overridden by the server; after //! binding, the actual resource name is available as part of FullJid(). - virtual XmppReturnStatus SetRequestedResource(const std::string& resource) = 0; + virtual XmppReturntqStatus SetRequestedResource(const std::string& resource) = 0; //! Gets the request resource name. virtual const std::string & GetRequestedResource() = 0; @@ -214,12 +214,12 @@ public: // SESSION MANAGEMENT --------------------------------------------------- //! Set callback for state changes. - virtual XmppReturnStatus SetSessionHandler(XmppSessionHandler* handler) = 0; + virtual XmppReturntqStatus SetSessionHandler(XmppSessionHandler* handler) = 0; //! Initiates the XMPP connection. //! After supplying connection settings, call this once to initiate, //! (optionally) encrypt, authenticate, and bind the connection. - virtual XmppReturnStatus Connect() = 0; + virtual XmppReturntqStatus Connect() = 0; //! The current engine state. virtual State GetState() = 0; @@ -240,7 +240,7 @@ public: //! Sends CloseConnection to output, and disconnects and registered //! session handlers. After Disconnect completes, it is guaranteed //! that no further callbacks will be made. - virtual XmppReturnStatus Disconnect() = 0; + virtual XmppReturntqStatus Disconnect() = 0; // APPLICATION USE ------------------------------------------------------- @@ -257,33 +257,33 @@ public: //! Adds a listener for session events. //! Stanza delivery is chained to session handlers; the first to //! return 'true' is the last to get each stanza. - virtual XmppReturnStatus AddStanzaHandler(XmppStanzaHandler* handler, HandlerLevel level = HL_PEEK) = 0; + virtual XmppReturntqStatus AddStanzaHandler(XmppStanzaHandler* handler, HandlerLevel level = HL_PEEK) = 0; //! Removes a listener for session events. - virtual XmppReturnStatus RemoveStanzaHandler(XmppStanzaHandler* handler) = 0; + virtual XmppReturntqStatus RemoveStanzaHandler(XmppStanzaHandler* handler) = 0; //! Sends a stanza to the server. - virtual XmppReturnStatus SendStanza(const XmlElement * pelStanza) = 0; + virtual XmppReturntqStatus SendStanza(const XmlElement * pelStanza) = 0; //! Sends raw text to the server - virtual XmppReturnStatus SendRaw(const std::string & text) = 0; + virtual XmppReturntqStatus SendRaw(const std::string & text) = 0; //! Sends an iq to the server, and registers a callback for the result. //! Returns the cookie passed to the result handler. - virtual XmppReturnStatus SendIq(const XmlElement* pelStanza, + virtual XmppReturntqStatus SendIq(const XmlElement* pelStanza, XmppIqHandler* iq_handler, XmppIqCookie* cookie) = 0; //! Unregisters an iq callback handler given its cookie. //! No callback will come to this handler after it's unregistered. - virtual XmppReturnStatus RemoveIqHandler(XmppIqCookie cookie, + virtual XmppReturntqStatus RemoveIqHandler(XmppIqCookie cookie, XmppIqHandler** iq_handler) = 0; //! Forms and sends an error in response to the given stanza. //! Swaps to and from, sets type to "error", and adds error information //! based on the passed code. Text is optional and may be STR_EMPTY. - virtual XmppReturnStatus SendStanzaError(const XmlElement * pelOriginal, + virtual XmppReturntqStatus SendStanzaError(const XmlElement * pelOriginal, XmppStanzaError code, const std::string & text) = 0; diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/xmppengineimpl.cc b/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/xmppengineimpl.cc index 3d363a78..c9569524 100644 --- a/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/xmppengineimpl.cc +++ b/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/xmppengineimpl.cc @@ -85,7 +85,7 @@ XmppEngineImpl::~XmppEngineImpl() { DeleteIqCookies(); } -XmppReturnStatus +XmppReturntqStatus XmppEngineImpl::SetOutputHandler(XmppOutputHandler* output_handler) { if (state_ != STATE_START) return XMPP_RETURN_BADSTATE; @@ -95,7 +95,7 @@ XmppEngineImpl::SetOutputHandler(XmppOutputHandler* output_handler) { return XMPP_RETURN_OK; } -XmppReturnStatus +XmppReturntqStatus XmppEngineImpl::SetSessionHandler(XmppSessionHandler* session_handler) { if (state_ != STATE_START) return XMPP_RETURN_BADSTATE; @@ -105,7 +105,7 @@ XmppEngineImpl::SetSessionHandler(XmppSessionHandler* session_handler) { return XMPP_RETURN_OK; } -XmppReturnStatus +XmppReturntqStatus XmppEngineImpl::HandleInput(const char * bytes, size_t len) { if (state_ < STATE_OPENING || state_ > STATE_OPEN) return XMPP_RETURN_BADSTATE; @@ -117,7 +117,7 @@ XmppEngineImpl::HandleInput(const char * bytes, size_t len) { return XMPP_RETURN_OK; } -XmppReturnStatus +XmppReturntqStatus XmppEngineImpl::ConnectionClosed() { if (state_ != STATE_CLOSED) { EnterExit ee(this); @@ -128,7 +128,7 @@ XmppEngineImpl::ConnectionClosed() { return XMPP_RETURN_OK; } -XmppReturnStatus +XmppReturntqStatus XmppEngineImpl::SetUseTls(bool useTls) { if (state_ != STATE_START) return XMPP_RETURN_BADSTATE; @@ -138,7 +138,7 @@ XmppEngineImpl::SetUseTls(bool useTls) { return XMPP_RETURN_OK; } -XmppReturnStatus +XmppReturntqStatus XmppEngineImpl::SetTlsServerDomain(const std::string & tls_server_domain) { if (state_ != STATE_START) return XMPP_RETURN_BADSTATE; @@ -153,7 +153,7 @@ XmppEngineImpl::GetUseTls() { return tls_needed_; } -XmppReturnStatus +XmppReturntqStatus XmppEngineImpl::SetUser(const Jid & jid) { if (state_ != STATE_START) return XMPP_RETURN_BADSTATE; @@ -168,7 +168,7 @@ XmppEngineImpl::GetUser() { return user_jid_; } -XmppReturnStatus +XmppReturntqStatus XmppEngineImpl::SetSaslHandler(SaslHandler * sasl_handler) { if (state_ != STATE_START) return XMPP_RETURN_BADSTATE; @@ -177,7 +177,7 @@ XmppEngineImpl::SetSaslHandler(SaslHandler * sasl_handler) { return XMPP_RETURN_OK; } -XmppReturnStatus +XmppReturntqStatus XmppEngineImpl::SetRequestedResource(const std::string & resource) { if (state_ != STATE_START) return XMPP_RETURN_BADSTATE; @@ -192,7 +192,7 @@ XmppEngineImpl::GetRequestedResource() { return requested_resource_; } -XmppReturnStatus +XmppReturntqStatus XmppEngineImpl::AddStanzaHandler(XmppStanzaHandler * stanza_handler, XmppEngine::HandlerLevel level) { if (state_ == STATE_CLOSED) @@ -203,7 +203,7 @@ XmppEngineImpl::AddStanzaHandler(XmppStanzaHandler * stanza_handler, return XMPP_RETURN_OK; } -XmppReturnStatus +XmppReturntqStatus XmppEngineImpl::RemoveStanzaHandler(XmppStanzaHandler * stanza_handler) { bool found = false; @@ -227,7 +227,7 @@ XmppEngineImpl::RemoveStanzaHandler(XmppStanzaHandler * stanza_handler) { return XMPP_RETURN_OK; } -XmppReturnStatus +XmppReturntqStatus XmppEngineImpl::Connect() { if (state_ != STATE_START) return XMPP_RETURN_BADSTATE; @@ -245,7 +245,7 @@ XmppEngineImpl::Connect() { return XMPP_RETURN_OK; } -XmppReturnStatus +XmppReturntqStatus XmppEngineImpl::SendStanza(const XmlElement * element) { if (state_ == STATE_CLOSED) return XMPP_RETURN_BADSTATE; @@ -263,7 +263,7 @@ XmppEngineImpl::SendStanza(const XmlElement * element) { return XMPP_RETURN_OK; } -XmppReturnStatus +XmppReturntqStatus XmppEngineImpl::SendRaw(const std::string & text) { if (state_ == STATE_CLOSED || login_task_.get()) return XMPP_RETURN_BADSTATE; @@ -282,7 +282,7 @@ XmppEngineImpl::NextId() { return ss.str(); } -XmppReturnStatus +XmppReturntqStatus XmppEngineImpl::Disconnect() { if (state_ != STATE_CLOSED) { diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/xmppengineimpl.h b/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/xmppengineimpl.h index c36f168c..6011d9e8 100644 --- a/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/xmppengineimpl.h +++ b/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/xmppengineimpl.h @@ -57,33 +57,33 @@ public: // SOCKET INPUT AND OUTPUT ------------------------------------------------ //! Registers the handler for socket output - virtual XmppReturnStatus SetOutputHandler(XmppOutputHandler *pxoh); + virtual XmppReturntqStatus SetOutputHandler(XmppOutputHandler *pxoh); //! Provides socket input to the engine - virtual XmppReturnStatus HandleInput(const char * bytes, size_t len); + virtual XmppReturntqStatus HandleInput(const char * bytes, size_t len); //! Advises the engine that the socket has closed - virtual XmppReturnStatus ConnectionClosed(); + virtual XmppReturntqStatus ConnectionClosed(); // SESSION SETUP --------------------------------------------------------- //! Indicates the (bare) JID for the user to use. - virtual XmppReturnStatus SetUser(const Jid & jid); + virtual XmppReturntqStatus SetUser(const Jid & jid); //! Get the login (bare) JID. virtual const Jid & GetUser(); //! Indicates the autentication to use. Takes ownership of the object. - virtual XmppReturnStatus SetSaslHandler(SaslHandler * sasl_handler); + virtual XmppReturntqStatus SetSaslHandler(SaslHandler * sasl_handler); //! Sets whether TLS will be used within the connection (default true). - virtual XmppReturnStatus SetUseTls(bool useTls); + virtual XmppReturntqStatus SetUseTls(bool useTls); //! Sets an alternate domain from which we allows TLS certificates. //! This is for use in the case where a we want to allow a proxy to //! serve up its own certificate rather than one owned by the underlying //! domain. - virtual XmppReturnStatus SetTlsServerDomain(const std::string & proxy_domain); + virtual XmppReturntqStatus SetTlsServerDomain(const std::string & proxy_domain); //! Gets whether TLS will be used within the connection. virtual bool GetUseTls(); @@ -91,7 +91,7 @@ public: //! Sets the request resource name, if any (optional). //! Note that the resource name may be overridden by the server; after //! binding, the actual resource name is available as part of FullJid(). - virtual XmppReturnStatus SetRequestedResource(const std::string& resource); + virtual XmppReturntqStatus SetRequestedResource(const std::string& resource); //! Gets the request resource name. virtual const std::string & GetRequestedResource(); @@ -99,12 +99,12 @@ public: // SESSION MANAGEMENT --------------------------------------------------- //! Set callback for state changes. - virtual XmppReturnStatus SetSessionHandler(XmppSessionHandler* handler); + virtual XmppReturntqStatus SetSessionHandler(XmppSessionHandler* handler); //! Initiates the XMPP connection. //! After supplying connection settings, call this once to initiate, //! (optionally) encrypt, authenticate, and bind the connection. - virtual XmppReturnStatus Connect(); + virtual XmppReturntqStatus Connect(); //! The current engine state. virtual State GetState() { return state_; } @@ -125,40 +125,40 @@ public: //! Sends CloseConnection to output, and disconnects and registered //! session handlers. After Disconnect completes, it is guaranteed //! that no further callbacks will be made. - virtual XmppReturnStatus Disconnect(); + virtual XmppReturntqStatus Disconnect(); // APPLICATION USE ------------------------------------------------------- //! Adds a listener for session events. //! Stanza delivery is chained to session handlers; the first to //! return 'true' is the last to get each stanza. - virtual XmppReturnStatus AddStanzaHandler(XmppStanzaHandler* handler, + virtual XmppReturntqStatus AddStanzaHandler(XmppStanzaHandler* handler, XmppEngine::HandlerLevel level); //! Removes a listener for session events. - virtual XmppReturnStatus RemoveStanzaHandler(XmppStanzaHandler* handler); + virtual XmppReturntqStatus RemoveStanzaHandler(XmppStanzaHandler* handler); //! Sends a stanza to the server. - virtual XmppReturnStatus SendStanza(const XmlElement * pelStanza); + virtual XmppReturntqStatus SendStanza(const XmlElement * pelStanza); //! Sends raw text to the server - virtual XmppReturnStatus SendRaw(const std::string & text); + virtual XmppReturntqStatus SendRaw(const std::string & text); //! Sends an iq to the server, and registers a callback for the result. //! Returns the cookie passed to the result handler. - virtual XmppReturnStatus SendIq(const XmlElement* pelStanza, + virtual XmppReturntqStatus SendIq(const XmlElement* pelStanza, XmppIqHandler* iq_handler, XmppIqCookie* cookie); //! Unregisters an iq callback handler given its cookie. //! No callback will come to this handler after it's unregistered. - virtual XmppReturnStatus RemoveIqHandler(XmppIqCookie cookie, + virtual XmppReturntqStatus RemoveIqHandler(XmppIqCookie cookie, XmppIqHandler** iq_handler); //! Forms and sends an error in response to the given stanza. //! Swaps to and from, sets type to "error", and adds error information //! based on the passed code. Text is optional and may be STR_EMPTY. - virtual XmppReturnStatus SendStanzaError(const XmlElement * pelOriginal, + virtual XmppReturntqStatus SendStanzaError(const XmlElement * pelOriginal, XmppStanzaError code, const std::string & text); diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/xmppengineimpl_iq.cc b/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/xmppengineimpl_iq.cc index cdcfa9e7..38f268b9 100644 --- a/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/xmppengineimpl_iq.cc +++ b/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/xmppengineimpl_iq.cc @@ -54,7 +54,7 @@ private: }; -XmppReturnStatus +XmppReturntqStatus XmppEngineImpl::SendIq(const XmlElement * element, XmppIqHandler * iq_handler, XmppIqCookie* cookie) { if (state_ == STATE_CLOSED) @@ -85,7 +85,7 @@ XmppEngineImpl::SendIq(const XmlElement * element, XmppIqHandler * iq_handler, } -XmppReturnStatus +XmppReturntqStatus XmppEngineImpl::RemoveIqHandler(XmppIqCookie cookie, XmppIqHandler ** iq_handler) { @@ -199,7 +199,7 @@ AddErrorCode(XmlElement * error_element, XmppStanzaError code) { } -XmppReturnStatus +XmppReturntqStatus XmppEngineImpl::SendStanzaError(const XmlElement * element_original, XmppStanzaError code, const std::string & text) { @@ -223,7 +223,7 @@ XmppEngineImpl::SendStanzaError(const XmlElement * element_original, error_element.AddAttr(name, attribute->Value()); } - // copy children + // copy tqchildren for (const XmlChild * child = element_original->FirstChild(); child; child = child->NextChild()) { diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/xmpptask.cc b/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/xmpptask.cc index c9d86ba6..e7ac0e04 100644 --- a/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/xmpptask.cc +++ b/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/xmpptask.cc @@ -55,14 +55,14 @@ XmppTask::StopImpl() { } } -XmppReturnStatus +XmppReturntqStatus XmppTask::SendStanza(const XmlElement * stanza) { if (client_ == NULL) return XMPP_RETURN_BADSTATE; return client_->SendStanza(stanza); } -XmppReturnStatus +XmppReturntqStatus XmppTask::SendStanzaError(const XmlElement * element_original, XmppStanzaError code, const std::string & text) { diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/xmpptask.h b/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/xmpptask.h index 0bd7c4b8..a1ed3dd3 100644 --- a/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/xmpptask.h +++ b/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/xmpptask.h @@ -78,9 +78,9 @@ public: protected: friend class XmppClient; - XmppReturnStatus SendStanza(const XmlElement * stanza); - XmppReturnStatus SetResult(const std::string & code); - XmppReturnStatus SendStanzaError(const XmlElement * element_original, + XmppReturntqStatus SendStanza(const XmlElement * stanza); + XmppReturntqStatus SetResult(const std::string & code); + XmppReturntqStatus SendStanzaError(const XmlElement * element_original, XmppStanzaError code, const std::string & text); diff --git a/kopete/protocols/jabber/libiris/005_join_muc_with_password.patch b/kopete/protocols/jabber/libiris/005_join_muc_with_password.patch index 058825db..4632af45 100644 --- a/kopete/protocols/jabber/libiris/005_join_muc_with_password.patch +++ b/kopete/protocols/jabber/libiris/005_join_muc_with_password.patch @@ -7,8 +7,8 @@ Index: iris/include/im.h bool groupChatJoin(const QString &host, const QString &room, const QString &nick); + bool groupChatJoin(const QString &host, const QString &room, const QString &nick, const QString &password); - void groupChatSetStatus(const QString &host, const QString &room, const Status &); - void groupChatChangeNick(const QString &host, const QString &room, const QString &nick, const Status &); + void groupChatSettqStatus(const QString &host, const QString &room, const tqStatus &); + void groupChatChangeNick(const QString &host, const QString &room, const QString &nick, const tqStatus &); void groupChatLeave(const QString &host, const QString &room); Index: iris/xmpp-im/client.cpp =================================================================== @@ -34,20 +34,20 @@ Index: iris/xmpp-im/client.cpp + ++it; + } + -+ debug(QString("Client: Joined: [%1]\n").arg(jid.full())); ++ debug(QString("Client: Joined: [%1]\n").tqarg(jid.full())); + GroupChat i; + i.j = jid; + i.status = GroupChat::Connecting; + d->groupChatList += i; + + JT_MucPresence *j = new JT_MucPresence(rootTask()); -+ j->pres(jid, Status(), password); ++ j->pres(jid, tqStatus(), password); + j->go(true); + + return true; +} + - void Client::groupChatSetStatus(const QString &host, const QString &room, const Status &_s) + void Client::groupChatSettqStatus(const QString &host, const QString &room, const tqStatus &_s) { Jid jid(room + "@" + host); Index: iris/xmpp-im/xmpp_tasks.h @@ -66,8 +66,8 @@ Index: iris/xmpp-im/xmpp_tasks.h + JT_MucPresence(Task *parent); + ~JT_MucPresence(); + -+ void pres(const Status &); -+ void pres(const Jid &, const Status &, const QString &password); ++ void pres(const tqStatus &); ++ void pres(const Jid &, const tqStatus &, const QString &password); + + void onGo(); + @@ -102,7 +102,7 @@ Index: iris/xmpp-im/xmpp_tasks.cpp +{ +} + -+void JT_MucPresence::pres(const Status &s) ++void JT_MucPresence::pres(const tqStatus &s) +{ + type = 0; + @@ -121,7 +121,7 @@ Index: iris/xmpp-im/xmpp_tasks.cpp + if(!s.status().isEmpty()) + tag.appendChild(textTag(doc(), "status", s.status())); + -+ tag.appendChild( textTag(doc(), "priority", QString("%1").arg(s.priority()) ) ); ++ tag.appendChild( textTag(doc(), "priority", QString("%1").tqarg(s.priority()) ) ); + + if(!s.keyID().isEmpty()) { + QDomElement x = textTag(doc(), "x", s.keyID()); @@ -146,7 +146,7 @@ Index: iris/xmpp-im/xmpp_tasks.cpp + } +} + -+void JT_MucPresence::pres(const Jid &to, const Status &s, const QString &password) ++void JT_MucPresence::pres(const Jid &to, const tqStatus &s, const QString &password) +{ + pres(s); + tag.setAttribute("to", to.full()); diff --git a/kopete/protocols/jabber/libiris/cutestuff/network/httppoll.cpp b/kopete/protocols/jabber/libiris/cutestuff/network/httppoll.cpp index f20c054f..cd5b2f64 100644 --- a/kopete/protocols/jabber/libiris/cutestuff/network/httppoll.cpp +++ b/kopete/protocols/jabber/libiris/cutestuff/network/httppoll.cpp @@ -358,7 +358,7 @@ void HttpPoll::resetKey() fprintf(stderr, "HttpPoll: reset key!\n"); #endif TQByteArray a = randomArray(64); - TQString str = TQString::fromLatin1(a.data(), a.size()); + TQString str = TQString::tqfromLatin1(a.data(), a.size()); d->key_n = POLL_KEYS; for(int n = 0; n < POLL_KEYS; ++n) diff --git a/kopete/protocols/jabber/libiris/cutestuff/network/socks.cpp b/kopete/protocols/jabber/libiris/cutestuff/network/socks.cpp index e4e1b182..16f02e07 100644 --- a/kopete/protocols/jabber/libiris/cutestuff/network/socks.cpp +++ b/kopete/protocols/jabber/libiris/cutestuff/network/socks.cpp @@ -122,7 +122,7 @@ static int sp_read_udp(TQByteArray *from, SPS_UDP *s) return 0; TQCString cs(host_len+1); memcpy(cs.data(), from->data() + 5, host_len); - host = TQString::fromLatin1(cs); + host = TQString::tqfromLatin1(cs); } else if(atype == 0x04) { full_len += 16; @@ -467,7 +467,7 @@ static int sp_get_request(TQByteArray *from, SPS_CONNREQ *s) return 0; TQCString cs(host_len+1); memcpy(cs.data(), from->data() + 5, host_len); - host = TQString::fromLatin1(cs); + host = TQString::tqfromLatin1(cs); } else if(atype == 0x04) { full_len += 16; diff --git a/kopete/protocols/jabber/libiris/cutestuff/util/base64.cpp b/kopete/protocols/jabber/libiris/cutestuff/util/base64.cpp index fcdd3d49..c9726d75 100644 --- a/kopete/protocols/jabber/libiris/cutestuff/util/base64.cpp +++ b/kopete/protocols/jabber/libiris/cutestuff/util/base64.cpp @@ -146,7 +146,7 @@ TQString Base64::arrayToString(const TQByteArray &a) TQCString c; c.resize(b.size()+1); memcpy(c.data(), b.data(), b.size()); - return TQString::fromLatin1(c); + return TQString::tqfromLatin1(c); } //! diff --git a/kopete/protocols/jabber/libiris/cutestuff/util/showtextdlg.cpp b/kopete/protocols/jabber/libiris/cutestuff/util/showtextdlg.cpp index 6339d14a..0c8b46df 100644 --- a/kopete/protocols/jabber/libiris/cutestuff/util/showtextdlg.cpp +++ b/kopete/protocols/jabber/libiris/cutestuff/util/showtextdlg.cpp @@ -20,11 +20,11 @@ #include"showtextdlg.h" -#include -#include +#include +#include #include #include -#include +#include ShowTextDlg::ShowTextDlg(const TQString &fname, bool rich, TQWidget *parent, const char *name) diff --git a/kopete/protocols/jabber/libiris/iris/include/im.h b/kopete/protocols/jabber/libiris/iris/include/im.h index 835eed62..8387d48a 100644 --- a/kopete/protocols/jabber/libiris/iris/include/im.h +++ b/kopete/protocols/jabber/libiris/iris/include/im.h @@ -136,11 +136,11 @@ namespace XMPP SubType value; }; - class Status + class tqStatus { public: - Status(const TQString &show="", const TQString &status="", int priority=0, bool available=true); - ~Status(); + tqStatus(const TQString &show="", const TQString &status="", int priority=0, bool available=true); + ~tqStatus(); int priority() const; const TQString & show() const; @@ -162,7 +162,7 @@ namespace XMPP void setPriority(int); void setShow(const TQString &); - void setStatus(const TQString &); + void settqStatus(const TQString &); void setTimeStamp(const TQDateTime &); void setKeyID(const TQString &); void setIsAvailable(bool); @@ -197,19 +197,19 @@ namespace XMPP class Resource { public: - Resource(const TQString &name="", const Status &s=Status()); + Resource(const TQString &name="", const tqStatus &s=tqStatus()); ~Resource(); const TQString & name() const; int priority() const; - const Status & status() const; + const tqStatus & status() const; void setName(const TQString &); - void setStatus(const Status &); + void settqStatus(const tqStatus &); private: TQString v_name; - Status v_status; + tqStatus v_status; class ResourcePrivate *d; }; @@ -570,7 +570,7 @@ namespace XMPP void rosterRequest(); void sendMessage(const Message &); void sendSubscription(const Jid &, const TQString &); - void setPresence(const Status &); + void setPresence(const tqStatus &); void debug(const TQString &); TQString genUniqueId(); @@ -610,8 +610,8 @@ namespace XMPP bool groupChatJoin(const TQString &host, const TQString &room, const TQString &nick); bool groupChatJoin(const TQString &host, const TQString &room, const TQString &nick, const TQString &password); - void groupChatSetStatus(const TQString &host, const TQString &room, const Status &); - void groupChatChangeNick(const TQString &host, const TQString &room, const TQString &nick, const Status &); + void groupChatSettqStatus(const TQString &host, const TQString &room, const tqStatus &); + void groupChatChangeNick(const TQString &host, const TQString &room, const TQString &nick, const tqStatus &); void groupChatLeave(const TQString &host, const TQString &room); signals: @@ -632,7 +632,7 @@ namespace XMPP void xmlOutgoing(const TQString &); void groupChatJoined(const Jid &); void groupChatLeft(const Jid &); - void groupChatPresence(const Jid &, const Status &); + void groupChatPresence(const Jid &, const tqStatus &); void groupChatError(const Jid &, int, const TQString &); void incomingJidLink(); @@ -652,7 +652,7 @@ namespace XMPP // basic daemons void ppSubscription(const Jid &, const TQString &); - void ppPresence(const Jid &, const Status &); + void ppPresence(const Jid &, const tqStatus &); void pmMessage(const Message &); void prRoster(const Roster &); @@ -666,8 +666,8 @@ namespace XMPP void distribute(const TQDomElement &); void importRoster(const Roster &); void importRosterItem(const RosterItem &); - void updateSelfPresence(const Jid &, const Status &); - void updatePresence(LiveRosterItem *, const Jid &, const Status &); + void updateSelfPresence(const Jid &, const tqStatus &); + void updatePresence(LiveRosterItem *, const Jid &, const tqStatus &); class ClientPrivate; ClientPrivate *d; @@ -689,15 +689,15 @@ namespace XMPP ResourceList::ConstIterator priority() const; bool isAvailable() const; - const Status & lastUnavailableStatus() const; + const tqStatus & lastUnavailabletqStatus() const; bool flagForDelete() const; - void setLastUnavailableStatus(const Status &); + void setLastUnavailabletqStatus(const tqStatus &); void setFlagForDelete(bool); private: ResourceList v_resourceList; - Status v_lastUnavailableStatus; + tqStatus v_lastUnavailabletqStatus; bool v_flagForDelete; class LiveRosterItemPrivate; diff --git a/kopete/protocols/jabber/libiris/iris/xmpp-core/parser.cpp b/kopete/protocols/jabber/libiris/iris/xmpp-core/parser.cpp index edd2398b..3fa7d6c3 100644 --- a/kopete/protocols/jabber/libiris/iris/xmpp-core/parser.cpp +++ b/kopete/protocols/jabber/libiris/iris/xmpp-core/parser.cpp @@ -49,7 +49,7 @@ #include"parser.h" -#include +#include #include #include diff --git a/kopete/protocols/jabber/libiris/iris/xmpp-core/protocol.cpp b/kopete/protocols/jabber/libiris/iris/xmpp-core/protocol.cpp index f96fd795..89c98a91 100644 --- a/kopete/protocols/jabber/libiris/iris/xmpp-core/protocol.cpp +++ b/kopete/protocols/jabber/libiris/iris/xmpp-core/protocol.cpp @@ -1109,7 +1109,7 @@ bool CoreProtocol::normalStep(const TQDomElement &e) e.setAttribute("mechanism", sasl_mech); if(!sasl_step.isEmpty()) { #ifdef XMPP_TEST - TD::msg(TQString("SASL OUT: [%1]").arg(printArray(sasl_step))); + TD::msg(TQString("SASL OUT: [%1]").tqarg(printArray(sasl_step))); #endif e.appendChild(doc.createTextNode(Base64::arrayToString(sasl_step))); } @@ -1143,7 +1143,7 @@ bool CoreProtocol::normalStep(const TQDomElement &e) else { TQByteArray stepData = sasl_step; #ifdef XMPP_TEST - TD::msg(TQString("SASL OUT: [%1]").arg(printArray(sasl_step))); + TD::msg(TQString("SASL OUT: [%1]").tqarg(printArray(sasl_step))); #endif TQDomElement e = doc.createElementNS(NS_SASL, "response"); if(!stepData.isEmpty()) @@ -1289,7 +1289,7 @@ bool CoreProtocol::normalStep(const TQDomElement &e) #ifdef XMPP_TEST TQString s = "SASL mechs:"; for(TQStringList::ConstIterator it = f.sasl_mechs.begin(); it != f.sasl_mechs.end(); ++it) - s += TQString(" [%1]").arg((*it)); + s += TQString(" [%1]").tqarg((*it)); TD::msg(s); #endif } @@ -1341,7 +1341,7 @@ bool CoreProtocol::normalStep(const TQDomElement &e) if(e.tagName() == "challenge") { TQByteArray a = Base64::stringToArray(e.text()); #ifdef XMPP_TEST - TD::msg(TQString("SASL IN: [%1]").arg(printArray(a))); + TD::msg(TQString("SASL IN: [%1]").tqarg(printArray(a))); #endif sasl_step = a; need = NSASLNext; diff --git a/kopete/protocols/jabber/libiris/iris/xmpp-core/stream.cpp b/kopete/protocols/jabber/libiris/iris/xmpp-core/stream.cpp index c2f3083e..0e324cb1 100644 --- a/kopete/protocols/jabber/libiris/iris/xmpp-core/stream.cpp +++ b/kopete/protocols/jabber/libiris/iris/xmpp-core/stream.cpp @@ -44,7 +44,7 @@ #include"xmpp.h" -#include +#include #include #include #include @@ -1358,9 +1358,9 @@ void ClientStream::processNext() #endif #ifdef XMPP_TEST - TQString s = TQString("handshake success (lang=[%1]").arg(d->client.lang); + TQString s = TQString("handshake success (lang=[%1]").tqarg(d->client.lang); if(!d->client.from.isEmpty()) - s += TQString(", from=[%1]").arg(d->client.from); + s += TQString(", from=[%1]").tqarg(d->client.from); s += ')'; TD::msg(s); #endif diff --git a/kopete/protocols/jabber/libiris/iris/xmpp-core/xmlprotocol.cpp b/kopete/protocols/jabber/libiris/iris/xmpp-core/xmlprotocol.cpp index 93748aa8..d1650842 100644 --- a/kopete/protocols/jabber/libiris/iris/xmpp-core/xmlprotocol.cpp +++ b/kopete/protocols/jabber/libiris/iris/xmpp-core/xmlprotocol.cpp @@ -66,7 +66,7 @@ static TQDomElement stripExtraNS(const TQDomElement &e) i.setAttributeNodeNS(a); } - // copy children + // copy tqchildren TQDomNodeList nl = e.childNodes(); for(x = 0; x < nl.count(); ++x) { TQDomNode n = nl.item(x); diff --git a/kopete/protocols/jabber/libiris/iris/xmpp-im/client.cpp b/kopete/protocols/jabber/libiris/iris/xmpp-im/client.cpp index b7d5e00c..973b6c73 100644 --- a/kopete/protocols/jabber/libiris/iris/xmpp-im/client.cpp +++ b/kopete/protocols/jabber/libiris/iris/xmpp-im/client.cpp @@ -208,13 +208,13 @@ void Client::start(const TQString &host, const TQString &user, const TQString &p d->pass = pass; d->resource = _resource; - Status stat; + tqStatus stat; stat.setIsAvailable(false); d->resourceList += Resource(resource(), stat); JT_PushPresence *pp = new JT_PushPresence(rootTask()); connect(pp, TQT_SIGNAL(subscription(const Jid &, const TQString &)), TQT_SLOT(ppSubscription(const Jid &, const TQString &))); - connect(pp, TQT_SIGNAL(presence(const Jid &, const Status &)), TQT_SLOT(ppPresence(const Jid &, const Status &))); + connect(pp, TQT_SIGNAL(presence(const Jid &, const tqStatus &)), TQT_SLOT(ppPresence(const Jid &, const tqStatus &))); JT_PushMessage *pm = new JT_PushMessage(rootTask()); connect(pm, TQT_SIGNAL(message(const Message &)), TQT_SLOT(pmMessage(const Message &))); @@ -267,7 +267,7 @@ bool Client::isActive() const return d->active; } -void Client::groupChatChangeNick(const TQString &host, const TQString &room, const TQString &nick, const Status &_s) +void Client::groupChatChangeNick(const TQString &host, const TQString &room, const TQString &nick, const tqStatus &_s) { Jid jid(room + "@" + host + "/" + nick); for(TQValueList::Iterator it = d->groupChatList.begin(); it != d->groupChatList.end(); it++) { @@ -275,7 +275,7 @@ void Client::groupChatChangeNick(const TQString &host, const TQString &room, con if(i.j.compare(jid, false)) { i.j = jid; - Status s = _s; + tqStatus s = _s; s.setIsAvailable(true); JT_Presence *j = new JT_Presence(rootTask()); @@ -303,14 +303,14 @@ bool Client::groupChatJoin(const TQString &host, const TQString &room, const TQS ++it; } - debug(TQString("Client: Joined: [%1]\n").arg(jid.full())); + debug(TQString("Client: Joined: [%1]\n").tqarg(jid.full())); GroupChat i; i.j = jid; i.status = GroupChat::Connecting; d->groupChatList += i; JT_Presence *j = new JT_Presence(rootTask()); - j->pres(jid, Status()); + j->pres(jid, tqStatus()); j->go(true); return true; @@ -332,20 +332,20 @@ bool Client::groupChatJoin(const TQString &host, const TQString &room, const TQS ++it; } - debug(TQString("Client: Joined: [%1]\n").arg(jid.full())); + debug(TQString("Client: Joined: [%1]\n").tqarg(jid.full())); GroupChat i; i.j = jid; i.status = GroupChat::Connecting; d->groupChatList += i; JT_MucPresence *j = new JT_MucPresence(rootTask()); - j->pres(jid, Status(), password); + j->pres(jid, tqStatus(), password); j->go(true); return true; } -void Client::groupChatSetStatus(const TQString &host, const TQString &room, const Status &_s) +void Client::groupChatSettqStatus(const TQString &host, const TQString &room, const tqStatus &_s) { Jid jid(room + "@" + host); bool found = false; @@ -360,7 +360,7 @@ void Client::groupChatSetStatus(const TQString &host, const TQString &room, cons if(!found) return; - Status s = _s; + tqStatus s = _s; s.setIsAvailable(true); JT_Presence *j = new JT_Presence(rootTask()); @@ -378,10 +378,10 @@ void Client::groupChatLeave(const TQString &host, const TQString &room) continue; i.status = GroupChat::Closing; - debug(TQString("Client: Leaving: [%1]\n").arg(i.j.full())); + debug(TQString("Client: Leaving: [%1]\n").tqarg(i.j.full())); JT_Presence *j = new JT_Presence(rootTask()); - Status s; + tqStatus s; s.setIsAvailable(false); j->pres(i.j, s); j->go(true); @@ -410,7 +410,7 @@ void Client::close(bool) i.status = GroupChat::Closing; JT_Presence *j = new JT_Presence(rootTask()); - Status s; + tqStatus s; s.setIsAvailable(false); j->pres(i.j, s); j->go(true); @@ -493,7 +493,7 @@ static TQDomElement oldStyleNS(const TQDomElement &e) if(!noShowNS) i.setAttribute("xmlns", e.namespaceURI()); - // copy children + // copy tqchildren TQDomNodeList nl = e.childNodes(); for(x = 0; x < nl.count(); ++x) { TQDomNode n = nl.item(x); @@ -514,7 +514,7 @@ void Client::streamReadyRead() Stanza s = d->stream->read(); TQString out = s.toString(); - debug(TQString("Client: incoming: [\n%1]\n").arg(out)); + debug(TQString("Client: incoming: [\n%1]\n").tqarg(out)); xmlIncoming(out); TQDomElement x = oldStyleNS(s.element()); @@ -607,7 +607,7 @@ static TQDomElement addCorrectNS(const TQDomElement &e) i.setAttributeNodeNS(a.cloneNode().toAttr()); } - // copy children + // copy tqchildren TQDomNodeList nl = e.childNodes(); for(x = 0; x < nl.count(); ++x) { TQDomNode n = nl.item(x); @@ -631,7 +631,7 @@ void Client::send(const TQDomElement &x) //x.save(ts, 0); //TQString out = Stream::xmlToString(x); - //debug(TQString("Client: outgoing: [\n%1]\n").arg(out)); + //debug(TQString("Client: outgoing: [\n%1]\n").tqarg(out)); //xmlOutgoing(out); TQDomElement e = addCorrectNS(x); @@ -642,7 +642,7 @@ void Client::send(const TQDomElement &x) } TQString out = s.toString(); - debug(TQString("Client: outgoing: [\n%1]\n").arg(out)); + debug(TQString("Client: outgoing: [\n%1]\n").tqarg(out)); xmlOutgoing(out); //printf("x[%s] x2[%s] s[%s]\n", Stream::xmlToString(x).latin1(), Stream::xmlToString(e).latin1(), s.toString().latin1()); @@ -654,7 +654,7 @@ void Client::send(const TQString &str) if(!d->stream) return; - debug(TQString("Client: outgoing: [\n%1]\n").arg(str)); + debug(TQString("Client: outgoing: [\n%1]\n").tqarg(str)); xmlOutgoing(str); static_cast(d->stream)->writeDirect(str); } @@ -713,12 +713,12 @@ void Client::ppSubscription(const Jid &j, const TQString &s) subscription(j, s); } -void Client::ppPresence(const Jid &j, const Status &s) +void Client::ppPresence(const Jid &j, const tqStatus &s) { if(s.isAvailable()) - debug(TQString("Client: %1 is available.\n").arg(j.full())); + debug(TQString("Client: %1 is available.\n").tqarg(j.full())); else - debug(TQString("Client: %1 is unavailable.\n").arg(j.full())); + debug(TQString("Client: %1 is unavailable.\n").tqarg(j.full())); for(TQValueList::Iterator it = d->groupChatList.begin(); it != d->groupChatList.end(); it++) { GroupChat &i = *it; @@ -726,7 +726,7 @@ void Client::ppPresence(const Jid &j, const Status &s) if(i.j.compare(j, false)) { bool us = (i.j.resource() == j.resource() || j.resource().isEmpty()) ? true: false; - debug(TQString("for groupchat i=[%1] pres=[%2], [us=%3].\n").arg(i.j.full()).arg(j.full()).arg(us)); + debug(TQString("for groupchat i=[%1] pres=[%2], [us=%3].\n").tqarg(i.j.full()).tqarg(j.full()).tqarg(us)); switch(i.status) { case GroupChat::Connecting: if(us && s.hasError()) { @@ -789,7 +789,7 @@ void Client::ppPresence(const Jid &j, const Status &s) } } -void Client::updateSelfPresence(const Jid &j, const Status &s) +void Client::updateSelfPresence(const Jid &j, const tqStatus &s) { ResourceList::Iterator rit = d->resourceList.find(j.resource()); bool found = (rit == d->resourceList.end()) ? false: true; @@ -797,8 +797,8 @@ void Client::updateSelfPresence(const Jid &j, const Status &s) // unavailable? remove the resource if(!s.isAvailable()) { if(found) { - debug(TQString("Client: Removing self resource: name=[%1]\n").arg(j.resource())); - (*rit).setStatus(s); + debug(TQString("Client: Removing self resource: name=[%1]\n").tqarg(j.resource())); + (*rit).settqStatus(s); resourceUnavailable(j, *rit); d->resourceList.remove(rit); } @@ -809,19 +809,19 @@ void Client::updateSelfPresence(const Jid &j, const Status &s) if(!found) { r = Resource(j.resource(), s); d->resourceList += r; - debug(TQString("Client: Adding self resource: name=[%1]\n").arg(j.resource())); + debug(TQString("Client: Adding self resource: name=[%1]\n").tqarg(j.resource())); } else { - (*rit).setStatus(s); + (*rit).settqStatus(s); r = *rit; - debug(TQString("Client: Updating self resource: name=[%1]\n").arg(j.resource())); + debug(TQString("Client: Updating self resource: name=[%1]\n").tqarg(j.resource())); } resourceAvailable(j, r); } } -void Client::updatePresence(LiveRosterItem *i, const Jid &j, const Status &s) +void Client::updatePresence(LiveRosterItem *i, const Jid &j, const tqStatus &s) { ResourceList::Iterator rit = i->resourceList().find(j.resource()); bool found = (rit == i->resourceList().end()) ? false: true; @@ -829,11 +829,11 @@ void Client::updatePresence(LiveRosterItem *i, const Jid &j, const Status &s) // unavailable? remove the resource if(!s.isAvailable()) { if(found) { - (*rit).setStatus(s); - debug(TQString("Client: Removing resource from [%1]: name=[%2]\n").arg(i->jid().full()).arg(j.resource())); + (*rit).settqStatus(s); + debug(TQString("Client: Removing resource from [%1]: name=[%2]\n").tqarg(i->jid().full()).tqarg(j.resource())); resourceUnavailable(j, *rit); i->resourceList().remove(rit); - i->setLastUnavailableStatus(s); + i->setLastUnavailabletqStatus(s); } } // available? add/update the resource @@ -842,12 +842,12 @@ void Client::updatePresence(LiveRosterItem *i, const Jid &j, const Status &s) if(!found) { r = Resource(j.resource(), s); i->resourceList() += r; - debug(TQString("Client: Adding resource to [%1]: name=[%2]\n").arg(i->jid().full()).arg(j.resource())); + debug(TQString("Client: Adding resource to [%1]: name=[%2]\n").tqarg(i->jid().full()).tqarg(j.resource())); } else { - (*rit).setStatus(s); + (*rit).settqStatus(s); r = *rit; - debug(TQString("Client: Updating resource to [%1]: name=[%2]\n").arg(i->jid().full()).arg(j.resource())); + debug(TQString("Client: Updating resource to [%1]: name=[%2]\n").tqarg(i->jid().full()).tqarg(j.resource())); } resourceAvailable(j, r); @@ -856,7 +856,7 @@ void Client::updatePresence(LiveRosterItem *i, const Jid &j, const Status &s) void Client::pmMessage(const Message &m) { - debug(TQString("Client: Message from %1\n").arg(m.from().full())); + debug(TQString("Client: Message from %1\n").tqarg(m.from().full())); if(m.type() == "groupchat") { for(TQValueList::Iterator it = d->groupChatList.begin(); it != d->groupChatList.end(); it++) { @@ -994,7 +994,7 @@ void Client::sendSubscription(const Jid &jid, const TQString &type) j->go(true); } -void Client::setPresence(const Status &s) +void Client::setPresence(const tqStatus &s) { JT_Presence *j = new JT_Presence(rootTask()); j->pres(s); @@ -1004,7 +1004,7 @@ void Client::setPresence(const Status &s) ppPresence(jid(), s); //ResourceList::Iterator rit = d->resourceList.find(resource()); //Resource &r = *rit; - //r.setStatus(s); + //r.settqStatus(s); } TQString Client::OSName() const @@ -1363,7 +1363,7 @@ void Task::debug(const char *fmt, ...) void Task::debug(const TQString &str) { - client()->debug(TQString("%1: ").arg(className()) + str); + client()->debug(TQString("%1: ").tqarg(className()) + str); } bool Task::iqVerify(const TQDomElement &x, const Jid &to, const TQString &id, const TQString &xmlns) @@ -1462,9 +1462,9 @@ bool LiveRosterItem::isAvailable() const return false; } -const Status & LiveRosterItem::lastUnavailableStatus() const +const tqStatus & LiveRosterItem::lastUnavailabletqStatus() const { - return v_lastUnavailableStatus; + return v_lastUnavailabletqStatus; } bool LiveRosterItem::flagForDelete() const @@ -1472,9 +1472,9 @@ bool LiveRosterItem::flagForDelete() const return v_flagForDelete; } -void LiveRosterItem::setLastUnavailableStatus(const Status &s) +void LiveRosterItem::setLastUnavailabletqStatus(const tqStatus &s) { - v_lastUnavailableStatus = s; + v_lastUnavailabletqStatus = s; } void LiveRosterItem::setFlagForDelete(bool b) diff --git a/kopete/protocols/jabber/libiris/iris/xmpp-im/types.cpp b/kopete/protocols/jabber/libiris/iris/xmpp-im/types.cpp index f33e428f..9e742d10 100644 --- a/kopete/protocols/jabber/libiris/iris/xmpp-im/types.cpp +++ b/kopete/protocols/jabber/libiris/iris/xmpp-im/types.cpp @@ -295,7 +295,7 @@ Stanza::Error Message::error() const return d->error; } -//! \brief Set receivers information +//! \brief Set tqreceivers information //! //! \param to - Receivers Jabber id void Message::setTo(const Jid &j) @@ -697,7 +697,7 @@ bool Message::fromStanza(const Stanza &s, int timeZoneOffset) d->spooled = true; } else { - d->timeStamp = TQDateTime::currentDateTime(); + d->timeStamp = TQDateTime::tqcurrentDateTime(); d->spooled = false; } @@ -801,100 +801,100 @@ bool Subscription::fromString(const TQString &s) //--------------------------------------------------------------------------- -// Status +// tqStatus //--------------------------------------------------------------------------- -Status::Status(const TQString &show, const TQString &status, int priority, bool available) +tqStatus::tqStatus(const TQString &show, const TQString &status, int priority, bool available) { v_isAvailable = available; v_show = show; v_status = status; v_priority = priority; - v_timeStamp = TQDateTime::currentDateTime(); + v_timeStamp = TQDateTime::tqcurrentDateTime(); v_isInvisible = false; ecode = -1; } -Status::~Status() +tqStatus::~tqStatus() { } -bool Status::hasError() const +bool tqStatus::hasError() const { return (ecode != -1); } -void Status::setError(int code, const TQString &str) +void tqStatus::setError(int code, const TQString &str) { ecode = code; estr = str; } -void Status::setIsAvailable(bool available) +void tqStatus::setIsAvailable(bool available) { v_isAvailable = available; } -void Status::setIsInvisible(bool invisible) +void tqStatus::setIsInvisible(bool invisible) { v_isInvisible = invisible; } -void Status::setPriority(int x) +void tqStatus::setPriority(int x) { v_priority = x; } -void Status::setShow(const TQString & _show) +void tqStatus::setShow(const TQString & _show) { v_show = _show; } -void Status::setStatus(const TQString & _status) +void tqStatus::settqStatus(const TQString & _status) { v_status = _status; } -void Status::setTimeStamp(const TQDateTime & _timestamp) +void tqStatus::setTimeStamp(const TQDateTime & _timestamp) { v_timeStamp = _timestamp; } -void Status::setKeyID(const TQString &key) +void tqStatus::setKeyID(const TQString &key) { v_key = key; } -void Status::setXSigned(const TQString &s) +void tqStatus::setXSigned(const TQString &s) { v_xsigned = s; } -void Status::setSongTitle(const TQString & _songtitle) +void tqStatus::setSongTitle(const TQString & _songtitle) { v_songTitle = _songtitle; } -void Status::setCapsNode(const TQString & _capsNode) +void tqStatus::setCapsNode(const TQString & _capsNode) { v_capsNode = _capsNode; } -void Status::setCapsVersion(const TQString & _capsVersion) +void tqStatus::setCapsVersion(const TQString & _capsVersion) { v_capsVersion = _capsVersion; } -void Status::setCapsExt(const TQString & _capsExt) +void tqStatus::setCapsExt(const TQString & _capsExt) { v_capsExt = _capsExt; } -bool Status::isAvailable() const +bool tqStatus::isAvailable() const { return v_isAvailable; } -bool Status::isAway() const +bool tqStatus::isAway() const { if(v_show == "away" || v_show == "xa" || v_show == "dnd") return true; @@ -902,66 +902,66 @@ bool Status::isAway() const return false; } -bool Status::isInvisible() const +bool tqStatus::isInvisible() const { return v_isInvisible; } -int Status::priority() const +int tqStatus::priority() const { return v_priority; } -const TQString & Status::show() const +const TQString & tqStatus::show() const { return v_show; } -const TQString & Status::status() const +const TQString & tqStatus::status() const { return v_status; } -TQDateTime Status::timeStamp() const +TQDateTime tqStatus::timeStamp() const { return v_timeStamp; } -const TQString & Status::keyID() const +const TQString & tqStatus::keyID() const { return v_key; } -const TQString & Status::xsigned() const +const TQString & tqStatus::xsigned() const { return v_xsigned; } -const TQString & Status::songTitle() const +const TQString & tqStatus::songTitle() const { return v_songTitle; } -const TQString & Status::capsNode() const +const TQString & tqStatus::capsNode() const { return v_capsNode; } -const TQString & Status::capsVersion() const +const TQString & tqStatus::capsVersion() const { return v_capsVersion; } -const TQString & Status::capsExt() const +const TQString & tqStatus::capsExt() const { return v_capsExt; } -int Status::errorCode() const +int tqStatus::errorCode() const { return ecode; } -const TQString & Status::errorString() const +const TQString & tqStatus::errorString() const { return estr; } @@ -970,7 +970,7 @@ const TQString & Status::errorString() const //--------------------------------------------------------------------------- // Resource //--------------------------------------------------------------------------- -Resource::Resource(const TQString &name, const Status &stat) +Resource::Resource(const TQString &name, const tqStatus &stat) { v_name = name; v_status = stat; @@ -990,7 +990,7 @@ int Resource::priority() const return v_status.priority(); } -const Status & Resource::status() const +const tqStatus & Resource::status() const { return v_status; } @@ -1000,7 +1000,7 @@ void Resource::setName(const TQString & _name) v_name = _name; } -void Resource::setStatus(const Status & _status) +void Resource::settqStatus(const tqStatus & _status) { v_status = _status; } diff --git a/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_tasks.cpp b/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_tasks.cpp index edc8762e..89d66796 100644 --- a/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_tasks.cpp +++ b/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_tasks.cpp @@ -485,7 +485,7 @@ JT_Presence::~JT_Presence() { } -void JT_Presence::pres(const Status &s) +void JT_Presence::pres(const tqStatus &s) { type = 0; @@ -504,7 +504,7 @@ void JT_Presence::pres(const Status &s) if(!s.status().isEmpty()) tag.appendChild(textTag(doc(), "status", s.status())); - tag.appendChild( textTag(doc(), "priority", TQString("%1").arg(s.priority()) ) ); + tag.appendChild( textTag(doc(), "priority", TQString("%1").tqarg(s.priority()) ) ); if(!s.keyID().isEmpty()) { TQDomElement x = textTag(doc(), "x", s.keyID()); @@ -529,7 +529,7 @@ void JT_Presence::pres(const Status &s) } } -void JT_Presence::pres(const Jid &to, const Status &s) +void JT_Presence::pres(const Jid &to, const tqStatus &s) { pres(s); tag.setAttribute("to", to.full()); @@ -569,7 +569,7 @@ bool JT_PushPresence::take(const TQDomElement &e) return false; Jid j(e.attribute("from")); - Status p; + tqStatus p; if(e.hasAttribute("type")) { TQString type = e.attribute("type"); @@ -593,7 +593,7 @@ bool JT_PushPresence::take(const TQDomElement &e) tag = findSubTag(e, "status", &found); if(found) - p.setStatus(tagContent(tag)); + p.settqStatus(tagContent(tag)); tag = findSubTag(e, "show", &found); if(found) p.setShow(tagContent(tag)); @@ -676,7 +676,7 @@ static TQDomElement oldStyleNS(const TQDomElement &e) if(!noShowNS) i.setAttribute("xmlns", e.namespaceURI()); - // copy children + // copy tqchildren TQDomNodeList nl = e.childNodes(); for(x = 0; x < nl.count(); ++x) { TQDomNode n = nl.item(x); @@ -742,7 +742,7 @@ static TQDomElement addCorrectNS(const TQDomElement &e) i.setAttributeNodeNS(al.item(x).cloneNode().toAttr()); } - // copy children + // copy tqchildren TQDomNodeList nl = e.childNodes(); for(x = 0; x < nl.count(); ++x) { TQDomNode n = nl.item(x); @@ -1338,12 +1338,12 @@ bool JT_ServInfo::take(const TQDomElement &e) // TQDomElement query = doc()->createElement("query"); // query.setAttribute("xmlns", "jabber:iq:time"); // iq.appendChild(query); - // TQDateTime local = TQDateTime::currentDateTime(); + // TQDateTime local = TQDateTime::tqcurrentDateTime(); // TQDateTime utc = local.addSecs(-getTZOffset() * 3600); // TQString str = getTZString(); // query.appendChild(textTag("utc", TS2stamp(utc))); // query.appendChild(textTag("tz", str)); - // query.appendChild(textTag("display", TQString("%1 %2").arg(local.toString()).arg(str))); + // query.appendChild(textTag("display", TQString("%1 %2").tqarg(local.toString()).tqarg(str))); // send(iq); // return TRUE; //} @@ -1969,7 +1969,7 @@ JT_MucPresence::~JT_MucPresence() { } -void JT_MucPresence::pres(const Status &s) +void JT_MucPresence::pres(const tqStatus &s) { type = 0; @@ -1988,7 +1988,7 @@ void JT_MucPresence::pres(const Status &s) if(!s.status().isEmpty()) tag.appendChild(textTag(doc(), "status", s.status())); - tag.appendChild( textTag(doc(), "priority", TQString("%1").arg(s.priority()) ) ); + tag.appendChild( textTag(doc(), "priority", TQString("%1").tqarg(s.priority()) ) ); if(!s.keyID().isEmpty()) { TQDomElement x = textTag(doc(), "x", s.keyID()); @@ -2013,7 +2013,7 @@ void JT_MucPresence::pres(const Status &s) } } -void JT_MucPresence::pres(const Jid &to, const Status &s, const TQString &password) +void JT_MucPresence::pres(const Jid &to, const tqStatus &s, const TQString &password) { pres(s); tag.setAttribute("to", to.full()); diff --git a/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_tasks.h b/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_tasks.h index 0a1fdac5..9a8041e9 100644 --- a/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_tasks.h +++ b/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_tasks.h @@ -30,7 +30,7 @@ namespace XMPP { class Roster; - class Status; + class tqStatus; class JT_Register : public Task { @@ -135,8 +135,8 @@ namespace XMPP JT_Presence(Task *parent); ~JT_Presence(); - void pres(const Status &); - void pres(const Jid &, const Status &); + void pres(const tqStatus &); + void pres(const Jid &, const tqStatus &); void sub(const Jid &, const TQString &subType); void onGo(); @@ -160,7 +160,7 @@ namespace XMPP bool take(const TQDomElement &); signals: - void presence(const Jid &, const Status &); + void presence(const Jid &, const tqStatus &); void subscription(const Jid &, const TQString &); private: @@ -468,8 +468,8 @@ namespace XMPP JT_MucPresence(Task *parent); ~JT_MucPresence(); - void pres(const Status &); - void pres(const Jid &, const Status &, const TQString &password); + void pres(const tqStatus &); + void pres(const Jid &, const tqStatus &, const TQString &password); void onGo(); diff --git a/kopete/protocols/jabber/libiris/jingle_iris.patch b/kopete/protocols/jabber/libiris/jingle_iris.patch index 41acad0e..489afab4 100644 --- a/kopete/protocols/jabber/libiris/jingle_iris.patch +++ b/kopete/protocols/jabber/libiris/jingle_iris.patch @@ -185,44 +185,44 @@ diff -ur psi/iris/xmpp-im/types.cpp psi-jingle/iris/xmpp-im/types.cpp v_songTitle = _songtitle; } -+void Status::setCapsNode(const QString & _capsNode) ++void tqStatus::setCapsNode(const QString & _capsNode) +{ + v_capsNode = _capsNode; +} + -+void Status::setCapsVersion(const QString & _capsVersion) ++void tqStatus::setCapsVersion(const QString & _capsVersion) +{ + v_capsVersion = _capsVersion; +} + -+void Status::setCapsExt(const QString & _capsExt) ++void tqStatus::setCapsExt(const QString & _capsExt) +{ + v_capsExt = _capsExt; +} + - bool Status::isAvailable() const + bool tqStatus::isAvailable() const { return v_isAvailable; @@ -836,6 +851,21 @@ return v_songTitle; } -+const QString & Status::capsNode() const ++const QString & tqStatus::capsNode() const +{ + return v_capsNode; +} + -+const QString & Status::capsVersion() const ++const QString & tqStatus::capsVersion() const +{ + return v_capsVersion; +} + -+const QString & Status::capsExt() const ++const QString & tqStatus::capsExt() const +{ + return v_capsExt; +} + - int Status::errorCode() const + int tqStatus::errorCode() const { return ecode; @@ -1427,6 +1457,15 @@ diff --git a/kopete/protocols/jabber/libiris/qca/src/qca.cpp b/kopete/protocols/jabber/libiris/qca/src/qca.cpp index bad05fcd..1996b103 100644 --- a/kopete/protocols/jabber/libiris/qca/src/qca.cpp +++ b/kopete/protocols/jabber/libiris/qca/src/qca.cpp @@ -586,7 +586,7 @@ TQString RSAKey::toPEM(bool publicOnly) const TQCString cs; cs.resize(out.size()+1); memcpy(cs.data(), out.data(), out.size()); - return TQString::fromLatin1(cs); + return TQString::tqfromLatin1(cs); } bool RSAKey::fromPEM(const TQString &str) @@ -794,7 +794,7 @@ TQString Cert::toPEM() const TQCString cs; cs.resize(out.size()+1); memcpy(cs.data(), out.data(), out.size()); - return TQString::fromLatin1(cs); + return TQString::tqfromLatin1(cs); } bool Cert::fromPEM(const TQString &str) diff --git a/kopete/protocols/jabber/ui/dlgaddcontact.ui b/kopete/protocols/jabber/ui/dlgaddcontact.ui index 30a609a0..c0b3d1cc 100644 --- a/kopete/protocols/jabber/ui/dlgaddcontact.ui +++ b/kopete/protocols/jabber/ui/dlgaddcontact.ui @@ -27,7 +27,7 @@ - layout24 + tqlayout24 @@ -40,7 +40,7 @@ &Jabber ID: - + AlignTop @@ -73,7 +73,7 @@ <i>(for example: joe@jabber.org)</i> - + WordBreak|AlignVCenter|AlignRight @@ -87,7 +87,7 @@ Expanding - + 20 190 diff --git a/kopete/protocols/jabber/ui/dlgbrowse.ui b/kopete/protocols/jabber/ui/dlgbrowse.ui index 66cfcfc5..cb0f1cc2 100644 --- a/kopete/protocols/jabber/ui/dlgbrowse.ui +++ b/kopete/protocols/jabber/ui/dlgbrowse.ui @@ -47,7 +47,7 @@ Please wait while retrieving search form... - + WordBreak|AlignVCenter @@ -128,7 +128,7 @@ Expanding - + 51 21 diff --git a/kopete/protocols/jabber/ui/dlgchangepassword.ui b/kopete/protocols/jabber/ui/dlgchangepassword.ui index bed6e8d4..29ae6d33 100644 --- a/kopete/protocols/jabber/ui/dlgchangepassword.ui +++ b/kopete/protocols/jabber/ui/dlgchangepassword.ui @@ -57,7 +57,7 @@ - lblStatus + lbltqStatus @@ -71,7 +71,7 @@ Please enter your current password first and then your new password twice. - + AlignCenter diff --git a/kopete/protocols/jabber/ui/dlgchatjoin.ui b/kopete/protocols/jabber/ui/dlgchatjoin.ui index f5f40392..aa124cc2 100644 --- a/kopete/protocols/jabber/ui/dlgchatjoin.ui +++ b/kopete/protocols/jabber/ui/dlgchatjoin.ui @@ -57,7 +57,7 @@
- layout3 + tqlayout3 @@ -73,7 +73,7 @@ Expanding - + 41 20 diff --git a/kopete/protocols/jabber/ui/dlgchatroomslist.ui b/kopete/protocols/jabber/ui/dlgchatroomslist.ui index b158db62..31f5b201 100644 --- a/kopete/protocols/jabber/ui/dlgchatroomslist.ui +++ b/kopete/protocols/jabber/ui/dlgchatroomslist.ui @@ -21,7 +21,7 @@ - layout4 + tqlayout4 @@ -97,7 +97,7 @@ - layout5 + tqlayout5 @@ -113,7 +113,7 @@ Expanding - + 121 21 diff --git a/kopete/protocols/jabber/ui/dlgjabberbrowse.cpp b/kopete/protocols/jabber/ui/dlgjabberbrowse.cpp index be558388..d130fa97 100644 --- a/kopete/protocols/jabber/ui/dlgjabberbrowse.cpp +++ b/kopete/protocols/jabber/ui/dlgjabberbrowse.cpp @@ -68,7 +68,7 @@ void dlgJabberBrowse::slotGotForm () // translate the form and create it inside the display widget translator = new JabberFormTranslator (task->form (), dynamicForm); - dynamicForm->layout()->add( translator ); + dynamicForm->tqlayout()->add( translator ); translator->show(); // enable the send button diff --git a/kopete/protocols/jabber/ui/dlgjabberchooseserver.ui b/kopete/protocols/jabber/ui/dlgjabberchooseserver.ui index ad52240e..a1b732db 100644 --- a/kopete/protocols/jabber/ui/dlgjabberchooseserver.ui +++ b/kopete/protocols/jabber/ui/dlgjabberchooseserver.ui @@ -12,7 +12,7 @@ 343 - + 300 300 @@ -87,7 +87,7 @@ - lblStatus + lbltqStatus diff --git a/kopete/protocols/jabber/ui/dlgjabbereditaccountwidget.ui b/kopete/protocols/jabber/ui/dlgjabbereditaccountwidget.ui index e0a14f1c..e3599536 100644 --- a/kopete/protocols/jabber/ui/dlgjabbereditaccountwidget.ui +++ b/kopete/protocols/jabber/ui/dlgjabbereditaccountwidget.ui @@ -57,7 +57,7 @@ - layout61 + tqlayout61 @@ -153,7 +153,7 @@ 0 - + 0 0 @@ -162,7 +162,7 @@ To connect to the Jabber network, you will need an account on a Jabber server. If you do not yet have an account, please click the button to create one. - + WordBreak|AlignVCenter @@ -227,7 +227,7 @@ If you have an existing Jabber account and would like to change its password, you can use this button to enter a new password. - + WordBreak|AlignVCenter @@ -243,7 +243,7 @@ Maximum - + 20 16 @@ -312,7 +312,7 @@ - layout66 + tqlayout66 @@ -469,7 +469,7 @@ 0 - + 100 32767 @@ -495,7 +495,7 @@ Expanding - + 31 20 @@ -517,7 +517,7 @@ P&riority: - + AlignVCenter @@ -542,13 +542,13 @@ 0 - + 100 0 - + 100 32767 @@ -575,7 +575,7 @@ If two resources have the same priority, the messages will be sent to the one co Expanding - + 20 200 @@ -608,7 +608,7 @@ If two resources have the same priority, the messages will be sent to the one co - layout70 + tqlayout70 @@ -632,7 +632,7 @@ If two resources have the same priority, the messages will be sent to the one co - layout68 + tqlayout68 @@ -691,7 +691,7 @@ If two resources have the same priority, the messages will be sent to the one co <li>Changes to these fields will only take effect the next time you start Kopete.</li> <li>The "Proxy JID" can be configured per account.</li></ul></i> - + WordBreak|AlignVCenter @@ -707,7 +707,7 @@ If two resources have the same priority, the messages will be sent to the one co Expanding - + 20 241 @@ -748,7 +748,7 @@ If two resources have the same priority, the messages will be sent to the one co Expanding - + 40 20 @@ -798,7 +798,7 @@ If two resources have the same priority, the messages will be sent to the one co - layout10 + tqlayout10 @@ -814,7 +814,7 @@ If two resources have the same priority, the messages will be sent to the one co Fixed - + 30 20 @@ -823,7 +823,7 @@ If two resources have the same priority, the messages will be sent to the one co - layout9 + tqlayout9 @@ -907,7 +907,7 @@ If two resources have the same priority, the messages will be sent to the one co Expanding - + 21 110 diff --git a/kopete/protocols/jabber/ui/dlgjabberregister.cpp b/kopete/protocols/jabber/ui/dlgjabberregister.cpp index ff324085..8d1324ca 100644 --- a/kopete/protocols/jabber/ui/dlgjabberregister.cpp +++ b/kopete/protocols/jabber/ui/dlgjabberregister.cpp @@ -59,9 +59,9 @@ void dlgJabberRegister::slotGotForm () // translate the form and create it inside the box widget translator = new JabberFormTranslator (task->form (), grpForm); - static_cast(grpForm->layout())->insertWidget(1, translator); + static_cast(grpForm->tqlayout())->insertWidget(1, translator); translator->show(); - resize(sizeHint()); + resize(tqsizeHint()); // enable the send button btnRegister->setEnabled (true); diff --git a/kopete/protocols/jabber/ui/dlgjabberregister.h b/kopete/protocols/jabber/ui/dlgjabberregister.h index 8fe905ce..bc0bfe44 100644 --- a/kopete/protocols/jabber/ui/dlgjabberregister.h +++ b/kopete/protocols/jabber/ui/dlgjabberregister.h @@ -20,7 +20,7 @@ #define DLGJABBERREGISTER_H #include -#include +#include #include #include diff --git a/kopete/protocols/jabber/ui/dlgjabberregisteraccount.ui b/kopete/protocols/jabber/ui/dlgjabberregisteraccount.ui index ea3d51c0..32749c18 100644 --- a/kopete/protocols/jabber/ui/dlgjabberregisteraccount.ui +++ b/kopete/protocols/jabber/ui/dlgjabberregisteraccount.ui @@ -12,7 +12,7 @@ 376 - + 300 350 @@ -40,13 +40,13 @@ pixPasswordVerify - + 16 16 - + 32767 32767 @@ -135,13 +135,13 @@ pixJID - + 16 16 - + 32767 32767 @@ -185,13 +185,13 @@ pixServer - + 16 16 - + 32767 32767 @@ -213,13 +213,13 @@ pixPassword - + 16 16 - + 32767 32767 @@ -247,7 +247,7 @@ - layout3 + tqlayout3 @@ -257,7 +257,7 @@ lblJIDInformation - + 0 100 @@ -266,7 +266,7 @@ - + WordBreak|AlignVCenter @@ -280,7 +280,7 @@ Expanding - + 20 16 @@ -294,7 +294,7 @@ - + AlignCenter diff --git a/kopete/protocols/jabber/ui/dlgjabbersendraw.cpp b/kopete/protocols/jabber/ui/dlgjabbersendraw.cpp index 97753bb2..4b9192dc 100644 --- a/kopete/protocols/jabber/ui/dlgjabbersendraw.cpp +++ b/kopete/protocols/jabber/ui/dlgjabbersendraw.cpp @@ -20,7 +20,7 @@ #include #include -#include +#include #include #include "jabberclient.h" diff --git a/kopete/protocols/jabber/ui/dlgjabberservices.cpp b/kopete/protocols/jabber/ui/dlgjabberservices.cpp index 1bd1310c..29b2b617 100644 --- a/kopete/protocols/jabber/ui/dlgjabberservices.cpp +++ b/kopete/protocols/jabber/ui/dlgjabberservices.cpp @@ -122,7 +122,7 @@ void dlgJabberServices::slotServiceFinished () if (!task->success ()) { TQString error = task->statusString(); - KMessageBox::queuedMessageBox (this, KMessageBox::Error, i18n ("Unable to retrieve the list of services.\nReason: %1").arg(error), i18n ("Jabber Error")); + KMessageBox::queuedMessageBox (this, KMessageBox::Error, i18n ("Unable to retrieve the list of services.\nReason: %1").tqarg(error), i18n ("Jabber Error")); return; } diff --git a/kopete/protocols/jabber/ui/dlgjabbervcard.cpp b/kopete/protocols/jabber/ui/dlgjabbervcard.cpp index 425890af..2e81801d 100644 --- a/kopete/protocols/jabber/ui/dlgjabbervcard.cpp +++ b/kopete/protocols/jabber/ui/dlgjabbervcard.cpp @@ -23,7 +23,7 @@ #include "dlgjabbervcard.h" // TQt includes -#include +#include #include #include #include @@ -296,7 +296,7 @@ void dlgJabberVCard::setEnabled(bool state) void dlgJabberVCard::slotSaveVCard() { setEnabled(false); - m_mainWidget->lblStatus->setText( i18n("Saving vCard to server...") ); + m_mainWidget->lbltqStatus->setText( i18n("Saving vCard to server...") ); XMPP::VCard vCard; XMPP::VCard::AddressList addressList; @@ -418,12 +418,12 @@ void dlgJabberVCard::slotVCardSaved() if( vCard->success() ) { - m_mainWidget->lblStatus->setText( i18n("vCard save sucessful.") ); + m_mainWidget->lbltqStatus->setText( i18n("vCard save sucessful.") ); m_contact->setPropertiesFromVCard( vCard->vcard() ); } else { - m_mainWidget->lblStatus->setText( i18n("Error: Unable to save vCard.") ); + m_mainWidget->lbltqStatus->setText( i18n("Error: Unable to save vCard.") ); } setEnabled(true); @@ -431,7 +431,7 @@ void dlgJabberVCard::slotVCardSaved() void dlgJabberVCard::slotGetVCard() { - m_mainWidget->lblStatus->setText( i18n("Fetching contact vCard...") ); + m_mainWidget->lbltqStatus->setText( i18n("Fetching contact vCard...") ); setReadOnly(true); setEnabled(false); @@ -454,11 +454,11 @@ void dlgJabberVCard::slotGotVCard() assignContactProperties(); - m_mainWidget->lblStatus->setText( i18n("vCard fetching Done.") ); + m_mainWidget->lbltqStatus->setText( i18n("vCard fetching Done.") ); } else { - m_mainWidget->lblStatus->setText( i18n("Error: vCard could not be fetched correctly. Check connectivity with the Jabber server.") ); + m_mainWidget->lbltqStatus->setText( i18n("Error: vCard could not be fetched correctly. Check connectivity with the Jabber server.") ); //it is maybe possible to anyway edit our own vCard (if it is new if(m_account->myself() == m_contact) setEnabled( true ); @@ -547,7 +547,7 @@ void dlgJabberVCard::slotClearPhoto() void dlgJabberVCard::slotOpenURL(const TQString &url) { - if ( !url.isEmpty () || (url == TQString::fromLatin1("mailto:") ) ) + if ( !url.isEmpty () || (url == TQString::tqfromLatin1("mailto:") ) ) new KRun(KURL( url ) ); } diff --git a/kopete/protocols/jabber/ui/dlgregister.ui b/kopete/protocols/jabber/ui/dlgregister.ui index 8ea5d423..8a883b65 100644 --- a/kopete/protocols/jabber/ui/dlgregister.ui +++ b/kopete/protocols/jabber/ui/dlgregister.ui @@ -78,7 +78,7 @@ Expanding - + 20 0 @@ -111,7 +111,7 @@ Expanding - + 20 20 diff --git a/kopete/protocols/jabber/ui/dlgsendraw.ui b/kopete/protocols/jabber/ui/dlgsendraw.ui index eaaf5aa6..9d56f7bc 100644 --- a/kopete/protocols/jabber/ui/dlgsendraw.ui +++ b/kopete/protocols/jabber/ui/dlgsendraw.ui @@ -21,7 +21,7 @@ - layout4 + tqlayout4 @@ -42,7 +42,7 @@ Type in the packet that should be sent to the server: - lblRealStatus + lblRealtqStatus @@ -63,7 +63,7 @@ - Availability Status + Availability tqStatus @@ -102,7 +102,7 @@ - layout3 + tqlayout3 @@ -134,7 +134,7 @@ Expanding - + 16 25 diff --git a/kopete/protocols/jabber/ui/dlgservices.ui b/kopete/protocols/jabber/ui/dlgservices.ui index da690a97..fda7bf4a 100644 --- a/kopete/protocols/jabber/ui/dlgservices.ui +++ b/kopete/protocols/jabber/ui/dlgservices.ui @@ -24,7 +24,7 @@ - layout2 + tqlayout2 @@ -112,7 +112,7 @@ - layout1 + tqlayout1 @@ -128,7 +128,7 @@ Expanding - + 111 21 diff --git a/kopete/protocols/jabber/ui/dlgvcard.ui b/kopete/protocols/jabber/ui/dlgvcard.ui index 6daa3a4e..8a4aa790 100644 --- a/kopete/protocols/jabber/ui/dlgvcard.ui +++ b/kopete/protocols/jabber/ui/dlgvcard.ui @@ -33,7 +33,7 @@ - layout13 + tqlayout13 @@ -64,7 +64,7 @@ - layout12 + tqlayout12 @@ -90,7 +90,7 @@ 0 - + 0 0 @@ -159,7 +159,7 @@ - layout14 + tqlayout14 @@ -190,7 +190,7 @@ - layout11 + tqlayout11 @@ -221,7 +221,7 @@ - layout10 + tqlayout10 @@ -255,7 +255,7 @@ - layout9 + tqlayout9 @@ -294,7 +294,7 @@ Expanding - + 20 20 @@ -311,7 +311,7 @@ Expanding - + 20 20 @@ -357,13 +357,13 @@ 0 - + 96 96 - + 96 96 @@ -386,7 +386,7 @@ Expanding - + 40 20 @@ -403,7 +403,7 @@ Expanding - + 40 20 @@ -427,7 +427,7 @@ - layout36 + tqlayout36 @@ -472,7 +472,7 @@ Expanding - + 20 16 @@ -586,7 +586,7 @@ Expanding - + 20 50 @@ -625,7 +625,7 @@ - layout37 + tqlayout37 @@ -641,7 +641,7 @@ Expanding - + 20 16 @@ -720,7 +720,7 @@ Expanding - + 20 30 @@ -823,7 +823,7 @@ - layout57 + tqlayout57 @@ -849,7 +849,7 @@ Expanding - + 20 20 @@ -915,7 +915,7 @@ - layout59 + tqlayout59 @@ -931,7 +931,7 @@ Expanding - + 20 20 @@ -1015,7 +1015,7 @@ - lblStatus + lbltqStatus diff --git a/kopete/protocols/jabber/ui/jabberaddcontactpage.cpp b/kopete/protocols/jabber/ui/jabberaddcontactpage.cpp index fea94d86..076b92b8 100644 --- a/kopete/protocols/jabber/ui/jabberaddcontactpage.cpp +++ b/kopete/protocols/jabber/ui/jabberaddcontactpage.cpp @@ -20,7 +20,7 @@ #include "jabberaddcontactpage.h" -#include +#include #include #include #include diff --git a/kopete/protocols/jabber/ui/jabberchooseserver.cpp b/kopete/protocols/jabber/ui/jabberchooseserver.cpp index 63339158..95272833 100644 --- a/kopete/protocols/jabber/ui/jabberchooseserver.cpp +++ b/kopete/protocols/jabber/ui/jabberchooseserver.cpp @@ -41,7 +41,7 @@ JabberChooseServer::JabberChooseServer ( JabberRegisterAccount *parent, const ch mMainWidget = new DlgJabberChooseServer ( this ); setMainWidget ( mMainWidget ); - mMainWidget->lblStatus->setText ( i18n ( "Retrieving server list...") ); + mMainWidget->lbltqStatus->setText ( i18n ( "Retrieving server list...") ); mMainWidget->listServers->setLeftMargin ( 0 ); @@ -108,7 +108,7 @@ void JabberChooseServer::slotTransferResult ( KIO::Job *job ) if ( job->error () || mTransferJob->isErrorPage () ) { - mMainWidget->lblStatus->setText ( i18n ( "Could not retrieve server list." ) ); + mMainWidget->lbltqStatus->setText ( i18n ( "Could not retrieve server list." ) ); return; } else @@ -116,14 +116,14 @@ void JabberChooseServer::slotTransferResult ( KIO::Job *job ) kdDebug ( JABBER_DEBUG_GLOBAL ) << k_funcinfo << "Received server list ok!" << endl; // clear status message - mMainWidget->lblStatus->setText ( "" ); + mMainWidget->lbltqStatus->setText ( "" ); // parse XML list TQDomDocument doc; if ( !doc.setContent ( xmlServerList ) ) { - mMainWidget->lblStatus->setText ( i18n ( "Could not parse the server list.") ); + mMainWidget->lbltqStatus->setText ( i18n ( "Could not parse the server list.") ); return; } diff --git a/kopete/protocols/jabber/ui/jabbereditaccountwidget.cpp b/kopete/protocols/jabber/ui/jabbereditaccountwidget.cpp index b8a9c080..758322cf 100644 --- a/kopete/protocols/jabber/ui/jabbereditaccountwidget.cpp +++ b/kopete/protocols/jabber/ui/jabbereditaccountwidget.cpp @@ -88,7 +88,7 @@ void JabberEditAccountWidget::reopen () mPass->load (&account()->password ()); cbAutoConnect->setChecked (account()->excludeConnect()); - mResource->setText (account()->configGroup()->readEntry ("Resource", TQString::fromLatin1("Kopete"))); + mResource->setText (account()->configGroup()->readEntry ("Resource", TQString::tqfromLatin1("Kopete"))); mPriority->setValue (account()->configGroup()->readNumEntry ("Priority", 5)); mServer->setText (account()->configGroup()->readEntry ("Server", TQString())); diff --git a/kopete/protocols/jabber/ui/jabberregisteraccount.cpp b/kopete/protocols/jabber/ui/jabberregisteraccount.cpp index 631ec3f4..2641ed41 100644 --- a/kopete/protocols/jabber/ui/jabberregisteraccount.cpp +++ b/kopete/protocols/jabber/ui/jabberregisteraccount.cpp @@ -146,8 +146,8 @@ void JabberRegisterAccount::validateData () } if ( valid && - ( TQString::fromLatin1 ( mMainWidget->lePassword->password () ).isEmpty () || - TQString::fromLatin1 ( mMainWidget->lePasswordVerify->password () ).isEmpty () ) ) + ( TQString::tqfromLatin1 ( mMainWidget->lePassword->password () ).isEmpty () || + TQString::tqfromLatin1 ( mMainWidget->lePasswordVerify->password () ).isEmpty () ) ) { mMainWidget->lblStatusMessage->setText ( i18n ( "Please enter the same password twice." ) ); valid = false; @@ -155,8 +155,8 @@ void JabberRegisterAccount::validateData () } if ( valid && - ( TQString::fromLatin1 ( mMainWidget->lePassword->password () ) != - TQString::fromLatin1 ( mMainWidget->lePasswordVerify->password () ) ) ) + ( TQString::tqfromLatin1 ( mMainWidget->lePassword->password () ) != + TQString::tqfromLatin1 ( mMainWidget->lePasswordVerify->password () ) ) ) { mMainWidget->lblStatusMessage->setText ( i18n ( "Password entries do not match." ) ); valid = false; diff --git a/kopete/protocols/meanwhile/meanwhileaccount.cpp b/kopete/protocols/meanwhile/meanwhileaccount.cpp index 03f8e008..d0fe10bc 100644 --- a/kopete/protocols/meanwhile/meanwhileaccount.cpp +++ b/kopete/protocols/meanwhile/meanwhileaccount.cpp @@ -71,7 +71,7 @@ bool MeanwhileAccount::createContact( MeanwhileProtocol *p = static_cast(protocol()); if ((newContact != 0L) && (m_session != 0L) - && (myself()->onlineStatus() != + && (myself()->onlinetqStatus() != p->statusOffline)) m_session->addContact(newContact); @@ -109,7 +109,7 @@ void MeanwhileAccount::connectWithPassword(const TQString &password) if (!m_session->isConnected() && !m_session->isConnecting()) m_session->connect(password); - m_session->setStatus(initialStatus()); + m_session->setStatus(initialtqStatus()); } void MeanwhileAccount::disconnect() @@ -123,7 +123,7 @@ void MeanwhileAccount::disconnect(Kopete::Account::DisconnectReason reason) return; MeanwhileProtocol *p = static_cast(protocol()); - setAllContactsStatus(p->statusOffline); + setAllContactstqStatus(p->statusOffline); disconnected(reason); emit isConnectedChanged(); @@ -139,7 +139,7 @@ KActionMenu * MeanwhileAccount::actionMenu() #if 0 menu->insert(new KAction(i18n("&Change Status Message"), TQString(), 0, - this, TQT_SLOT(meanwhileChangeStatus()), this, + this, TQT_SLOT(meanwhileChangetqStatus()), this, "meanwhileChangeStatus")); //infoPlugin->addCustomMenus(theMenu); #endif @@ -219,7 +219,7 @@ void MeanwhileAccount::setOnlineStatus(const Kopete::OnlineStatus &status, const TQString &reason) { HERE; - Kopete::OnlineStatus oldstatus = myself()->onlineStatus(); + Kopete::OnlineStatus oldstatus = myself()->onlinetqStatus(); mwDebug() << "From: " << oldstatus.description() << "(" << oldstatus.internalStatus() << "):" << oldstatus.isDefinitelyOnline() @@ -256,7 +256,7 @@ void MeanwhileAccount::syncContactsToServer() void MeanwhileAccount::slotSessionStateChange(Kopete::OnlineStatus status) { HERE; - Kopete::OnlineStatus oldstatus = myself()->onlineStatus(); + Kopete::OnlineStatus oldstatus = myself()->onlinetqStatus(); myself()->setOnlineStatus(status); if (status.isDefinitelyOnline() != oldstatus.isDefinitelyOnline()) { diff --git a/kopete/protocols/meanwhile/meanwhileaddcontactpage.cpp b/kopete/protocols/meanwhile/meanwhileaddcontactpage.cpp index 909afe41..57dca0c0 100644 --- a/kopete/protocols/meanwhile/meanwhileaddcontactpage.cpp +++ b/kopete/protocols/meanwhile/meanwhileaddcontactpage.cpp @@ -16,7 +16,7 @@ */ #include "meanwhileaddcontactpage.h" #include -#include +#include #include #include #include diff --git a/kopete/protocols/meanwhile/meanwhileeditaccountwidget.cpp b/kopete/protocols/meanwhile/meanwhileeditaccountwidget.cpp index 5fcb3b1c..58c70f68 100644 --- a/kopete/protocols/meanwhile/meanwhileeditaccountwidget.cpp +++ b/kopete/protocols/meanwhile/meanwhileeditaccountwidget.cpp @@ -14,7 +14,7 @@ * * ************************************************************************* */ -#include +#include #include #include #include @@ -40,8 +40,8 @@ void MeanwhileEditAccountWidget::setupClientList() for (id = MeanwhileSession::getClientIDs(); id->name; id++, i++) { TQString name = TQString("%1 (0x%2)") - .arg(TQString(id->name)) - .arg(id->id, 0, 16); + .tqarg(TQString(id->name)) + .tqarg(id->id, 0, 16); mClientID->insertItem(name, i); diff --git a/kopete/protocols/meanwhile/meanwhileprotocol.cpp b/kopete/protocols/meanwhile/meanwhileprotocol.cpp index 5f443f36..3347f6da 100644 --- a/kopete/protocols/meanwhile/meanwhileprotocol.cpp +++ b/kopete/protocols/meanwhile/meanwhileprotocol.cpp @@ -59,7 +59,7 @@ MeanwhileProtocol::MeanwhileProtocol(TQObject* parent, const char *name, statusAccountOffline(Kopete::OnlineStatus::Offline, 0, this, 0, TQString(), i18n("Account Offline")), - statusMessage(TQString::fromLatin1("statusMessage"), + statusMessage(TQString::tqfromLatin1("statusMessage"), i18n("Status Message"), TQString(), false, true), awayMessage(Kopete::Global::Properties::self()->awayMessage()) @@ -113,14 +113,14 @@ Kopete::Contact *MeanwhileProtocol::deserializeContact( return theAccount->contacts()[contactId]; } -const Kopete::OnlineStatus MeanwhileProtocol::accountOfflineStatus() +const Kopete::OnlineStatus MeanwhileProtocol::accountOfflinetqStatus() { return statusAccountOffline; } -const Kopete::OnlineStatus MeanwhileProtocol::lookupStatus( +const Kopete::OnlineStatus MeanwhileProtocol::lookuptqStatus( enum Kopete::OnlineStatusManager::Categories cats) { - return Kopete::OnlineStatusManager::self()->onlineStatus(this, cats); + return Kopete::OnlineStatusManager::self()->onlinetqStatus(this, cats); } #include "meanwhileprotocol.moc" diff --git a/kopete/protocols/meanwhile/meanwhileprotocol.h b/kopete/protocols/meanwhile/meanwhileprotocol.h index 9b550c9e..dab52878 100644 --- a/kopete/protocols/meanwhile/meanwhileprotocol.h +++ b/kopete/protocols/meanwhile/meanwhileprotocol.h @@ -58,9 +58,9 @@ public: const TQMap &serializedData, const TQMap &addressBookData); - const Kopete::OnlineStatus accountOfflineStatus(); + const Kopete::OnlineStatus accountOfflinetqStatus(); - const Kopete::OnlineStatus lookupStatus( + const Kopete::OnlineStatus lookuptqStatus( enum Kopete::OnlineStatusManager::Categories cats); const Kopete::OnlineStatus statusOffline; diff --git a/kopete/protocols/meanwhile/ui/meanwhileaddcontactbase.ui b/kopete/protocols/meanwhile/ui/meanwhileaddcontactbase.ui index 170f5b90..6920d7e3 100644 --- a/kopete/protocols/meanwhile/ui/meanwhileaddcontactbase.ui +++ b/kopete/protocols/meanwhile/ui/meanwhileaddcontactbase.ui @@ -27,7 +27,7 @@ - layout53 + tqlayout53 @@ -84,7 +84,7 @@ <i>(for example: johndoe)</i> - + AlignVCenter|AlignRight @@ -98,7 +98,7 @@ Expanding - + 20 80 diff --git a/kopete/protocols/meanwhile/ui/meanwhileeditaccountbase.ui b/kopete/protocols/meanwhile/ui/meanwhileeditaccountbase.ui index 914d1533..5f85cac2 100644 --- a/kopete/protocols/meanwhile/ui/meanwhileeditaccountbase.ui +++ b/kopete/protocols/meanwhile/ui/meanwhileeditaccountbase.ui @@ -47,7 +47,7 @@ - layout81 + tqlayout81 @@ -127,7 +127,7 @@ - layout21 + tqlayout21 @@ -135,7 +135,7 @@ - layout56 + tqlayout56 @@ -173,7 +173,7 @@ - layout57 + tqlayout57 @@ -241,7 +241,7 @@ - layout17 + tqlayout17 @@ -271,7 +271,7 @@ - layout13 + tqlayout13 @@ -298,7 +298,7 @@ . - + AlignCenter @@ -357,7 +357,7 @@ Expanding - + 20 31 diff --git a/kopete/protocols/msn/config/msnprefs.ui b/kopete/protocols/msn/config/msnprefs.ui index 13817584..701d564d 100644 --- a/kopete/protocols/msn/config/msnprefs.ui +++ b/kopete/protocols/msn/config/msnprefs.ui @@ -137,7 +137,7 @@ - layout18 + tqlayout18 @@ -182,7 +182,7 @@ Expanding - + 21 70 diff --git a/kopete/protocols/msn/dispatcher.cpp b/kopete/protocols/msn/dispatcher.cpp index 8576748e..34aa7425 100644 --- a/kopete/protocols/msn/dispatcher.cpp +++ b/kopete/protocols/msn/dispatcher.cpp @@ -40,8 +40,8 @@ using P2P::OutgoingTransfer; #include #include #include -#include -#include +#include +#include // Kopete includes #include // Just for getting the contact @@ -140,14 +140,14 @@ void Dispatcher::sendFile(const TQString& path, TQ_INT64 fileSize, const TQStrin // Write the file name in utf-16 to the stream. TQTextStream ts(header, IO_WriteOnly); ts.setEncoding(TQTextStream::RawUnicode); - ts.device()->at(20); + ts.tqdevice()->tqat(20); ts << path.section('/', -1); // NOTE Background Sharing base64 [540..569] // TODO add support for background sharing. // Write file exchange type to the stream. // NOTE File - 0xFFFFFFFF // NOTE Background Sharing - 0xFFFFFFFE - writer.device()->at(570); + writer.tqdevice()->tqat(570); writer << (TQ_UINT32)0xFFFFFFFF; // Encode the file context header to base64 encoding. @@ -250,7 +250,7 @@ void Dispatcher::slotReadMessage(const TQString &from, const TQByteArray& stream if(m_messageBuffer.contains(receivedMessage.header.identifier)) { kdDebug(14140) << k_funcinfo - << TQString("retrieving buffered messsage, %1").arg(receivedMessage.header.identifier) + << TQString("retrieving buffered messsage, %1").tqarg(receivedMessage.header.identifier) << endl; // The message was split, try to reconstruct the message @@ -347,7 +347,7 @@ void Dispatcher::dispatch(const P2P::Message& message) // The entire message has not been received; // buffer the recevied portion of the original message. kdDebug(14140) << k_funcinfo - << TQString("Buffering messsage, %1").arg(message.header.identifier) + << TQString("Buffering messsage, %1").tqarg(message.header.identifier) << endl; m_messageBuffer.insert(message.header.identifier, message); return; @@ -427,7 +427,7 @@ void Dispatcher::dispatch(const P2P::Message& message) current->m_ackSessionIdentifier = message.header.identifier; current->m_ackUniqueIdentifier = message.header.ackSessionIdentifier; // Send a 200 OK message to the recipient. - TQString content = TQString("SessionID: %1\r\n\r\n").arg(sessionId); + TQString content = TQString("SessionID: %1\r\n\r\n").tqarg(sessionId); current->sendMessage(OK, content); } else if(applicationId == 2) @@ -457,7 +457,7 @@ void Dispatcher::dispatch(const P2P::Message& message) reader.setByteOrder(TQDataStream::LittleEndian); //Retrieve the file info from the context field. // File Size [8..15] Int64 - reader.device()->at(8); + reader.tqdevice()->tqat(8); TQ_INT64 fileSize; reader >> fileSize; // Flag [15..18] Int32 @@ -478,7 +478,7 @@ void Dispatcher::dispatch(const P2P::Message& message) emit incomingTransfer(from, fileName, fileSize); kdDebug(14140) << - TQString("%1, %2 bytes.").arg(fileName, TQString::number(fileSize)) + TQString("%1, %2 bytes.").tqarg(fileName, TQString::number(fileSize)) << endl << endl; diff --git a/kopete/protocols/msn/incomingtransfer.cpp b/kopete/protocols/msn/incomingtransfer.cpp index dd616a1b..b7b90296 100644 --- a/kopete/protocols/msn/incomingtransfer.cpp +++ b/kopete/protocols/msn/incomingtransfer.cpp @@ -68,7 +68,7 @@ void IncomingTransfer::slotTransferAccepted(Kopete::Transfer* transfer, const TQ TQObject::connect(transfer , TQT_SIGNAL(transferCanceled()), this, TQT_SLOT(abort())); m_transfer = transfer; - TQString content = TQString("SessionID: %1\r\n\r\n").arg(sessionId); + TQString content = TQString("SessionID: %1\r\n\r\n").tqarg(sessionId); sendMessage(OK, content); TQObject::disconnect(Kopete::TransferManager::transferManager(), 0l, this, 0l); @@ -80,7 +80,7 @@ void IncomingTransfer::slotTransferRefused(const Kopete::FileTransferInfo& info) if(sessionId!=m_sessionId) return; - TQString content = TQString("SessionID: %1\r\n\r\n").arg(sessionId); + TQString content = TQString("SessionID: %1\r\n\r\n").tqarg(sessionId); // Send the sending client a cancelation message. sendMessage(DECLINE, content); m_state=Finished; @@ -141,7 +141,7 @@ void IncomingTransfer::processMessage(const Message& message) { // UserDisplayIcon data or File data is in this message. // Write the recieved data to the file. - kdDebug(14140) << k_funcinfo << TQString("Received, %1 bytes").arg(message.header.dataSize) << endl; + kdDebug(14140) << k_funcinfo << TQString("Received, %1 bytes").tqarg(message.header.dataSize) << endl; m_file->writeBlock(message.body.data(), message.header.dataSize); if(m_transfer){ @@ -254,9 +254,9 @@ void IncomingTransfer::processMessage(const Message& message) content = "Bridge: TCPv1\r\n" "Listening: true\r\n" + - TQString("Hashed-Nonce: {%1}\r\n").arg(P2P::Uid::createUid()) + - TQString("IPv4Internal-Addrs: %1\r\n").arg(m_listener->localAddress().nodeName()) + - TQString("IPv4Internal-Port: %1\r\n").arg(m_listener->localAddress().serviceName()) + + TQString("Hashed-Nonce: {%1}\r\n").tqarg(P2P::Uid::createUid()) + + TQString("IPv4Internal-Addrs: %1\r\n").tqarg(m_listener->localAddress().nodeName()) + + TQString("IPv4Internal-Port: %1\r\n").tqarg(m_listener->localAddress().serviceName()) + "\r\n"; } else diff --git a/kopete/protocols/msn/messageformatter.cpp b/kopete/protocols/msn/messageformatter.cpp index 0ca71789..40bd8877 100644 --- a/kopete/protocols/msn/messageformatter.cpp +++ b/kopete/protocols/msn/messageformatter.cpp @@ -75,7 +75,7 @@ Message MessageFormatter::readMessage(const TQByteArray& stream, bool compact) reader.setByteOrder(TQDataStream::LittleEndian); // Seek to the start position of the message // transport header. - reader.device()->at(index); + reader.tqdevice()->tqat(index); // Read the message transport headers from the stream. reader >> inbound.header.sessionId; diff --git a/kopete/protocols/msn/msnaccount.cpp b/kopete/protocols/msn/msnaccount.cpp index 6c4aa9cc..fbf43221 100644 --- a/kopete/protocols/msn/msnaccount.cpp +++ b/kopete/protocols/msn/msnaccount.cpp @@ -231,7 +231,7 @@ void MSNAccount::createNotificationServer( const TQString &host, uint port ) TQObject::connect( m_notifySocket, TQT_SIGNAL( errorMessage(int, const TQString& ) ), TQT_SLOT( slotErrorMessageReceived(int, const TQString& ) ) ); - m_notifySocket->setStatus( m_connectstatus ); + m_notifySocket->settqStatus( m_connectstatus ); m_notifySocket->connect(host, port); } @@ -314,7 +314,7 @@ void MSNAccount::setOnlineStatus( const Kopete::OnlineStatus &status , const TQS disconnect(); else if ( m_notifySocket ) { - m_notifySocket->setStatus( status ); + m_notifySocket->settqStatus( status ); } else { @@ -409,7 +409,7 @@ void MSNAccount::slotNotifySocketClosed() m_notifySocket->deleteLater(); m_notifySocket = 0l; myself()->setOnlineStatus( MSNProtocol::protocol()->FLN ); - setAllContactsStatus( MSNProtocol::protocol()->FLN ); + setAllContactstqStatus( MSNProtocol::protocol()->FLN ); disconnected(reason); @@ -951,7 +951,7 @@ void MSNAccount::slotContactAdded( const TQString& handle, const TQString& list, if( !c->hasProperty(MSNProtocol::protocol()->propGuid.key()) ) c->setProperty( MSNProtocol::protocol()->propGuid, contactGuid ); - if ( c->onlineStatus() == MSNProtocol::protocol()->UNK ) + if ( c->onlinetqStatus() == MSNProtocol::protocol()->UNK ) c->setOnlineStatus( MSNProtocol::protocol()->FLN ); if ( c->metaContact() && c->metaContact()->isTemporary() ) @@ -1189,7 +1189,7 @@ void MSNAccount::slotCreateChat( const TQString& ID, const TQString& address, co if ( !ID.isEmpty() && notifyNewChat ) { // this temporary message should open the window if they not exist - TQString body = i18n( "%1 has started a chat with you" ).arg( c->metaContact()->displayName() ); + TQString body = i18n( "%1 has started a chat with you" ).tqarg( c->metaContact()->displayName() ); Kopete::Message tmpMsg = Kopete::Message( c, manager->members(), body, Kopete::Message::Internal, Kopete::Message::PlainText ); manager->appendMessage( tmpMsg ); } @@ -1488,7 +1488,7 @@ void MSNAccount::resetPictureObject(bool silent, bool force) if(old!=m_pictureObj && isConnected() && m_notifySocket && !silent) { //update the msn pict - m_notifySocket->setStatus( myself()->onlineStatus() ); + m_notifySocket->settqStatus( myself()->onlinetqStatus() ); } } diff --git a/kopete/protocols/msn/msnaddcontactpage.cpp b/kopete/protocols/msn/msnaddcontactpage.cpp index a33ab93c..8bdf77a1 100644 --- a/kopete/protocols/msn/msnaddcontactpage.cpp +++ b/kopete/protocols/msn/msnaddcontactpage.cpp @@ -13,7 +13,7 @@ */ -#include +#include #include #include diff --git a/kopete/protocols/msn/msnchatsession.cpp b/kopete/protocols/msn/msnchatsession.cpp index 6709f0f1..2b7fe8bb 100644 --- a/kopete/protocols/msn/msnchatsession.cpp +++ b/kopete/protocols/msn/msnchatsession.cpp @@ -408,7 +408,7 @@ void MSNChatSession::slotAcknowledgement(unsigned int id, bool ack) if ( !ack ) { Kopete::Message m = m_messagesSent[ id ]; - TQString body = i18n( "The following message has not been sent correctly:\n%1" ).arg( m.plainBody() ); + TQString body = i18n( "The following message has not been sent correctly:\n%1" ).tqarg( m.plainBody() ); Kopete::Message msg = Kopete::Message( m.to().first(), members(), body, Kopete::Message::Internal, Kopete::Message::PlainText ); appendMessage( msg ); //stop the stupid animation @@ -467,7 +467,7 @@ void MSNChatSession::slotInvitation(const TQString &handle, const TQString &msg) TQString body = i18n( "%1 has sent an unimplemented invitation, the invitation was rejected.\n" "The invitation was: %2" ) - .arg( c->property( Kopete::Global::Properties::self()->nickName()).value().toString(), inviteName ); + .tqarg( c->property( Kopete::Global::Properties::self()->nickName()).value().toString(), inviteName ); Kopete::Message tmpMsg = Kopete::Message( c , members() , body , Kopete::Message::Internal, Kopete::Message::PlainText); appendMessage(tmpMsg); @@ -527,7 +527,7 @@ void MSNChatSession::slotRequestPicture() if( !c->object().isEmpty() ) m_chatService->requestDisplayPicture(); } - else if(myself()->onlineStatus().isDefinitelyOnline() && myself()->onlineStatus().status() != Kopete::OnlineStatus::Invisible ) + else if(myself()->onlinetqStatus().isDefinitelyOnline() && myself()->onlinetqStatus().status() != Kopete::OnlineStatus::Invisible ) startChatSession(); } else @@ -548,7 +548,7 @@ void MSNChatSession::slotDisplayPictureChanged() int sz=22; // get the size of the toolbar were the aciton is plugged. // if you know a better way to get the toolbar, let me know - KMainWindow *w= view(false) ? dynamic_cast( view(false)->mainWidget()->topLevelWidget() ) : 0L; + KMainWindow *w= view(false) ? dynamic_cast( view(false)->mainWidget()->tqtopLevelWidget() ) : 0L; if(w) { //We connected that in the constructor. we don't need to keep this slot active. @@ -621,7 +621,7 @@ void MSNChatSession::receivedTypingMsg( const TQString &contactId, bool b ) if ( notifyNewChat ) { // this internal message should open the window if they not exist - TQString body = i18n( "%1 has started a chat with you" ).arg( c->metaContact()->displayName() ); + TQString body = i18n( "%1 has started a chat with you" ).tqarg( c->metaContact()->displayName() ); Kopete::Message tmpMsg = Kopete::Message( c, members(), body, Kopete::Message::Internal, Kopete::Message::PlainText ); appendMessage( tmpMsg ); } @@ -715,14 +715,14 @@ void MSNChatSession::cleanMessageQueue( const TQString & reason ) else m=m_messagesSent.begin().data(); - TQString body=i18n("The following message has not been sent correctly (%1): \n%2").arg(reason, m.plainBody()); + TQString body=i18n("The following message has not been sent correctly (%1): \n%2").tqarg(reason, m.plainBody()); Kopete::Message msg = Kopete::Message(m.to().first() , members() , body , Kopete::Message::Internal, Kopete::Message::PlainText); appendMessage(msg); } else { Kopete::Message m; - TQString body=i18n("These messages have not been sent correctly (%1):
    ").arg(reason); + TQString body=i18n("These messages have not been sent correctly (%1):
      ").tqarg(reason); for ( TQMap::iterator it = m_messagesSent.begin(); it!=m_messagesSent.end(); it = m_messagesSent.begin() ) { m=it.data(); diff --git a/kopete/protocols/msn/msncontact.cpp b/kopete/protocols/msn/msncontact.cpp index 700bf213..304029bf 100644 --- a/kopete/protocols/msn/msncontact.cpp +++ b/kopete/protocols/msn/msncontact.cpp @@ -89,7 +89,7 @@ MSNContact::~MSNContact() bool MSNContact::isReachable() { - if ( account()->isConnected() && isOnline() && account()->myself()->onlineStatus() != MSNProtocol::protocol()->HDN ) + if ( account()->isConnected() && isOnline() && account()->myself()->onlinetqStatus() != MSNProtocol::protocol()->HDN ) return true; MSNChatSession *kmm=dynamic_cast(manager(Kopete::Contact::CannotCreate)); @@ -98,13 +98,13 @@ bool MSNContact::isReachable() // When we are invisible we can't start a chat with others, make isReachable return false // (This is an MSN limitation, not a problem in Kopete) - if ( !account()->isConnected() || account()->myself()->onlineStatus() == MSNProtocol::protocol()->HDN ) + if ( !account()->isConnected() || account()->myself()->onlinetqStatus() == MSNProtocol::protocol()->HDN ) return false; //if the contact is offline, it is impossible to send it a message. but it is impossible //to be sure the contact is realy offline. For example, if the contact is not on the contactlist for //some reason. - if( onlineStatus() == MSNProtocol::protocol()->FLN && ( isAllowed() || isBlocked() ) && !serverGroups().isEmpty() ) + if( onlinetqStatus() == MSNProtocol::protocol()->FLN && ( isAllowed() || isBlocked() ) && !serverGroups().isEmpty() ) return false; return true; @@ -264,8 +264,8 @@ void MSNContact::setBlocked( bool blocked ) { m_blocked = blocked; //update the status - setOnlineStatus(m_currentStatus); - //m_currentStatus is used here. previously it was onlineStatus() but this may cause problem when + setOnlineStatus(m_currenttqStatus); + //m_currenttqStatus is used here. previously it was onlinetqStatus() but this may cause problem when // the account is offline because of the Kopete::Contact::OnlineStatus() account offline hack. } } @@ -577,7 +577,7 @@ void MSNContact::rename( const TQString &newName ) void MSNContact::slotShowProfile() { - KRun::runURL( KURL( TQString::fromLatin1("http://members.msn.com/?pgmarket=it-it&mem=") + contactId()) , "text/html" ); + KRun::runURL( KURL( TQString::tqfromLatin1("http://members.msn.com/?pgmarket=it-it&mem=") + contactId()) , "text/html" ); } @@ -615,7 +615,7 @@ void MSNContact::setOnlineStatus(const Kopete::OnlineStatus& status) protocol() , status.internalStatus()+15 , status.overlayIcons() + TQStringList("msn_blocked") , - i18n("%1|Blocked").arg( status.description() ) ) ); + i18n("%1|Blocked").tqarg( status.description() ) ) ); } else if(!isBlocked() && status.internalStatus() >= 15) { //the user is not blocked, but the status is blocked @@ -655,7 +655,7 @@ void MSNContact::setOnlineStatus(const Kopete::OnlineStatus& status) } else Kopete::Contact::setOnlineStatus(status); - m_currentStatus=status; + m_currenttqStatus=status; } void MSNContact::slotSendMail() @@ -703,7 +703,7 @@ void MSNContact::setObject(const TQString &obj) KConfig *config = KGlobal::config(); config->setGroup( "MSN" ); if ( config->readNumEntry( "DownloadPicture", 2 ) >= 2 && !obj.isEmpty() - && account()->myself()->onlineStatus().status() != Kopete::OnlineStatus::Invisible ) + && account()->myself()->onlinetqStatus().status() != Kopete::OnlineStatus::Invisible ) manager(Kopete::Contact::CanCreate); //create the manager which will download the photo automatically. } diff --git a/kopete/protocols/msn/msncontact.h b/kopete/protocols/msn/msncontact.h index 42667682..97039fed 100644 --- a/kopete/protocols/msn/msncontact.h +++ b/kopete/protocols/msn/msncontact.h @@ -185,10 +185,10 @@ private: TQString m_obj; //the MSNObject /** - * keep the current status here. (it's normally already in Kopete::Contact::d->onlineStatus) + * keep the current status here. (it's normally already in Kopete::Contact::d->onlinetqStatus) * This is a workaround to prevent problems with the account offline status. */ - Kopete::OnlineStatus m_currentStatus; + Kopete::OnlineStatus m_currenttqStatus; //MSNProtocol::deserializeContact need to acess some contact insternals friend class MSNProtocol; diff --git a/kopete/protocols/msn/msnfiletransfersocket.cpp b/kopete/protocols/msn/msnfiletransfersocket.cpp index 157209e9..72b5f1f8 100644 --- a/kopete/protocols/msn/msnfiletransfersocket.cpp +++ b/kopete/protocols/msn/msnfiletransfersocket.cpp @@ -217,7 +217,7 @@ void MSNFileTransferSocket::slotAcceptConnection() void MSNFileTransferSocket::slotTimer() { - if(onlineStatus() != Disconnected) + if(onlinetqStatus() != Disconnected) return; kdDebug(14140) << "MSNFileTransferSocket::slotTimer: timeout "<< endl; if( m_kopeteTransfer) diff --git a/kopete/protocols/msn/msnnotifysocket.cpp b/kopete/protocols/msn/msnnotifysocket.cpp index b9dbb921..93dc2f0e 100644 --- a/kopete/protocols/msn/msnnotifysocket.cpp +++ b/kopete/protocols/msn/msnnotifysocket.cpp @@ -90,14 +90,14 @@ void MSNNotifySocket::disconnect() m_isLogged = false; if( m_disconnectReason==Kopete::Account::Unknown ) m_disconnectReason=Kopete::Account::Manual; - if( onlineStatus() == Connected ) + if( onlinetqStatus() == Connected ) sendCommand( "OUT", TQString(), false ); if( m_keepaliveTimer ) m_keepaliveTimer->stop(); // the socket is not connected yet, so I should force the signals - if ( onlineStatus() == Disconnected || onlineStatus() == Connecting ) + if ( onlinetqStatus() == Disconnected || onlinetqStatus() == Connecting ) emit socketClosed(); else MSNSocket::disconnect(); @@ -122,7 +122,7 @@ void MSNNotifySocket::handleError( uint code, uint id ) case 205: case 208: { - msg = i18n( "The MSN user '%1' does not exist.
      Please check the MSN ID.
      " ).arg( handle ); + msg = i18n( "The MSN user '%1' does not exist.
      Please check the MSN ID.
      " ).tqarg( handle ); type = MSNSocket::ErrorServerError; break; } @@ -134,7 +134,7 @@ void MSNNotifySocket::handleError( uint code, uint id ) "MSN Error: %1
      " "please send us a detailed bug report " "at kopete-devel@kde.org containing the raw debug output on the " - "console (in gzipped format, as it is probably a lot of output.)" ).arg(code); + "console (in gzipped format, as it is probably a lot of output.)" ).tqarg(code); type = MSNSocket::ErrorServerError; break; } @@ -166,7 +166,7 @@ void MSNNotifySocket::handleError( uint code, uint id ) msg = i18n( "The user '%1' already exists in this group on the MSN server;
      " "if Kopete does not show the user, please send us a detailed bug report " "at kopete-devel@kde.org containing the raw debug output on the " - "console (in gzipped format, as it is probably a lot of output.)
      " ).arg(handle); + "console (in gzipped format, as it is probably a lot of output.)" ).tqarg(handle); type = MSNSocket::ErrorInformation; break; } @@ -180,7 +180,7 @@ void MSNNotifySocket::handleError( uint code, uint id ) } case 219: { - msg = i18n( "The user '%1' seems to already be blocked or allowed on the server." ).arg(handle); + msg = i18n( "The user '%1' seems to already be blocked or allowed on the server." ).tqarg(handle); type = MSNSocket::ErrorServerError; break; } @@ -563,7 +563,7 @@ void MSNNotifySocket::parseCommand( const TQString &cmd, uint id, const TQString kdDebug(14140) << k_funcinfo << "Contact list up-to-date." << endl; // set the status - setStatus( m_newstatus ); + settqStatus( m_newstatus ); } else if( cmd == "BPR" ) { @@ -641,7 +641,7 @@ void MSNNotifySocket::parseCommand( const TQString &cmd, uint id, const TQString "\n" "\n" "\n" - "\n" + "\n" "\n" "\n" "\n\n"; @@ -775,7 +775,7 @@ void MSNNotifySocket::slotReadMessage( const TQByteArray &bytes ) mailCount++; //TODO: it is also possible to get the subject (but warning about the encoding) - TQObject::connect(KNotification::event( "msn_mail",i18n( "You have one new email from %1 in your MSN inbox." ).arg(m), + TQObject::connect(KNotification::event( "msn_mail",i18n( "You have one new email from %1 in your MSN inbox." ).tqarg(m), 0 , 0 , i18n( "Open Inbox..." ) ), TQT_SIGNAL(activated(unsigned int ) ) , this, TQT_SLOT( slotOpenInbox() ) ); } @@ -909,7 +909,7 @@ void MSNNotifySocket::slotReadMessage( const TQByteArray &bytes ) m_msnAlertURLs.append(subscString); // Don't do any MSN alerts notification for new blog updates - if( subscString != TQString::fromLatin1("s.htm") && actionString != TQString::fromLatin1("a.htm") ) + if( subscString != TQString::tqfromLatin1("s.htm") && actionString != TQString::tqfromLatin1("a.htm") ) { KNotification* notification = KNotification::event("msn_alert", textString, 0L, 0L, actions); TQObject::connect(notification, TQT_SIGNAL(activated(unsigned int)), this, TQT_SLOT(slotMSNAlertLink(unsigned int))); @@ -1008,13 +1008,13 @@ TQString MSNNotifySocket::processCurrentMedia( const TQString &mediaXmlElement ) currentMedia = format; for(uint i=0; imyselfClientId() + " " + escape(m_account->pictureObject()) ); @@ -1185,17 +1185,17 @@ void MSNNotifySocket::changePersonalMessage( MSNProtocol::PersonalMessageType ty if( !mediaList[0].isEmpty() ) // Current Track { xmlCurrentMedia += "{0}"; - formatterArguments += TQString("%1\\0").arg(mediaList[0]); + formatterArguments += TQString("%1\\0").tqarg(mediaList[0]); } if( !mediaList[1].isEmpty() ) // Current Artist { xmlCurrentMedia += " - {1}"; - formatterArguments += TQString("%1\\0").arg(mediaList[1]); + formatterArguments += TQString("%1\\0").tqarg(mediaList[1]); } if( !mediaList[2].isEmpty() ) // Current Album { xmlCurrentMedia += " ({2})"; - formatterArguments += TQString("%1\\0").arg(mediaList[2]); + formatterArguments += TQString("%1\\0").tqarg(mediaList[2]); } xmlCurrentMedia += "\\0" + formatterArguments + "\\0"; break; diff --git a/kopete/protocols/msn/msnnotifysocket.h b/kopete/protocols/msn/msnnotifysocket.h index ccec2e89..805e427c 100644 --- a/kopete/protocols/msn/msnnotifysocket.h +++ b/kopete/protocols/msn/msnnotifysocket.h @@ -50,7 +50,7 @@ public: virtual void disconnect(); - void setStatus( const Kopete::OnlineStatus &status ); + void settqStatus( const Kopete::OnlineStatus &status ); void addContact( const TQString &handle, int list, const TQString& publicName, const TQString& contactGuid, const TQString& groupGuid ); void removeContact( const TQString &handle, int list, const TQString &contactGuid, const TQString &groupGuid ); @@ -86,7 +86,7 @@ public slots: signals: void newContactList(); void contactList(const TQString& handle, const TQString& publicName, const TQString &contactGuid, uint lists, const TQString& groups); - void contactStatus(const TQString&, const TQString&, const TQString& ); + void contacttqStatus(const TQString&, const TQString&, const TQString& ); void contactAdded(const TQString& handle, const TQString& list, const TQString& publicName, const TQString& contactGuid, const TQString& groupGuid); //void contactRemoved(const TQString&, const TQString&, uint); void contactRemoved(const TQString& handle, const TQString& list, const TQString& contactGuid, const TQString& groupGuid); @@ -99,7 +99,7 @@ signals: void invitedToChat(const TQString&, const TQString&, const TQString&, const TQString&, const TQString& ); void startChat( const TQString&, const TQString& ); - void statusChanged( const Kopete::OnlineStatus &newStatus ); + void statusChanged( const Kopete::OnlineStatus &newtqStatus ); void hotmailSeted(bool) ; @@ -165,7 +165,7 @@ private: Kopete::OnlineStatus m_newstatus; /** - * Convert an entry of the Status enum back to a string + * Convert an entry of the tqStatus enum back to a string */ TQString statusToString( const Kopete::OnlineStatus &status ) const; diff --git a/kopete/protocols/msn/msnprotocol.cpp b/kopete/protocols/msn/msnprotocol.cpp index b7eaf57b..a3ab2532 100644 --- a/kopete/protocols/msn/msnprotocol.cpp +++ b/kopete/protocols/msn/msnprotocol.cpp @@ -74,7 +74,7 @@ MSNProtocol::MSNProtocol( TQObject *parent, const char *name, const TQStringList setCapabilities( Kopete::Protocol::BaseFgColor | Kopete::Protocol::BaseFont | Kopete::Protocol::BaseFormatting ); - // m_status = m_unknownStatus = UNK; + // m_status = m_unknowntqStatus = UNK; } Kopete::Contact *MSNProtocol::deserializeContact( Kopete::MetaContact *metaContact, const TQMap &serializedData, diff --git a/kopete/protocols/msn/msnsocket.cpp b/kopete/protocols/msn/msnsocket.cpp index e098e27b..f238a507 100644 --- a/kopete/protocols/msn/msnsocket.cpp +++ b/kopete/protocols/msn/msnsocket.cpp @@ -56,7 +56,7 @@ class MimeMessage MSNSocket::MSNSocket(TQObject* parent) : TQObject (parent) { - m_onlineStatus = Disconnected; + m_onlinetqStatus = Disconnected; m_socket = 0L; m_useHttp = false; m_timer = 0L; @@ -64,7 +64,7 @@ MSNSocket::MSNSocket(TQObject* parent) : TQObject (parent) MSNSocket::~MSNSocket() { - //if ( m_onlineStatus != Disconnected ) + //if ( m_onlinetqStatus != Disconnected ) // disconnect(); delete m_timer; m_timer = 0L; @@ -75,13 +75,13 @@ MSNSocket::~MSNSocket() void MSNSocket::connect( const TQString &server, uint port ) { - if ( m_onlineStatus == Connected || m_onlineStatus == Connecting ) + if ( m_onlinetqStatus == Connected || m_onlinetqStatus == Connecting ) { kdWarning( 14140 ) << k_funcinfo << "Already connected or connecting! Not connecting again." << endl; return; } - if( m_onlineStatus == Disconnecting ) + if( m_onlinetqStatus == Disconnecting ) { // Cleanup first. // FIXME: More generic!!! @@ -166,10 +166,10 @@ void MSNSocket::doneDisconnect() void MSNSocket::setOnlineStatus( MSNSocket::OnlineStatus status ) { - if ( m_onlineStatus == status ) + if ( m_onlinetqStatus == status ) return; - m_onlineStatus = status; + m_onlinetqStatus = status; emit onlineStatusChanged( status ); } @@ -183,7 +183,7 @@ void MSNSocket::slotSocketError( int error ) TQString errormsg = i18n( "There was an error while connecting to the MSN server.\nError message:\n" ); if ( error == KSocketBase::LookupFailure ) - errormsg += i18n( "Unable to lookup %1" ).arg( m_socket->peerResolver().nodeName() ); + errormsg += i18n( "Unable to lookup %1" ).tqarg( m_socket->peerResolver().nodeName() ); else errormsg += m_socket->KSocketBase::errorString() ; @@ -594,7 +594,7 @@ void MSNSocket::handleError( uint code, uint /* id */ ) default: // FIXME: if the error causes a disconnect, it will crash, but we can't disconnect every time msg = i18n( "Unhandled MSN error code %1 \n" - "Please fill a bug report with a detailed description and if possible the last console debug output." ).arg( code ); + "Please fill a bug report with a detailed description and if possible the last console debug output." ).tqarg( code ); // "See http://www.hypothetic.org/docs/msn/basics.php for a description of all error codes." break; } @@ -762,7 +762,7 @@ TQString MSNSocket::escape( const TQString &str ) for ( int i = 0; i < old_length; i++ ) { - unsigned short character = str[i].unicode(); + unsigned short character = str[i].tqunicode(); if( character <= 32 || character == '%' ) { @@ -823,7 +823,7 @@ void MSNSocket::slotSocketClosed() { kdDebug( 14140 ) << k_funcinfo << "Socket closed. " << endl; - if ( !m_socket || m_onlineStatus == Disconnected ) + if ( !m_socket || m_onlinetqStatus == Disconnected ) { kdDebug( 14140 ) << k_funcinfo << "Socket already deleted or already disconnected" << endl; return; @@ -897,7 +897,7 @@ bool MSNSocket::setUseHttpMethod( bool useHttp ) m_gateway = "gateway.messenger.hotmail.com"; } - if ( m_onlineStatus != Disconnected ) + if ( m_onlinetqStatus != Disconnected ) disconnect(); m_useHttp = useHttp; diff --git a/kopete/protocols/msn/msnsocket.h b/kopete/protocols/msn/msnsocket.h index aa5a5922..e4238a59 100644 --- a/kopete/protocols/msn/msnsocket.h +++ b/kopete/protocols/msn/msnsocket.h @@ -76,11 +76,11 @@ public: * handshake likely has to follow first. */ enum OnlineStatus { Connecting, Connected, Disconnecting, Disconnected }; - enum LookupStatus { Processing, Success, Failed }; + enum LookuptqStatus { Processing, Success, Failed }; enum Transport { TcpTransport, HttpTransport }; enum ErrorType { ErrorConnectionLost, ErrorConnectionError, ErrorCannotConnect, ErrorServerError, ErrorInformation}; - OnlineStatus onlineStatus() { return m_onlineStatus; } + OnlineStatus onlinetqStatus() { return m_onlinetqStatus; } /* * return the local ip. @@ -279,7 +279,7 @@ private: void parseLine( const TQString &str ); KNetwork::KBufferedSocket *m_socket; - OnlineStatus m_onlineStatus; + OnlineStatus m_onlinetqStatus; TQString m_server; uint m_port; diff --git a/kopete/protocols/msn/msnswitchboardsocket.cpp b/kopete/protocols/msn/msnswitchboardsocket.cpp index 3b5fafd4..319df782 100644 --- a/kopete/protocols/msn/msnswitchboardsocket.cpp +++ b/kopete/protocols/msn/msnswitchboardsocket.cpp @@ -26,7 +26,7 @@ #include // qt -#include +#include #include #include #include @@ -128,7 +128,7 @@ void MSNSwitchBoardSocket::handleError( uint code, uint id ) } case 215: { - msg = i18n( "The user %1 is already in this chat." ).arg( m_msgHandle ); + msg = i18n( "The user %1 is already in this chat." ).tqarg( m_msgHandle ); type = MSNSocket::ErrorServerError; //userLeftChat(m_msgHandle , i18n("user was twice in this chat") ); //(the user shouln't join there @@ -136,7 +136,7 @@ void MSNSwitchBoardSocket::handleError( uint code, uint id ) } case 216: { - msg = i18n( "The user %1 is online but has blocked you:\nyou can not talk to this user." ).arg( m_msgHandle ); + msg = i18n( "The user %1 is online but has blocked you:\nyou can not talk to this user." ).tqarg( m_msgHandle ); type = MSNSocket::ErrorInformation; userLeftChat(m_msgHandle, i18n("user blocked you")); @@ -145,7 +145,7 @@ void MSNSwitchBoardSocket::handleError( uint code, uint id ) case 217: { // TODO: we need to know the nickname instead of the handle. - msg = i18n( "The user %1 is currently not signed in.\n" "Messages will not be delivered." ).arg( m_msgHandle ); + msg = i18n( "The user %1 is currently not signed in.\n" "Messages will not be delivered." ).tqarg( m_msgHandle ); type = MSNSocket::ErrorServerError; userLeftChat(m_msgHandle, i18n("user disconnected")); @@ -153,7 +153,7 @@ void MSNSwitchBoardSocket::handleError( uint code, uint id ) } case 713: { - TQString msg = i18n( "You are trying to invite too many contacts to this chat at the same time" ).arg( m_msgHandle ); + TQString msg = i18n( "You are trying to invite too many contacts to this chat at the same time" ).tqarg( m_msgHandle ); type = MSNSocket::ErrorInformation; userLeftChat(m_msgHandle, i18n("user blocked you")); @@ -577,7 +577,7 @@ void MSNSwitchBoardSocket::sendTypingMsg( bool isTyping ) if( !isTyping ) return; - if ( onlineStatus() != Connected || m_chatMembers.empty()) + if ( onlinetqStatus() != Connected || m_chatMembers.empty()) { //we are not yet in a chat. //if we send that command now, we may get disconnected. @@ -653,7 +653,7 @@ int MSNSwitchBoardSocket::sendCustomEmoticon(const TQString &name, const TQStrin // this sends a short message to the server int MSNSwitchBoardSocket::sendMsg( const Kopete::Message &msg ) { - if ( onlineStatus() != Connected || m_chatMembers.empty()) + if ( onlinetqStatus() != Connected || m_chatMembers.empty()) { // m_messagesQueue.append(msg); return -1; @@ -768,7 +768,7 @@ int MSNSwitchBoardSocket::sendMsg( const Kopete::Message &msg ) int nb=(int)ceil((float)(len_M)/(float)(futurmessages_size)); if(KMessageBox::warningContinueCancel(0L /* FIXME: we should try to find a parent somewere*/ , - i18n("The message you are trying to send is too long; it will be split into %1 messages.").arg(nb) , + i18n("The message you are trying to send is too long; it will be split into %1 messages.").tqarg(nb) , i18n("Message too big - MSN Plugin" ), KStdGuiItem::cont() , "SendLongMessages" ) == KMessageBox::Continue ) { @@ -920,7 +920,7 @@ void MSNSwitchBoardSocket::slotEmoticonReceived( KTempFile *file, const TQStrin } else if(msnObj == "inkformatgif") { - TQString msg=i18n("\"Typewrited" ).arg( file->name() ); + TQString msg=i18n("\"Typewrited" ).tqarg( file->name() ); kdDebug(14140) << k_funcinfo << file->name() <<]*>)").arg(TQRegExp::escape(es))), - TQString::fromLatin1("<]*>)").tqarg(TQRegExp::escape(es))), + TQString::tqfromLatin1("\"")" ) ); + TQString::tqfromLatin1("\" src=\"") + imgPath + + TQString::tqfromLatin1("\" title=\"") + es + + TQString::tqfromLatin1("\" alt=\"") + es + + TQString::tqfromLatin1( "\"/>" ) ); kmsg.setBody(message, Kopete::Message::RichText); } } @@ -1112,7 +1112,7 @@ void MSNSwitchBoardSocket::slotKeepAliveTimer( ) the bad side effect: some switchboard connection may be maintained for really long time! */ - if ( onlineStatus() != Connected || m_chatMembers.empty()) + if ( onlinetqStatus() != Connected || m_chatMembers.empty()) { //we are not yet in a chat. //if we send that command now, we may get disconnected. diff --git a/kopete/protocols/msn/outgoingtransfer.cpp b/kopete/protocols/msn/outgoingtransfer.cpp index 604df5d1..39d3c5d0 100644 --- a/kopete/protocols/msn/outgoingtransfer.cpp +++ b/kopete/protocols/msn/outgoingtransfer.cpp @@ -101,7 +101,7 @@ void OutgoingTransfer::slotSendData() buffer.resize(bytesRead); } - kdDebug(14140) << k_funcinfo << TQString("Sending, %1 bytes").arg(bytesRead) << endl; + kdDebug(14140) << k_funcinfo << TQString("Sending, %1 bytes").tqarg(bytesRead) << endl; if((m_offset + bytesRead) < m_file->size()) { @@ -254,11 +254,11 @@ void OutgoingTransfer::processMessage(const Message& message) // Send the direct connection invitation message. TQString content = "Bridges: TRUDPv1 TCPv1\r\n" + - TQString("NetID: %1\r\n").arg("-123657987") + - TQString("Conn-Type: %1\r\n").arg("Restrict-NAT") + + TQString("NetID: %1\r\n").tqarg("-123657987") + + TQString("Conn-Type: %1\r\n").tqarg("Restrict-NAT") + "UPnPNat: false\r\n" "ICF: false\r\n" + - TQString("Hashed-Nonce: {%1}\r\n").arg(P2P::Uid::createUid()) + + TQString("Hashed-Nonce: {%1}\r\n").tqarg(P2P::Uid::createUid()) + "\r\n"; sendMessage(INVITE, content); } diff --git a/kopete/protocols/msn/transport.cpp b/kopete/protocols/msn/transport.cpp index 57b1f356..da0b856e 100644 --- a/kopete/protocols/msn/transport.cpp +++ b/kopete/protocols/msn/transport.cpp @@ -213,7 +213,7 @@ void TcpTransportBridge::slotOnDisconnect() void TcpTransportBridge::slotOnError(int errorCode) { kdDebug(14140) << k_funcinfo << "Bridge (" << name() << ") ERROR occurred on {" << mSocket->localAddress().toString() << " <-> " << mSocket->peerAddress().toString() << "} - " << mSocket->errorString() << endl; - emit bridgeError(TQString("Bridge ERROR %1: %2").arg(errorCode).arg(mSocket->errorString())); + emit bridgeError(TQString("Bridge ERROR %1: %2").tqarg(errorCode).tqarg(mSocket->errorString())); if (mConnected){ mSocket->disconnect(); mConnected = false; diff --git a/kopete/protocols/msn/ui/msnadd.ui b/kopete/protocols/msn/ui/msnadd.ui index fab496d3..283ea56f 100644 --- a/kopete/protocols/msn/ui/msnadd.ui +++ b/kopete/protocols/msn/ui/msnadd.ui @@ -24,7 +24,7 @@ - layout21 + tqlayout21 @@ -37,7 +37,7 @@ &MSN Passport ID: - + AlignTop @@ -70,7 +70,7 @@ <i>(for example: joe@hotmail.com)</i> - + AlignVCenter|AlignRight @@ -84,7 +84,7 @@ Expanding - + 20 160 diff --git a/kopete/protocols/msn/ui/msneditaccountui.ui b/kopete/protocols/msn/ui/msneditaccountui.ui index 0a764c57..674248a1 100644 --- a/kopete/protocols/msn/ui/msneditaccountui.ui +++ b/kopete/protocols/msn/ui/msneditaccountui.ui @@ -54,7 +54,7 @@ Expanding - + 20 146 @@ -92,7 +92,7 @@ 0 - + 0 0 @@ -101,7 +101,7 @@ To connect to the Microsoft network, you will need a Microsoft Passport.<br><br>If you do not currently have a Passport, please click the button to create one. - + WordBreak|AlignVCenter @@ -128,7 +128,7 @@ - layout14 + tqlayout14 @@ -229,7 +229,7 @@ <qt><b>Note:</b> These settings are applicable to all MSN accounts - + WordBreak|AlignCenter @@ -265,7 +265,7 @@ - layout13_2 + tqlayout13_2 @@ -408,7 +408,7 @@ Only works for emoticons in the PNG format. - layout28 + tqlayout28 @@ -449,7 +449,7 @@ Only works for emoticons in the PNG format. Expanding - + 61 21 @@ -468,7 +468,7 @@ Only works for emoticons in the PNG format. Minimum - + 20 21 @@ -482,7 +482,7 @@ Only works for emoticons in the PNG format. There are also privacy options in the "Contacts" tab - + WordBreak|AlignCenter @@ -498,7 +498,7 @@ Only works for emoticons in the PNG format. Expanding - + 31 40 @@ -641,7 +641,7 @@ Only works for emoticons in the PNG format. - layout17 + tqlayout17 @@ -673,13 +673,13 @@ Only works for emoticons in the PNG format. Please select a square image. The image will be scaled to 96x96. - + WordBreak|AlignVCenter - layout13 + tqlayout13 @@ -706,7 +706,7 @@ Only works for emoticons in the PNG format. Expanding - + 61 21 @@ -725,7 +725,7 @@ Only works for emoticons in the PNG format. Minimum - + 20 1 @@ -736,7 +736,7 @@ Only works for emoticons in the PNG format. - layout16 + tqlayout16 @@ -760,13 +760,13 @@ Only works for emoticons in the PNG format. 0 - + 96 96 - + 96 96 @@ -789,7 +789,7 @@ Only works for emoticons in the PNG format. Minimum - + 20 1 @@ -810,7 +810,7 @@ Only works for emoticons in the PNG format. Expanding - + 20 21 @@ -836,7 +836,7 @@ Only works for emoticons in the PNG format. WARNING: You need to be connected to modify this page. - + WordBreak|AlignVCenter @@ -865,7 +865,7 @@ Only works for emoticons in the PNG format. - layout6 + tqlayout6 @@ -889,7 +889,7 @@ Only works for emoticons in the PNG format. - layout4 + tqlayout4 @@ -921,7 +921,7 @@ Only works for emoticons in the PNG format. Expanding - + 20 20 @@ -950,7 +950,7 @@ Only works for emoticons in the PNG format. - layout58 + tqlayout58 @@ -966,7 +966,7 @@ Only works for emoticons in the PNG format. Expanding - + 41 20 @@ -994,7 +994,7 @@ Only works for emoticons in the PNG format. Expanding - + 41 20 @@ -1005,7 +1005,7 @@ Only works for emoticons in the PNG format. - layout59 + tqlayout59 @@ -1021,7 +1021,7 @@ Only works for emoticons in the PNG format. Expanding - + 81 20 @@ -1032,7 +1032,7 @@ Only works for emoticons in the PNG format. m_RLButton - + 200 32767 @@ -1058,7 +1058,7 @@ Only works for emoticons in the PNG format. Expanding - + 111 20 @@ -1086,7 +1086,7 @@ Only works for emoticons in the PNG format. WARNING: You need to be connected to modify this page - + WordBreak|AlignVCenter @@ -1124,7 +1124,7 @@ Only works for emoticons in the PNG format. - layout20 + tqlayout20 @@ -1132,7 +1132,7 @@ Only works for emoticons in the PNG format. - layout19 + tqlayout19 @@ -1236,7 +1236,7 @@ Only check this option if the normal connection doesn't work. - layout22 + tqlayout22 @@ -1287,7 +1287,7 @@ Only check this option if the normal connection doesn't work. Expanding - + 21 70 @@ -1304,7 +1304,7 @@ Only check this option if the normal connection doesn't work. - + AlignCenter diff --git a/kopete/protocols/msn/ui/msneditaccountwidget.cpp b/kopete/protocols/msn/ui/msneditaccountwidget.cpp index a3ac755a..4bb246a2 100644 --- a/kopete/protocols/msn/ui/msneditaccountwidget.cpp +++ b/kopete/protocols/msn/ui/msneditaccountwidget.cpp @@ -22,7 +22,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/kopete/protocols/msn/ui/msninfo.ui b/kopete/protocols/msn/ui/msninfo.ui index 59d50be6..42a0f0b6 100644 --- a/kopete/protocols/msn/ui/msninfo.ui +++ b/kopete/protocols/msn/ui/msninfo.ui @@ -98,7 +98,7 @@ - layout3 + tqlayout3 @@ -208,7 +208,7 @@ If not, the user has not added you to their list, or has removed you. Expanding - + 20 40 diff --git a/kopete/protocols/msn/webcam.cpp b/kopete/protocols/msn/webcam.cpp index 88fe7d33..e2024a94 100644 --- a/kopete/protocols/msn/webcam.cpp +++ b/kopete/protocols/msn/webcam.cpp @@ -87,12 +87,12 @@ void Webcam::askIncommingInvitation() TQString message= (m_who==wProducer) ? i18n("The contact %1 wants to see your webcam, do you want them to see it?") : i18n("The contact %1 wants to show you his/her webcam, do you want to see it?") ; - int result=KMessageBox::questionYesNo( 0L , message.arg(m_recipient), + int result=KMessageBox::questionYesNo( 0L , message.tqarg(m_recipient), i18n("Webcam invitation - Kopete MSN Plugin") , i18n("Accept") , i18n("Decline")); if(!_this) return; - TQString content = TQString("SessionID: %1\r\n\r\n").arg(m_sessionId); + TQString content = TQString("SessionID: %1\r\n\r\n").tqarg(m_sessionId); if(result==KMessageBox::Yes) { //Send two message, an OK, and an invite. @@ -268,7 +268,7 @@ void Webcam::processMessage(const Message& message) { unsigned char X=dataMessage[q+f]; char C=((char)(( X<128 && X>31 ) ? X : '.')); - echoS+=TQString::fromLatin1(&C,1); + echoS+=TQString::tqfromLatin1(&C,1); } f+=16; } @@ -305,7 +305,7 @@ void Webcam::processMessage(const Message& message) { uint sess=rand()%1000+5000; uint rid=rand()%100+50; - m_myAuth=TQString("recipientid=%1&sessionid=%2\r\n\r\n").arg(rid).arg(sess); + m_myAuth=TQString("recipientid=%1&sessionid=%2\r\n\r\n").tqarg(rid).tqarg(sess); kdDebug(14140) << k_funcinfo << "m_myAuth= " << m_myAuth << endl; TQString producerxml=xml(sess , rid); kdDebug(14140) << k_funcinfo << "producerxml= " << producerxml << endl; @@ -324,12 +324,12 @@ void Webcam::processMessage(const Message& message) TQString viewerxml=xml(sess.toUInt() , rid.toUInt()); kdDebug(14140) << k_funcinfo << "vewerxml= " << viewerxml << endl; makeSIPMessage( viewerxml ,0x00,0x09,0x00 ); - m_peerAuth=m_myAuth=TQString("recipientid=%1&sessionid=%2\r\n\r\n").arg(rid,sess); + m_peerAuth=m_myAuth=TQString("recipientid=%1&sessionid=%2\r\n\r\n").tqarg(rid,sess); kdDebug(14140) << k_funcinfo << "m_auth= " << m_myAuth << endl; } else { - m_peerAuth=TQString("recipientid=%1&sessionid=%2\r\n\r\n").arg(rid,sess); + m_peerAuth=TQString("recipientid=%1&sessionid=%2\r\n\r\n").tqarg(rid,sess); makeSIPMessage("receivedViewerData", 0xec , 0xda , 0x03); } @@ -346,7 +346,7 @@ void Webcam::processMessage(const Message& message) TQObject::connect(m_listener, TQT_SIGNAL(gotError(int)), this, TQT_SLOT(slotListenError(int))); // Listen for incoming connections. bool isListening = m_listener->listen(); - kdDebug(14140) << k_funcinfo << (isListening ? TQString("listening %1").arg(m_listener->localAddress().toString()) : TQString("not listening")) << endl; + kdDebug(14140) << k_funcinfo << (isListening ? TQString("listening %1").tqarg(m_listener->localAddress().toString()) : TQString("not listening")) << endl; rx=TQRegExp("([^<]*)"); rx.search(m_content); @@ -370,9 +370,9 @@ void Webcam::processMessage(const Message& message) while(true) { an++; - if(!m_content.contains( TQString("").arg(an) )) + if(!m_content.contains( TQString("").tqarg(an) )) break; - rx=TQRegExp(TQString("([^<]*)").arg(an).arg(an)); + rx=TQRegExp(TQString("([^<]*)").tqarg(an).tqarg(an)); rx.search(m_content); TQString ip=rx.cap(1); if(ip.isNull()) @@ -462,7 +462,7 @@ void Webcam::makeSIPMessage(const TQString &message, TQ_UINT8 XX, TQ_UINT8 YY , { unsigned char X=dataMessage[q+f]; char C=((char)(( X<128 && X>31 ) ? X : '.')); - echoS+=TQString::fromLatin1(&C,1); + echoS+=TQString::tqfromLatin1(&C,1); } f+=16; } @@ -503,7 +503,7 @@ TQString Webcam::xml(uint session , uint rid) TQStringList ips=m_dispatcher->localIp(); for ( it = ips.begin(); it != ips.end(); ++it ) { - ip+=TQString("%2").arg(ip_number).arg(*it).arg(ip_number); + ip+=TQString("%2").tqarg(ip_number).tqarg(*it).tqarg(ip_number); ++ip_number; } diff --git a/kopete/protocols/msn/webcam.h b/kopete/protocols/msn/webcam.h index 459f7fca..75e742d3 100644 --- a/kopete/protocols/msn/webcam.h +++ b/kopete/protocols/msn/webcam.h @@ -57,7 +57,7 @@ class Webcam : public TransferContext KNetwork::KServerSocket *m_listener; KNetwork::KBufferedSocket *m_webcamSocket; - enum WebcamStatus { wsNegotiating , wsConnecting, wsConnected, wsTransfer } ; + enum WebcamtqStatus { wsNegotiating , wsConnecting, wsConnected, wsTransfer } ; Who m_who; @@ -68,7 +68,7 @@ class Webcam : public TransferContext MSNWebcamDialog *m_widget; TQValueList m_allSockets; - TQMap m_webcamStates; + TQMap m_webcamStates; int m_timerId; int m_timerFps; diff --git a/kopete/protocols/msn/webcam/msnwebcamdialog.cpp b/kopete/protocols/msn/webcam/msnwebcamdialog.cpp index 39b7049b..31e5dbfc 100644 --- a/kopete/protocols/msn/webcam/msnwebcamdialog.cpp +++ b/kopete/protocols/msn/webcam/msnwebcamdialog.cpp @@ -28,7 +28,7 @@ MSNWebcamDialog::MSNWebcamDialog( const TQString& contact, TQWidget * parent, const char * name ) - : KDialogBase( KDialogBase::Plain, i18n( "Webcam for %1" ).arg( contact ), + : KDialogBase( KDialogBase::Plain, i18n( "Webcam for %1" ).tqarg( contact ), KDialogBase::Close, KDialogBase::Close, parent, name, false, true /*seperator*/ ), m_imageContainer( this ) { @@ -48,7 +48,7 @@ MSNWebcamDialog::MSNWebcamDialog( const TQString& contact, TQWidget * parent, co { kdDebug(14180) << k_funcinfo << "Adding webcam image container" << endl; //m_imageContainer.setText( i18n( "No webcam image received" ) ); - //m_imageContainer.setAlignment( TQt::AlignCenter ); + //m_imageContainer.tqsetAlignment( TQt::AlignCenter ); m_imageContainer.setMinimumSize(320,240); } show(); @@ -72,8 +72,8 @@ void MSNWebcamDialog::webcamClosed( int reason ) { kdDebug(14180) << k_funcinfo << "webcam closed with reason?? " << reason < //font-weight:600 -> (anything > 400 should be , 400 is not bold) @@ -127,53 +127,53 @@ void AIMMyselfContact::sendMessage( Kopete::Message& message, Kopete::ChatSessio //font-size:xxpt -> s=message.escapedBody(); - s.replace ( TQRegExp( TQString::fromLatin1("([^<]*)")), - TQString::fromLatin1("")); + s.replace ( TQRegExp( TQString::tqfromLatin1("([^<]*)")), + TQString::tqfromLatin1("")); - s.replace ( TQRegExp( TQString::fromLatin1("")), - TQString::fromLatin1("")); + s.replace ( TQRegExp( TQString::tqfromLatin1("")), + TQString::tqfromLatin1("")); - s.replace ( TQRegExp( TQString::fromLatin1("")), - TQString::fromLatin1("")); + s.replace ( TQRegExp( TQString::tqfromLatin1("")), + TQString::tqfromLatin1("")); - s.replace ( TQRegExp( TQString::fromLatin1("")), - TQString::fromLatin1("")); + s.replace ( TQRegExp( TQString::tqfromLatin1("")), + TQString::tqfromLatin1("")); - s.replace ( TQRegExp( TQString::fromLatin1("")), - TQString::fromLatin1("")); + s.replace ( TQRegExp( TQString::tqfromLatin1("")), + TQString::tqfromLatin1("")); - s.replace ( TQRegExp( TQString::fromLatin1("")), - TQString::fromLatin1("")); + s.replace ( TQRegExp( TQString::tqfromLatin1("")), + TQString::tqfromLatin1("")); - s.replace ( TQRegExp( TQString::fromLatin1("")), - TQString::fromLatin1("")); + s.replace ( TQRegExp( TQString::tqfromLatin1("")), + TQString::tqfromLatin1("")); - s.replace ( TQRegExp( TQString::fromLatin1("")), - TQString::fromLatin1("\\2")); + s.replace ( TQRegExp( TQString::tqfromLatin1("")), + TQString::tqfromLatin1("\\2")); //okay now change the to //0-9 are size 1 - s.replace ( TQRegExp ( TQString::fromLatin1("")), - TQString::fromLatin1("")); + s.replace ( TQRegExp ( TQString::tqfromLatin1("")), + TQString::tqfromLatin1("")); //10-11 are size 2 - s.replace ( TQRegExp ( TQString::fromLatin1("")), - TQString::fromLatin1("")); + s.replace ( TQRegExp ( TQString::tqfromLatin1("")), + TQString::tqfromLatin1("")); //12-13 are size 3 - s.replace ( TQRegExp ( TQString::fromLatin1("")), - TQString::fromLatin1("")); + s.replace ( TQRegExp ( TQString::tqfromLatin1("")), + TQString::tqfromLatin1("")); //14-16 are size 4 - s.replace ( TQRegExp ( TQString::fromLatin1("")), - TQString::fromLatin1("")); + s.replace ( TQRegExp ( TQString::tqfromLatin1("")), + TQString::tqfromLatin1("")); //17-22 are size 5 - s.replace ( TQRegExp ( TQString::fromLatin1("")), - TQString::fromLatin1("")); + s.replace ( TQRegExp ( TQString::tqfromLatin1("")), + TQString::tqfromLatin1("")); //23-29 are size 6 - s.replace ( TQRegExp ( TQString::fromLatin1("")),TQString::fromLatin1("")); + s.replace ( TQRegExp ( TQString::tqfromLatin1("")),TQString::tqfromLatin1("")); //30- (and any I missed) are size 7 - s.replace ( TQRegExp ( TQString::fromLatin1("")),TQString::fromLatin1("")); + s.replace ( TQRegExp ( TQString::tqfromLatin1("")),TQString::tqfromLatin1("")); - s.replace ( TQRegExp ( TQString::fromLatin1("")), TQString::fromLatin1("
      ") ); + s.replace ( TQRegExp ( TQString::tqfromLatin1("")), TQString::tqfromLatin1("
      ") ); kdDebug(14190) << k_funcinfo << "sending " << s << endl; @@ -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") ); @@ -344,14 +344,14 @@ 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 ( 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 ( myself() ); me->setLastAwayMessage(TQString()); me->removeProperty( Kopete::Global::Properties::self()->awayMessage() ); @@ -374,7 +374,7 @@ void AIMAccount::setUserProfile(const TQString &profile) AIMMyselfContact* aimmc = dynamic_cast( myself() ); if ( aimmc ) aimmc->setOwnProfile( profile ); - configGroup()->writeEntry( TQString::fromLatin1( "Profile" ), profile ); + configGroup()->writeEntry( TQString::tqfromLatin1( "Profile" ), profile ); } void AIMAccount::slotEditInfo() @@ -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(); @@ -606,7 +606,7 @@ void AIMAccount::messageReceived( const Oscar::Message& message ) // Might be duplicate code from the parent 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 ( 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( protocol() )->statusOffline ) + else if ( myself()->onlinetqStatus() == static_cast( protocol() )->statusOffline ) { kdDebug(14152) << k_funcinfo << "Logging in as " << accountId() << endl ; updateVersionUpdaterStamp(); diff --git a/kopete/protocols/oscar/aim/aimcontact.cpp b/kopete/protocols/oscar/aim/aimcontact.cpp index 7a5de795..ffa81067 100644 --- a/kopete/protocols/oscar/aim/aimcontact.cpp +++ b/kopete/protocols/oscar/aim/aimcontact.cpp @@ -19,7 +19,7 @@ #include #include #include -#include +#include #include #include @@ -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& ) ) ); @@ -128,15 +128,15 @@ void AIMContact::setAwayMessage(const TQString &message) "Called for '" << contactId() << "', away msg='" << message << "'" << endl; TQString filteredMessage = message; filteredMessage.replace( - TQRegExp(TQString::fromLatin1("<[hH][tT][mM][lL].*>(.*)")), - TQString::fromLatin1("\\1")); + TQRegExp(TQString::tqfromLatin1("<[hH][tT][mM][lL].*>(.*)")), + TQString::tqfromLatin1("\\1")); filteredMessage.replace( - TQRegExp(TQString::fromLatin1("<[bB][oO][dD][yY].*>(.*)")), - TQString::fromLatin1("\\1") ); - TQRegExp fontRemover( TQString::fromLatin1("<[fF][oO][nN][tT].*>(.*)") ); + TQRegExp(TQString::tqfromLatin1("<[bB][oO][dD][yY].*>(.*)")), + TQString::tqfromLatin1("\\1") ); + TQRegExp fontRemover( TQString::tqfromLatin1("<[fF][oO][nN][tT].*>(.*)") ); fontRemover.setMinimal(true); while ( filteredMessage.find( fontRemover ) != -1 ) - filteredMessage.replace( fontRemover, TQString::fromLatin1("\\1") ); + filteredMessage.replace( 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( protocol() )->statusOffline ); @@ -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.)" ).arg( nick ); + " this function, it is meant for legitimate practices.)" ).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 -> //font-weight:600 -> (anything > 400 should be , 400 is not bold) @@ -392,59 +392,59 @@ void AIMContact::slotSendMsg(Kopete::Message& message, Kopete::ChatSession *) //font-size:xxpt -> s=message.escapedBody(); - s.replace ( TQRegExp( TQString::fromLatin1("([^<]*)")), - TQString::fromLatin1("")); + s.replace ( TQRegExp( TQString::tqfromLatin1("([^<]*)")), + TQString::tqfromLatin1("")); - s.replace ( TQRegExp( TQString::fromLatin1("")), - TQString::fromLatin1("")); + s.replace ( TQRegExp( TQString::tqfromLatin1("")), + TQString::tqfromLatin1("")); - s.replace ( TQRegExp( TQString::fromLatin1("")), - TQString::fromLatin1("")); + s.replace ( TQRegExp( TQString::tqfromLatin1("")), + TQString::tqfromLatin1("")); - s.replace ( TQRegExp( TQString::fromLatin1("")), - TQString::fromLatin1("")); + s.replace ( TQRegExp( TQString::tqfromLatin1("")), + TQString::tqfromLatin1("")); - s.replace ( TQRegExp( TQString::fromLatin1("")), - TQString::fromLatin1("")); + s.replace ( TQRegExp( TQString::tqfromLatin1("")), + TQString::tqfromLatin1("")); - s.replace ( TQRegExp( TQString::fromLatin1("")), - TQString::fromLatin1("")); + s.replace ( TQRegExp( TQString::tqfromLatin1("")), + TQString::tqfromLatin1("")); - s.replace ( TQRegExp( TQString::fromLatin1("")), - TQString::fromLatin1("")); + s.replace ( TQRegExp( TQString::tqfromLatin1("")), + TQString::tqfromLatin1("")); - s.replace ( TQRegExp( TQString::fromLatin1("")), - TQString::fromLatin1("\\2")); + s.replace ( TQRegExp( TQString::tqfromLatin1("")), + TQString::tqfromLatin1("\\2")); //okay now change the to //0-9 are size 1 - s.replace ( TQRegExp ( TQString::fromLatin1("")), - TQString::fromLatin1("")); + s.replace ( TQRegExp ( TQString::tqfromLatin1("")), + TQString::tqfromLatin1("")); //10-11 are size 2 - s.replace ( TQRegExp ( TQString::fromLatin1("")), - TQString::fromLatin1("")); + s.replace ( TQRegExp ( TQString::tqfromLatin1("")), + TQString::tqfromLatin1("")); //12-13 are size 3 - s.replace ( TQRegExp ( TQString::fromLatin1("")), - TQString::fromLatin1("")); + s.replace ( TQRegExp ( TQString::tqfromLatin1("")), + TQString::tqfromLatin1("")); //14-16 are size 4 - s.replace ( TQRegExp ( TQString::fromLatin1("")), - TQString::fromLatin1("")); + s.replace ( TQRegExp ( TQString::tqfromLatin1("")), + TQString::tqfromLatin1("")); //17-22 are size 5 - s.replace ( TQRegExp ( TQString::fromLatin1("")), - TQString::fromLatin1("")); + s.replace ( TQRegExp ( TQString::tqfromLatin1("")), + TQString::tqfromLatin1("")); //23-29 are size 6 - s.replace ( TQRegExp ( TQString::fromLatin1("")),TQString::fromLatin1("")); + s.replace ( TQRegExp ( TQString::tqfromLatin1("")),TQString::tqfromLatin1("")); //30- (and any I missed) are size 7 - s.replace ( TQRegExp ( TQString::fromLatin1("")),TQString::fromLatin1("")); + s.replace ( TQRegExp ( TQString::tqfromLatin1("")),TQString::tqfromLatin1("")); // strip left over line break - s.remove(TQRegExp(TQString::fromLatin1("]*>$"))); + s.remove(TQRegExp(TQString::tqfromLatin1("]*>$"))); - s.replace ( TQRegExp ( TQString::fromLatin1("")), TQString::fromLatin1("
      ") ); + s.replace ( TQRegExp ( TQString::tqfromLatin1("")), TQString::tqfromLatin1("
      ") ); // strip left over line break - s.remove( TQRegExp( TQString::fromLatin1( "
      $" ) ) ); + s.remove( TQRegExp( TQString::tqfromLatin1( "
      $" ) ) ); 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/aimprotocol.cpp b/kopete/protocols/oscar/aim/aimprotocol.cpp index 0b70ac89..fe4dbf22 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 @@ -189,7 +189,7 @@ 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), + i18n("Do you want to add '%1' to your contact list?").tqarg(command), TQString(), i18n("Add"), i18n("Do Not Add")) != KMessageBox::Yes) { @@ -212,7 +212,7 @@ 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() ), + " for %2 is not connected." ).tqarg( firstParam ).tqarg( aimAccount->accountId() ), TQString() ); } @@ -286,8 +286,8 @@ Kopete::Contact *AIMProtocol::deserializeContact(Kopete::MetaContact *metaContac if ( serializedData.contains( "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(); diff --git a/kopete/protocols/oscar/aim/aimuserinfo.cpp b/kopete/protocols/oscar/aim/aimuserinfo.cpp index fd4ba096..2ed71d94 100644 --- a/kopete/protocols/oscar/aim/aimuserinfo.cpp +++ b/kopete/protocols/oscar/aim/aimuserinfo.cpp @@ -23,7 +23,7 @@ #include #include -#include +#include #include #include @@ -39,7 +39,7 @@ 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() ), + .tqarg( c->property( Kopete::Global::Properties::self()->nickName() ).value().toString() ), Cancel | Ok , Ok, true ) { kdDebug(14200) << k_funcinfo << "for contact '" << c->contactId() << "'" << endl; @@ -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()); diff --git a/kopete/protocols/oscar/aim/ui/aimaddcontactpage.cpp b/kopete/protocols/oscar/aim/ui/aimaddcontactpage.cpp index c59ac675..f00741c9 100644 --- a/kopete/protocols/oscar/aim/ui/aimaddcontactpage.cpp +++ b/kopete/protocols/oscar/aim/ui/aimaddcontactpage.cpp @@ -20,7 +20,7 @@ #include "kopeteaccount.h" -#include +#include #include #include #include diff --git a/kopete/protocols/oscar/aim/ui/aimeditaccountui.ui b/kopete/protocols/oscar/aim/ui/aimeditaccountui.ui index c2ec9844..deaa2ff2 100644 --- a/kopete/protocols/oscar/aim/ui/aimeditaccountui.ui +++ b/kopete/protocols/oscar/aim/ui/aimeditaccountui.ui @@ -40,7 +40,7 @@ - + AlignCenter
      @@ -72,7 +72,7 @@
      - layout4 + tqlayout4 @@ -165,7 +165,7 @@ 0 - + 0 0 @@ -174,7 +174,7 @@ To connect to the AOL Instant Messaging network, you will need to use a screen name from AIM, AOL, or .Mac.<br><br>If you do not currently have an AIM screen name, please click the button to create one. - + WordBreak|AlignVCenter @@ -198,7 +198,7 @@ Expanding - + 20 90 @@ -242,7 +242,7 @@ - layout58 + tqlayout58 @@ -342,7 +342,7 @@ Expanding - + 20 200 @@ -455,7 +455,7 @@ Expanding - + 31 225 diff --git a/kopete/protocols/oscar/aim/ui/aimeditaccountwidget.cpp b/kopete/protocols/oscar/aim/ui/aimeditaccountwidget.cpp index 818543d7..2e0100ab 100644 --- a/kopete/protocols/oscar/aim/ui/aimeditaccountwidget.cpp +++ b/kopete/protocols/oscar/aim/ui/aimeditaccountwidget.cpp @@ -1,7 +1,7 @@ #include "aimeditaccountwidget.h" #include "aimeditaccountui.h" -#include +#include #include #include #include diff --git a/kopete/protocols/oscar/aim/ui/aiminfobase.ui b/kopete/protocols/oscar/aim/ui/aiminfobase.ui index 188e4aad..9457068e 100644 --- a/kopete/protocols/oscar/aim/ui/aiminfobase.ui +++ b/kopete/protocols/oscar/aim/ui/aiminfobase.ui @@ -12,7 +12,7 @@ 408 - + 360 400 @@ -29,7 +29,7 @@ - layout9 + tqlayout9 @@ -92,7 +92,7 @@ - layout10 + tqlayout10 @@ -134,7 +134,7 @@ - layout11 + tqlayout11 @@ -173,7 +173,7 @@ Away message: - + AlignTop @@ -213,7 +213,7 @@ 0 - + 64 16 diff --git a/kopete/protocols/oscar/aim/ui/aimjoinchatbase.ui b/kopete/protocols/oscar/aim/ui/aimjoinchatbase.ui index 5b2d084b..fdfe2a53 100644 --- a/kopete/protocols/oscar/aim/ui/aimjoinchatbase.ui +++ b/kopete/protocols/oscar/aim/ui/aimjoinchatbase.ui @@ -37,7 +37,7 @@ Fixed - + 20 16 @@ -54,7 +54,7 @@ Maximum - + 60 20 @@ -111,7 +111,7 @@ Expanding - + 20 16 diff --git a/kopete/protocols/oscar/icq/icqaccount.cpp b/kopete/protocols/oscar/icq/icqaccount.cpp index f2a9bce9..245e365c 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 << "extendedStatus 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( account() )->engine()->statusMessage() ); } @@ -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()); + //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,15 +172,15 @@ 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 */ ); @@ -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 ); } } diff --git a/kopete/protocols/oscar/icq/icqaccount.h b/kopete/protocols/oscar/icq/icqaccount.h index f3a62c73..a5335dbc 100644 --- a/kopete/protocols/oscar/icq/icqaccount.h +++ b/kopete/protocols/oscar/icq/icqaccount.h @@ -84,7 +84,7 @@ private: 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 e4943c37..30563ae0 100644 --- a/kopete/protocols/oscar/icq/icqcontact.cpp +++ b/kopete/protocols/oscar/icq/icqcontact.cpp @@ -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 << "extendedStatus 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 ); } @@ -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 *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) diff --git a/kopete/protocols/oscar/icq/icqpresence.cpp b/kopete/protocols/oscar/icq/icqpresence.cpp index b0a051d7..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 ) @@ -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 3e55838e..dad58726 100644 --- a/kopete/protocols/oscar/icq/icqprotocol.cpp +++ b/kopete/protocols/oscar/icq/icqprotocol.cpp @@ -28,7 +28,7 @@ #include #include #include -#include +#include #include */ #include @@ -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(), 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; @@ -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")*/); @@ -775,8 +775,8 @@ Kopete::Contact *ICQProtocol::deserializeContact( Kopete::MetaContact *metaConta if ( serializedData.contains( "ssi_waitingAuth" ) ) { - TQString authStatus = serializedData["ssi_waitingAuth"]; - if ( authStatus == "true" ) + TQString authtqStatus = serializedData["ssi_waitingAuth"]; + if ( authtqStatus == "true" ) ssiWaitingAuth = true; } diff --git a/kopete/protocols/oscar/icq/icqreadaway.cpp b/kopete/protocols/oscar/icq/icqreadaway.cpp index 772650fb..94eaa063 100644 --- a/kopete/protocols/oscar/icq/icqreadaway.cpp +++ b/kopete/protocols/oscar/icq/icqreadaway.cpp @@ -37,7 +37,7 @@ ICQReadAway::ICQReadAway(ICQContact *c, TQWidget *parent, const char* name) mAccount = static_cast(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/ui/icqadd.ui b/kopete/protocols/oscar/icq/ui/icqadd.ui index 9ee07372..5ac8d973 100644 --- a/kopete/protocols/oscar/icq/ui/icqadd.ui +++ b/kopete/protocols/oscar/icq/ui/icqadd.ui @@ -24,7 +24,7 @@ - layout3 + tqlayout3 @@ -47,7 +47,7 @@ - layout4 + tqlayout4 @@ -71,7 +71,7 @@ Expanding - + 47 26 @@ -101,7 +101,7 @@ Expanding - + 20 20 diff --git a/kopete/protocols/oscar/icq/ui/icqaddcontactpage.cpp b/kopete/protocols/oscar/icq/ui/icqaddcontactpage.cpp index 833c97c3..935b9853 100644 --- a/kopete/protocols/oscar/icq/ui/icqaddcontactpage.cpp +++ b/kopete/protocols/oscar/icq/ui/icqaddcontactpage.cpp @@ -18,7 +18,7 @@ #include -#include +#include #include #include #include diff --git a/kopete/protocols/oscar/icq/ui/icqauthreplydialog.cpp b/kopete/protocols/oscar/icq/ui/icqauthreplydialog.cpp index 9041a131..59b6ce82 100644 --- a/kopete/protocols/oscar/icq/ui/icqauthreplydialog.cpp +++ b/kopete/protocols/oscar/icq/ui/icqauthreplydialog.cpp @@ -50,9 +50,9 @@ void ICQAuthReplyDialog::setUser( const TQString & user ) { if ( m_wasRequested ) m_ui->lblUserReq->setText( - i18n( "%1 requested authorization to add you to his/her contact list." ).arg( user ) ); + i18n( "%1 requested authorization to add you to his/her contact list." ).tqarg( user ) ); else - m_ui->lblUserReq->setText( i18n( "Authorization reply to %1." ).arg( user ) ); + m_ui->lblUserReq->setText( i18n( "Authorization reply to %1." ).tqarg( user ) ); } void ICQAuthReplyDialog::setRequestReason( const TQString & reason ) diff --git a/kopete/protocols/oscar/icq/ui/icqauthreplyui.ui b/kopete/protocols/oscar/icq/ui/icqauthreplyui.ui index 5296c154..61fc84cb 100644 --- a/kopete/protocols/oscar/icq/ui/icqauthreplyui.ui +++ b/kopete/protocols/oscar/icq/ui/icqauthreplyui.ui @@ -21,7 +21,7 @@ - layout22 + tqlayout22 @@ -52,7 +52,7 @@ - layout23 + tqlayout23 @@ -68,7 +68,7 @@ Expanding - + 50 20 @@ -131,7 +131,7 @@ Expanding - + 220 21 @@ -150,7 +150,7 @@ - layout24 + tqlayout24 diff --git a/kopete/protocols/oscar/icq/ui/icqeditaccountui.ui b/kopete/protocols/oscar/icq/ui/icqeditaccountui.ui index bd9f2f8e..1bc5d379 100644 --- a/kopete/protocols/oscar/icq/ui/icqeditaccountui.ui +++ b/kopete/protocols/oscar/icq/ui/icqeditaccountui.ui @@ -53,7 +53,7 @@ - layout5 + tqlayout5 @@ -149,7 +149,7 @@ 0 - + 0 0 @@ -159,7 +159,7 @@ To connect to the ICQ network, you will need an ICQ account.<br><br> If you do not currently have an ICQ account, please click the button to create one. - + WordBreak|AlignVCenter @@ -183,7 +183,7 @@ If you do not currently have an ICQ account, please click the button to create o Expanding - + 20 40 @@ -372,7 +372,7 @@ If you do not currently have an ICQ account, please click the button to create o Expanding - + 20 40 @@ -411,7 +411,7 @@ If you do not currently have an ICQ account, please click the button to create o - + AlignCenter diff --git a/kopete/protocols/oscar/icq/ui/icqeditaccountwidget.cpp b/kopete/protocols/oscar/icq/ui/icqeditaccountwidget.cpp index ceb0d3eb..04a312a4 100644 --- a/kopete/protocols/oscar/icq/ui/icqeditaccountwidget.cpp +++ b/kopete/protocols/oscar/icq/ui/icqeditaccountwidget.cpp @@ -17,11 +17,11 @@ #include "icqeditaccountwidget.h" #include "icqeditaccountui.h" -#include +#include #include #include #include -#include +#include #include #include diff --git a/kopete/protocols/oscar/icq/ui/icqgeneralinfo.ui b/kopete/protocols/oscar/icq/ui/icqgeneralinfo.ui index 1af12007..c48e8ff9 100644 --- a/kopete/protocols/oscar/icq/ui/icqgeneralinfo.ui +++ b/kopete/protocols/oscar/icq/ui/icqgeneralinfo.ui @@ -331,7 +331,7 @@ 0 - + 125 0 @@ -579,7 +579,7 @@ Expanding - + 21 20 diff --git a/kopete/protocols/oscar/icq/ui/icqinterestinfowidget.ui b/kopete/protocols/oscar/icq/ui/icqinterestinfowidget.ui index 1dd7134b..009780f0 100644 --- a/kopete/protocols/oscar/icq/ui/icqinterestinfowidget.ui +++ b/kopete/protocols/oscar/icq/ui/icqinterestinfowidget.ui @@ -103,7 +103,7 @@ Expanding - + 20 220 diff --git a/kopete/protocols/oscar/icq/ui/icqotherinfowidget.ui b/kopete/protocols/oscar/icq/ui/icqotherinfowidget.ui index 088fc302..d5d77c09 100644 --- a/kopete/protocols/oscar/icq/ui/icqotherinfowidget.ui +++ b/kopete/protocols/oscar/icq/ui/icqotherinfowidget.ui @@ -26,7 +26,7 @@ Expanding - + 20 30 diff --git a/kopete/protocols/oscar/icq/ui/icqsearchbase.ui b/kopete/protocols/oscar/icq/ui/icqsearchbase.ui index 161444f6..140f17fa 100644 --- a/kopete/protocols/oscar/icq/ui/icqsearchbase.ui +++ b/kopete/protocols/oscar/icq/ui/icqsearchbase.ui @@ -114,7 +114,7 @@ Expanding - + 41 190 @@ -162,7 +162,7 @@ Expanding - + 20 105 @@ -328,7 +328,7 @@ Expanding - + 20 16 @@ -345,7 +345,7 @@ Expanding - + 166 20 diff --git a/kopete/protocols/oscar/icq/ui/icqsearchdialog.cpp b/kopete/protocols/oscar/icq/ui/icqsearchdialog.cpp index 198e3e54..f8b16198 100644 --- a/kopete/protocols/oscar/icq/ui/icqsearchdialog.cpp +++ b/kopete/protocols/oscar/icq/ui/icqsearchdialog.cpp @@ -21,8 +21,8 @@ #include #include #include -#include -#include +#include +#include #include #include #include diff --git a/kopete/protocols/oscar/icq/ui/icquserinfowidget.cpp b/kopete/protocols/oscar/icq/ui/icquserinfowidget.cpp index c409f45c..1eb1c934 100644 --- a/kopete/protocols/oscar/icq/ui/icquserinfowidget.cpp +++ b/kopete/protocols/oscar/icq/ui/icquserinfowidget.cpp @@ -18,12 +18,12 @@ #include "icquserinfowidget.h" -#include +#include #include #include #include #include -#include +#include #include #include @@ -47,28 +47,28 @@ ICQUserInfoWidget::ICQUserInfoWidget( TQWidget * parent, const char * name ) 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 ); diff --git a/kopete/protocols/oscar/icq/ui/icqworkinfowidget.ui b/kopete/protocols/oscar/icq/ui/icqworkinfowidget.ui index 8f243f20..4707dbe8 100644 --- a/kopete/protocols/oscar/icq/ui/icqworkinfowidget.ui +++ b/kopete/protocols/oscar/icq/ui/icqworkinfowidget.ui @@ -236,7 +236,7 @@ Expanding - + 20 70 diff --git a/kopete/protocols/oscar/liboscar/buffer.cpp b/kopete/protocols/oscar/liboscar/buffer.cpp index 48f68349..c778d382 100644 --- a/kopete/protocols/oscar/liboscar/buffer.cpp +++ b/kopete/protocols/oscar/liboscar/buffer.cpp @@ -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() @@ -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 : '.'); diff --git a/kopete/protocols/oscar/liboscar/chatnavservicetask.cpp b/kopete/protocols/oscar/liboscar/chatnavservicetask.cpp index 3004af0c..23136db4 100644 --- a/kopete/protocols/oscar/liboscar/chatnavservicetask.cpp +++ b/kopete/protocols/oscar/liboscar/chatnavservicetask.cpp @@ -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/chatservicetask.cpp b/kopete/protocols/oscar/liboscar/chatservicetask.cpp index 5e264923..ff3159f4 100644 --- a/kopete/protocols/oscar/liboscar/chatservicetask.cpp +++ b/kopete/protocols/oscar/liboscar/chatservicetask.cpp @@ -23,7 +23,7 @@ #include #include #include -#include +#include #include "connection.h" #include "transfer.h" @@ -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/client.cpp b/kopete/protocols/oscar/liboscar/client.cpp index 7cb994f8..00431434 100644 --- a/kopete/protocols/oscar/liboscar/client.cpp +++ b/kopete/protocols/oscar/liboscar/client.cpp @@ -21,7 +21,7 @@ #include "client.h" #include -#include +#include #include //for kdDebug() #include @@ -98,7 +98,7 @@ public: TQValueList 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 awayMsgRequestQueue; TQTimer* awayMsgRequestTimer; @@ -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,7 +222,7 @@ void Client::close() //don't clear the stored status between stage one and two if ( d->stage == ClientPrivate::StageTwo ) { - d->connectAsStatus = 0x0; + d->connectAstqStatus = 0x0; d->connectWithMessage = TQString(); } @@ -233,7 +233,7 @@ 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() as a message either; ProfileTask @@ -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(); @@ -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 ) @@ -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 ); diff --git a/kopete/protocols/oscar/liboscar/client.h b/kopete/protocols/oscar/liboscar/client.h index b09be40e..976f43be 100644 --- a/kopete/protocols/oscar/liboscar/client.h +++ b/kopete/protocols/oscar/liboscar/client.h @@ -68,8 +68,8 @@ 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 @@ -103,9 +103,9 @@ public: /** Logout and disconnect */ void close(); /** Set our status for AIM */ - void setStatus( AIMStatus status, const TQString &message = TQString() ); + void settqStatus( AIMtqStatus status, const TQString &message = TQString() ); /** Set our status for ICQ */ - void setStatus( DWORD status, const TQString &message = TQString() ); + void settqStatus( DWORD status, const TQString &message = TQString() ); /** Retrieve our user info */ UserDetails ourInfo() const; @@ -256,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 @@ -505,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/coreprotocol.cpp b/kopete/protocols/oscar/liboscar/coreprotocol.cpp index 6ba825c7..638ed6c0 100644 --- a/kopete/protocols/oscar/liboscar/coreprotocol.cpp +++ b/kopete/protocols/oscar/liboscar/coreprotocol.cpp @@ -26,7 +26,7 @@ #include #include -#include +#include #include #include @@ -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 : '.'); diff --git a/kopete/protocols/oscar/liboscar/messagereceivertask.cpp b/kopete/protocols/oscar/liboscar/messagereceivertask.cpp index ab20d852..1bbe6622 100644 --- a/kopete/protocols/oscar/liboscar/messagereceivertask.cpp +++ b/kopete/protocols/oscar/liboscar/messagereceivertask.cpp @@ -16,7 +16,7 @@ #include "messagereceivertask.h" -#include +#include #include #include "transfer.h" #include "buffer.h" @@ -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 ); @@ -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/oscarmessage.cpp b/kopete/protocols/oscar/liboscar/oscarmessage.cpp index ddeb963d..c0b5a1b8 100644 --- a/kopete/protocols/oscar/liboscar/oscarmessage.cpp +++ b/kopete/protocols/oscar/liboscar/oscarmessage.cpp @@ -20,7 +20,7 @@ #include "oscarmessage.h" #include -#include +#include Oscar::Message::Message() diff --git a/kopete/protocols/oscar/liboscar/oscartypeclasses.cpp b/kopete/protocols/oscar/liboscar/oscartypeclasses.cpp index 97751352..958a5d49 100644 --- a/kopete/protocols/oscar/liboscar/oscartypeclasses.cpp +++ b/kopete/protocols/oscar/liboscar/oscartypeclasses.cpp @@ -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 ); diff --git a/kopete/protocols/oscar/liboscar/rtf.cc b/kopete/protocols/oscar/liboscar/rtf.cc index 67753b20..e9048c21 100644 --- a/kopete/protocols/oscar/liboscar/rtf.cc +++ b/kopete/protocols/oscar/liboscar/rtf.cc @@ -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..47d1bdf7 100644 --- a/kopete/protocols/oscar/liboscar/rtf.ll +++ b/kopete/protocols/oscar/liboscar/rtf.ll @@ -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/rtf2html.h b/kopete/protocols/oscar/liboscar/rtf2html.h index 3a3122d8..5685e4a1 100644 --- a/kopete/protocols/oscar/liboscar/rtf2html.h +++ b/kopete/protocols/oscar/liboscar/rtf2html.h @@ -21,7 +21,7 @@ #include #include -#include +#include #include #include #include diff --git a/kopete/protocols/oscar/liboscar/senddcinfotask.cpp b/kopete/protocols/oscar/liboscar/senddcinfotask.cpp index 1a0e57c8..3bd07cb5 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* parent, DWORD status): Task(parent), 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 diff --git a/kopete/protocols/oscar/liboscar/senddcinfotask.h b/kopete/protocols/oscar/liboscar/senddcinfotask.h index d130cc40..a98b9612 100644 --- a/kopete/protocols/oscar/liboscar/senddcinfotask.h +++ b/kopete/protocols/oscar/liboscar/senddcinfotask.h @@ -33,7 +33,7 @@ public: virtual void onGo(); private: - DWORD mStatus; + DWORD mtqStatus; }; #endif diff --git a/kopete/protocols/oscar/liboscar/sendmessagetask.cpp b/kopete/protocols/oscar/liboscar/sendmessagetask.cpp index 1b8cbfbc..596e6791 100644 --- a/kopete/protocols/oscar/liboscar/sendmessagetask.cpp +++ b/kopete/protocols/oscar/liboscar/sendmessagetask.cpp @@ -379,8 +379,8 @@ if ( !codec && ( contact->hasCap(CAP_UTF8) || !contact->encoding() ) ) utfMessage=new unsigned char[length]; for(unsigned int l=0; lencoding() != 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/ssimanager.cpp b/kopete/protocols/oscar/liboscar/ssimanager.cpp index 1351c237..ce39965f 100644 --- a/kopete/protocols/oscar/liboscar/ssimanager.cpp +++ b/kopete/protocols/oscar/liboscar/ssimanager.cpp @@ -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: " diff --git a/kopete/protocols/oscar/liboscar/task.cpp b/kopete/protocols/oscar/liboscar/task.cpp index d797031d..9e637d45 100644 --- a/kopete/protocols/oscar/liboscar/task.cpp +++ b/kopete/protocols/oscar/liboscar/task.cpp @@ -128,7 +128,7 @@ bool Task::take( Transfer * transfer) if(p.isEmpty()) return false; - // pass along the transfer to our children + // pass along the transfer to our tqchildren TQObjectListIt it(p); Task *t; for(; it.current(); ++it) { @@ -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 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/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/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/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::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 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/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/transfer.cpp b/kopete/protocols/oscar/liboscar/transfer.cpp index 9af57b30..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 : '.'); 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/oscaraccount.cpp b/kopete/protocols/oscar/oscaraccount.cpp index 0fe4cde8..89d72641 100644 --- a/kopete/protocols/oscar/oscaraccount.cpp +++ b/kopete/protocols/oscar/oscaraccount.cpp @@ -34,10 +34,10 @@ #include #include -#include +#include #include #include -#include +#include #include #include @@ -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(); @@ -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 @@ -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/oscarcontact.cpp b/kopete/protocols/oscar/oscarcontact.cpp index ef011ee5..ada01291 100644 --- a/kopete/protocols/oscar/oscarcontact.cpp +++ b/kopete/protocols/oscar/oscarcontact.cpp @@ -19,7 +19,7 @@ #include #include -#include +#include #include #include @@ -66,7 +66,7 @@ void OscarContact::serialize(TQMap &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/oscarencodingselectionbase.ui b/kopete/protocols/oscar/oscarencodingselectionbase.ui index 7a6d82ff..97ef3f74 100644 --- a/kopete/protocols/oscar/oscarencodingselectionbase.ui +++ b/kopete/protocols/oscar/oscarencodingselectionbase.ui @@ -45,7 +45,7 @@ Maximum - + 20 0 diff --git a/kopete/protocols/oscar/oscarvisibilitybase.ui b/kopete/protocols/oscar/oscarvisibilitybase.ui index b7db0d40..4a3bb1a1 100644 --- a/kopete/protocols/oscar/oscarvisibilitybase.ui +++ b/kopete/protocols/oscar/oscarvisibilitybase.ui @@ -47,7 +47,7 @@ Expanding - + 31 40 @@ -80,7 +80,7 @@ Expanding - + 21 40 @@ -110,7 +110,7 @@ Expanding - + 21 40 @@ -140,7 +140,7 @@ Expanding - + 21 40 diff --git a/kopete/protocols/sms/serviceloader.cpp b/kopete/protocols/sms/serviceloader.cpp index 0ebbe7fa..b3f497be 100644 --- a/kopete/protocols/sms/serviceloader.cpp +++ b/kopete/protocols/sms/serviceloader.cpp @@ -43,7 +43,7 @@ SMSService* ServiceLoader::loadService(const TQString& name, Kopete::Account* ac #endif else { - KMessageBox::sorry(Kopete::UI::Global::mainWidget(), i18n("Could not load service %1.").arg(name), + KMessageBox::sorry(Kopete::UI::Global::mainWidget(), i18n("Could not load service %1.").tqarg(name), i18n("Error Loading Service")); s = 0L; } diff --git a/kopete/protocols/sms/services/gsmlib.cpp b/kopete/protocols/sms/services/gsmlib.cpp index d4acc515..1d4836a1 100644 --- a/kopete/protocols/sms/services/gsmlib.cpp +++ b/kopete/protocols/sms/services/gsmlib.cpp @@ -16,7 +16,7 @@ #ifdef INCLUDE_SMSGSM #include -#include +#include #include #include #include @@ -308,7 +308,7 @@ void GSMLib::saveConfig() { KConfigGroup* c = m_account->configGroup(); - c->writeEntry(TQString("%1:%2").arg("GSMLib").arg("Device"), m_device); + c->writeEntry(TQString("%1:%2").tqarg("GSMLib").tqarg("Device"), m_device); } } @@ -320,7 +320,7 @@ void GSMLib::loadConfig() TQString temp; KConfigGroup* c = m_account->configGroup(); - temp = c->readEntry(TQString("%1:%2").arg("GSMLib").arg("Device"), TQString()); + temp = c->readEntry(TQString("%1:%2").tqarg("GSMLib").tqarg("Device"), TQString()); if( temp != TQString() ) m_device = temp; } @@ -348,12 +348,12 @@ void GSMLib::disconnect() } -void GSMLib::setWidgetContainer(TQWidget* parent, TQGridLayout* layout) +void GSMLib::setWidgetContainer(TQWidget* parent, TQGridLayout* tqlayout) { m_parent = parent; - m_layout = layout; + m_layout = tqlayout; TQWidget *configWidget = configureWidget(parent); - layout->addMultiCellWidget(configWidget, 0, 1, 0, 1); + tqlayout->addMultiCellWidget(configWidget, 0, 1, 0, 1); configWidget->show(); } @@ -444,7 +444,7 @@ void GSMLib::customEvent(TQCustomEvent* e) const TQString& GSMLib::description() { TQString url = "http://www.pxh.de/fs/gsmlib/"; - m_description = i18n("GSMLib is a library (and utilities) for sending SMS via a GSM device. The program can be found on %1").arg(url).arg(url); + m_description = i18n("GSMLib is a library (and utilities) for sending SMS via a GSM device. The program can be found on %1").tqarg(url).tqarg(url); return m_description; } diff --git a/kopete/protocols/sms/services/gsmlibprefs.ui b/kopete/protocols/sms/services/gsmlibprefs.ui index 8cccfe81..b0bcd890 100644 --- a/kopete/protocols/sms/services/gsmlibprefs.ui +++ b/kopete/protocols/sms/services/gsmlibprefs.ui @@ -29,7 +29,7 @@ Expanding - + 321 16 @@ -65,7 +65,7 @@ - layout13 + tqlayout13 diff --git a/kopete/protocols/sms/services/smsclient.cpp b/kopete/protocols/sms/services/smsclient.cpp index 0139b8b3..05712501 100644 --- a/kopete/protocols/sms/services/smsclient.cpp +++ b/kopete/protocols/sms/services/smsclient.cpp @@ -15,7 +15,7 @@ */ #include -#include +#include #include #include @@ -41,13 +41,13 @@ SMSClient::~SMSClient() { } -void SMSClient::setWidgetContainer(TQWidget* parent, TQGridLayout* layout) +void SMSClient::setWidgetContainer(TQWidget* parent, TQGridLayout* tqlayout) { - kdWarning( 14160 ) << k_funcinfo << "ml: " << layout << ", " << "mp: " << parent << endl; + kdWarning( 14160 ) << k_funcinfo << "ml: " << tqlayout << ", " << "mp: " << parent << endl; m_parent = parent; - m_layout = layout; + m_layout = tqlayout; TQWidget *configWidget = configureWidget(parent); - layout->addMultiCellWidget(configWidget, 0, 1, 0, 1); + tqlayout->addMultiCellWidget(configWidget, 0, 1, 0, 1); configWidget->show(); } @@ -59,7 +59,7 @@ void SMSClient::send(const Kopete::Message& msg) m_msg = msg; KConfigGroup* c = m_account->configGroup(); - TQString provider = c->readEntry(TQString("%1:%2").arg("SMSClient").arg("ProviderName"), TQString()); + TQString provider = c->readEntry(TQString("%1:%2").tqarg("SMSClient").tqarg("ProviderName"), TQString()); if (provider.isNull()) { @@ -67,7 +67,7 @@ void SMSClient::send(const Kopete::Message& msg) return; } - TQString programName = c->readEntry(TQString("%1:%2").arg("SMSClient").arg("ProgramName"). TQString()); + TQString programName = c->readEntry(TQString("%1:%2").tqarg("SMSClient").tqarg("ProgramName"). TQString()); if (programName.isNull()) programName = "/usr/bin/sms_client"; @@ -97,14 +97,14 @@ TQWidget* SMSClient::configureWidget(TQWidget* parent) prefWidget->configDir->setMode(KFile::Directory); TQString configDir; if (m_account) - configDir = m_account->configGroup()->readEntry(TQString("%1:%2").arg("SMSClient").arg("ConfigDir"), TQString()); + configDir = m_account->configGroup()->readEntry(TQString("%1:%2").tqarg("SMSClient").tqarg("ConfigDir"), TQString()); if (configDir.isNull()) configDir = "/etc/sms"; prefWidget->configDir->setURL(configDir); TQString programName; if (m_account) - programName = m_account->configGroup()->readEntry(TQString("%1:%2").arg("SMSClient").arg("ProgramName"), + programName = m_account->configGroup()->readEntry(TQString("%1:%2").tqarg("SMSClient").tqarg("ProgramName"), TQString()); if (programName.isNull()) programName = "/usr/bin/sms_client"; @@ -114,7 +114,7 @@ TQWidget* SMSClient::configureWidget(TQWidget* parent) if (m_account) { - TQString pName = m_account->configGroup()->readEntry(TQString("%1:%2").arg("SMSClient").arg("ProviderName")); + TQString pName = m_account->configGroup()->readEntry(TQString("%1:%2").tqarg("SMSClient").tqarg("ProviderName")); for (int i=0; i < prefWidget->provider->count(); i++) { if (prefWidget->provider->text(i) == pName) @@ -136,9 +136,9 @@ void SMSClient::savePreferences() { KConfigGroup* c = m_account->configGroup(); - c->writeEntry(TQString("%1:%2").arg("SMSClient").arg("ProgramName"), prefWidget->program->url()); - c->writeEntry(TQString("%1:%2").arg("SMSClient").arg("ConfigDir"), prefWidget->configDir->url()); - c->writeEntry(TQString("%1:%2").arg("SMSClient").arg("ProviderName"), prefWidget->provider->currentText()); + c->writeEntry(TQString("%1:%2").tqarg("SMSClient").tqarg("ProgramName"), prefWidget->program->url()); + c->writeEntry(TQString("%1:%2").tqarg("SMSClient").tqarg("ConfigDir"), prefWidget->configDir->url()); + c->writeEntry(TQString("%1:%2").tqarg("SMSClient").tqarg("ProviderName"), prefWidget->provider->currentText()); } } @@ -147,7 +147,7 @@ TQStringList SMSClient::providers() TQStringList p; TQDir d; - d.setPath(TQString("%1/services/").arg(prefWidget->configDir->url())); + d.setPath(TQString("%1/services/").tqarg(prefWidget->configDir->url())); p += d.entryList("*", TQDir::Files); return p; @@ -176,7 +176,7 @@ int SMSClient::maxSize() const TQString& SMSClient::description() { TQString url = "http://www.smsclient.org"; - m_description = i18n("SMSClient is a program for sending SMS with the modem. The program can be found on %1").arg(url).arg(url); + m_description = i18n("SMSClient is a program for sending SMS with the modem. The program can be found on %1").tqarg(url).tqarg(url); return m_description; } diff --git a/kopete/protocols/sms/services/smsclientprefs.ui b/kopete/protocols/sms/services/smsclientprefs.ui index 36e9f543..1b10799a 100644 --- a/kopete/protocols/sms/services/smsclientprefs.ui +++ b/kopete/protocols/sms/services/smsclientprefs.ui @@ -29,7 +29,7 @@ Expanding - + 321 16 @@ -65,7 +65,7 @@ - layout13 + tqlayout13 diff --git a/kopete/protocols/sms/services/smssend.cpp b/kopete/protocols/sms/services/smssend.cpp index 43e158ed..442d7f16 100644 --- a/kopete/protocols/sms/services/smssend.cpp +++ b/kopete/protocols/sms/services/smssend.cpp @@ -16,7 +16,7 @@ #include #include -#include +#include #include #include @@ -73,16 +73,16 @@ void SMSSend::send(const Kopete::Message& msg) m_provider->send(msg); } -void SMSSend::setWidgetContainer(TQWidget* parent, TQGridLayout* layout) +void SMSSend::setWidgetContainer(TQWidget* parent, TQGridLayout* tqlayout) { - kdWarning( 14160 ) << k_funcinfo << "ml: " << layout << ", " << "mp: " << parent << endl; + kdWarning( 14160 ) << k_funcinfo << "ml: " << tqlayout << ", " << "mp: " << parent << endl; m_parent = parent; - m_layout = layout; + m_layout = tqlayout; // could end up being deleted twice?? delete prefWidget; prefWidget = new SMSSendPrefsUI(parent); - layout->addMultiCellWidget(prefWidget, 0, 1, 0, 1); + tqlayout->addMultiCellWidget(prefWidget, 0, 1, 0, 1); prefWidget->program->setMode(KFile::Directory); @@ -181,7 +181,7 @@ void SMSSend::setOptions(const TQString& name) kdWarning( 14160 ) << k_funcinfo << "m_account = " << m_account << " (should be ok if zero!!)" << endl; if(!prefWidget) return; // sanity check - prefWidget->providerLabel->setText(i18n("%1 Settings").arg(name)); + prefWidget->providerLabel->setText(i18n("%1 Settings").tqarg(name)); labels.setAutoDelete(true); labels.clear(); @@ -237,7 +237,7 @@ int SMSSend::maxSize() const TQString& SMSSend::description() { TQString url = "http://zekiller.skytech.org/smssend_en.php"; - m_description = i18n("SMSSend is a program for sending SMS through gateways on the web. It can be found on %2").arg(url).arg(url); + m_description = i18n("SMSSend is a program for sending SMS through gateways on the web. It can be found on %2").tqarg(url).tqarg(url); return m_description; } diff --git a/kopete/protocols/sms/services/smssendprefs.ui b/kopete/protocols/sms/services/smssendprefs.ui index c902d22d..cdd2220d 100644 --- a/kopete/protocols/sms/services/smssendprefs.ui +++ b/kopete/protocols/sms/services/smssendprefs.ui @@ -29,7 +29,7 @@ Expanding - + 311 16 @@ -65,7 +65,7 @@ - layout12 + tqlayout12 @@ -139,7 +139,7 @@ Expanding - + 351 16 diff --git a/kopete/protocols/sms/services/smssendprovider.cpp b/kopete/protocols/sms/services/smssendprovider.cpp index 8feb94a9..ffd0897e 100644 --- a/kopete/protocols/sms/services/smssendprovider.cpp +++ b/kopete/protocols/sms/services/smssendprovider.cpp @@ -49,7 +49,7 @@ SMSSendProvider::SMSSendProvider(const TQString& providerName, const TQString& p if (f.open(IO_ReadOnly)) { TQTextStream t(&f); - TQString group = TQString("SMSSend-%1").arg(provider); + TQString group = TQString("SMSSend-%1").tqarg(provider); bool exactNumberMatch = false; TQStringList numberWords; numberWords.append("Tel"); @@ -87,7 +87,7 @@ SMSSendProvider::SMSSendProvider(const TQString& providerName, const TQString& p descriptions.append(args[1]); if (m_account) - values.append(m_account->configGroup()->readEntry(TQString("%1:%2").arg(group).arg(names[names.count()-1]), + values.append(m_account->configGroup()->readEntry(TQString("%1:%2").tqarg(group).tqarg(names[names.count()-1]), TQString())); else values.append(""); @@ -175,7 +175,7 @@ void SMSSendProvider::save(TQPtrList& args) kdDebug( 14160 ) << k_funcinfo << "m_account = " << m_account << " (should be non-zero!!)" << endl; if (!m_account) return; // prevent crash in worst case - TQString group = TQString("SMSSend-%1").arg(provider); + TQString group = TQString("SMSSend-%1").tqarg(provider); int namesI=0; for (unsigned i=0; i < args.count(); i++) @@ -194,7 +194,7 @@ void SMSSendProvider::save(TQPtrList& args) // kdDebug(14160) << k_funcinfo << "saving " << args.at(i) << " to " << names[namesI] << endl; if (!args.at(i)->text().isEmpty()) { values[namesI] = args.at(i)->text(); - m_account->configGroup()->writeEntry(TQString("%1:%2").arg(group).arg(names[namesI]), values[namesI]); + m_account->configGroup()->writeEntry(TQString("%1:%2").tqarg(group).tqarg(names[namesI]), values[namesI]); } namesI++; } @@ -239,9 +239,9 @@ void SMSSendProvider::send(const Kopete::Message& msg) KProcess* p = new KProcess; - kdWarning( 14160 ) << "Executing " << TQString("%1/bin/smssend").arg(prefix) << " \"" << provider << "\" " << values.join("\" \"") << "\"" << endl; + kdWarning( 14160 ) << "Executing " << TQString("%1/bin/smssend").tqarg(prefix) << " \"" << provider << "\" " << values.join("\" \"") << "\"" << endl; - *p << TQString("%1/bin/smssend").arg(prefix) << provider << values; + *p << TQString("%1/bin/smssend").tqarg(prefix) << provider << values; output = ""; connect( p, TQT_SIGNAL(processExited(KProcess *)), this, TQT_SLOT(slotSendFinished(KProcess *))); diff --git a/kopete/protocols/sms/smsaccount.cpp b/kopete/protocols/sms/smsaccount.cpp index 10e09ae8..fc12437c 100644 --- a/kopete/protocols/sms/smsaccount.cpp +++ b/kopete/protocols/sms/smsaccount.cpp @@ -83,7 +83,7 @@ const bool SMSAccount::splitNowMsgTooLong(int msgLength) int max = theService->maxSize(); if(theLongMsgAction == ACT_CANCEL) return false; if(theLongMsgAction == ACT_SPLIT) return true; - if(KMessageBox::questionYesNo(Kopete::UI::Global::mainWidget(), i18n("This message is longer than the maximum length (%1). Should it be divided to %2 messages?").arg(max).arg(msgLength / max + 1), + if(KMessageBox::questionYesNo(Kopete::UI::Global::mainWidget(), i18n("This message is longer than the maximum length (%1). Should it be divided to %2 messages?").tqarg(max).tqarg(msgLength / max + 1), i18n("Message Too Long"), i18n("Divide"), i18n("Do Not Divide")) == KMessageBox::Yes) return true; else @@ -104,7 +104,7 @@ void SMSAccount::connect(const Kopete::OnlineStatus&) void SMSAccount::slotConnected() { myself()->setOnlineStatus( SMSProtocol::protocol()->SMSOnline ); - setAllContactsStatus( SMSProtocol::protocol()->SMSOnline ); + setAllContactstqStatus( SMSProtocol::protocol()->SMSOnline ); } void SMSAccount::disconnect() @@ -116,7 +116,7 @@ void SMSAccount::disconnect() void SMSAccount::slotDisconnected() { myself()->setOnlineStatus( SMSProtocol::protocol()->SMSOffline ); - setAllContactsStatus( SMSProtocol::protocol()->SMSOffline ); + setAllContactstqStatus( SMSProtocol::protocol()->SMSOffline ); } void SMSAccount::slotSendMessage(Kopete::Message &msg) @@ -186,11 +186,11 @@ KActionMenu* SMSAccount::actionMenu() void SMSAccount::setOnlineStatus( const Kopete::OnlineStatus & status , const TQString &reason) { - if ( myself()->onlineStatus().status() == Kopete::OnlineStatus::Offline && status.status() == Kopete::OnlineStatus::Online ) + if ( myself()->onlinetqStatus().status() == Kopete::OnlineStatus::Offline && status.status() == Kopete::OnlineStatus::Online ) connect(); - else if ( myself()->onlineStatus().status() != Kopete::OnlineStatus::Offline && status.status() == Kopete::OnlineStatus::Offline ) + else if ( myself()->onlinetqStatus().status() != Kopete::OnlineStatus::Offline && status.status() == Kopete::OnlineStatus::Offline ) disconnect(); - else if ( myself()->onlineStatus().status() != Kopete::OnlineStatus::Offline && status.status() == Kopete::OnlineStatus::Away ) + else if ( myself()->onlinetqStatus().status() != Kopete::OnlineStatus::Offline && status.status() == Kopete::OnlineStatus::Away ) setAway( true, reason ); } diff --git a/kopete/protocols/sms/smsaddcontactpage.cpp b/kopete/protocols/sms/smsaddcontactpage.cpp index bf3fd52f..c18e5866 100644 --- a/kopete/protocols/sms/smsaddcontactpage.cpp +++ b/kopete/protocols/sms/smsaddcontactpage.cpp @@ -17,7 +17,7 @@ #include "smsaddcontactpage.h" #include "kopeteaccount.h" -#include +#include #include diff --git a/kopete/protocols/sms/smseditaccountwidget.cpp b/kopete/protocols/sms/smseditaccountwidget.cpp index 59a5f000..c355c287 100644 --- a/kopete/protocols/sms/smseditaccountwidget.cpp +++ b/kopete/protocols/sms/smseditaccountwidget.cpp @@ -15,7 +15,7 @@ */ #include -#include +#include #include #include #include diff --git a/kopete/protocols/sms/smsservice.cpp b/kopete/protocols/sms/smsservice.cpp index a0b20025..5fe4bb1a 100644 --- a/kopete/protocols/sms/smsservice.cpp +++ b/kopete/protocols/sms/smsservice.cpp @@ -14,7 +14,7 @@ ************************************************************************* */ -#include +#include #include diff --git a/kopete/protocols/sms/smsservice.h b/kopete/protocols/sms/smsservice.h index dc0493bb..c5ea28ab 100644 --- a/kopete/protocols/sms/smsservice.h +++ b/kopete/protocols/sms/smsservice.h @@ -46,10 +46,10 @@ public: /** * Called when the settings widget has a place to be. @param parent is the - * settings widget's parent and @param layout is the 2xn grid layout it may + * settings widget's parent and @param tqlayout is the 2xn grid tqlayout it may * use. */ - virtual void setWidgetContainer(TQWidget* parent, TQGridLayout* layout) = 0; + virtual void setWidgetContainer(TQWidget* parent, TQGridLayout* tqlayout) = 0; virtual void send(const Kopete::Message& msg) = 0; virtual int maxSize() = 0; diff --git a/kopete/protocols/sms/ui/smsactprefs.ui b/kopete/protocols/sms/ui/smsactprefs.ui index 10f5c235..d04814ef 100644 --- a/kopete/protocols/sms/ui/smsactprefs.ui +++ b/kopete/protocols/sms/ui/smsactprefs.ui @@ -118,7 +118,7 @@ - layout35 + tqlayout35 @@ -187,7 +187,7 @@ To use SMS, you will need an account with a delivery service. - + WordBreak|AlignTop @@ -203,7 +203,7 @@ Expanding - + 20 181 @@ -236,7 +236,7 @@ - layout119 + tqlayout119 @@ -303,7 +303,7 @@ - layout56 + tqlayout56 @@ -379,7 +379,7 @@ Expanding - + 20 20 @@ -396,7 +396,7 @@ - + AlignCenter diff --git a/kopete/protocols/sms/ui/smsadd.ui b/kopete/protocols/sms/ui/smsadd.ui index cc970bbc..29e75542 100644 --- a/kopete/protocols/sms/ui/smsadd.ui +++ b/kopete/protocols/sms/ui/smsadd.ui @@ -32,7 +32,7 @@ - layout35 + tqlayout35 @@ -40,7 +40,7 @@ - layout33 + tqlayout33 @@ -84,7 +84,7 @@ - layout34 + tqlayout34 @@ -126,7 +126,7 @@ Expanding - + 31 170 diff --git a/kopete/protocols/sms/ui/smsuserprefs.ui b/kopete/protocols/sms/ui/smsuserprefs.ui index aa719efe..777b16b7 100644 --- a/kopete/protocols/sms/ui/smsuserprefs.ui +++ b/kopete/protocols/sms/ui/smsuserprefs.ui @@ -56,7 +56,7 @@ - layout11 + tqlayout11 @@ -102,7 +102,7 @@ Expanding - + 20 40 diff --git a/kopete/protocols/testbed/testbedaccount.cpp b/kopete/protocols/testbed/testbedaccount.cpp index cc906447..17c1ea73 100644 --- a/kopete/protocols/testbed/testbedaccount.cpp +++ b/kopete/protocols/testbed/testbedaccount.cpp @@ -75,10 +75,10 @@ void TestbedAccount::setAway( bool away, const TQString & /* reason */ ) void TestbedAccount::setOnlineStatus(const Kopete::OnlineStatus& status, const TQString &reason ) { if ( status.status() == Kopete::OnlineStatus::Online && - myself()->onlineStatus().status() == Kopete::OnlineStatus::Offline ) + myself()->onlinetqStatus().status() == Kopete::OnlineStatus::Offline ) slotGoOnline(); else if (status.status() == Kopete::OnlineStatus::Online && - myself()->onlineStatus().status() == Kopete::OnlineStatus::Away ) + myself()->onlinetqStatus().status() == Kopete::OnlineStatus::Away ) setAway( false, reason ); else if ( status.status() == Kopete::OnlineStatus::Offline ) slotGoOffline(); @@ -86,7 +86,7 @@ void TestbedAccount::setOnlineStatus(const Kopete::OnlineStatus& status, const T slotGoAway( /* reason */ ); } -void TestbedAccount::connect( const Kopete::OnlineStatus& /* initialStatus */ ) +void TestbedAccount::connect( const Kopete::OnlineStatus& /* initialtqStatus */ ) { kdDebug ( 14210 ) << k_funcinfo << endl; myself()->setOnlineStatus( TestbedProtocol::protocol()->testbedOnline ); @@ -114,7 +114,7 @@ void TestbedAccount::slotGoOnline () connect (); else myself()->setOnlineStatus( TestbedProtocol::protocol()->testbedOnline ); - updateContactStatus(); + updateContacttqStatus(); } void TestbedAccount::slotGoAway () @@ -125,7 +125,7 @@ void TestbedAccount::slotGoAway () connect(); myself()->setOnlineStatus( TestbedProtocol::protocol()->testbedAway ); - updateContactStatus(); + updateContacttqStatus(); } @@ -135,7 +135,7 @@ void TestbedAccount::slotGoOffline () if (isConnected ()) disconnect (); - updateContactStatus(); + updateContacttqStatus(); } void TestbedAccount::slotShowVideo () @@ -144,7 +144,7 @@ void TestbedAccount::slotShowVideo () if (isConnected ()) TestbedWebcamDialog *testbedWebcamDialog = new TestbedWebcamDialog(0, 0, "Testbed video window"); - updateContactStatus(); + updateContacttqStatus(); } void TestbedAccount::receivedMessage( const TQString &message ) @@ -165,11 +165,11 @@ void TestbedAccount::receivedMessage( const TQString &message ) kdWarning(14210) << k_funcinfo << "unable to look up contact for delivery" << endl; } -void TestbedAccount::updateContactStatus() +void TestbedAccount::updateContacttqStatus() { TQDictIterator itr( contacts() ); for ( ; itr.current(); ++itr ) - itr.current()->setOnlineStatus( myself()->onlineStatus() ); + itr.current()->setOnlineStatus( myself()->onlinetqStatus() ); } diff --git a/kopete/protocols/testbed/testbedaccount.h b/kopete/protocols/testbed/testbedaccount.h index 8bb310ca..c9f1517e 100644 --- a/kopete/protocols/testbed/testbedaccount.h +++ b/kopete/protocols/testbed/testbedaccount.h @@ -60,7 +60,7 @@ public: /** * 'Connect' to the testbed server. Only sets myself() online. */ - virtual void connect( const Kopete::OnlineStatus& initialStatus = Kopete::OnlineStatus() ); + virtual void connect( const Kopete::OnlineStatus& initialtqStatus = Kopete::OnlineStatus() ); /** * Disconnect from the server. Only sets myself() offline. */ @@ -80,7 +80,7 @@ protected: /** * This simulates contacts going on and offline in sync with the account's status changes */ - void updateContactStatus(); + void updateContacttqStatus(); TestbedFakeServer* m_server; protected slots: diff --git a/kopete/protocols/testbed/testbedaccountpreferences.ui b/kopete/protocols/testbed/testbedaccountpreferences.ui index 99500ddb..4edf08ca 100644 --- a/kopete/protocols/testbed/testbedaccountpreferences.ui +++ b/kopete/protocols/testbed/testbedaccountpreferences.ui @@ -53,7 +53,7 @@ - layout1_2 + tqlayout1_2 @@ -117,7 +117,7 @@ To use the testbed protocol, just make up an account name. This protocol has no real networking capability. - + WordBreak|AlignTop @@ -133,7 +133,7 @@ Expanding - + 20 131 @@ -150,7 +150,7 @@ - + AlignCenter diff --git a/kopete/protocols/testbed/testbedaddcontactpage.cpp b/kopete/protocols/testbed/testbedaddcontactpage.cpp index 15979be0..9250b9a0 100644 --- a/kopete/protocols/testbed/testbedaddcontactpage.cpp +++ b/kopete/protocols/testbed/testbedaddcontactpage.cpp @@ -16,7 +16,7 @@ #include "testbedaddcontactpage.h" -#include +#include #include #include #include @@ -48,7 +48,7 @@ bool TestbedAddContactPage::apply( Kopete::Account* a, Kopete::MetaContact* m ) if ( m_testbedAddUI->m_rbEcho->isOn() ) { type = m_testbedAddUI->m_uniqueName->text(); - name = TQString::fromLatin1( "Echo Contact" ); + name = TQString::tqfromLatin1( "Echo Contact" ); ok = true; } if ( ok ) diff --git a/kopete/protocols/testbed/testbedaddui.ui b/kopete/protocols/testbed/testbedaddui.ui index b9994322..aa0410dd 100644 --- a/kopete/protocols/testbed/testbedaddui.ui +++ b/kopete/protocols/testbed/testbedaddui.ui @@ -18,7 +18,7 @@ - layout2 + tqlayout2 @@ -94,7 +94,7 @@ Expanding - + 20 252 diff --git a/kopete/protocols/testbed/testbededitaccountwidget.cpp b/kopete/protocols/testbed/testbededitaccountwidget.cpp index 0e31d639..98a52dfc 100644 --- a/kopete/protocols/testbed/testbededitaccountwidget.cpp +++ b/kopete/protocols/testbed/testbededitaccountwidget.cpp @@ -16,7 +16,7 @@ #include "testbededitaccountwidget.h" -#include +#include #include #include #include "kopeteaccount.h" diff --git a/kopete/protocols/testbed/testbedfakeserver.cpp b/kopete/protocols/testbed/testbedfakeserver.cpp index 9a4116ca..7740b858 100644 --- a/kopete/protocols/testbed/testbedfakeserver.cpp +++ b/kopete/protocols/testbed/testbedfakeserver.cpp @@ -36,8 +36,8 @@ void TestbedFakeServer::sendMessage( TQString contactId, TQString message ) kdDebug( 14210 ) << k_funcinfo << "Message for: " << contactId << ", is: " << message << endl; kdDebug( 14210 ) << "recipient is echo, coming back at you." << endl; // put the message in a map and start a timer to tell it to deliver itself. - //emit messageReceived( TQString::fromLatin1( "echo: " ) + message ); - TQString messageId = contactId + TQString::fromLatin1(": "); + //emit messageReceived( TQString::tqfromLatin1( "echo: " ) + message ); + TQString messageId = contactId + TQString::tqfromLatin1(": "); TestbedIncomingMessage* msg = new TestbedIncomingMessage( this, messageId + message ); m_incomingMessages.append( msg ); TQTimer::singleShot( 1000, msg, TQT_SLOT( deliver() ) ); diff --git a/kopete/protocols/testbed/testbedprotocol.cpp b/kopete/protocols/testbed/testbedprotocol.cpp index 867a2647..301b8a08 100644 --- a/kopete/protocols/testbed/testbedprotocol.cpp +++ b/kopete/protocols/testbed/testbedprotocol.cpp @@ -55,9 +55,9 @@ Kopete::Contact *TestbedProtocol::deserializeContact( TQString type = serializedData[ "contactType" ]; TestbedContact::TestbedContactType tbcType; - if ( type == TQString::fromLatin1( "echo" ) ) + if ( type == TQString::tqfromLatin1( "echo" ) ) tbcType = TestbedContact::Echo; - if ( type == TQString::fromLatin1( "null" ) ) + if ( type == TQString::tqfromLatin1( "null" ) ) tbcType = TestbedContact::Null; else tbcType = TestbedContact::Null; diff --git a/kopete/protocols/testbed/ui/testbedwebcamdialog.cpp b/kopete/protocols/testbed/ui/testbedwebcamdialog.cpp index 828eb6b2..d5453978 100644 --- a/kopete/protocols/testbed/ui/testbedwebcamdialog.cpp +++ b/kopete/protocols/testbed/ui/testbedwebcamdialog.cpp @@ -22,13 +22,13 @@ #include #include #include -#include +#include #include #include #include TestbedWebcamDialog::TestbedWebcamDialog( const TQString &contactId, TQWidget * parent, const char * name ) -: KDialogBase( KDialogBase::Plain, TQt::WDestructiveClose, parent, name, false, i18n( "Webcam for %1" ).arg( contactId ), +: KDialogBase( KDialogBase::Plain, TQt::WDestructiveClose, parent, name, false, i18n( "Webcam for %1" ).tqarg( contactId ), KDialogBase::Close, KDialogBase::Close, true /*seperator*/ ) { setInitialSize( TQSize(320,290), false ); @@ -43,7 +43,7 @@ TestbedWebcamDialog::TestbedWebcamDialog( const TQString &contactId, TQWidget * mImageContainer = new Kopete::WebcamWidget( page ); mImageContainer->setMinimumSize(320,240); mImageContainer->setText( i18n( "No webcam image received" ) ); - mImageContainer->setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding); + mImageContainer->tqsetSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding); topLayout->add( mImageContainer ); show(); diff --git a/kopete/protocols/winpopup/libwinpopup/libwinpopup.cpp b/kopete/protocols/winpopup/libwinpopup/libwinpopup.cpp index 8efe247a..15440eda 100644 --- a/kopete/protocols/winpopup/libwinpopup/libwinpopup.cpp +++ b/kopete/protocols/winpopup/libwinpopup/libwinpopup.cpp @@ -107,8 +107,8 @@ bool WinPopupLib::checkMessageDir() "If you have not configured anything yet (samba) please see\n" "Install Into Samba (Configure... -> Account -> Edit) information\n" "on how to do this.\n" - "Should the directory be created? (May need root password)").arg(WP_POPUP_DIR), - TQString::fromLatin1("Winpopup"), i18n("Create Directory"), i18n("Do Not Create")); + "Should the directory be created? (May need root password)").tqarg(WP_POPUP_DIR), + TQString::tqfromLatin1("Winpopup"), i18n("Create Directory"), i18n("Do Not Create")); if (tmpYesNo == KMessageBox::Yes) { TQStringList tdesuArgs = TQStringList(TQString("-c mkdir -p -m 0777 " + WP_POPUP_DIR)); if (KApplication::tdeinitExecWait("tdesu", tdesuArgs) == 0) return true; @@ -126,8 +126,8 @@ bool WinPopupLib::checkMessageDir() "%1 are wrong!\n" "You will not receive messages if you say no.\n" "You can also correct it manually (chmod 0777 %1) and restart kopete.\n" - "Fix? (May need root password)").arg(WP_POPUP_DIR), - TQString::fromLatin1("Winpopup"), i18n("Fix"), i18n("Do Not Fix")); + "Fix? (May need root password)").tqarg(WP_POPUP_DIR), + TQString::tqfromLatin1("Winpopup"), i18n("Fix"), i18n("Do Not Fix")); if (tmpYesNo == KMessageBox::Yes) { TQStringList tdesuArgs = TQStringList(TQString("-c chmod 0777 " + WP_POPUP_DIR)); if (KApplication::tdeinitExecWait("tdesu", tdesuArgs) == 0) return true; @@ -148,7 +148,7 @@ void WinPopupLib::slotUpdateGroupData() passedInitialHost = false; todo.clear(); currentGroupsMap.clear(); - currentHost = TQString::fromLatin1("LOCALHOST"); + currentHost = TQString::tqfromLatin1("LOCALHOST"); startReadProcess(currentHost); } @@ -184,7 +184,7 @@ void WinPopupLib::slotReadProcessReady(KProcIO *r) if (group.search(tmpLine) != -1) currentGroups[group.cap(1)] = group.cap(2); if (error.search(tmpLine) != -1) { kdDebug(14170) << "Connection to " << currentHost << " failed!" << endl; - if (currentHost == TQString::fromLatin1("LOCALHOST")) currentHost = TQString::fromLatin1("failed"); // to be sure + if (currentHost == TQString::tqfromLatin1("LOCALHOST")) currentHost = TQString::tqfromLatin1("failed"); // to be sure } } } @@ -229,11 +229,11 @@ void WinPopupLib::slotReadProcessExited(KProcess *r) todo += groupMaster; } } else { - if (currentHost == TQString::fromLatin1("failed")) + if (currentHost == TQString::tqfromLatin1("failed")) KMessageBox::error(Kopete::UI::Global::mainWidget(), i18n("Connection to localhost failed!\n" "Is your samba server running?"), - TQString::fromLatin1("Winpopup")); + TQString::tqfromLatin1("Winpopup")); } } @@ -303,7 +303,7 @@ void WinPopupLib::readMessages(const KFileItemList &items) i18n("A message file could not be removed; " "maybe the permissions are wrong.\n" "Fix? (May need root password)"), - TQString::fromLatin1("Winpopup"), i18n("Fix"), i18n("Do Not Fix")); + TQString::tqfromLatin1("Winpopup"), i18n("Fix"), i18n("Do Not Fix")); if (tmpYesNo == KMessageBox::Yes) { TQStringList tdesuArgs = TQStringList(TQString("-c chmod 0666 " + tmpItem->url().path())); if (KApplication::tdeinitExecWait("tdesu", tdesuArgs) == 0) { diff --git a/kopete/protocols/winpopup/libwinpopup/libwinpopup.h b/kopete/protocols/winpopup/libwinpopup/libwinpopup.h index b4d7dc82..686252ea 100644 --- a/kopete/protocols/winpopup/libwinpopup/libwinpopup.h +++ b/kopete/protocols/winpopup/libwinpopup/libwinpopup.h @@ -29,7 +29,7 @@ #include #include -const TQString WP_POPUP_DIR = TQString::fromLatin1("/var/lib/winpopup"); +const TQString WP_POPUP_DIR = TQString::tqfromLatin1("/var/lib/winpopup"); class KDirLister; diff --git a/kopete/protocols/winpopup/ui/wpaddcontactbase.ui b/kopete/protocols/winpopup/ui/wpaddcontactbase.ui index a594a5b1..8049dab1 100644 --- a/kopete/protocols/winpopup/ui/wpaddcontactbase.ui +++ b/kopete/protocols/winpopup/ui/wpaddcontactbase.ui @@ -28,7 +28,7 @@ - layout59 + tqlayout59 @@ -36,7 +36,7 @@ - layout57 + tqlayout57 @@ -80,7 +80,7 @@ - layout58 + tqlayout58 @@ -117,7 +117,7 @@ - layout11 + tqlayout11 @@ -133,7 +133,7 @@ Expanding - + 20 20 @@ -166,7 +166,7 @@ Expanding - + 20 50 diff --git a/kopete/protocols/winpopup/ui/wpeditaccountbase.ui b/kopete/protocols/winpopup/ui/wpeditaccountbase.ui index ecf97df5..32c8ead5 100644 --- a/kopete/protocols/winpopup/ui/wpeditaccountbase.ui +++ b/kopete/protocols/winpopup/ui/wpeditaccountbase.ui @@ -32,7 +32,7 @@ - + AlignCenter @@ -64,7 +64,7 @@ - layout40 + tqlayout40 @@ -142,7 +142,7 @@ To receive WinPopup messages sent from other machines, the hostname above must be set to this machine's hostname. - + WordBreak|AlignTop @@ -163,7 +163,7 @@ However, the recommended way is to ask your administrator to create this directory ('mkdir -p -m 0777 /var/lib/winpopup') and add 'message command = _PATH_TO_/winpopup-send.sh %s %m %t &' (substitute _PATH_TO_ by the real path) to your smb.conf [global]-section. - + WordBreak|AlignTop @@ -179,7 +179,7 @@ However, the recommended way is to ask your administrator to create this directo Expanding - + 21 16 @@ -209,7 +209,7 @@ However, the recommended way is to ask your administrator to create this directo Expanding - + 20 135 @@ -266,7 +266,7 @@ However, the recommended way is to ask your administrator to create this directo - layout6 + tqlayout6 @@ -274,7 +274,7 @@ However, the recommended way is to ask your administrator to create this directo - layout5 + tqlayout5 diff --git a/kopete/protocols/winpopup/ui/wpuserinfowidget.ui b/kopete/protocols/winpopup/ui/wpuserinfowidget.ui index 7c87b961..aaec0dbe 100644 --- a/kopete/protocols/winpopup/ui/wpuserinfowidget.ui +++ b/kopete/protocols/winpopup/ui/wpuserinfowidget.ui @@ -26,7 +26,7 @@ - layout6 + tqlayout6 @@ -34,7 +34,7 @@ - layout5 + tqlayout5 @@ -120,7 +120,7 @@ - layout4 + tqlayout4 diff --git a/kopete/protocols/winpopup/wpaccount.cpp b/kopete/protocols/winpopup/wpaccount.cpp index d7439628..eb881c70 100644 --- a/kopete/protocols/winpopup/wpaccount.cpp +++ b/kopete/protocols/winpopup/wpaccount.cpp @@ -66,7 +66,7 @@ const TQStringList WPAccount::getHosts(const TQString &Group) bool WPAccount::checkHost(const TQString &Name) { // kdDebug() << "WPAccount::checkHost: " << Name << endl; - if (Name.upper() == TQString::fromLatin1("LOCALHOST")) { + if (Name.upper() == TQString::tqfromLatin1("LOCALHOST")) { // Assume localhost is always there, but it will not appear in the samba output. // Should never happen as localhost is now forbidden as contact, just for safety. GF return true; @@ -159,8 +159,8 @@ KActionMenu* WPAccount::actionMenu() /// How to remove an action from Kopete::Account::actionMenu()? GF - KActionMenu *theActionMenu = new KActionMenu(accountId() , myself()->onlineStatus().iconFor(this), this); - theActionMenu->popupMenu()->insertTitle(myself()->onlineStatus().iconFor(this), i18n("WinPopup (%1)").arg(accountId())); + KActionMenu *theActionMenu = new KActionMenu(accountId() , myself()->onlinetqStatus().iconFor(this), this); + theActionMenu->popupMenu()->insertTitle(myself()->onlinetqStatus().iconFor(this), i18n("WinPopup (%1)").tqarg(accountId())); if (mProtocol) { @@ -189,17 +189,17 @@ void WPAccount::slotSendMessage(const TQString &Body, const TQString &Destinatio { kdDebug(14170) << "WPAccount::slotSendMessage(" << Body << ", " << Destination << ")" << endl; - if (myself()->onlineStatus().status() == Kopete::OnlineStatus::Away) myself()->setOnlineStatus(mProtocol->WPOnline); + if (myself()->onlinetqStatus().status() == Kopete::OnlineStatus::Away) myself()->setOnlineStatus(mProtocol->WPOnline); mProtocol->sendMessage(Body, Destination); } void WPAccount::setOnlineStatus(const Kopete::OnlineStatus &status, const TQString &reason) { - if (myself()->onlineStatus().status() == Kopete::OnlineStatus::Offline && status.status() == Kopete::OnlineStatus::Online) + if (myself()->onlinetqStatus().status() == Kopete::OnlineStatus::Offline && status.status() == Kopete::OnlineStatus::Online) connect( status ); - else if (myself()->onlineStatus().status() != Kopete::OnlineStatus::Offline && status.status() == Kopete::OnlineStatus::Offline) + else if (myself()->onlinetqStatus().status() != Kopete::OnlineStatus::Offline && status.status() == Kopete::OnlineStatus::Offline) disconnect(); - else if (myself()->onlineStatus().status() != Kopete::OnlineStatus::Offline && status.status() == Kopete::OnlineStatus::Away) + else if (myself()->onlinetqStatus().status() != Kopete::OnlineStatus::Offline && status.status() == Kopete::OnlineStatus::Away) setAway( true, reason ); } diff --git a/kopete/protocols/winpopup/wpaddcontact.cpp b/kopete/protocols/winpopup/wpaddcontact.cpp index 0ca685dc..25e4b6d8 100644 --- a/kopete/protocols/winpopup/wpaddcontact.cpp +++ b/kopete/protocols/winpopup/wpaddcontact.cpp @@ -18,7 +18,7 @@ * * ***************************************************************************/ // QT Includes -#include +#include // KDE Includes #include @@ -93,7 +93,7 @@ bool WPAddContact::validateData() // If our own host is not allowed as contact localhost should be forbidden as well, // additionally somehow localhost as contact crashes when receiving a message from it?? GF - if (tmpHostName.upper() == TQString::fromLatin1("LOCALHOST")) { + if (tmpHostName.upper() == TQString::tqfromLatin1("LOCALHOST")) { KMessageBox::sorry(this, i18n("LOCALHOST is not allowed as contact."), i18n("WinPopup")); return false; } diff --git a/kopete/protocols/winpopup/wpcontact.cpp b/kopete/protocols/winpopup/wpcontact.cpp index 103a2a85..1aff6e32 100644 --- a/kopete/protocols/winpopup/wpcontact.cpp +++ b/kopete/protocols/winpopup/wpcontact.cpp @@ -51,8 +51,8 @@ WPContact::WPContact(Kopete::Account *account, const TQString &newHostName, cons // Initialise and start the periodical checking for contact's status setOnlineStatus(static_cast(protocol())->WPOffline); - connect(&checkStatus, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotCheckStatus())); - checkStatus.start(1000, false); + connect(&checktqStatus, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotChecktqStatus())); + checktqStatus.start(1000, false); } TQPtrList * WPContact::customContextMenuActions() @@ -89,14 +89,14 @@ Kopete::ChatSession* WPContact::manager( Kopete::Contact::CanCreateFlags /*canCr bool WPContact::isOnline() const { kdDebug(14170) << "[WPContact::isOnline()]" << endl; - return onlineStatus().status() != Kopete::OnlineStatus::Offline && onlineStatus().status() != Kopete::OnlineStatus::Unknown; + return onlinetqStatus().status() != Kopete::OnlineStatus::Offline && onlinetqStatus().status() != Kopete::OnlineStatus::Unknown; } */ bool WPContact::isReachable() { // kdDebug(14170) << "[WPContact::isReachable()]" << endl; - return onlineStatus().status() != Kopete::OnlineStatus::Offline && onlineStatus().status() != Kopete::OnlineStatus::Unknown; + return onlinetqStatus().status() != Kopete::OnlineStatus::Offline && onlinetqStatus().status() != Kopete::OnlineStatus::Unknown; } void WPContact::slotChatSessionDestroyed() @@ -131,7 +131,7 @@ void deleteContact() } */ -void WPContact::slotCheckStatus() +void WPContact::slotChecktqStatus() { bool oldWasConnected = myWasConnected; bool newIsOnline = false; @@ -141,11 +141,11 @@ void WPContact::slotCheckStatus() if (acct) newIsOnline = acct->checkHost(contactId()); if(newIsOnline != isOnline() || myWasConnected != oldWasConnected) { - Kopete::OnlineStatus tmpStatus = WPProtocol::protocol()->WPOffline; + Kopete::OnlineStatus tmptqStatus = WPProtocol::protocol()->WPOffline; if (myWasConnected && newIsOnline) { - tmpStatus = WPProtocol::protocol()->WPOnline; + tmptqStatus = WPProtocol::protocol()->WPOnline; } - setOnlineStatus(tmpStatus); + setOnlineStatus(tmptqStatus); } } diff --git a/kopete/protocols/winpopup/wpcontact.h b/kopete/protocols/winpopup/wpcontact.h index 8acd7235..6843d6c2 100644 --- a/kopete/protocols/winpopup/wpcontact.h +++ b/kopete/protocols/winpopup/wpcontact.h @@ -62,7 +62,7 @@ public: public slots: virtual void slotUserInfo(); - void slotCheckStatus(); // the call back for the checkStatus timer + void slotChecktqStatus(); // the call back for the checktqStatus timer void slotNewMessage(const TQString &Body, const TQDateTime &Arrival); private slots: @@ -73,7 +73,7 @@ private slots: private: bool myWasConnected; // true if protocol connected at last check - TQTimer checkStatus; // checks the status of this contact every second or so + TQTimer checktqStatus; // checks the status of this contact every second or so // KActionCollection *myActionCollection; // holds all the protocol specific actions (not many!) Kopete::ChatSession *m_manager; diff --git a/kopete/protocols/winpopup/wpprotocol.cpp b/kopete/protocols/winpopup/wpprotocol.cpp index 91145338..d16c8e6a 100644 --- a/kopete/protocols/winpopup/wpprotocol.cpp +++ b/kopete/protocols/winpopup/wpprotocol.cpp @@ -58,7 +58,7 @@ WPProtocol::WPProtocol( TQObject *parent, const char *name, const TQStringList & sProtocol = this; - // Load Status Actions + // Load tqStatus Actions // initActions(); // TODO: Maybe use this in the future? diff --git a/kopete/protocols/winpopup/wpuserinfo.cpp b/kopete/protocols/winpopup/wpuserinfo.cpp index 162374b7..c602b70e 100644 --- a/kopete/protocols/winpopup/wpuserinfo.cpp +++ b/kopete/protocols/winpopup/wpuserinfo.cpp @@ -38,7 +38,7 @@ WPUserInfo::WPUserInfo( WPContact *contact, WPAccount */*account*/, TQWidget *pa { // kdDebug( 14170 ) << k_funcinfo << endl; - setCaption( i18n( "User Info for %1" ).arg( m_contact->nickName() ) ); + setCaption( i18n( "User Info for %1" ).tqarg( m_contact->nickName() ) ); m_mainWidget = new WPUserInfoWidget( this, "WPUserInfo::m_mainWidget" ); setMainWidget( m_mainWidget ); diff --git a/kopete/protocols/yahoo/libkyahoo/changestatustask.cpp b/kopete/protocols/yahoo/libkyahoo/changestatustask.cpp index 1943aa6b..a92cfc8f 100644 --- a/kopete/protocols/yahoo/libkyahoo/changestatustask.cpp +++ b/kopete/protocols/yahoo/libkyahoo/changestatustask.cpp @@ -1,6 +1,6 @@ /* Kopete Yahoo Protocol - Change our Status + Change our tqStatus Copyright (c) 2005-2006 André Duffeck @@ -41,7 +41,7 @@ void ChangeStatusTask::onGo() } else { - YMSGTransfer *t = new YMSGTransfer( Yahoo::ServiceStatus ); + YMSGTransfer *t = new YMSGTransfer( Yahoo::ServicetqStatus ); t->setId( client()->sessionID() ); if( !m_message.isEmpty() ) @@ -55,7 +55,7 @@ void ChangeStatusTask::onGo() send( t ); - if( client()->status() == Yahoo::StatusInvisible ) // Invisible --> Status + if( client()->status() == Yahoo::StatusInvisible ) // Invisible --> tqStatus sendVisibility( Visible ); } setSuccess(); @@ -74,7 +74,7 @@ void ChangeStatusTask::setMessage( const TQString &msg ) m_message = msg; } -void ChangeStatusTask::setStatus( Yahoo::Status status ) +void ChangeStatusTask::settqStatus( Yahoo::tqStatus status ) { m_status = status; } diff --git a/kopete/protocols/yahoo/libkyahoo/changestatustask.h b/kopete/protocols/yahoo/libkyahoo/changestatustask.h index 200a6f34..ffeb5301 100644 --- a/kopete/protocols/yahoo/libkyahoo/changestatustask.h +++ b/kopete/protocols/yahoo/libkyahoo/changestatustask.h @@ -1,6 +1,6 @@ /* Kopete Yahoo Protocol - Change our Status + Change our tqStatus Copyright (c) 2005 André Duffeck @@ -36,12 +36,12 @@ public: virtual void onGo(); void setMessage( const TQString &msg ); - void setStatus( Yahoo::Status status ); + void settqStatus( Yahoo::tqStatus status ); void setType( Yahoo::StatusType type ); private: enum Visibility { Visible = 1, Invisible = 2 }; TQString m_message; - Yahoo::Status m_status; + Yahoo::tqStatus m_status; Yahoo::StatusType m_type; void sendVisibility( Visibility visible ); diff --git a/kopete/protocols/yahoo/libkyahoo/client.cpp b/kopete/protocols/yahoo/libkyahoo/client.cpp index e5ca520d..366b256e 100644 --- a/kopete/protocols/yahoo/libkyahoo/client.cpp +++ b/kopete/protocols/yahoo/libkyahoo/client.cpp @@ -95,10 +95,10 @@ public: TQString yCookie; TQString tCookie; TQString cCookie; - Yahoo::Status status; - Yahoo::Status statusOnConnect; + Yahoo::tqStatus status; + Yahoo::tqStatus statusOnConnect; TQString statusMessageOnConnect; - Yahoo::PictureStatus pictureFlag; + Yahoo::PicturetqStatus pictureFlag; int pictureChecksum; bool buddyListReady; TQStringList pictureRequestQueue; @@ -112,7 +112,7 @@ Client::Client(TQObject *par) :TQObject(par, "yahooclient") d->root = new Task(this, true); d->statusOnConnect = Yahoo::StatusAvailable; - setStatus( Yahoo::StatusDisconnected ); + settqStatus( Yahoo::StatusDisconnected ); d->tasksInitialized = false; d->stream = 0L; d->iconLoader = 0L; @@ -132,8 +132,8 @@ Client::Client(TQObject *par) :TQObject(par, "yahooclient") TQObject::connect( d->loginTask, TQT_SIGNAL( haveCookies() ), TQT_SLOT( slotGotCookies() ) ); TQObject::connect( d->listTask, TQT_SIGNAL( gotBuddy(const TQString &, const TQString &, const TQString &) ), TQT_SIGNAL( gotBuddy(const TQString &, const TQString &, const TQString &) ) ); - TQObject::connect( d->listTask, TQT_SIGNAL( stealthStatusChanged( const TQString&, Yahoo::StealthStatus ) ), - TQT_SIGNAL( stealthStatusChanged( const TQString&, Yahoo::StealthStatus ) ) ); + TQObject::connect( d->listTask, TQT_SIGNAL( stealthStatusChanged( const TQString&, Yahoo::StealthtqStatus ) ), + TQT_SIGNAL( stealthStatusChanged( const TQString&, Yahoo::StealthtqStatus ) ) ); } Client::~Client() @@ -151,7 +151,7 @@ void Client::connect( const TQString &host, const uint port, const TQString &use d->port = port; d->user = userId; d->pass = pass; - setStatus( Yahoo::StatusConnecting ); + settqStatus( Yahoo::StatusConnecting ); m_connector = new KNetworkConnector; m_connector->setOptHostPort( host, port ); @@ -272,9 +272,9 @@ void Client::slotLoginResponse( int response, const TQString &msg ) if( !(d->statusOnConnect == Yahoo::StatusAvailable || d->statusOnConnect == Yahoo::StatusInvisible) || !d->statusMessageOnConnect.isEmpty() ) - changeStatus( d->statusOnConnect, d->statusMessageOnConnect, Yahoo::StatusTypeAway ); + changetqStatus( d->statusOnConnect, d->statusMessageOnConnect, Yahoo::StatusTypeAway ); d->statusMessageOnConnect = TQString(); - setStatus( d->statusOnConnect ); + settqStatus( d->statusOnConnect ); /* only send a ping every hour. we get disconnected otherwise */ m_pingTimer->start( 60 * 60 * 1000 ); initTasks(); @@ -344,7 +344,7 @@ void Client::sendBuzz( const TQString &to ) { SendMessageTask *smt = new SendMessageTask( d->root ); smt->setTarget( to ); - smt->setText( TQString::fromLatin1( "" ) ); + smt->setText( TQString::tqfromLatin1( "" ) ); smt->setPicureFlag( pictureFlag() ); smt->go( true ); } @@ -404,13 +404,13 @@ void Client::cancelFileTransfer( unsigned int transferId ) emit fileTransferCanceled( transferId ); } -void Client::changeStatus( Yahoo::Status status, const TQString &message, Yahoo::StatusType type ) +void Client::changetqStatus( Yahoo::tqStatus status, const TQString &message, Yahoo::StatusType type ) { kdDebug(YAHOO_RAW_DEBUG) << "status: " << status << " message: " << message << " type: " << type << endl; ChangeStatusTask *cst = new ChangeStatusTask( d->root ); - cst->setStatus( status ); + cst->settqStatus( status ); cst->setMessage( message ); cst->setType( type ); cst->go( true ); @@ -418,7 +418,7 @@ void Client::changeStatus( Yahoo::Status status, const TQString &message, Yahoo: if( status == Yahoo::StatusInvisible ) stealthContact( TQString(), Yahoo::StealthOnline, Yahoo::StealthClear ); - setStatus( status ); + settqStatus( status ); } void Client::sendAuthReply( const TQString &userId, bool accept, const TQString &msg ) @@ -444,7 +444,7 @@ void Client::sendPing() // ***** Contactlist handling ***** -void Client::stealthContact(TQString const &userId, Yahoo::StealthMode mode, Yahoo::StealthStatus state) +void Client::stealthContact(TQString const &userId, Yahoo::StealthMode mode, Yahoo::StealthtqStatus state) { StealthTask *st = new StealthTask( d->root ); st->setTarget( userId ); @@ -575,7 +575,7 @@ void Client::sendPictureInformation( const TQString &userId, const TQString &url spt->go( true ); } -void Client::setPictureStatus( Yahoo::PictureStatus status ) +void Client::setPicturetqStatus( Yahoo::PicturetqStatus status ) { if( d->pictureFlag == status ) return; @@ -583,8 +583,8 @@ void Client::setPictureStatus( Yahoo::PictureStatus status ) kdDebug(YAHOO_RAW_DEBUG) << "Setting PictureStatus to: " << status << endl; d->pictureFlag = status; SendPictureTask *spt = new SendPictureTask( d->root ); - spt->setType( SendPictureTask::SendStatus ); - spt->setStatus( status ); + spt->setType( SendPictureTask::SendtqStatus ); + spt->settqStatus( status ); spt->go( true ); } @@ -710,8 +710,8 @@ void Client::leaveChat() // ***** other ***** void Client::notifyError( const TQString &info, const TQString & errorString, LogLevel level ) { - kdDebug(YAHOO_RAW_DEBUG) << TQString::fromLatin1("\nThe following error occurred: %1\n Reason: %2\n LogLevel: %3") - .arg(info).arg(errorString).arg(level) << endl; + kdDebug(YAHOO_RAW_DEBUG) << TQString::tqfromLatin1("\nThe following error occurred: %1\n Reason: %2\n LogLevel: %3") + .tqarg(info).tqarg(errorString).tqarg(level) << endl; d->errorString = errorString; d->errorInformation = info; emit error( level ); @@ -727,18 +727,18 @@ void Client::setUserId( const TQString & userId ) d->user = userId; } -Yahoo::Status Client::status() +Yahoo::tqStatus Client::status() { return d->status; } -void Client::setStatus( Yahoo::Status status ) +void Client::settqStatus( Yahoo::tqStatus status ) { d->status = status; } -void Client::setStatusOnConnect( Yahoo::Status status ) +void Client::setStatusOnConnect( Yahoo::tqStatus status ) { d->statusOnConnect = status; } @@ -841,8 +841,8 @@ void Client::initTasks() d->statusTask = new StatusNotifierTask( d->root ); TQObject::connect( d->statusTask, TQT_SIGNAL( statusChanged(const TQString&,int,const TQString&,int,int,int) ), TQT_SIGNAL( statusChanged(const TQString&,int,const TQString&,int,int,int) ) ); - TQObject::connect( d->statusTask, TQT_SIGNAL( stealthStatusChanged( const TQString&, Yahoo::StealthStatus ) ), - TQT_SIGNAL( stealthStatusChanged( const TQString&, Yahoo::StealthStatus ) ) ); + TQObject::connect( d->statusTask, TQT_SIGNAL( stealthStatusChanged( const TQString&, Yahoo::StealthtqStatus ) ), + TQT_SIGNAL( stealthStatusChanged( const TQString&, Yahoo::StealthtqStatus ) ) ); TQObject::connect( d->statusTask, TQT_SIGNAL( loginResponse( int, const TQString& ) ), TQT_SLOT( slotLoginResponse( int, const TQString& ) ) ); TQObject::connect( d->statusTask, TQT_SIGNAL( authorizationRejected( const TQString&, const TQString& ) ), diff --git a/kopete/protocols/yahoo/libkyahoo/client.h b/kopete/protocols/yahoo/libkyahoo/client.h index 4e1602eb..586eead5 100644 --- a/kopete/protocols/yahoo/libkyahoo/client.h +++ b/kopete/protocols/yahoo/libkyahoo/client.h @@ -100,7 +100,7 @@ Q_OBJECT * If status is any other status the Client connects into Online state and changes into the specified state after the login. * @param status the status to connect with */ - void setStatusOnConnect( Yahoo::Status status ); + void setStatusOnConnect( Yahoo::tqStatus status ); /** * Specifies the status message we connect with. @@ -147,7 +147,7 @@ Q_OBJECT * @param message the status message that will be set * @param type Yahoo::StatusTypeAvailable means that the user is available, Yahoo::StatusTypeAway means that the user is away from the keyboard */ - void changeStatus(Yahoo::Status status, const TQString &message, Yahoo::StatusType type); + void changetqStatus(Yahoo::tqStatus status, const TQString &message, Yahoo::StatusType type); /** * Set the verification word that is needed for a account verification after @@ -162,7 +162,7 @@ Q_OBJECT * @param group the group where the buddy will be placed * @param message the message that will be sent to the buddy along the authorization request */ - void addBuddy( const TQString &userId, const TQString &group, const TQString &message = TQString::fromLatin1("Please add me") ); + void addBuddy( const TQString &userId, const TQString &group, const TQString &message = TQString::tqfromLatin1("Please add me") ); /** * Remove a buddy from the contact list @@ -185,7 +185,7 @@ Q_OBJECT * @param mode defines the Stealth mode that is changed. That can be "Appear Offline", "Appear Online" or "Apper permanently offline" * @param state the status of the specified Stealth mode. Active, Not Active or Clear */ - void stealthContact( TQString const &userId, Yahoo::StealthMode mode, Yahoo::StealthStatus state ); + void stealthContact( TQString const &userId, Yahoo::StealthMode mode, Yahoo::StealthtqStatus state ); /** * Request the buddy's picture @@ -226,7 +226,7 @@ Q_OBJECT * Notify the buddies about our new status * @param flag the type of our picture (0=none, 1=avatar, 2=picture) */ - void setPictureStatus( Yahoo::PictureStatus flag ); + void setPicturetqStatus( Yahoo::PicturetqStatus flag ); /** * Send a response to the webcam invite ( Accept / Decline ) @@ -432,13 +432,13 @@ Q_OBJECT int pictureChecksum(); /** Get our status */ - Yahoo::Status status(); + Yahoo::tqStatus status(); /** * Set our status * @param status the new status */ - void setStatus( Yahoo::Status status ); + void settqStatus( Yahoo::tqStatus status ); /** Access the root Task for this client, so tasks may be added to it. */ Task* rootTask(); @@ -503,7 +503,7 @@ Q_OBJECT /** * Notifies about the stealth status of buddies */ - void stealthStatusChanged( const TQString &, Yahoo::StealthStatus ); + void stealthStatusChanged( const TQString &, Yahoo::StealthtqStatus ); /** * Notifies about mails */ diff --git a/kopete/protocols/yahoo/libkyahoo/conferencetask.cpp b/kopete/protocols/yahoo/libkyahoo/conferencetask.cpp index 59d3b3fa..6ca9ae06 100644 --- a/kopete/protocols/yahoo/libkyahoo/conferencetask.cpp +++ b/kopete/protocols/yahoo/libkyahoo/conferencetask.cpp @@ -178,7 +178,7 @@ void ConferenceTask::addInvite( const TQString &room, const TQStringList &who, c TQString whoList = who.first(); for( int i = 1; i < who.size(); i++ ) - whoList += TQString(",%1").arg( who[i] ); + whoList += TQString(",%1").tqarg( who[i] ); t->setParam( 51, whoList.local8Bit() ); t->setParam( 57, room.local8Bit() ); diff --git a/kopete/protocols/yahoo/libkyahoo/coreprotocol.cpp b/kopete/protocols/yahoo/libkyahoo/coreprotocol.cpp index 1e4166f7..573c5ccf 100644 --- a/kopete/protocols/yahoo/libkyahoo/coreprotocol.cpp +++ b/kopete/protocols/yahoo/libkyahoo/coreprotocol.cpp @@ -24,7 +24,7 @@ #include #include -#include +#include #include #include diff --git a/kopete/protocols/yahoo/libkyahoo/listtask.h b/kopete/protocols/yahoo/libkyahoo/listtask.h index 8f8e69ba..cd7718e3 100644 --- a/kopete/protocols/yahoo/libkyahoo/listtask.h +++ b/kopete/protocols/yahoo/libkyahoo/listtask.h @@ -41,7 +41,7 @@ protected: void parseStealthList( YMSGTransfer *transfer ); signals: void gotBuddy(const TQString&, const TQString&, const TQString&); - void stealthStatusChanged( const TQString&, Yahoo::StealthStatus ); + void stealthStatusChanged( const TQString&, Yahoo::StealthtqStatus ); }; #endif diff --git a/kopete/protocols/yahoo/libkyahoo/logintask.cpp b/kopete/protocols/yahoo/libkyahoo/logintask.cpp index f6b8a47e..d653ecf1 100644 --- a/kopete/protocols/yahoo/libkyahoo/logintask.cpp +++ b/kopete/protocols/yahoo/libkyahoo/logintask.cpp @@ -212,7 +212,7 @@ void LoginTask::sendAuthSixteenStage1(const TQString& sn, const TQString& seed) m_stage1Data= TQString(); /* construct a URL from the seed and request tokens */ TQByteArray encodedUrl; - TQString fullUrl = YahooTokenUrl.arg(sn, client()->password(), seed); + TQString fullUrl = YahooTokenUrl.tqarg(sn, client()->password(), seed); KURL tokenUrl(fullUrl); KIO::Job* job = KIO::get(tokenUrl, true, false); connect(job, TQT_SIGNAL(data(KIO::Job*, const TQByteArray&)), @@ -292,7 +292,7 @@ void LoginTask::sendAuthSixteenStage2(const TQString& token) const TQString YahooLoginUrl = "https://login.yahoo.com/config/pwtoken_login?src=ymsgr&ts=&token=%1"; kdDebug(YAHOO_RAW_DEBUG) << "token:" << token << endl; m_stage2Data = TQString(); - TQString fullUrl = YahooLoginUrl.arg(token); + TQString fullUrl = YahooLoginUrl.tqarg(token); KURL loginUrl(fullUrl); KIO::Job* job = KIO::get(loginUrl, true, false); connect(job, TQT_SIGNAL(data(KIO::Job*, const TQByteArray&)), @@ -404,7 +404,7 @@ void LoginTask::handleAuthResp(YMSGTransfer *t) mState = InitialState; } -void LoginTask::setStateOnConnect( Yahoo::Status status ) +void LoginTask::setStateOnConnect( Yahoo::tqStatus status ) { m_stateOnConnect = status; } diff --git a/kopete/protocols/yahoo/libkyahoo/logintask.h b/kopete/protocols/yahoo/libkyahoo/logintask.h index 4ed1ac95..30c01ffe 100644 --- a/kopete/protocols/yahoo/libkyahoo/logintask.h +++ b/kopete/protocols/yahoo/libkyahoo/logintask.h @@ -47,7 +47,7 @@ public: virtual void onGo(); void reset(); - void setStateOnConnect( Yahoo::Status status ); + void setStateOnConnect( Yahoo::tqStatus status ); void setVerificationWord( const TQString &word ); const TQString &yCookie(); @@ -80,7 +80,7 @@ signals: void buddyListReady(); private: State mState; - Yahoo::Status m_stateOnConnect; + Yahoo::tqStatus m_stateOnConnect; TQString m_yCookie; TQString m_tCookie; TQString m_cCookie; diff --git a/kopete/protocols/yahoo/libkyahoo/mailnotifiertask.cpp b/kopete/protocols/yahoo/libkyahoo/mailnotifiertask.cpp index de6a1080..133b17cf 100644 --- a/kopete/protocols/yahoo/libkyahoo/mailnotifiertask.cpp +++ b/kopete/protocols/yahoo/libkyahoo/mailnotifiertask.cpp @@ -68,7 +68,7 @@ void MailNotifierTask::parseMail( YMSGTransfer *t ) TQString subject = t->firstParam( 18 ); if( !mail.isEmpty() && !from.isEmpty() && !subject.isEmpty() ) - emit mailNotify( TQString::fromLatin1( "%1 <%2>").arg( from, mail ), subject, count.toInt() ); + emit mailNotify( TQString::tqfromLatin1( "%1 <%2>").tqarg( from, mail ), subject, count.toInt() ); else emit mailNotify( TQString(), TQString(), count.toInt()); } diff --git a/kopete/protocols/yahoo/libkyahoo/modifyyabtask.cpp b/kopete/protocols/yahoo/libkyahoo/modifyyabtask.cpp index 4dd00d90..3888bef8 100644 --- a/kopete/protocols/yahoo/libkyahoo/modifyyabtask.cpp +++ b/kopete/protocols/yahoo/libkyahoo/modifyyabtask.cpp @@ -91,7 +91,7 @@ void ModifyYABTask::connectFailed( int i) { m_socket->close(); client()->notifyError( i18n( "An error occurred while saving the address book entry." ), - TQString( "%1 - %2").arg(i).arg(static_cast( sender() )->KSocketBase::errorString()), Client::Error ); + TQString( "%1 - %2").tqarg(i).tqarg(static_cast( sender() )->KSocketBase::errorString()), Client::Error ); } void ModifyYABTask::connectSucceeded() @@ -99,14 +99,14 @@ void ModifyYABTask::connectSucceeded() kdDebug(YAHOO_RAW_DEBUG) ; KBufferedSocket* socket = const_cast( static_cast( sender() ) ); - TQString header = TQString::fromLatin1("POST /yab/us?v=XM&prog=ymsgr&.intl=us&sync=1&tags=short&noclear=1& HTTP/1.1\r\n" + TQString header = TQString::tqfromLatin1("POST /yab/us?v=XM&prog=ymsgr&.intl=us&sync=1&tags=short&noclear=1& HTTP/1.1\r\n" "Cookie: Y=%1; T=%2; C=%3 ;B=fckeert1kk1nl&b=2\r\n" "User-Agent: Mozilla/4.0 (compatible; MSIE 5.5)\r\n" "Host: address.yahoo.com\r\n" "Content-length: %4\r\n" "Cache-Control: no-cache\r\n\r\n") - .arg(client()->yCookie()).arg(client()->tCookie()) - .arg(client()->cCookie()).arg(m_postData.utf8().size()); + .tqarg(client()->yCookie()).tqarg(client()->tCookie()) + .tqarg(client()->cCookie()).tqarg(m_postData.utf8().size()); TQByteArray buffer; TQByteArray paket; @@ -174,21 +174,21 @@ void ModifyYABTask::slotRead() case EditEntry: if( !e.attribute( "es" ).isEmpty() && e.attribute( "es" ) != "0" ) // Check for edit errors { - emit error( entry, i18n("The Yahoo Address Book entry could not be saved:\n%1 - %2").arg( e.attribute("es") ).arg( e.attribute("ee") ) ); + emit error( entry, i18n("The Yahoo Address Book entry could not be saved:\n%1 - %2").tqarg( e.attribute("es") ).tqarg( e.attribute("ee") ) ); continue; } break; case AddEntry: if( !e.attribute( "as" ).isEmpty() && e.attribute( "as" ) != "0" ) // Check for add errors { - emit error( entry, i18n("The Yahoo Address Book entry could not be created:\n%1 - %2").arg( e.attribute("as") ).arg( e.attribute("ae") ) ); + emit error( entry, i18n("The Yahoo Address Book entry could not be created:\n%1 - %2").tqarg( e.attribute("as") ).tqarg( e.attribute("ae") ) ); continue; } break; case DeleteEntry: if( !e.attribute( "ds" ).isEmpty() && e.attribute( "ds" ) != "0" ) // Check for delete errors { - emit error( entry, i18n("The Yahoo Address Book entry could not be deleted:\n%1 - %2").arg( e.attribute("ds") ).arg( e.attribute("de") ) ); + emit error( entry, i18n("The Yahoo Address Book entry could not be deleted:\n%1 - %2").tqarg( e.attribute("ds") ).tqarg( e.attribute("de") ) ); continue; } break; diff --git a/kopete/protocols/yahoo/libkyahoo/picturenotifiertask.cpp b/kopete/protocols/yahoo/libkyahoo/picturenotifiertask.cpp index 07c3d225..a7245fe6 100644 --- a/kopete/protocols/yahoo/libkyahoo/picturenotifiertask.cpp +++ b/kopete/protocols/yahoo/libkyahoo/picturenotifiertask.cpp @@ -47,8 +47,8 @@ bool PictureNotifierTask::take( Transfer* transfer ) switch( t->service() ) { - case Yahoo::ServicePictureStatus: - parsePictureStatus( t ); + case Yahoo::ServicePicturetqStatus: + parsePicturetqStatus( t ); parsePicture( t ); break; case Yahoo::ServicePictureChecksum: @@ -80,13 +80,13 @@ bool PictureNotifierTask::forMe( const Transfer* transfer ) const t->service() == Yahoo::ServicePicture || t->service() == Yahoo::ServicePictureUpdate || t->service() == Yahoo::ServicePictureUpload || - t->service() == Yahoo::ServicePictureStatus ) + t->service() == Yahoo::ServicePicturetqStatus ) return true; else return false; } -void PictureNotifierTask::parsePictureStatus( YMSGTransfer *t ) +void PictureNotifierTask::parsePicturetqStatus( YMSGTransfer *t ) { kdDebug(YAHOO_RAW_DEBUG) ; diff --git a/kopete/protocols/yahoo/libkyahoo/picturenotifiertask.h b/kopete/protocols/yahoo/libkyahoo/picturenotifiertask.h index 832efc35..7e09be19 100644 --- a/kopete/protocols/yahoo/libkyahoo/picturenotifiertask.h +++ b/kopete/protocols/yahoo/libkyahoo/picturenotifiertask.h @@ -39,7 +39,7 @@ public: protected: virtual bool forMe( const Transfer *transfer ) const; void parsePictureChecksum( YMSGTransfer *transfer ); - void parsePictureStatus( YMSGTransfer *transfer ); + void parsePicturetqStatus( YMSGTransfer *transfer ); void parsePicture( YMSGTransfer *transfer ); void parsePictureUploadResponse( YMSGTransfer *transfer ); signals: diff --git a/kopete/protocols/yahoo/libkyahoo/receivefiletask.cpp b/kopete/protocols/yahoo/libkyahoo/receivefiletask.cpp index ec2e9f5f..3943cd22 100644 --- a/kopete/protocols/yahoo/libkyahoo/receivefiletask.cpp +++ b/kopete/protocols/yahoo/libkyahoo/receivefiletask.cpp @@ -187,20 +187,20 @@ void ReceiveFileTask::parseFileTransfer7Info( YMSGTransfer *transfer ) send( t ); // The server expects a HTTP HEAD command prior to the GET - m_mimetypeJob = KIO::mimetype(TQString::fromLatin1("http://%1/relay?token=%2&sender=%3&recver=%4") - .arg( TQString(transfer->firstParam( 250 )) ).arg( TQString(transfer->firstParam( 251 )) ).arg(m_userId).arg(client()->userId()), false); + m_mimetypeJob = KIO::mimetype(TQString::tqfromLatin1("http://%1/relay?token=%2&sender=%3&recver=%4") + .tqarg( TQString(transfer->firstParam( 250 )) ).tqarg( TQString(transfer->firstParam( 251 )) ).tqarg(m_userId).tqarg(client()->userId()), false); m_mimetypeJob->addMetaData("cookies", "manual"); - m_mimetypeJob->addMetaData("setcookies", TQString::fromLatin1("Cookie: T=%1; path=/; domain=.yahoo.com; Y=%2; C=%3;") - .arg(client()->tCookie()).arg(client()->yCookie()).arg(client()->cCookie()) ); + m_mimetypeJob->addMetaData("setcookies", TQString::tqfromLatin1("Cookie: T=%1; path=/; domain=.yahoo.com; Y=%2; C=%3;") + .tqarg(client()->tCookie()).tqarg(client()->yCookie()).tqarg(client()->cCookie()) ); - m_transferJob = KIO::get( TQString::fromLatin1("http://%1/relay?token=%2&sender=%3&recver=%4") - .arg( TQString(transfer->firstParam( 250 )) ).arg( TQString(transfer->firstParam( 251 )) ).arg(m_userId).arg(client()->userId()), false, false ); + m_transferJob = KIO::get( TQString::tqfromLatin1("http://%1/relay?token=%2&sender=%3&recver=%4") + .tqarg( TQString(transfer->firstParam( 250 )) ).tqarg( TQString(transfer->firstParam( 251 )) ).tqarg(m_userId).tqarg(client()->userId()), false, false ); TQObject::connect( m_transferJob, TQT_SIGNAL( result( KIO::Job* ) ), this, TQT_SLOT( slotComplete( KIO::Job* ) ) ); TQObject::connect( m_transferJob, TQT_SIGNAL( data( KIO::Job*, const TQByteArray & ) ), this, TQT_SLOT( slotData( KIO::Job*, const TQByteArray & ) ) ); m_transferJob->addMetaData("cookies", "manual"); - m_transferJob->addMetaData("setcookies", TQString::fromLatin1("Cookie: T=%1; path=/; domain=.yahoo.com; Y=%2; path=/; domain=.yahoo.com;") - .arg(client()->tCookie()).arg(client()->yCookie()) ); + m_transferJob->addMetaData("setcookies", TQString::tqfromLatin1("Cookie: T=%1; path=/; domain=.yahoo.com; Y=%2; path=/; domain=.yahoo.com;") + .tqarg(client()->tCookie()).tqarg(client()->yCookie()) ); } } diff --git a/kopete/protocols/yahoo/libkyahoo/sendnotifytask.cpp b/kopete/protocols/yahoo/libkyahoo/sendnotifytask.cpp index 638a1811..3f4f83b2 100644 --- a/kopete/protocols/yahoo/libkyahoo/sendnotifytask.cpp +++ b/kopete/protocols/yahoo/libkyahoo/sendnotifytask.cpp @@ -35,7 +35,7 @@ void SendNotifyTask::onGo() { YMSGTransfer *t = new YMSGTransfer(Yahoo::ServiceNotify); t->setId( client()->sessionID() ); - t->setStatus( Yahoo::StatusNotify ); + t->settqStatus( Yahoo::StatusNotify ); switch( m_type ) { diff --git a/kopete/protocols/yahoo/libkyahoo/sendpicturetask.cpp b/kopete/protocols/yahoo/libkyahoo/sendpicturetask.cpp index 04673c62..a9e76332 100644 --- a/kopete/protocols/yahoo/libkyahoo/sendpicturetask.cpp +++ b/kopete/protocols/yahoo/libkyahoo/sendpicturetask.cpp @@ -55,8 +55,8 @@ void SendPictureTask::onGo() case SendInformation: sendInformation(); break; - case SendStatus: - sendStatus(); + case SendtqStatus: + sendtqStatus(); break; } } @@ -76,7 +76,7 @@ void SendPictureTask::connectFailed( int i) { kdDebug(YAHOO_RAW_DEBUG) << i << ": " << static_cast( sender() )->KSocketBase::errorString() << endl; - client()->notifyError(i18n("The picture was not successfully uploaded"), TQString("%1 - %2").arg(i).arg(static_cast( sender() )->KSocketBase::errorString()), Client::Error ); + client()->notifyError(i18n("The picture was not successfully uploaded"), TQString("%1 - %2").tqarg(i).tqarg(static_cast( sender() )->KSocketBase::errorString()), Client::Error ); setError(); } @@ -105,18 +105,18 @@ void SendPictureTask::connectSucceeded() else { kdDebug(YAHOO_RAW_DEBUG) << "Error opening file: " << TQString(file.errorString()).ascii() << endl; - client()->notifyError(i18n("Error opening file: %1").arg(m_path), file.errorString(), Client::Error ); + client()->notifyError(i18n("Error opening file: %1").tqarg(m_path), file.errorString(), Client::Error ); return; } paket = t.serialize(); kdDebug(YAHOO_RAW_DEBUG) << "Sizes: File (" << m_path << "): " << file.size() << " - paket: " << paket.size() << endl; - TQString header = TQString::fromLatin1("POST /notifyft HTTP/1.1\r\n" + TQString header = TQString::tqfromLatin1("POST /notifyft HTTP/1.1\r\n" "Cookie: Y=%1; T=%2; C=%3 ;\r\n" "User-Agent: Mozilla/4.0 (compatible; MSIE 5.5)\r\n" "Host: filetransfer.msg.yahoo.com\r\n" "Content-length: %4\r\n" - "Cache-Control: no-cache\r\n\r\n").arg(client()->yCookie()).arg(client()->tCookie()).arg(client()->cCookie()).arg(file.size()+4+paket.size()); + "Cache-Control: no-cache\r\n\r\n").tqarg(client()->yCookie()).tqarg(client()->tCookie()).tqarg(client()->cCookie()).tqarg(file.size()+4+paket.size()); stream.writeRawBytes( header.local8Bit(), header.length() ); stream.writeRawBytes( paket.data(), paket.size() ); stream << (TQ_INT8)0x32 << (TQ_INT8)0x39 << (TQ_INT8)0xc0 << (TQ_INT8)0x80; @@ -208,11 +208,11 @@ void SendPictureTask::sendInformation() setSuccess(); } -void SendPictureTask::sendStatus() +void SendPictureTask::sendtqStatus() { kdDebug(YAHOO_GEN_DEBUG) << k_funcinfo << endl; - YMSGTransfer *t = new YMSGTransfer(Yahoo::ServicePictureStatus); + YMSGTransfer *t = new YMSGTransfer(Yahoo::ServicePicturetqStatus); t->setId( client()->sessionID() ); t->setParam(3, client()->userId().local8Bit()); t->setParam(213, m_status ); @@ -252,7 +252,7 @@ void SendPictureTask::setChecksum( int checksum ) m_checksum = checksum; } -void SendPictureTask::setStatus( int status ) +void SendPictureTask::settqStatus( int status ) { m_status = status; } diff --git a/kopete/protocols/yahoo/libkyahoo/sendpicturetask.h b/kopete/protocols/yahoo/libkyahoo/sendpicturetask.h index 4bac4f31..861d0dd5 100644 --- a/kopete/protocols/yahoo/libkyahoo/sendpicturetask.h +++ b/kopete/protocols/yahoo/libkyahoo/sendpicturetask.h @@ -37,7 +37,7 @@ class SendPictureTask : public Task Q_OBJECT TQ_OBJECT public: - enum Type { UploadPicture, SendChecksum, SendInformation, SendStatus }; + enum Type { UploadPicture, SendChecksum, SendInformation, SendtqStatus }; SendPictureTask(Task *parent); virtual ~SendPictureTask(); @@ -50,13 +50,13 @@ public: void setFilesize( int ); void setPath( const TQString & ); void setChecksum( int ); - void setStatus( int ); + void settqStatus( int ); void setUrl( const TQString & ); private: void initiateUpload(); void sendChecksum(); void sendInformation(); - void sendStatus(); + void sendtqStatus(); private slots: void connectSucceeded(); void connectFailed( int ); diff --git a/kopete/protocols/yahoo/libkyahoo/statusnotifiertask.cpp b/kopete/protocols/yahoo/libkyahoo/statusnotifiertask.cpp index 4038301e..95e06b3c 100644 --- a/kopete/protocols/yahoo/libkyahoo/statusnotifiertask.cpp +++ b/kopete/protocols/yahoo/libkyahoo/statusnotifiertask.cpp @@ -42,11 +42,11 @@ bool StatusNotifierTask::take( Transfer* transfer ) YMSGTransfer *t = static_cast(transfer); if( t->service() == Yahoo::ServiceStealthOffline ) - parseStealthStatus( t ); + parseStealthtqStatus( t ); else if( t->service() == Yahoo::ServiceAuthorization ) parseAuthorization( t ); else - parseStatus( t ); + parsetqStatus( t ); return true; } @@ -67,17 +67,17 @@ bool StatusNotifierTask::forMe( const Transfer* transfer ) const t->service() == Yahoo::ServiceGameLogoff || t->service() == Yahoo::ServiceIdAct || t->service() == Yahoo::ServiceIddeAct || - t->service() == Yahoo::ServiceStatus || + t->service() == Yahoo::ServicetqStatus || t->service() == Yahoo::ServiceStealthOffline || t->service() == Yahoo::ServiceAuthorization || - t->service() == Yahoo::ServiceBuddyStatus + t->service() == Yahoo::ServiceBuddytqStatus ) return true; else return false; } -void StatusNotifierTask::parseStatus( YMSGTransfer* t ) +void StatusNotifierTask::parsetqStatus( YMSGTransfer* t ) { kdDebug(YAHOO_RAW_DEBUG) ; @@ -156,14 +156,14 @@ void StatusNotifierTask::parseAuthorization( YMSGTransfer* t ) TQString lname = t->firstParam( 254 ); TQString name; if( !fname.isEmpty() || !lname.isEmpty() ) - name = TQString("%1 %2").arg(fname).arg(lname); + name = TQString("%1 %2").tqarg(fname).tqarg(lname); kdDebug(YAHOO_RAW_DEBUG) << "Emitting gotAuthorizationRequest( " << nick<< ", " << msg << ", " << name << " )" << endl; emit gotAuthorizationRequest( nick, msg, name ); } } -void StatusNotifierTask::parseStealthStatus( YMSGTransfer* t ) +void StatusNotifierTask::parseStealthtqStatus( YMSGTransfer* t ) { kdDebug(YAHOO_RAW_DEBUG) ; diff --git a/kopete/protocols/yahoo/libkyahoo/statusnotifiertask.h b/kopete/protocols/yahoo/libkyahoo/statusnotifiertask.h index 4941d479..8ed029f5 100644 --- a/kopete/protocols/yahoo/libkyahoo/statusnotifiertask.h +++ b/kopete/protocols/yahoo/libkyahoo/statusnotifiertask.h @@ -38,12 +38,12 @@ public: protected: virtual bool forMe( const Transfer *transfer ) const; - void parseStatus( YMSGTransfer *transfer ); - void parseStealthStatus( YMSGTransfer *transfer ); + void parsetqStatus( YMSGTransfer *transfer ); + void parseStealthtqStatus( YMSGTransfer *transfer ); void parseAuthorization( YMSGTransfer *transfer ); signals: void statusChanged( const TQString &nick, int state, const TQString &message, int away, int idle, int pictureChecksum ); - void stealthStatusChanged( const TQString&, Yahoo::StealthStatus ); + void stealthStatusChanged( const TQString&, Yahoo::StealthtqStatus ); void loginResponse( int, const TQString& ); void authorizationAccepted( const TQString & ); void authorizationRejected( const TQString &, const TQString & ); diff --git a/kopete/protocols/yahoo/libkyahoo/stealthtask.cpp b/kopete/protocols/yahoo/libkyahoo/stealthtask.cpp index 6eba854a..9dcc2431 100644 --- a/kopete/protocols/yahoo/libkyahoo/stealthtask.cpp +++ b/kopete/protocols/yahoo/libkyahoo/stealthtask.cpp @@ -70,7 +70,7 @@ void StealthTask::setTarget( const TQString &to ) m_target = to; } -void StealthTask::setState( Yahoo::StealthStatus state) +void StealthTask::setState( Yahoo::StealthtqStatus state) { m_state = state; } diff --git a/kopete/protocols/yahoo/libkyahoo/stealthtask.h b/kopete/protocols/yahoo/libkyahoo/stealthtask.h index 370f06bc..aef13038 100644 --- a/kopete/protocols/yahoo/libkyahoo/stealthtask.h +++ b/kopete/protocols/yahoo/libkyahoo/stealthtask.h @@ -35,12 +35,12 @@ public: virtual void onGo(); void setTarget( const TQString &to ); - void setState( Yahoo::StealthStatus state ); + void setState( Yahoo::StealthtqStatus state ); void setMode( Yahoo::StealthMode mode ); private: TQString m_target; Yahoo::StealthMode m_mode; - Yahoo::StealthStatus m_state; + Yahoo::StealthtqStatus m_state; }; #endif diff --git a/kopete/protocols/yahoo/libkyahoo/task.cpp b/kopete/protocols/yahoo/libkyahoo/task.cpp index ccebaef3..6ad9994c 100644 --- a/kopete/protocols/yahoo/libkyahoo/task.cpp +++ b/kopete/protocols/yahoo/libkyahoo/task.cpp @@ -128,7 +128,7 @@ bool Task::take( Transfer * transfer) if(p.isEmpty()) return false; - // pass along the transfer to our children + // pass along the transfer to our tqchildren TQObjectListIt it(p); Task *t; for(; it.current(); ++it) @@ -252,7 +252,7 @@ void Task::clientDisconnected() void Task::debug(const TQString &str) { - client()->debug(TQString("%1: ").arg(className()) + str); + client()->debug(TQString("%1: ").tqarg(className()) + str); } bool Task::forMe( const Transfer * transfer ) const diff --git a/kopete/protocols/yahoo/libkyahoo/tests/clientstream_test.cpp b/kopete/protocols/yahoo/libkyahoo/tests/clientstream_test.cpp index efcd63cf..6d8d9e0d 100644 --- a/kopete/protocols/yahoo/libkyahoo/tests/clientstream_test.cpp +++ b/kopete/protocols/yahoo/libkyahoo/tests/clientstream_test.cpp @@ -30,7 +30,7 @@ ClientStreamTest::~ClientStreamTest() void ClientStreamTest::slotDoTest() { - TQString server = TQString::fromLatin1("scs.msg.yahoo.com"); + TQString server = TQString::tqfromLatin1("scs.msg.yahoo.com"); // connect to server kdDebug(14180) << k_funcinfo << " connecting to server" << endl; myTestObject->connectToServer( server, true ); // fine up to here... diff --git a/kopete/protocols/yahoo/libkyahoo/tests/logintest.cpp b/kopete/protocols/yahoo/libkyahoo/tests/logintest.cpp index 5e9b04a5..ecf96906 100644 --- a/kopete/protocols/yahoo/libkyahoo/tests/logintest.cpp +++ b/kopete/protocols/yahoo/libkyahoo/tests/logintest.cpp @@ -46,7 +46,7 @@ LoginTest::~LoginTest() void LoginTest::slotDoTest() { - TQString server = TQString::fromLatin1("scs.msg.yahoo.com"); + TQString server = TQString::tqfromLatin1("scs.msg.yahoo.com"); // connect to server kdDebug(14180) << k_funcinfo << " connecting to server" << endl; diff --git a/kopete/protocols/yahoo/libkyahoo/webcamtask.cpp b/kopete/protocols/yahoo/libkyahoo/webcamtask.cpp index 90245b29..8c85705c 100644 --- a/kopete/protocols/yahoo/libkyahoo/webcamtask.cpp +++ b/kopete/protocols/yahoo/libkyahoo/webcamtask.cpp @@ -94,7 +94,7 @@ void WebcamTask::parseWebcamInformation( YMSGTransfer *t ) info.sender = keyPending; info.server = t->firstParam( 102 ); info.key = t->firstParam( 61 ); - info.status = InitialStatus; + info.status = InitialtqStatus; info.dataLength = 0; info.buffer = 0L; info.headerRead = false; @@ -135,7 +135,7 @@ void WebcamTask::slotConnectionStage1Established() if( socketMap[socket].direction == Incoming ) { socket->writeBlock( TQCString("").data(), 8 ); - s = TQString("g=%1\r\n").arg(socketMap[socket].sender); + s = TQString("g=%1\r\n").tqarg(socketMap[socket].sender); } else { @@ -172,7 +172,7 @@ void WebcamTask::slotConnectionStage2Established() socket->writeBlock( TQCString("").data(), 8 ); // Send request information s = TQString("a=2\r\nc=us\r\ne=21\r\nu=%1\r\nt=%2\r\ni=\r\ng=%3\r\no=w-2-5-1\r\np=1") - .arg(client()->userId()).arg(socketMap[socket].key).arg(socketMap[socket].sender); + .tqarg(client()->userId()).tqarg(socketMap[socket].key).tqarg(socketMap[socket].sender); // Header: 08 00 01 00 00 00 00 stream << (TQ_INT8)0x08 << (TQ_INT8)0x00 << (TQ_INT8)0x01 << (TQ_INT8)0x00 << (TQ_INT32)s.length(); } @@ -182,7 +182,7 @@ void WebcamTask::slotConnectionStage2Established() socket->writeBlock( TQCString("").data(), 8 ); // Send request information s = TQString("a=2\r\nc=us\r\nu=%1\r\nt=%2\r\ni=%3\r\no=w-2-5-1\r\np=2\r\nb=KopeteWebcam\r\nd=\r\n") - .arg(client()->userId()).arg(socketMap[socket].key).arg(socket->localAddress().nodeName()); + .tqarg(client()->userId()).tqarg(socketMap[socket].key).tqarg(socket->localAddress().nodeName()); // Header: 08 00 05 00 00 00 00 01 00 00 00 01 stream << (TQ_INT8)0x0d << (TQ_INT8)0x00 << (TQ_INT8)0x05 << (TQ_INT8)0x00 << (TQ_INT32)s.length() << (TQ_INT8)0x01 << (TQ_INT8)0x00 << (TQ_INT8)0x00 << (TQ_INT8)0x00 << (TQ_INT8)0x01; @@ -197,7 +197,7 @@ void WebcamTask::slotConnectionFailed( int error ) KStreamSocket* socket = const_cast( dynamic_cast( sender() ) ); kdDebug(YAHOO_RAW_DEBUG) << "Webcam connection to the user " << socketMap[socket].sender << " failed. Error " << error << " - " << socket->KSocketBase::errorString() << endl; client()->notifyError( i18n("Webcam connection to the user %1 could not be established.\n\nPlease relogin and try again.") - .arg(socketMap[socket].sender), TQString("%1 - %2").arg(error).arg( socket->KSocketBase::errorString()), Client::Error ); + .tqarg(socketMap[socket].sender), TQString("%1 - %2").tqarg(error).tqarg( socket->KSocketBase::errorString()), Client::Error ); socketMap.remove( socket ); socket->deleteLater(); } @@ -579,7 +579,7 @@ void WebcamTask::grantAccess( const TQString &userId ) } TQByteArray ar; TQDataStream stream( ar, IO_WriteOnly ); - TQString user = TQString("u=%1").arg(userId); + TQString user = TQString("u=%1").tqarg(userId); stream << (TQ_INT8)0x0d << (TQ_INT8)0x00 << (TQ_INT8)0x05 << (TQ_INT8)0x00 << (TQ_INT32)user.length() << (TQ_INT8)0x00 << (TQ_INT8)0x00 << (TQ_INT8)0x00 << (TQ_INT8)0x00 << (TQ_INT8)0x01; diff --git a/kopete/protocols/yahoo/libkyahoo/webcamtask.h b/kopete/protocols/yahoo/libkyahoo/webcamtask.h index 66dd92c8..1aff0537 100644 --- a/kopete/protocols/yahoo/libkyahoo/webcamtask.h +++ b/kopete/protocols/yahoo/libkyahoo/webcamtask.h @@ -30,7 +30,7 @@ namespace KNetwork { } using namespace KNetwork; -enum ConnectionStatus{ InitialStatus, ConnectedStage1, ConnectedStage2, Receiving, Sending, SendingEmpty }; +enum ConnectiontqStatus{ InitialtqStatus, ConnectedStage1, ConnectedStage2, Receiving, Sending, SendingEmpty }; enum PacketType { Image, ConnectionClosed, UserRequest, NewWatcher, WatcherLeft }; enum Direction { Incoming, Outgoing }; @@ -39,7 +39,7 @@ struct YahooWebcamInformation TQString sender; TQString server; TQString key; - ConnectionStatus status; + ConnectiontqStatus status; PacketType type; Direction direction; uchar reason; diff --git a/kopete/protocols/yahoo/libkyahoo/yabentry.cpp b/kopete/protocols/yahoo/libkyahoo/yabentry.cpp index 9ca9af3d..65c48f54 100644 --- a/kopete/protocols/yahoo/libkyahoo/yabentry.cpp +++ b/kopete/protocols/yahoo/libkyahoo/yabentry.cpp @@ -146,8 +146,8 @@ void YABEntry::fillTQDomElement( TQDomElement &e ) const e.setAttribute( "hs", privateState ); e.setAttribute( "hz", privateZIP ); e.setAttribute( "hn", privateCountry ); - e.setAttribute( "bi", TQString("%1/%2/%3").arg( birthday.day() ).arg( birthday.month() ).arg( birthday.year() ) ); - e.setAttribute( "an", TQString("%1/%2/%3").arg( anniversary.day() ).arg( anniversary.month() ).arg( anniversary.year() ) ); + e.setAttribute( "bi", TQString("%1/%2/%3").tqarg( birthday.day() ).tqarg( birthday.month() ).tqarg( birthday.year() ) ); + e.setAttribute( "an", TQString("%1/%2/%3").tqarg( anniversary.day() ).tqarg( anniversary.month() ).tqarg( anniversary.year() ) ); e.setAttribute( "c1", additional1 ); e.setAttribute( "c2", additional2 ); e.setAttribute( "c3", additional3 ); diff --git a/kopete/protocols/yahoo/libkyahoo/yabtask.cpp b/kopete/protocols/yahoo/libkyahoo/yabtask.cpp index 951f88d8..278dcd31 100644 --- a/kopete/protocols/yahoo/libkyahoo/yabtask.cpp +++ b/kopete/protocols/yahoo/libkyahoo/yabtask.cpp @@ -94,13 +94,13 @@ void YABTask::getAllEntries( long lastMerge, long lastRemoteRevision ) { kdDebug(YAHOO_RAW_DEBUG) << "LastMerge: " << lastMerge << " LastRemoteRevision: " << lastRemoteRevision << endl; m_data = TQString(); - TQString url = TQString::fromLatin1("http://address.yahoo.com/yab/us?v=XM&prog=ymsgr&.intl=us&diffs=1&t=%1&tags=short&rt=%2&prog-ver=%3") - .arg( lastMerge ).arg( lastRemoteRevision ).arg( YMSG_PROGRAM_VERSION_STRING ); + TQString url = TQString::tqfromLatin1("http://address.yahoo.com/yab/us?v=XM&prog=ymsgr&.intl=us&diffs=1&t=%1&tags=short&rt=%2&prog-ver=%3") + .tqarg( lastMerge ).tqarg( lastRemoteRevision ).tqarg( YMSG_PROGRAM_VERSION_STRING ); m_transferJob = KIO::get( url , false, false ); m_transferJob->addMetaData("cookies", "manual"); - m_transferJob->addMetaData("setcookies", TQString::fromLatin1("Cookie: Y=%1; T=%2; C=%3;") - .arg(client()->yCookie()).arg(client()->tCookie()).arg(client()->cCookie()) ); + m_transferJob->addMetaData("setcookies", TQString::tqfromLatin1("Cookie: Y=%1; T=%2; C=%3;") + .tqarg(client()->yCookie()).tqarg(client()->tCookie()).tqarg(client()->cCookie()) ); connect( m_transferJob, TQT_SIGNAL( data( KIO::Job *, const TQByteArray & ) ), this, TQT_SLOT( slotData( KIO::Job*, const TQByteArray & ) ) ); connect( m_transferJob, TQT_SIGNAL( result( KIO::Job *) ), this, TQT_SLOT( slotResult( KIO::Job* ) ) ); } diff --git a/kopete/protocols/yahoo/libkyahoo/yahoobuddyiconloader.cpp b/kopete/protocols/yahoo/libkyahoo/yahoobuddyiconloader.cpp index 025386f0..a317cb12 100644 --- a/kopete/protocols/yahoo/libkyahoo/yahoobuddyiconloader.cpp +++ b/kopete/protocols/yahoo/libkyahoo/yahoobuddyiconloader.cpp @@ -81,7 +81,7 @@ void YahooBuddyIconLoader::slotComplete( KIO::Job *job ) { kdDebug(YAHOO_RAW_DEBUG) << "An error occurred while downloading buddy icon." << endl; if( m_client ) - m_client->notifyError( i18n( "An error occurred while downloading a buddy icon (%1)").arg( m_jobs[transfer].url.url() ), job->errorString(), Client::Info ); + m_client->notifyError( i18n( "An error occurred while downloading a buddy icon (%1)").tqarg( m_jobs[transfer].url.url() ), job->errorString(), Client::Info ); } else { diff --git a/kopete/protocols/yahoo/libkyahoo/yahoochattask.cpp b/kopete/protocols/yahoo/libkyahoo/yahoochattask.cpp index 1c9528ff..ad70d3c6 100644 --- a/kopete/protocols/yahoo/libkyahoo/yahoochattask.cpp +++ b/kopete/protocols/yahoo/libkyahoo/yahoochattask.cpp @@ -95,7 +95,7 @@ void YahooChatTask::getYahooChatCategories() transfer->addMetaData( "UserAgent", "Mozilla/4.0 (compatible; MSIE 5.5)"); transfer->addMetaData( "no-cache", "true" ); transfer->addMetaData( "cookies", "manual" ); - transfer->addMetaData("setcookies", TQString("Cookie: %1; %2; %3").arg(client()->tCookie(), client()->yCookie()) ); + transfer->addMetaData("setcookies", TQString("Cookie: %1; %2; %3").tqarg(client()->tCookie(), client()->yCookie()) ); connect( transfer, TQT_SIGNAL( result( KIO::Job* ) ), this, TQT_SLOT( slotCategoriesComplete( KIO::Job* ) ) ); @@ -107,11 +107,11 @@ void YahooChatTask::getYahooChatRooms( const Yahoo::ChatCategory &category ) kdDebug(YAHOO_RAW_DEBUG) << "Category Id: " << category.id << endl; KIO::TransferJob *transfer; - transfer = KIO::get( KURL(TQString("http://insider.msg.yahoo.com/ycontent/?chatroom_%1=0").arg( category.id )), false, false ); + transfer = KIO::get( KURL(TQString("http://insider.msg.yahoo.com/ycontent/?chatroom_%1=0").tqarg( category.id )), false, false ); transfer->addMetaData( "UserAgent", "Mozilla/4.0 (compatible; MSIE 5.5)"); transfer->addMetaData( "no-cache", "true" ); transfer->addMetaData( "cookies", "manual" ); - transfer->addMetaData("setcookies", TQString("Cookie: %1; %2; %3").arg(client()->tCookie(), client()->yCookie()) ); + transfer->addMetaData("setcookies", TQString("Cookie: %1; %2; %3").tqarg(client()->tCookie(), client()->yCookie()) ); connect( transfer, TQT_SIGNAL( result( KIO::Job* ) ), this, TQT_SLOT( slotChatRoomsComplete( KIO::Job* ) ) ); @@ -214,7 +214,7 @@ void YahooChatTask::login() YMSGTransfer *t = new YMSGTransfer(Yahoo::ServiceChatOnline); t->setId( client()->sessionID() ); t->setParam( 1, client()->userId().local8Bit() ); - t->setParam( 135, TQString("ym%1").arg(YMSG_PROGRAM_VERSION_STRING).local8Bit() ); + t->setParam( 135, TQString("ym%1").tqarg(YMSG_PROGRAM_VERSION_STRING).local8Bit() ); send( t ); } diff --git a/kopete/protocols/yahoo/libkyahoo/yahootypes.h b/kopete/protocols/yahoo/libkyahoo/yahootypes.h index 376036b3..a5017609 100644 --- a/kopete/protocols/yahoo/libkyahoo/yahootypes.h +++ b/kopete/protocols/yahoo/libkyahoo/yahootypes.h @@ -93,8 +93,8 @@ namespace Yahoo ServicePictureUpdate = 0xc1, ServicePictureUpload = 0xc2, ServiceVisibility = 0xc5, /* YMSG13, key 13: 2 = invisible, 1 = visible */ - ServiceStatus = 0xc6, /* YMSG13 */ - ServicePictureStatus = 0xc7, /* YMSG13, key 213: 0 = none, 1 = avatar, 2 = picture */ + ServicetqStatus = 0xc6, /* YMSG13 */ + ServicePicturetqStatus = 0xc7, /* YMSG13, key 213: 0 = none, 1 = avatar, 2 = picture */ ServiceContactDetails = 0xd3, /* YMSG13 */ ServiceChatSession = 0xd4, ServiceAuthorization = 0xd6, /* YMSG13 */ @@ -102,11 +102,11 @@ namespace Yahoo ServiceFileTransfer7Info = 0xdd, /* YMSG13 */ ServiceFileTransfer7Accept = 0xde, /* YMSG13 */ ServiceBuddyChangeGroup = 0xe7, /* YMSG13 */ - ServiceBuddyStatus = 0xf0, + ServiceBuddytqStatus = 0xf0, ServiceBuddyList = 0xf1 }; - enum Status + enum tqStatus { StatusConnecting = -2, StatusDisconnected = -1, @@ -134,7 +134,7 @@ namespace Yahoo StatusTypeAway }; - enum LoginStatus { + enum LogintqStatus { LoginOk = 0, LoginUname = 3, LoginPasswd = 13, @@ -150,7 +150,7 @@ namespace Yahoo StealthPermOffline }; - enum StealthStatus { + enum StealthtqStatus { StealthActive = 1, StealthNotActive = 2, StealthClear = 3 @@ -161,7 +161,7 @@ namespace Yahoo ResponseDecline }; - enum PictureStatus { + enum PicturetqStatus { NoPicture = 0, Avatar = 1, Picture = 2 diff --git a/kopete/protocols/yahoo/libkyahoo/ymsgprotocol.cpp b/kopete/protocols/yahoo/libkyahoo/ymsgprotocol.cpp index b1e6e4e3..6cc99f24 100644 --- a/kopete/protocols/yahoo/libkyahoo/ymsgprotocol.cpp +++ b/kopete/protocols/yahoo/libkyahoo/ymsgprotocol.cpp @@ -64,7 +64,7 @@ Transfer* YMSGProtocol::parse( const TQByteArray & packet, uint& bytes ) int pos = 0; int len = 0; - Yahoo::Status status = Yahoo::StatusAvailable; + Yahoo::tqStatus status = Yahoo::StatusAvailable; Yahoo::Service service = Yahoo::ServiceAuth; int statusnum = 0; int sessionid = 0; @@ -149,9 +149,9 @@ Transfer* YMSGProtocol::parse( const TQByteArray & packet, uint& bytes ) kdDebug(YAHOO_RAW_DEBUG) << " Parsed packet service - This means ServiceIddeAct " << servicenum << endl; service = Yahoo::ServiceIddeAct; break; - case (Yahoo::ServiceStatus) : + case (Yahoo::ServicetqStatus) : kdDebug(YAHOO_RAW_DEBUG) << " Parsed packet service - This means ServiceStatus " << servicenum << endl; - service = Yahoo::ServiceStatus; + service = Yahoo::ServicetqStatus; break; case (Yahoo::ServiceMessage) : kdDebug(YAHOO_RAW_DEBUG) << " Parsed packet service - This means ServiceMessage " << servicenum << endl; @@ -177,9 +177,9 @@ Transfer* YMSGProtocol::parse( const TQByteArray & packet, uint& bytes ) kdDebug(YAHOO_RAW_DEBUG) << " Parsed packet service - This means ServicePictureChecksum " << servicenum << endl; service = Yahoo::ServicePictureChecksum; break; - case (Yahoo::ServicePictureStatus) : + case (Yahoo::ServicePicturetqStatus) : kdDebug(YAHOO_RAW_DEBUG) << " Parsed packet service - This means ServicePictureStatus " << servicenum << endl; - service = Yahoo::ServicePictureStatus; + service = Yahoo::ServicePicturetqStatus; break; case (Yahoo::ServicePicture) : kdDebug(YAHOO_RAW_DEBUG) << " Parsed packet service - This means ServicePicture " << servicenum << endl; @@ -297,9 +297,9 @@ Transfer* YMSGProtocol::parse( const TQByteArray & packet, uint& bytes ) kdDebug(YAHOO_RAW_DEBUG) << " Parsed packet service - This means ServiceComment " << servicenum << endl; service = Yahoo::ServiceComment; break; - case (Yahoo::ServiceBuddyStatus) : + case (Yahoo::ServiceBuddytqStatus) : kdDebug(YAHOO_RAW_DEBUG) << " Parsed packet service - This means ServiceBuddyStatus " << servicenum << endl; - service = Yahoo::ServiceBuddyStatus; + service = Yahoo::ServiceBuddytqStatus; break; case (Yahoo::ServiceBuddyList) : kdDebug(YAHOO_RAW_DEBUG) << " Parsed packet service - This means ServiceBuddyList " << servicenum << endl; @@ -329,7 +329,7 @@ Transfer* YMSGProtocol::parse( const TQByteArray & packet, uint& bytes ) ServiceGroupRename = 0x89, // > 1, 65(new), 66(0), 67(old) ServicePictureUpdate = 0xc1, ServiceVisibility = 0xc5, // YMSG13, key 13: 2 = invisible, 1 = visible - ServiceStatus = 0xc6, // YMSG13 + ServicetqStatus = 0xc6, // YMSG13 */ default: @@ -378,7 +378,7 @@ Transfer* YMSGProtocol::parse( const TQByteArray & packet, uint& bytes ) YMSGTransfer *t = new YMSGTransfer(); t->setService(service); t->setId(sessionid); - t->setStatus(status); + t->settqStatus(status); t->setPacketLength(len); TQString d = TQString::fromAscii( packet.data() + pos, packet.size() - pos ); diff --git a/kopete/protocols/yahoo/libkyahoo/ymsgtransfer.cpp b/kopete/protocols/yahoo/libkyahoo/ymsgtransfer.cpp index b1f77863..3ed2192a 100644 --- a/kopete/protocols/yahoo/libkyahoo/ymsgtransfer.cpp +++ b/kopete/protocols/yahoo/libkyahoo/ymsgtransfer.cpp @@ -39,7 +39,7 @@ public: int version; int packetLength; Yahoo::Service service; - Yahoo::Status status; + Yahoo::tqStatus status; unsigned int id; ParamList data; bool valid; @@ -62,7 +62,7 @@ YMSGTransfer::YMSGTransfer(Yahoo::Service service) d->status = Yahoo::StatusAvailable; } -YMSGTransfer::YMSGTransfer(Yahoo::Service service, Yahoo::Status status) +YMSGTransfer::YMSGTransfer(Yahoo::Service service, Yahoo::tqStatus status) { d = new YMSGTransferPrivate; d->valid = true; @@ -96,12 +96,12 @@ void YMSGTransfer::setService(Yahoo::Service service) d->service = service; } -Yahoo::Status YMSGTransfer::status() const +Yahoo::tqStatus YMSGTransfer::status() const { return d->status; } -void YMSGTransfer::setStatus(Yahoo::Status status) +void YMSGTransfer::settqStatus(Yahoo::tqStatus status) { d->status = status; } diff --git a/kopete/protocols/yahoo/libkyahoo/ymsgtransfer.h b/kopete/protocols/yahoo/libkyahoo/ymsgtransfer.h index 09ba7a27..953d3993 100644 --- a/kopete/protocols/yahoo/libkyahoo/ymsgtransfer.h +++ b/kopete/protocols/yahoo/libkyahoo/ymsgtransfer.h @@ -40,7 +40,7 @@ class YMSGTransfer : public Transfer { public: YMSGTransfer(Yahoo::Service service); - YMSGTransfer(Yahoo::Service service, Yahoo::Status status); + YMSGTransfer(Yahoo::Service service, Yahoo::tqStatus status); YMSGTransfer(); ~YMSGTransfer(); @@ -51,8 +51,8 @@ public: bool isValid() const; Yahoo::Service service() const; void setService(Yahoo::Service service); - Yahoo::Status status() const; - void setStatus(Yahoo::Status status); + Yahoo::tqStatus status() const; + void settqStatus(Yahoo::tqStatus status); unsigned int id() const; void setId(unsigned int id); int packetLength() const; diff --git a/kopete/protocols/yahoo/ui/yahooadd.ui b/kopete/protocols/yahoo/ui/yahooadd.ui index 723f9904..f497da37 100644 --- a/kopete/protocols/yahoo/ui/yahooadd.ui +++ b/kopete/protocols/yahoo/ui/yahooadd.ui @@ -27,7 +27,7 @@ - layout53 + tqlayout53 @@ -70,7 +70,7 @@ <i>(for example: joe8752)</i> - + AlignVCenter|AlignRight @@ -84,7 +84,7 @@ Expanding - + 20 80 diff --git a/kopete/protocols/yahoo/ui/yahooeditaccountbase.ui b/kopete/protocols/yahoo/ui/yahooeditaccountbase.ui index cc13584e..144a0f33 100644 --- a/kopete/protocols/yahoo/ui/yahooeditaccountbase.ui +++ b/kopete/protocols/yahoo/ui/yahooeditaccountbase.ui @@ -29,7 +29,7 @@ tabWidget11 - + 460 0 @@ -59,7 +59,7 @@ - layout81 + tqlayout81 @@ -147,7 +147,7 @@ 0 - + 0 0 @@ -156,7 +156,7 @@ To connect to the Yahoo network, you will need a Yahoo account.<br><br>If you do not currently have a Yahoo account, please click the button to create one. - + WordBreak|AlignVCenter @@ -189,7 +189,7 @@ Expanding - + 20 81 @@ -219,7 +219,7 @@ Expanding - + 20 110 @@ -250,7 +250,7 @@ - layout58 + tqlayout58 @@ -371,13 +371,13 @@ m_Picture - + 96 96 - + 96 96 @@ -416,7 +416,7 @@ - + AlignCenter diff --git a/kopete/protocols/yahoo/ui/yahoogeneralinfowidget.ui b/kopete/protocols/yahoo/ui/yahoogeneralinfowidget.ui index 8089a9d3..16af6016 100644 --- a/kopete/protocols/yahoo/ui/yahoogeneralinfowidget.ui +++ b/kopete/protocols/yahoo/ui/yahoogeneralinfowidget.ui @@ -218,7 +218,7 @@ Expanding - + 21 30 @@ -516,7 +516,7 @@ Expanding - + 20 78 diff --git a/kopete/protocols/yahoo/ui/yahooinvitelistbase.ui b/kopete/protocols/yahoo/ui/yahooinvitelistbase.ui index 63d7973e..c1d88464 100644 --- a/kopete/protocols/yahoo/ui/yahooinvitelistbase.ui +++ b/kopete/protocols/yahoo/ui/yahooinvitelistbase.ui @@ -21,7 +21,7 @@ - layout19 + tqlayout19 @@ -40,7 +40,7 @@ - layout5 + tqlayout5 @@ -63,7 +63,7 @@ listFriends - + 0 180 @@ -74,7 +74,7 @@ - layout4 + tqlayout4 @@ -97,7 +97,7 @@ listInvited - + 0 150 @@ -106,7 +106,7 @@ - layout2 + tqlayout2 @@ -131,7 +131,7 @@ - layout10 + tqlayout10 @@ -147,7 +147,7 @@ Expanding - + 20 20 @@ -180,7 +180,7 @@ Expanding - + 20 90 @@ -193,7 +193,7 @@ - layout14 + tqlayout14 @@ -217,7 +217,7 @@ Fixed - + 20 21 @@ -233,7 +233,7 @@ - layout18 + tqlayout18 @@ -265,7 +265,7 @@ Maximum - + 350 31 diff --git a/kopete/protocols/yahoo/ui/yahoootherinfowidget.ui b/kopete/protocols/yahoo/ui/yahoootherinfowidget.ui index 2193118e..197de528 100644 --- a/kopete/protocols/yahoo/ui/yahoootherinfowidget.ui +++ b/kopete/protocols/yahoo/ui/yahoootherinfowidget.ui @@ -106,7 +106,7 @@ Expanding - + 20 130 diff --git a/kopete/protocols/yahoo/ui/yahoostealthsetting.ui b/kopete/protocols/yahoo/ui/yahoostealthsetting.ui index 92246ba1..d0254985 100644 --- a/kopete/protocols/yahoo/ui/yahoostealthsetting.ui +++ b/kopete/protocols/yahoo/ui/yahoostealthsetting.ui @@ -12,7 +12,7 @@ 114 - + 195 75 diff --git a/kopete/protocols/yahoo/ui/yahoouserinfodialog.cpp b/kopete/protocols/yahoo/ui/yahoouserinfodialog.cpp index 7eaf320e..a19ebfff 100644 --- a/kopete/protocols/yahoo/ui/yahoouserinfodialog.cpp +++ b/kopete/protocols/yahoo/ui/yahoouserinfodialog.cpp @@ -19,13 +19,13 @@ #include "yahoouserinfodialog.h" -#include +#include #include #include #include -#include +#include #include -#include +#include #include #include @@ -47,21 +47,21 @@ YahooUserInfoDialog::YahooUserInfoDialog( YahooContact *c, TQWidget * parent, co showButton( User2, false ); TQFrame* genInfo = addPage( i18n( "General Info" ), i18n( "General Yahoo 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 YahooGeneralInfoWidget( 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 YahooWorkInfoWidget( workInfo, "Work Information" ); workLayout->addWidget( m_workInfoWidget ); TQFrame* otherInfo = addPage( i18n( "Other Info" ), i18n( "Other Yahoo 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 YahooOtherInfoWidget( otherInfo, "Other Information" ); otherLayout->addWidget( m_otherInfoWidget ); @@ -219,9 +219,9 @@ void YahooUserInfoDialog::setData( const YABEntry &yab ) m_genInfoWidget->titleEdit->setText( yab.title ); if( yab.birthday.isValid() ) - m_genInfoWidget->birthdayEdit->setText( TQString("%1/%2/%3").arg( yab.birthday.day() ).arg( yab.birthday.month() ).arg( yab.birthday.year() )); + m_genInfoWidget->birthdayEdit->setText( TQString("%1/%2/%3").tqarg( yab.birthday.day() ).tqarg( yab.birthday.month() ).tqarg( yab.birthday.year() )); if( yab.anniversary.isValid() ) - m_genInfoWidget->anniversaryEdit->setText( TQString("%1/%2/%3").arg( yab.anniversary.day() ).arg( yab.anniversary.month() ).arg( yab.anniversary.year() )); + m_genInfoWidget->anniversaryEdit->setText( TQString("%1/%2/%3").tqarg( yab.anniversary.day() ).tqarg( yab.anniversary.month() ).tqarg( yab.anniversary.year() )); m_genInfoWidget->addressEdit->setText( yab.privateAdress ); m_genInfoWidget->cityEdit->setText( yab.privateCity ); diff --git a/kopete/protocols/yahoo/ui/yahooverifyaccountbase.ui b/kopete/protocols/yahoo/ui/yahooverifyaccountbase.ui index bfaa80fb..5a18d662 100644 --- a/kopete/protocols/yahoo/ui/yahooverifyaccountbase.ui +++ b/kopete/protocols/yahoo/ui/yahooverifyaccountbase.ui @@ -12,7 +12,7 @@ 200 - + 450 200 @@ -32,7 +32,7 @@ - layout0 + tqlayout0 @@ -61,7 +61,7 @@ Expanding - + 110 20 @@ -80,7 +80,7 @@ Expanding - + 20 16 @@ -89,7 +89,7 @@ - layout16 + tqlayout16 @@ -105,7 +105,7 @@ Expanding - + 72 20 @@ -116,7 +116,7 @@ mPicture - + 240 75 @@ -139,7 +139,7 @@ Expanding - + 72 20 diff --git a/kopete/protocols/yahoo/ui/yahoowebcamdialog.cpp b/kopete/protocols/yahoo/ui/yahoowebcamdialog.cpp index 08e4331e..640164f1 100644 --- a/kopete/protocols/yahoo/ui/yahoowebcamdialog.cpp +++ b/kopete/protocols/yahoo/ui/yahoowebcamdialog.cpp @@ -20,7 +20,7 @@ #include #include #include -#include +#include #include #include #include @@ -28,7 +28,7 @@ #include YahooWebcamDialog::YahooWebcamDialog( const TQString &contactId, TQWidget * parent, const char * name ) -: KDialogBase( KDialogBase::Plain, i18n( "Webcam for %1" ).arg( contactId ), +: KDialogBase( KDialogBase::Plain, i18n( "Webcam for %1" ).tqarg( contactId ), KDialogBase::Close, KDialogBase::Close, parent, name, false, true /*seperator*/ ) { setInitialSize( TQSize(320,290), false ); @@ -44,11 +44,11 @@ YahooWebcamDialog::YahooWebcamDialog( const TQString &contactId, TQWidget * pare m_imageContainer = new Kopete::WebcamWidget( page ); m_imageContainer->setText( i18n( "No webcam image received" ) ); m_imageContainer->setMinimumSize(320,240); - m_imageContainer->setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding); + m_imageContainer->tqsetSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding); topLayout->add( m_imageContainer ); m_Viewer = new TQLabel( page ); - m_Viewer->setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding); + m_Viewer->tqsetSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding); m_Viewer->hide(); topLayout->add( m_Viewer ); @@ -67,7 +67,7 @@ void YahooWebcamDialog::newImage( const TQPixmap &image ) void YahooWebcamDialog::webcamPaused() { - m_imageContainer->setText( TQString::fromLatin1("*** Webcam paused ***") ); + m_imageContainer->setText( TQString::tqfromLatin1("*** Webcam paused ***") ); } void YahooWebcamDialog::webcamClosed( int reason ) @@ -77,15 +77,15 @@ void YahooWebcamDialog::webcamClosed( int reason ) switch ( reason ) { case 1: - closeReason = i18n( "%1 has stopped broadcasting" ).arg( contactName ); break; + closeReason = i18n( "%1 has stopped broadcasting" ).tqarg( contactName ); break; case 2: - closeReason = i18n( "%1 has cancelled viewing permission" ).arg( contactName ); break; + closeReason = i18n( "%1 has cancelled viewing permission" ).tqarg( contactName ); break; case 3: - closeReason = i18n( "%1 has declined permission to view webcam" ).arg( contactName ); break; + closeReason = i18n( "%1 has declined permission to view webcam" ).tqarg( contactName ); break; case 4: - closeReason = i18n( "%1 does not have his/her webcam online" ).arg( contactName ); break; + closeReason = i18n( "%1 does not have his/her webcam online" ).tqarg( contactName ); break; default: - closeReason = i18n( "Unable to view the webcam of %1 for an unknown reason" ).arg( contactName); + closeReason = i18n( "Unable to view the webcam of %1 for an unknown reason" ).tqarg( contactName); } m_imageContainer->clear(); @@ -94,7 +94,7 @@ void YahooWebcamDialog::webcamClosed( int reason ) void YahooWebcamDialog::setViewer( const TQStringList &viewer ) { - TQString s = i18n( "%1 viewer(s)" ).arg( viewer.size() ); + TQString s = i18n( "%1 viewer(s)" ).tqarg( viewer.size() ); if( viewer.size() ) { s += ": "; diff --git a/kopete/protocols/yahoo/ui/yahooworkinfowidget.ui b/kopete/protocols/yahoo/ui/yahooworkinfowidget.ui index a70bc620..c501d6b5 100644 --- a/kopete/protocols/yahoo/ui/yahooworkinfowidget.ui +++ b/kopete/protocols/yahoo/ui/yahooworkinfowidget.ui @@ -143,7 +143,7 @@ Expanding - + 20 20 @@ -210,7 +210,7 @@ Expanding - + 20 150 diff --git a/kopete/protocols/yahoo/yahooaccount.cpp b/kopete/protocols/yahoo/yahooaccount.cpp index 7cc330f2..eabf6fdd 100644 --- a/kopete/protocols/yahoo/yahooaccount.cpp +++ b/kopete/protocols/yahoo/yahooaccount.cpp @@ -109,7 +109,7 @@ YahooAccount::YahooAccount(YahooProtocol *parent, const TQString& accountId, con // initConnectionSignals( MakeConnections ); - TQString displayName = configGroup()->readEntry(TQString::fromLatin1("displayName"), TQString()); + TQString displayName = configGroup()->readEntry(TQString::tqfromLatin1("displayName"), TQString()); if(!displayName.isEmpty()) _myself->setNickName(displayName); @@ -130,15 +130,15 @@ YahooAccount::~YahooAccount() void YahooAccount::setServer( const TQString &server ) { - configGroup()->writeEntry( TQString::fromLatin1( "Server" ), server ); + configGroup()->writeEntry( TQString::tqfromLatin1( "Server" ), server ); } void YahooAccount::setPort( int port ) { - configGroup()->writeEntry( TQString::fromLatin1( "Port" ), port ); + configGroup()->writeEntry( TQString::tqfromLatin1( "Port" ), port ); } -void YahooAccount::slotGoStatus( int status, const TQString &awayMessage) +void YahooAccount::slotGotqStatus( int status, const TQString &awayMessage) { kdDebug(YAHOO_GEN_DEBUG) << "GoStatus: " << status << " msg: " << awayMessage << endl; if( !isConnected() ) @@ -148,7 +148,7 @@ void YahooAccount::slotGoStatus( int status, const TQString &awayMessage) } else { - m_session->changeStatus( Yahoo::Status( status ), awayMessage, + m_session->changetqStatus( Yahoo::tqStatus( status ), awayMessage, (status == Yahoo::StatusAvailable)? Yahoo::StatusTypeAvailable : Yahoo::StatusTypeAway ); //sets the awayMessage property for the owner of the account. shows up in the statusbar icon's tooltip. the property is unset when awayMessage is null @@ -265,8 +265,8 @@ void YahooAccount::initConnectionSignals( enum SignalConnectionType sct ) TQObject::connect(m_session, TQT_SIGNAL(statusChanged(const TQString&,int,const TQString&,int,int,int)), this, TQT_SLOT(slotStatusChanged(const TQString&,int,const TQString&,int,int,int))); - TQObject::connect(m_session, TQT_SIGNAL(stealthStatusChanged(const TQString &, Yahoo::StealthStatus)), - this, TQT_SLOT(slotStealthStatusChanged( const TQString &, Yahoo::StealthStatus)) ); + TQObject::connect(m_session, TQT_SIGNAL(stealthStatusChanged(const TQString &, Yahoo::StealthtqStatus)), + this, TQT_SLOT(slotStealthStatusChanged( const TQString &, Yahoo::StealthtqStatus)) ); TQObject::connect(m_session, TQT_SIGNAL(gotIm(const TQString&, const TQString&, long, int)), this, TQT_SLOT(slotGotIm(const TQString &, const TQString&, long, int))); @@ -407,8 +407,8 @@ void YahooAccount::initConnectionSignals( enum SignalConnectionType sct ) TQObject::disconnect(m_session, TQT_SIGNAL(statusChanged(const TQString&,int,const TQString&,int,int,int)), this, TQT_SLOT(slotStatusChanged(const TQString&,int,const TQString&,int,int,int))); - TQObject::disconnect(m_session, TQT_SIGNAL(stealthStatusChanged(const TQString &, Yahoo::StealthStatus)), - this, TQT_SLOT(slotStealthStatusChanged( const TQString &, Yahoo::StealthStatus)) ); + TQObject::disconnect(m_session, TQT_SIGNAL(stealthStatusChanged(const TQString &, Yahoo::StealthtqStatus)), + this, TQT_SLOT(slotStealthStatusChanged( const TQString &, Yahoo::StealthtqStatus)) ); TQObject::disconnect(m_session, TQT_SIGNAL(gotIm(const TQString&, const TQString&, long, int)), this, TQT_SLOT(slotGotIm(const TQString &, const TQString&, long, int))); @@ -526,7 +526,7 @@ void YahooAccount::connectWithPassword( const TQString &passwd ) } if ( isConnected() || - myself()->onlineStatus() == m_protocol->Connecting ) + myself()->onlinetqStatus() == m_protocol->Connecting ) { kdDebug(YAHOO_GEN_DEBUG) << "Yahoo plugin: Ignoring connect request (already connected)." << endl; return; @@ -549,7 +549,7 @@ void YahooAccount::connectWithPassword( const TQString &passwd ) kdDebug(YAHOO_GEN_DEBUG) << "Attempting to connect to Yahoo on <" << server << ":" << port << ">. user <" << accountId() << ">" << endl; static_cast( myself() )->setOnlineStatus( m_protocol->Connecting ); - m_session->setStatusOnConnect( Yahoo::Status( initialStatus().internalStatus() ) ); + m_session->setStatusOnConnect( Yahoo::tqStatus( initialtqStatus().internalStatus() ) ); m_session->connect( server, port, accountId().lower(), passwd ); } @@ -607,9 +607,9 @@ void YahooAccount::setAway(bool status, const TQString &awayMessage) kdDebug(YAHOO_GEN_DEBUG) ; if( awayMessage.isEmpty() ) - slotGoStatus( status ? 2 : 0 ); + slotGotqStatus( status ? 2 : 0 ); else - slotGoStatus( status ? 99 : 0, awayMessage ); + slotGotqStatus( status ? 99 : 0, awayMessage ); } void YahooAccount::slotConnected() @@ -623,7 +623,7 @@ void YahooAccount::slotGoOnline() if( !isConnected() ) connect( m_protocol->Online ); else - slotGoStatus(0); + slotGotqStatus(0); } void YahooAccount::slotGoOffline() @@ -722,9 +722,9 @@ void YahooAccount::slotLoginResponse( int succ , const TQString &url ) setupActions( succ == Yahoo::LoginOk ); if ( succ == Yahoo::LoginOk || (succ == Yahoo::LoginDupl && m_lastDisconnectCode == 2) ) { - if ( initialStatus().internalStatus() ) + if ( initialtqStatus().internalStatus() ) { - static_cast( myself() )->setOnlineStatus( initialStatus() ); + static_cast( myself() )->setOnlineStatus( initialtqStatus() ); } else { @@ -750,7 +750,7 @@ void YahooAccount::slotLoginResponse( int succ , const TQString &url ) else if(succ == Yahoo::LoginLock) { initConnectionSignals( DeleteConnections ); - errorMsg = i18n("Could not log into the Yahoo service: your account has been locked.\nVisit %1 to reactivate it.").arg(url); + errorMsg = i18n("Could not log into the Yahoo service: your account has been locked.\nVisit %1 to reactivate it.").tqarg(url); KMessageBox::queuedMessageBox(Kopete::UI::Global::mainWidget(), KMessageBox::Error, errorMsg); static_cast( myself() )->setOnlineStatus( m_protocol->Offline ); disconnected( BadUserName ); // FIXME: add a more appropriate disconnect reason @@ -801,8 +801,8 @@ void YahooAccount::slotDisconnected() TQString message; message = i18n( "%1 has been disconnected.\nError message:\n%2 - %3" ) - .arg( accountId() ).arg( m_session->error() ).arg( m_session->errorString() ); - KNotification::event( "connection_lost", message, myself()->onlineStatus().protocolIcon() ); + .tqarg( accountId() ).tqarg( m_session->error() ).tqarg( m_session->errorString() ); + KNotification::event( "connection_lost", message, myself()->onlinetqStatus().protocolIcon() ); } void YahooAccount::slotLoginFailed() @@ -814,8 +814,8 @@ void YahooAccount::slotLoginFailed() TQString message; message = i18n( "There was an error while connecting %1 to the Yahoo server.\nError message:\n%2 - %3" ) - .arg( accountId()).arg( m_session->error() ).arg( m_session->errorString() ); - KNotification::event( "cannot_connect", message, myself()->onlineStatus().protocolIcon() ); + .tqarg( accountId()).tqarg( m_session->error() ).tqarg( m_session->errorString() ); + KNotification::event( "cannot_connect", message, myself()->onlinetqStatus().protocolIcon() ); } void YahooAccount::slotError( int level ) @@ -825,11 +825,11 @@ void YahooAccount::slotError( int level ) return; else if( level <= Client::Warning ) KMessageBox::information( Kopete::UI::Global::mainWidget(), - i18n( "%1\n\nReason: %2").arg( m_session->errorInformation() ).arg( m_session->errorString() ), + i18n( "%1\n\nReason: %2").tqarg( m_session->errorInformation() ).tqarg( m_session->errorString() ), i18n( "Yahoo Plugin" ) ); else KMessageBox::error( Kopete::UI::Global::mainWidget(), i18n( "%1\n\nReason: %2" ) - .arg( m_session->errorInformation() ).arg( m_session->errorString() ), i18n( "Yahoo Plugin" ) ); + .tqarg( m_session->errorInformation() ).tqarg( m_session->errorString() ), i18n( "Yahoo Plugin" ) ); } void YahooAccount::slotGotBuddy( const TQString &userid, const TQString &alias, const TQString &group ) @@ -888,8 +888,8 @@ void YahooAccount::slotAuthorizationAccepted( const TQString &who ) { kdDebug(YAHOO_GEN_DEBUG) ; TQString message; - message = i18n( "User %1 has granted your authorization request." ).arg( who ); - KNotification::event( TQString::fromLatin1("kopete_authorization"), message ); + message = i18n( "User %1 has granted your authorization request." ).tqarg( who ); + KNotification::event( TQString::tqfromLatin1("kopete_authorization"), message ); if( contact( who ) ) contact( who )->setOnlineStatus( m_protocol->Online ); @@ -900,8 +900,8 @@ void YahooAccount::slotAuthorizationRejected( const TQString &who, const TQStrin kdDebug(YAHOO_GEN_DEBUG) ; TQString message; message = i18n( "User %1 has rejected your authorization request.\n%2" ) - .arg( who ).arg( msg ); - KNotification::event( TQString::fromLatin1("kopete_authorization"), message ); + .tqarg( who ).tqarg( msg ); + KNotification::event( TQString::tqfromLatin1("kopete_authorization"), message ); } void YahooAccount::slotgotAuthorizationRequest( const TQString &user, const TQString &msg, const TQString &name ) @@ -995,24 +995,24 @@ void YahooAccount::slotStatusChanged( const TQString &who, int stat, const TQStr if ( kc ) { - Kopete::OnlineStatus newStatus = m_protocol->statusFromYahoo( stat ); - Kopete::OnlineStatus oldStatus = kc->onlineStatus(); + Kopete::OnlineStatus newtqStatus = m_protocol->statusFromYahoo( stat ); + Kopete::OnlineStatus oldtqStatus = kc->onlinetqStatus(); - if( newStatus == m_protocol->Custom ) { + if( newtqStatus == m_protocol->Custom ) { if( away == 0 ) - newStatus =m_protocol->Online; + newtqStatus =m_protocol->Online; kc->setProperty( m_protocol->awayMessage, msg); } else kc->removeProperty( m_protocol->awayMessage ); // from original file - if( newStatus != m_protocol->Offline && oldStatus == m_protocol->Offline && contact(who) != myself() ) + if( newtqStatus != m_protocol->Offline && oldtqStatus == m_protocol->Offline && contact(who) != myself() ) { //m_session->requestBuddyIcon( who ); // Try to get Buddy Icon if ( !myself()->property( Kopete::Global::Properties::self()->photo() ).isNull() && - myself()->onlineStatus() != m_protocol->Invisible && + myself()->onlinetqStatus() != m_protocol->Invisible && !kc->stealthed() ) { kc->sendBuddyIconUpdate( m_session->pictureFlag() ); @@ -1020,19 +1020,19 @@ void YahooAccount::slotStatusChanged( const TQString &who, int stat, const TQStr } } - //if( newStatus == static_cast( m_protocol )->Idle ) { - if( newStatus == m_protocol->Idle ) + //if( newtqStatus == static_cast( m_protocol )->Idle ) { + if( newtqStatus == m_protocol->Idle ) kc->setIdleTime( idle ? idle : 1 ); else kc->setIdleTime( 0 ); - kc->setOnlineStatus( newStatus ); + kc->setOnlineStatus( newtqStatus ); slotGotBuddyIconChecksum( who, pictureChecksum ); } } -void YahooAccount::slotStealthStatusChanged( const TQString &who, Yahoo::StealthStatus state ) +void YahooAccount::slotStealthStatusChanged( const TQString &who, Yahoo::StealthtqStatus state ) { //kdDebug(YAHOO_GEN_DEBUG) << "Stealth Status of " << who << "changed to " << state; @@ -1053,7 +1053,7 @@ TQString YahooAccount::prepareIncomingMessage( const TQString &messageText ) kdDebug(YAHOO_GEN_DEBUG) << "Message after stripping color codes '" << newMsgText << "'" << endl; - newMsgText.replace( TQString::fromLatin1( "&" ), TQString::fromLatin1( "&" ) ); + newMsgText.replace( TQString::tqfromLatin1( "&" ), TQString::tqfromLatin1( "&" ) ); // Replace Font tags regExp.setMinimal( true ); @@ -1063,7 +1063,7 @@ TQString YahooAccount::prepareIncomingMessage( const TQString &messageText ) pos = regExp.search( newMsgText, pos ); if ( pos >= 0 ) { pos += regExp.matchedLength(); - newMsgText.replace( regExp, TQString::fromLatin1("" ) ); + newMsgText.replace( regExp, TQString::tqfromLatin1("" ) ); } } @@ -1095,7 +1095,7 @@ TQString YahooAccount::prepareIncomingMessage( const TQString &messageText ) pos = regExp.search( newMsgText, pos ); if ( pos >= 0 ) { pos += regExp.matchedLength(); - newMsgText.replace( regExp, TQString::fromLatin1("<" ) ); + newMsgText.replace( regExp, TQString::tqfromLatin1("<" ) ); } } regExp.setPattern( "([^\"bui])>" ); @@ -1104,22 +1104,22 @@ TQString YahooAccount::prepareIncomingMessage( const TQString &messageText ) pos = regExp.search( newMsgText, pos ); if ( pos >= 0 ) { pos += regExp.matchedLength(); - newMsgText.replace( regExp, TQString::fromLatin1("\\1>" ) ); + newMsgText.replace( regExp, TQString::tqfromLatin1("\\1>" ) ); } } // add closing tags when needed regExp.setMinimal( false ); regExp.setPattern( "(.*)(?!)" ); - newMsgText.replace( regExp, TQString::fromLatin1("\\1" ) ); + newMsgText.replace( regExp, TQString::tqfromLatin1("\\1" ) ); regExp.setPattern( "(.*)(?!)" ); - newMsgText.replace( regExp, TQString::fromLatin1("\\1" ) ); + newMsgText.replace( regExp, TQString::tqfromLatin1("\\1" ) ); regExp.setPattern( "(.*)(?!)" ); - newMsgText.replace( regExp, TQString::fromLatin1("\\1" ) ); + newMsgText.replace( regExp, TQString::tqfromLatin1("\\1" ) ); regExp.setPattern( "()" ); - newMsgText.replace( regExp, TQString::fromLatin1("\\1" ) ); + newMsgText.replace( regExp, TQString::tqfromLatin1("\\1" ) ); - newMsgText.replace( TQString::fromLatin1( "\r" ), TQString::fromLatin1( "
      " ) ); + newMsgText.replace( TQString::tqfromLatin1( "\r" ), TQString::tqfromLatin1( "
      " ) ); return newMsgText; } @@ -1143,7 +1143,7 @@ void YahooAccount::slotGotIm( const TQString &who, const TQString &msg, long tm, // FIXME to check if (tm == 0) - //msgDT = TQDateTime( TQDate::currentDate(), TQTime::currentTime(), TQt::LocalTime ); + //msgDT = TQDateTime( TQDate::tqcurrentDate(), TQTime::currentTime(), TQt::LocalTime ); msgDT.setTime_t(time(0L)); else //msgDT = TQDateTime::fromTime_t(tm); @@ -1181,7 +1181,7 @@ void YahooAccount::slotGotBuzz( const TQString &who, long tm ) // FIXME: to check if (tm == 0) - //msgDT = TQDateTime( TQDate::currentDate(), TQTime::currentTime(), TQt::LocalTime ); + //msgDT = TQDateTime( TQDate::tqcurrentDate(), TQTime::currentTime(), TQt::LocalTime ); msgDT.setTime_t(time(0L)); else //msgDT = TQDateTime::fromTime_t(tm); @@ -1222,13 +1222,13 @@ void YahooAccount::slotGotConfInvite( const TQString & who, const TQString & roo { if( *it != m_session->userId() ) { - m.append( TQString(", %1").arg( *it ) ); + m.append( TQString(", %1").tqarg( *it ) ); myMembers.push_back( *it ); } } if( KMessageBox::Yes == KMessageBox::questionYesNo( Kopete::UI::Global::mainWidget(), i18n("%1 has invited you to join a conference with %2.\n\nHis/her message: %3\n\nAccept?") - .arg(who).arg(m).arg(msg), TQString(), i18n("Accept"), i18n("Ignore") ) ) + .tqarg(who).tqarg(m).tqarg(msg), TQString(), i18n("Accept"), i18n("Ignore") ) ) { m_session->joinConference( room, myMembers ); if( !m_conferences[room] ) @@ -1267,7 +1267,7 @@ void YahooAccount::prepareConference( const TQString &who ) char c = rand()%52; room += (c > 25) ? c + 71 : c + 65; } - room = TQString("%1-%2--").arg(accountId()).arg(room); + room = TQString("%1-%2--").tqarg(accountId()).tqarg(room); kdDebug(YAHOO_GEN_DEBUG) << "The generated roomname is: " << room << endl; TQStringList buddies; @@ -1329,7 +1329,7 @@ void YahooAccount::slotConfUserDecline( const TQString &who, const TQString &roo YahooConferenceChatSession *session = m_conferences[room]; - TQString body = i18n( "%1 has declined to join the conference: \"%2\"").arg( who ).arg( msg ); + TQString body = i18n( "%1 has declined to join the conference: \"%2\"").tqarg( who ).tqarg( msg ); Kopete::Message message = Kopete::Message( contact( who ), myself(), body, Kopete::Message::Internal, Kopete::Message::PlainText ); session->appendMessage( message ); @@ -1642,7 +1642,7 @@ void YahooAccount::slotMailNotify( const TQString& from, const TQString& subjec if ( cnt > 0 && from.isEmpty() ) { - TQObject::connect(KNotification::event( TQString::fromLatin1("yahoo_mail"), i18n( "You have one unread message in your Yahoo inbox.", + TQObject::connect(KNotification::event( TQString::tqfromLatin1("yahoo_mail"), i18n( "You have one unread message in your Yahoo inbox.", "You have %n unread messages in your Yahoo inbox.", cnt ), TQPixmap() , 0 ), TQT_SIGNAL(activated(unsigned int ) ) , this, TQT_SLOT( slotOpenInbox() ) ); @@ -1651,7 +1651,7 @@ void YahooAccount::slotMailNotify( const TQString& from, const TQString& subjec else if ( cnt > 0 ) { kdDebug(YAHOO_GEN_DEBUG) << "attempting to trigger event" << endl; - TQObject::connect(KNotification::event( TQString::fromLatin1("yahoo_mail"), i18n( "You have a message from %1 in your Yahoo inbox.

      Subject: %2").arg( from ).arg( subject ), + TQObject::connect(KNotification::event( TQString::tqfromLatin1("yahoo_mail"), i18n( "You have a message from %1 in your Yahoo inbox.

      Subject: %2").tqarg( from ).tqarg( subject ), TQPixmap() , 0 ), TQT_SIGNAL(activated(unsigned int ) ) , this, TQT_SLOT( slotOpenInbox() ) ); m_currentMailCount = cnt; @@ -1681,7 +1681,7 @@ void YahooAccount::slotGotWebcamInvite( const TQString& who ) m_pendingWebcamInvites.append( who ); - if( KMessageBox::Yes == KMessageBox::questionYesNo( Kopete::UI::Global::mainWidget(), i18n("%1 has invited you to view his/her webcam. Accept?").arg( who ), + if( KMessageBox::Yes == KMessageBox::questionYesNo( Kopete::UI::Global::mainWidget(), i18n("%1 has invited you to view his/her webcam. Accept?").tqarg( who ), TQString(), i18n("Accept"), i18n("Ignore") ) ) { m_pendingWebcamInvites.remove( who ); @@ -1690,7 +1690,7 @@ void YahooAccount::slotGotWebcamInvite( const TQString& who ) } void YahooAccount::slotWebcamNotAvailable( const TQString &who ) { - KMessageBox::queuedMessageBox( Kopete::UI::Global::mainWidget(), KMessageBox::Sorry, i18n("Webcam for %1 is not available.").arg(who), i18n( "Yahoo Plugin" ) ); + KMessageBox::queuedMessageBox( Kopete::UI::Global::mainWidget(), KMessageBox::Sorry, i18n("Webcam for %1 is not available.").tqarg(who), i18n( "Yahoo Plugin" ) ); } void YahooAccount::slotGotWebcamImage( const TQString& who, const TQPixmap& image ) @@ -1777,7 +1777,7 @@ void YahooAccount::setBuddyIcon( const KURL &url ) myself()->removeProperty( YahooProtocol::protocol()->iconExpire ); if ( m_session ) - m_session->setPictureStatus( Yahoo::NoPicture ); + m_session->setPicturetqStatus( Yahoo::NoPicture ); } else { @@ -1827,7 +1827,7 @@ void YahooAccount::setBuddyIcon( const KURL &url ) configGroup()->writeEntry( "iconLocalUrl", newlocation ); if ( checksum != static_cast(myself()->property( YahooProtocol::protocol()->iconCheckSum ).value().toInt()) || - TQDateTime::currentDateTime().toTime_t() > expire ) + TQDateTime::tqcurrentDateTime().toTime_t() > expire ) { myself()->setProperty( YahooProtocol::protocol()->iconCheckSum, checksum ); configGroup()->writeEntry( "iconCheckSum", checksum ); @@ -1848,7 +1848,7 @@ void YahooAccount::slotBuddyIconChanged( const TQString &url, int expires ) myself()->setProperty( YahooProtocol::protocol()->iconExpire , expires ); configGroup()->writeEntry( "iconRemoteUrl", url ); configGroup()->writeEntry( "iconExpire", expires ); - m_session->setPictureStatus( Yahoo::Picture ); + m_session->setPicturetqStatus( Yahoo::Picture ); m_session->sendPictureChecksum( TQString(), checksum ); } } @@ -1893,7 +1893,7 @@ void YahooAccount::slotWebcamViewerJoined( const TQString &viewer ) void YahooAccount::slotWebcamViewerRequest( const TQString &viewer ) { if( KMessageBox::Yes == KMessageBox::questionYesNo( Kopete::UI::Global::mainWidget(), i18n("%1 wants to view your webcam. Grant access?") - .arg(viewer), TQString(), i18n("Accept"), i18n("Ignore") ) ) + .tqarg(viewer), TQString(), i18n("Accept"), i18n("Ignore") ) ) m_session->grantWebcamAccess( viewer ); } @@ -1928,52 +1928,52 @@ void YahooAccount::slotWebcamPaused( const TQString &who ) void YahooAccount::setOnlineStatus( const Kopete::OnlineStatus &status, const TQString &reason) { kdDebug(YAHOO_GEN_DEBUG) ; - if ( myself()->onlineStatus().status() == Kopete::OnlineStatus::Offline && + if ( myself()->onlinetqStatus().status() == Kopete::OnlineStatus::Offline && status.status() != Kopete::OnlineStatus::Offline ) { if( !reason.isEmpty() ) m_session->setStatusMessageOnConnect( reason ); connect( status ); } - else if ( myself()->onlineStatus().status() != Kopete::OnlineStatus::Offline && + else if ( myself()->onlinetqStatus().status() != Kopete::OnlineStatus::Offline && status.status() == Kopete::OnlineStatus::Offline ) { disconnect(); } - else if ( myself()->onlineStatus().status() != Kopete::OnlineStatus::Offline && + else if ( myself()->onlinetqStatus().status() != Kopete::OnlineStatus::Offline && status.internalStatus() == 2 && !reason.isEmpty()) { - slotGoStatus( 99, reason ); + slotGotqStatus( 99, reason ); } - else if ( myself()->onlineStatus().status() != Kopete::OnlineStatus::Offline && + else if ( myself()->onlinetqStatus().status() != Kopete::OnlineStatus::Offline && status.internalStatus() == 99 && reason.isEmpty()) { - slotGoStatus( 2, reason ); + slotGotqStatus( 2, reason ); } - else if ( myself()->onlineStatus().status() != Kopete::OnlineStatus::Offline ) + else if ( myself()->onlinetqStatus().status() != Kopete::OnlineStatus::Offline ) { - slotGoStatus( status.internalStatus(), reason ); + slotGotqStatus( status.internalStatus(), reason ); } } /* FIXME: not ported yet void YahooAccount::setStatusMessage(const Kopete::StatusMessage &statusMessage) { - int currentStatus = myself()->onlineStatus().internalStatus(); - m_session->changeStatus( Yahoo::Status( currentStatus ), statusMessage.message(), - (currentStatus == Yahoo::StatusAvailable)? Yahoo::StatusTypeAvailable : Yahoo::StatusTypeAway ); + int currenttqStatus = myself()->onlinetqStatus().internalStatus(); + m_session->changetqStatus( Yahoo::tqStatus( currenttqStatus ), statusMessage.message(), + (currenttqStatus == Yahoo::StatusAvailable)? Yahoo::StatusTypeAvailable : Yahoo::StatusTypeAway ); myself()->setStatusMessage( statusMessage ); } */ void YahooAccount::slotOpenInbox() { - KRun::runURL( KURL( TQString::fromLatin1("http://mail.yahoo.com/") ) , "text/html" ); + KRun::runURL( KURL( TQString::tqfromLatin1("http://mail.yahoo.com/") ) , "text/html" ); } void YahooAccount::slotOpenYAB() { - KRun::runURL( KURL( TQString::fromLatin1("http://address.yahoo.com/") ) , "text/html" ); + KRun::runURL( KURL( TQString::tqfromLatin1("http://address.yahoo.com/") ) , "text/html" ); } void YahooAccount::slotEditOwnYABEntry() diff --git a/kopete/protocols/yahoo/yahooaccount.h b/kopete/protocols/yahoo/yahooaccount.h index de647bbe..7cfc6f84 100644 --- a/kopete/protocols/yahoo/yahooaccount.h +++ b/kopete/protocols/yahoo/yahooaccount.h @@ -176,7 +176,7 @@ protected slots: void slotJoinChatRoom(); void slotChatCategorySelected( const Yahoo::ChatCategory &category ); - void slotGoStatus(int status, const TQString &awayMessage = TQString()); + void slotGotqStatus(int status, const TQString &awayMessage = TQString()); void slotLoginResponse(int succ, const TQString &url); void slotDisconnected(); void slotLoginFailed(); @@ -192,7 +192,7 @@ protected slots: void slotGotIgnore(const TQStringList &); void slotGotIdentities(const TQStringList &); void slotStatusChanged(const TQString &who, int stat, const TQString &msg, int away, int idle, int pictureChecksum); - void slotStealthStatusChanged(const TQString &who, Yahoo::StealthStatus state); + void slotStealthStatusChanged(const TQString &who, Yahoo::StealthtqStatus state); void slotGotIm(const TQString &who, const TQString &msg, long tm, int stat); void slotGotBuzz(const TQString &who, long tm); void slotGotConfInvite(const TQString &who, const TQString &room, const TQString &msg, const TQStringList &members); diff --git a/kopete/protocols/yahoo/yahooaddcontact.cpp b/kopete/protocols/yahoo/yahooaddcontact.cpp index 64e0e461..af3e1bc5 100644 --- a/kopete/protocols/yahoo/yahooaddcontact.cpp +++ b/kopete/protocols/yahoo/yahooaddcontact.cpp @@ -17,7 +17,7 @@ */ // QT Includes -#include +#include // KDE Includes #include diff --git a/kopete/protocols/yahoo/yahoochatsession.cpp b/kopete/protocols/yahoo/yahoochatsession.cpp index 5402919c..ef0bf09e 100644 --- a/kopete/protocols/yahoo/yahoochatsession.cpp +++ b/kopete/protocols/yahoo/yahoochatsession.cpp @@ -127,7 +127,7 @@ void YahooChatSession::slotDisplayPictureChanged() int sz=22; // get the size of the toolbar were the aciton is plugged. // if you know a better way to get the toolbar, let me know - KMainWindow *w= view(false) ? dynamic_cast( view(false)->mainWidget()->topLevelWidget() ) : 0L; + KMainWindow *w= view(false) ? dynamic_cast( view(false)->mainWidget()->tqtopLevelWidget() ) : 0L; if(w) { //We connected that in the constructor. we don't need to keep this slot active. diff --git a/kopete/protocols/yahoo/yahoocontact.cpp b/kopete/protocols/yahoo/yahoocontact.cpp index 3bd55b85..06559f8f 100644 --- a/kopete/protocols/yahoo/yahoocontact.cpp +++ b/kopete/protocols/yahoo/yahoocontact.cpp @@ -114,7 +114,7 @@ void YahooContact::setOnlineStatus(const Kopete::OnlineStatus &status) protocol() , status.internalStatus()+1000 , status.overlayIcons() + TQStringList("yahoo_stealthed") , - i18n("%1|Stealthed").arg( status.description() ) ) ); + i18n("%1|Stealthed").tqarg( status.description() ) ) ); } else if( !m_stealthed && status.internalStatus() > 999 )// Stealthed -> Not Stealthed Contact::setOnlineStatus( static_cast< YahooProtocol *>( protocol() )->statusFromYahoo( status.internalStatus() - 1000 ) ); @@ -128,7 +128,7 @@ void YahooContact::setOnlineStatus(const Kopete::OnlineStatus &status) void YahooContact::setStealthed( bool stealthed ) { m_stealthed = stealthed; - setOnlineStatus( onlineStatus() ); + setOnlineStatus( onlinetqStatus() ); } bool YahooContact::stealthed() @@ -187,7 +187,7 @@ void YahooContact::sync(unsigned int flags) bool YahooContact::isOnline() const { //kdDebug(YAHOO_GEN_DEBUG) << k_funcinfo << endl; - return onlineStatus().status() != Kopete::OnlineStatus::Offline && onlineStatus().status() != Kopete::OnlineStatus::Unknown; + return onlinetqStatus().status() != Kopete::OnlineStatus::Offline && onlinetqStatus().status() != Kopete::OnlineStatus::Unknown; } bool YahooContact::isReachable() @@ -232,7 +232,7 @@ TQString YahooContact::prepareMessage( const TQString &messageText ) pos = regExp.search( messageText, pos ); if ( pos >= 0 ) { pos += regExp.matchedLength(); - newMsg.replace( regExp, TQString::fromLatin1("\033[1m\\3\033[x1m" ) ); + newMsg.replace( regExp, TQString::tqfromLatin1("\033[1m\\3\033[x1m" ) ); } } @@ -243,7 +243,7 @@ TQString YahooContact::prepareMessage( const TQString &messageText ) pos = regExp.search( messageText, pos ); if ( pos >= 0 ) { pos += regExp.matchedLength(); - newMsg.replace( regExp, TQString::fromLatin1("\033[4m\\3\033[x4m" ) ); + newMsg.replace( regExp, TQString::tqfromLatin1("\033[4m\\3\033[x4m" ) ); } } @@ -254,7 +254,7 @@ TQString YahooContact::prepareMessage( const TQString &messageText ) pos = regExp.search( messageText, pos ); if ( pos >= 0 ) { pos += regExp.matchedLength(); - newMsg.replace( regExp, TQString::fromLatin1("\033[2m\\3\033[x2m" ) ); + newMsg.replace( regExp, TQString::tqfromLatin1("\033[2m\\3\033[x2m" ) ); } } @@ -265,7 +265,7 @@ TQString YahooContact::prepareMessage( const TQString &messageText ) pos = regExp.search( messageText, pos ); if ( pos >= 0 ) { pos += regExp.matchedLength(); - newMsg.replace( regExp, TQString::fromLatin1("\033[#\\2m\\4\033[#000000m" ) ); + newMsg.replace( regExp, TQString::tqfromLatin1("\033[#\\2m\\4\033[#000000m" ) ); } } @@ -276,7 +276,7 @@ TQString YahooContact::prepareMessage( const TQString &messageText ) pos = regExp.search( messageText, pos ); if ( pos >= 0 ) { pos += regExp.matchedLength(); - newMsg.replace( regExp, TQString::fromLatin1("\\4" ) ); + newMsg.replace( regExp, TQString::tqfromLatin1("\\4" ) ); } } @@ -287,7 +287,7 @@ TQString YahooContact::prepareMessage( const TQString &messageText ) pos = regExp.search( messageText, pos ); if ( pos >= 0 ) { pos += regExp.matchedLength(); - newMsg.replace( regExp, TQString::fromLatin1("\\4" ) ); + newMsg.replace( regExp, TQString::tqfromLatin1("\\4" ) ); } } @@ -298,18 +298,18 @@ TQString YahooContact::prepareMessage( const TQString &messageText ) pos = regExp.search( messageText, pos ); if ( pos >= 0 ) { pos += regExp.matchedLength(); - newMsg.replace( regExp, TQString::fromLatin1("\\2") ); + newMsg.replace( regExp, TQString::tqfromLatin1("\\2") ); } } // convert escaped chars - newMsg.replace( TQString::fromLatin1( ">" ), TQString::fromLatin1( ">" ) ); - newMsg.replace( TQString::fromLatin1( "<" ), TQString::fromLatin1( "<" ) ); - newMsg.replace( TQString::fromLatin1( """ ), TQString::fromLatin1( "\"" ) ); - newMsg.replace( TQString::fromLatin1( " " ), TQString::fromLatin1( " " ) ); - newMsg.replace( TQString::fromLatin1( "&" ), TQString::fromLatin1( "&" ) ); - newMsg.replace( TQString::fromLatin1( "
      " ), TQString::fromLatin1( "\r" ) ); - newMsg.replace( TQString::fromLatin1( "
      " ), TQString::fromLatin1( "\r" ) ); + newMsg.replace( TQString::tqfromLatin1( ">" ), TQString::tqfromLatin1( ">" ) ); + newMsg.replace( TQString::tqfromLatin1( "<" ), TQString::tqfromLatin1( "<" ) ); + newMsg.replace( TQString::tqfromLatin1( """ ), TQString::tqfromLatin1( "\"" ) ); + newMsg.replace( TQString::tqfromLatin1( " " ), TQString::tqfromLatin1( " " ) ); + newMsg.replace( TQString::tqfromLatin1( "&" ), TQString::tqfromLatin1( "&" ) ); + newMsg.replace( TQString::tqfromLatin1( "
      " ), TQString::tqfromLatin1( "\r" ) ); + newMsg.replace( TQString::tqfromLatin1( "
      " ), TQString::tqfromLatin1( "\r" ) ); return newMsg; } @@ -447,7 +447,7 @@ void YahooContact::slotUserProfile() { kdDebug(YAHOO_GEN_DEBUG) << k_funcinfo << endl; - TQString profileSiteString = TQString::fromLatin1("http://profiles.yahoo.com/") + userId(); + TQString profileSiteString = TQString::tqfromLatin1("http://profiles.yahoo.com/") + userId(); KRun::runURL( KURL( profileSiteString ) , "text/html" ); } @@ -467,7 +467,7 @@ void YahooContact::stealthContact() stealthSettingDialog->setMainWidget( stealthWidget ); // Prepare dialog - if( m_account->myself()->onlineStatus() == YahooProtocol::protocol()->Invisible ) + if( m_account->myself()->onlinetqStatus() == YahooProtocol::protocol()->Invisible ) { stealthWidget->radioOffline->setEnabled( true ); stealthWidget->radioOffline->setChecked( true ); @@ -490,7 +490,7 @@ void YahooContact::stealthContact() m_account->yahooSession()->stealthContact( m_userId, Yahoo::StealthPermOffline, Yahoo::StealthActive ); // Apply temporary setting - if( m_account->myself()->onlineStatus() == YahooProtocol::protocol()->Invisible ) + if( m_account->myself()->onlinetqStatus() == YahooProtocol::protocol()->Invisible ) { if( stealthWidget->radioOnline->isChecked() ) { @@ -607,7 +607,7 @@ void YahooContact::inviteWebcam() { KMessageBox::queuedMessageBox( Kopete::UI::Global::mainWidget(), KMessageBox::Error, i18n("I cannot find the jasper image convert program.\njasper is required to render the yahoo webcam images." - "\nPlease see %1 for further information.").arg("http://wiki.kde.org/tiki-index.php?page=Kopete%20Webcam%20Support") ); + "\nPlease see %1 for further information.").tqarg("http://wiki.kde.org/tiki-index.php?page=Kopete%20Webcam%20Support") ); return; } m_account->yahooSession()->sendWebcamInvite( m_userId ); @@ -662,7 +662,7 @@ void YahooContact::requestWebcam() { KMessageBox::queuedMessageBox( Kopete::UI::Global::mainWidget(), KMessageBox::Error, i18n("I cannot find the jasper image convert program.\njasper is required to render the yahoo webcam images." - "\nPlease see %1 for further information.").arg("http://wiki.kde.org/tiki-index.php?page=Kopete%20Webcam%20Support") ); + "\nPlease see %1 for further information.").tqarg("http://wiki.kde.org/tiki-index.php?page=Kopete%20Webcam%20Support") ); return; } diff --git a/kopete/protocols/yahoo/yahoocontact.h b/kopete/protocols/yahoo/yahoocontact.h index acd69e0d..e9f8b517 100644 --- a/kopete/protocols/yahoo/yahoocontact.h +++ b/kopete/protocols/yahoo/yahoocontact.h @@ -54,7 +54,7 @@ public: virtual void serialize( TQMap &serializedData, TQMap &addressBookData ); void setOnlineStatus(const Kopete::OnlineStatus &status); - void setYahooStatus( const Kopete::OnlineStatus& ); + void setYahootqStatus( const Kopete::OnlineStatus& ); void setStealthed( bool ); bool stealthed(); diff --git a/kopete/protocols/yahoo/yahooeditaccount.cpp b/kopete/protocols/yahoo/yahooeditaccount.cpp index 5248d19c..e047e849 100644 --- a/kopete/protocols/yahoo/yahooeditaccount.cpp +++ b/kopete/protocols/yahoo/yahooeditaccount.cpp @@ -21,7 +21,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/kopete/protocols/yahoo/yahooverifyaccount.cpp b/kopete/protocols/yahoo/yahooverifyaccount.cpp index 632c7d05..7d50e900 100644 --- a/kopete/protocols/yahoo/yahooverifyaccount.cpp +++ b/kopete/protocols/yahoo/yahooverifyaccount.cpp @@ -14,7 +14,7 @@ */ // QT Includes -#include +#include #include #include diff --git a/kpf/src/ActiveMonitor.cpp b/kpf/src/ActiveMonitor.cpp index 58fc416e..dc6115df 100644 --- a/kpf/src/ActiveMonitor.cpp +++ b/kpf/src/ActiveMonitor.cpp @@ -21,7 +21,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#include +#include #include #include @@ -57,9 +57,9 @@ namespace KPF view_->addColumn(i18n("Resource")); view_->addColumn(i18n("Host")); - TQVBoxLayout * layout = new TQVBoxLayout(this); + TQVBoxLayout * tqlayout = new TQVBoxLayout(this); - layout->addWidget(view_); + tqlayout->addWidget(view_); connect ( @@ -146,7 +146,7 @@ namespace KPF void ActiveMonitor::slotCull() { - TQDateTime dt = TQDateTime::currentDateTime(); + TQDateTime dt = TQDateTime::tqcurrentDateTime(); TQListViewItemIterator it(view_); diff --git a/kpf/src/ActiveMonitorItem.cpp b/kpf/src/ActiveMonitorItem.cpp index 1fe889d1..04fe857d 100644 --- a/kpf/src/ActiveMonitorItem.cpp +++ b/kpf/src/ActiveMonitorItem.cpp @@ -93,7 +93,7 @@ namespace KPF { switch (c) { - case Status: + case tqStatus: return 16; break; @@ -115,19 +115,19 @@ namespace KPF switch (server_->state()) { case Server::WaitingForRequest: - setPixmap(Status, SmallIcon("connect_creating")); + setPixmap(tqStatus, SmallIcon("connect_creating")); break; case Server::WaitingForHeaders: - setPixmap(Status, SmallIcon("connect_creating")); + setPixmap(tqStatus, SmallIcon("connect_creating")); break; case Server::Responding: - setPixmap(Status, SmallIcon("connect_established")); + setPixmap(tqStatus, SmallIcon("connect_established")); break; case Server::Finished: - setPixmap(Status, SmallIcon("connect_no")); + setPixmap(tqStatus, SmallIcon("connect_no")); break; } } @@ -178,7 +178,7 @@ namespace KPF sent_ += l; setText(Sent, TQString::number(sent_)); updateState(); - repaint(); + tqrepaint(); } } diff --git a/kpf/src/ActiveMonitorItem.h b/kpf/src/ActiveMonitorItem.h index bd4e5e7a..8cc347e2 100644 --- a/kpf/src/ActiveMonitorItem.h +++ b/kpf/src/ActiveMonitorItem.h @@ -27,7 +27,7 @@ #include #include #include -#include +#include class TQPainter; @@ -48,7 +48,7 @@ namespace KPF enum Column { - Status, + tqStatus, Progress, Size, Sent, diff --git a/kpf/src/ActiveMonitorWindow.cpp b/kpf/src/ActiveMonitorWindow.cpp index 0e0450b4..238ddefa 100644 --- a/kpf/src/ActiveMonitorWindow.cpp +++ b/kpf/src/ActiveMonitorWindow.cpp @@ -39,7 +39,7 @@ namespace KPF ) : KMainWindow(parent, name) { - setCaption(i18n("Monitoring %1 - kpf").arg(server->root())); + setCaption(i18n("Monitoring %1 - kpf").tqarg(server->root())); monitor_ = new ActiveMonitor(server, this, "ActiveMonitor"); diff --git a/kpf/src/Applet.cpp b/kpf/src/Applet.cpp index 85ec4917..983ae0c3 100644 --- a/kpf/src/Applet.cpp +++ b/kpf/src/Applet.cpp @@ -23,7 +23,7 @@ #include #include -#include +#include #include #include #include diff --git a/kpf/src/Applet.h b/kpf/src/Applet.h index 5b7e9e8c..bd41962f 100644 --- a/kpf/src/Applet.h +++ b/kpf/src/Applet.h @@ -93,13 +93,13 @@ namespace KPF /** * Called when a WebServer object has been created. Creates an - * AppletItem, associates it with the former, and updates the layout. + * AppletItem, associates it with the former, and updates the tqlayout. */ void slotServerCreated(WebServer *); /** * Called when a WebServer object has been disabled. - * Deletes the associated AppletItem and updates the layout. + * Deletes the associated AppletItem and updates the tqlayout. */ void slotServerDisabled(WebServer *); @@ -121,13 +121,13 @@ namespace KPF virtual void about(); /** - * Overridden to keep track of orientation change and update layout + * Overridden to keep track of orientation change and update tqlayout * accordingly. */ virtual void orientationChange(Qt::Orientation); /** - * Overridden to update layout accordingly. + * Overridden to update tqlayout accordingly. */ virtual void moveEvent(TQMoveEvent *); virtual void resizeEvent(TQResizeEvent *); @@ -138,7 +138,7 @@ namespace KPF virtual void mousePressEvent(TQMouseEvent *); /** - * Updates the layout, moving AppletItem objects into proper positions. + * Updates the tqlayout, moving AppletItem objects into proper positions. */ virtual void resetLayout(); diff --git a/kpf/src/AppletItem.cpp b/kpf/src/AppletItem.cpp index fc16ae00..e5d3dc51 100644 --- a/kpf/src/AppletItem.cpp +++ b/kpf/src/AppletItem.cpp @@ -22,7 +22,7 @@ */ #include -#include +#include #include #include #include @@ -62,7 +62,7 @@ namespace KPF (new TQVBoxLayout(this))->addWidget(graph_); - TQString popupTitle(i18n("kpf - %1").arg(server_->root())); + TQString popupTitle(i18n("kpf - %1").tqarg(server_->root())); popup_ = new KPopupMenu(this); diff --git a/kpf/src/BandwidthGraph.cpp b/kpf/src/BandwidthGraph.cpp index d5a26233..546aa630 100644 --- a/kpf/src/BandwidthGraph.cpp +++ b/kpf/src/BandwidthGraph.cpp @@ -88,7 +88,7 @@ namespace KPF BandwidthGraph::setTooltip() { TQToolTip::add(this, i18n( "%1 on port %2" ) - .arg( server_->root() ).arg( server_->listenPort() ) ); + .tqarg( server_->root() ).tqarg( server_->listenPort() ) ); } TQRect @@ -112,7 +112,7 @@ namespace KPF p.drawPixmap( ( width()-bgPix_.width() )/2, ( height()-bgPix_.height() )/2, bgPix_ ); - p.setPen(colorGroup().dark()); + p.setPen(tqcolorGroup().dark()); for (uint i = 0; i < history_.size(); i++) { @@ -251,11 +251,11 @@ namespace KPF if (max_ > 1024) if (max_ > 1024 * 1024) - maxString = mbs.arg(max_ / (1024 * 1024)); + maxString = mbs.tqarg(max_ / (1024 * 1024)); else - maxString = kbs.arg(max_ / 1024); + maxString = kbs.tqarg(max_ / 1024); else if ( max_ > 0 ) - maxString = bs.arg(max_); + maxString = bs.tqarg(max_); else maxString = i18n( "Idle" ); @@ -280,13 +280,13 @@ namespace KPF } TQSize - BandwidthGraph::sizeHint() const + BandwidthGraph::tqsizeHint() const { return TQSize(32, 32); } TQSize - BandwidthGraph::minimumSizeHint() const + BandwidthGraph::tqminimumSizeHint() const { return TQSize(12, 12); } diff --git a/kpf/src/BandwidthGraph.h b/kpf/src/BandwidthGraph.h index eac25f76..8684c71f 100644 --- a/kpf/src/BandwidthGraph.h +++ b/kpf/src/BandwidthGraph.h @@ -74,14 +74,14 @@ namespace KPF void setTooltip(); /** - * Overridden to provide reasonable default size and shape. + * Overridden to provide reasonable default size and tqshape. */ - virtual TQSize sizeHint() const; + virtual TQSize tqsizeHint() const; /** - * Overridden to provide reasonable minimum size and shape. + * Overridden to provide reasonable minimum size and tqshape. */ - virtual TQSize minimumSizeHint() const; + virtual TQSize tqminimumSizeHint() const; /** * @return the WebServer object given on construction. diff --git a/kpf/src/ConfigDialogPage.cpp b/kpf/src/ConfigDialogPage.cpp index 830ede9e..657e96f0 100644 --- a/kpf/src/ConfigDialogPage.cpp +++ b/kpf/src/ConfigDialogPage.cpp @@ -22,7 +22,7 @@ */ #include -#include +#include #include #include #include diff --git a/kpf/src/DirectoryLister.cpp b/kpf/src/DirectoryLister.cpp index 1a196373..18aa7a98 100644 --- a/kpf/src/DirectoryLister.cpp +++ b/kpf/src/DirectoryLister.cpp @@ -26,9 +26,9 @@ #include #include #include -#include -#include -#include +#include +#include +#include #include #include #include @@ -248,7 +248,7 @@ namespace KPF return buildHTML ( i18n("Error"), - i18n("Directory does not exist: %1 %2").arg(root).arg(path) + i18n("Directory does not exist: %1 %2").tqarg(root).tqarg(path) ); } @@ -260,7 +260,7 @@ namespace KPF return buildHTML ( i18n("Error"), - i18n("Directory unreadable: %1 %2").arg(root).arg(path) + i18n("Directory unreadable: %1 %2").tqarg(root).tqarg(path) ); } @@ -335,7 +335,7 @@ namespace KPF return buildHTML ( - i18n("Directory listing for %1").arg(TQStyleSheet::escape(path)), + i18n("Directory listing for %1").tqarg(TQStyleSheet::escape(path)), html ); } diff --git a/kpf/src/ErrorMessageConfigDialog.cpp b/kpf/src/ErrorMessageConfigDialog.cpp index 04749b3e..e53941e7 100644 --- a/kpf/src/ErrorMessageConfigDialog.cpp +++ b/kpf/src/ErrorMessageConfigDialog.cpp @@ -26,7 +26,7 @@ #include #include -#include +#include #include #include @@ -62,7 +62,7 @@ namespace KPF TQFrame * w = makeMainWidget(); - TQVBoxLayout * layout = + TQVBoxLayout * tqlayout = new TQVBoxLayout(w, KDialog::marginHint(), KDialog::spacingHint()); TQLabel * info = @@ -84,9 +84,9 @@ namespace KPF w ); - layout->addWidget(info); + tqlayout->addWidget(info); - TQGridLayout * grid = new TQGridLayout(layout, codeList.count(), 2); + TQGridLayout * grid = new TQGridLayout(tqlayout, codeList.count(), 2); TQString pattern(i18n("%1 %2")); @@ -107,7 +107,7 @@ namespace KPF itemList_.append(new Item(*it, requester, responseName, originalPath)); - TQLabel * l = new TQLabel(pattern.arg(*it).arg(responseName), w); + TQLabel * l = new TQLabel(pattern.tqarg(*it).tqarg(responseName), w); l->setBuddy(requester); diff --git a/kpf/src/PropertiesDialogPlugin.cpp b/kpf/src/PropertiesDialogPlugin.cpp index bd3b9638..028697d3 100644 --- a/kpf/src/PropertiesDialogPlugin.cpp +++ b/kpf/src/PropertiesDialogPlugin.cpp @@ -21,7 +21,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#include +#include #include #include #include @@ -136,7 +136,7 @@ namespace KPF TQLabel * l_bandwidthLimit; // TQLabel * l_connectionLimit; TQLabel * l_serverName; - TQLabel * l_kpfStatus; + TQLabel * l_kpftqStatus; TQSpinBox * sb_listenPort; TQSpinBox * sb_bandwidthLimit; @@ -298,10 +298,10 @@ namespace KPF l->addWidget(about); - d->l_kpfStatus = + d->l_kpftqStatus = new TQLabel(i18n("Applet status: not running"), w); - l->addWidget(d->l_kpfStatus); + l->addWidget(d->l_kpftqStatus); TQHBoxLayout * l2 = new TQHBoxLayout(l); @@ -395,7 +395,7 @@ namespace KPF " (%1)" "

      " ) - .arg(TQDir::homeDirPath()); + .tqarg(TQDir::homeDirPath()); TQString listenPortHelp = i18n @@ -507,7 +507,7 @@ namespace KPF void PropertiesDialogPlugin::slotStartKPF() { - d->l_kpfStatus + d->l_kpftqStatus ->setText(i18n("Applet status: starting...")); kapp->dcopClient() @@ -519,7 +519,7 @@ namespace KPF void PropertiesDialogPlugin::slotStartKPFFailed() { - d->l_kpfStatus + d->l_kpftqStatus ->setText(i18n("Applet status: failed to start")); d->pb_startKPF->setEnabled(true); @@ -532,7 +532,7 @@ namespace KPF { d->kpfRunning = true; - d->l_kpfStatus + d->l_kpftqStatus ->setText(i18n("Applet status: running")); d->pb_startKPF->setEnabled(false); @@ -554,7 +554,7 @@ namespace KPF d->pb_startKPF->setEnabled(true); - d->l_kpfStatus + d->l_kpftqStatus ->setText(i18n("Applet status: not running")); d->stack->raiseWidget(d->initWidget); diff --git a/kpf/src/Response.cpp b/kpf/src/Response.cpp index da25a8a6..67d4f206 100644 --- a/kpf/src/Response.cpp +++ b/kpf/src/Response.cpp @@ -22,7 +22,7 @@ */ #include -#include +#include #include #include @@ -90,7 +90,7 @@ namespace KPF if (request.protocol() >= 1.0) { s = TQString(request.protocolString()) - + TQString(" %1 %2\r\n").arg(code_).arg(responseName(code_)); + + TQString(" %1 %2\r\n").tqarg(code_).tqarg(responseName(code_)); } break; @@ -103,7 +103,7 @@ namespace KPF case 501: case 505: s = TQString(request.protocolString()) - + TQString(" %1 %2\r\n").arg(code_).arg(responseName(code_)) + + TQString(" %1 %2\r\n").tqarg(code_).tqarg(responseName(code_)) + data(code_, request); break; @@ -178,7 +178,7 @@ namespace KPF } TQString contentLength = - TQString("Content-Length: %1\r\n").arg(html.length()); + TQString("Content-Length: %1\r\n").tqarg(html.length()); return (contentType + contentLength + "\r\n" + html); } diff --git a/kpf/src/Server.cpp b/kpf/src/Server.cpp index 868a88d3..87d3c733 100644 --- a/kpf/src/Server.cpp +++ b/kpf/src/Server.cpp @@ -53,7 +53,7 @@ namespace KPF d->followSymlinks = followSymlinks; - d->birth = TQDateTime::currentDateTime(); + d->birth = TQDateTime::tqcurrentDateTime(); d->socket.setSocket(socket); @@ -754,7 +754,7 @@ namespace KPF d->socket.close(); - d->death = TQDateTime::currentDateTime(); + d->death = TQDateTime::tqcurrentDateTime(); emit(finished(this)); } diff --git a/kpf/src/ServerWizard.cpp b/kpf/src/ServerWizard.cpp index 80266ca5..b48a2bf2 100644 --- a/kpf/src/ServerWizard.cpp +++ b/kpf/src/ServerWizard.cpp @@ -22,7 +22,7 @@ */ #include -#include +#include #include #include #include @@ -49,7 +49,7 @@ namespace KPF ServerWizard::ServerWizard(TQWidget * parent) : KWizard(parent, "KPF::ServerWizard", true) { - setCaption(i18n("New Server - %1").arg("kpf")); + setCaption(i18n("New Server - %1").tqarg("kpf")); page1_ = new TQWidget(this); page2_ = new TQWidget(this); @@ -171,59 +171,59 @@ namespace KPF sb_bandwidthLimit_ ->setSuffix(i18n(" kB/s")); // sb_connectionLimit_ ->setValue(Config::DefaultConnectionLimit); - TQVBoxLayout * layout1 = + TQVBoxLayout * tqlayout1 = new TQVBoxLayout(page1_, KDialog::marginHint(), KDialog::spacingHint()); - TQVBoxLayout * layout2 = + TQVBoxLayout * tqlayout2 = new TQVBoxLayout(page2_, KDialog::marginHint(), KDialog::spacingHint()); - TQVBoxLayout * layout3 = + TQVBoxLayout * tqlayout3 = new TQVBoxLayout(page3_, KDialog::marginHint(), KDialog::spacingHint()); -// TQVBoxLayout * layout4 = +// TQVBoxLayout * tqlayout4 = // new TQVBoxLayout(page4_, KDialog::marginHint(), KDialog::spacingHint()); - TQVBoxLayout * layout5 = + TQVBoxLayout * tqlayout5 = new TQVBoxLayout(page5_, KDialog::marginHint(), KDialog::spacingHint()); - layout1->addWidget(l_rootDirectoryHelp); - layout2->addWidget(l_listenPortHelp); - layout3->addWidget(l_bandwidthLimitHelp); -// layout4->addWidget(l_connectionLimitHelp); - layout5->addWidget(l_serverNameHelp); + tqlayout1->addWidget(l_rootDirectoryHelp); + tqlayout2->addWidget(l_listenPortHelp); + tqlayout3->addWidget(l_bandwidthLimitHelp); +// tqlayout4->addWidget(l_connectionLimitHelp); + tqlayout5->addWidget(l_serverNameHelp); - TQHBoxLayout * layout10 = new TQHBoxLayout(layout1); + TQHBoxLayout * tqlayout10 = new TQHBoxLayout(tqlayout1); - layout10->addWidget(l_root_); - layout10->addWidget(kur_root_); + tqlayout10->addWidget(l_root_); + tqlayout10->addWidget(kur_root_); - layout1->addStretch(1); + tqlayout1->addStretch(1); - TQHBoxLayout * layout20 = new TQHBoxLayout(layout2); + TQHBoxLayout * tqlayout20 = new TQHBoxLayout(tqlayout2); - layout20->addWidget(l_listenPort_); - layout20->addWidget(sb_listenPort_); + tqlayout20->addWidget(l_listenPort_); + tqlayout20->addWidget(sb_listenPort_); - layout2->addStretch(1); + tqlayout2->addStretch(1); - TQHBoxLayout * layout30 = new TQHBoxLayout(layout3); + TQHBoxLayout * tqlayout30 = new TQHBoxLayout(tqlayout3); - layout30->addWidget(l_bandwidthLimit_); - layout30->addWidget(sb_bandwidthLimit_); + tqlayout30->addWidget(l_bandwidthLimit_); + tqlayout30->addWidget(sb_bandwidthLimit_); - layout3->addStretch(1); + tqlayout3->addStretch(1); -// TQHBoxLayout * layout40 = new TQHBoxLayout(layout4); +// TQHBoxLayout * tqlayout40 = new TQHBoxLayout(tqlayout4); -// layout40->addWidget(l_connectionLimit_); -// layout40->addWidget(sb_connectionLimit_); +// tqlayout40->addWidget(l_connectionLimit_); +// tqlayout40->addWidget(sb_connectionLimit_); -// layout4->addStretch(1); +// tqlayout4->addStretch(1); - TQHBoxLayout * layout50 = new TQHBoxLayout(layout5); + TQHBoxLayout * tqlayout50 = new TQHBoxLayout(tqlayout5); - layout50->addWidget(l_serverName_); - layout50->addWidget(le_serverName_); + tqlayout50->addWidget(l_serverName_); + tqlayout50->addWidget(le_serverName_); addPage(page1_, i18n("Root Directory")); addPage(page2_, i18n("Listen Port")); @@ -396,7 +396,7 @@ namespace KPF return; } - fileDialog->setCaption(i18n("Choose Directory to Share - %1").arg("kpf")); + fileDialog->setCaption(i18n("Choose Directory to Share - %1").tqarg("kpf")); } void diff --git a/kpf/src/SingleServerConfigDialog.cpp b/kpf/src/SingleServerConfigDialog.cpp index c39f944b..0dd907b3 100644 --- a/kpf/src/SingleServerConfigDialog.cpp +++ b/kpf/src/SingleServerConfigDialog.cpp @@ -40,7 +40,7 @@ namespace KPF parent, "KPF::SingleServerConfigDialog", false, - i18n("Configuring Server %1 - kpf").arg(server->root()), + i18n("Configuring Server %1 - kpf").tqarg(server->root()), KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, true diff --git a/kpf/src/StartingKPFDialog.cpp b/kpf/src/StartingKPFDialog.cpp index 9f1d0d21..94709edc 100644 --- a/kpf/src/StartingKPFDialog.cpp +++ b/kpf/src/StartingKPFDialog.cpp @@ -21,7 +21,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#include +#include #include #include #include @@ -71,9 +71,9 @@ namespace KPF mainWidget ); - TQVBoxLayout * layout = new TQVBoxLayout(mainWidget); + TQVBoxLayout * tqlayout = new TQVBoxLayout(mainWidget); - layout->addWidget(about); + tqlayout->addWidget(about); kapp->dcopClient()->setNotifications(true); diff --git a/kpf/src/Utils.cpp b/kpf/src/Utils.cpp index 631059a7..8dc5c373 100644 --- a/kpf/src/Utils.cpp +++ b/kpf/src/Utils.cpp @@ -105,7 +105,7 @@ namespace KPF TQString dateString() { - return dateString(TQDateTime::currentDateTime()); + return dateString(TQDateTime::tqcurrentDateTime()); } diff --git a/kppp/accounting.cpp b/kppp/accounting.cpp index 76c5f02e..2d7ab5d7 100644 --- a/kppp/accounting.cpp +++ b/kppp/accounting.cpp @@ -72,10 +72,10 @@ AccountingBase::AccountingBase(TQObject *parent) : _total(0), _session(0) { - TQDate dt = TQDate::currentDate(); + TQDate dt = TQDate::tqcurrentDate(); LogFileName = TQString("%1-%2.log") - .arg(TQDate::shortMonthName(dt.month())) - .arg(dt.year(), 4); + .tqarg(TQDate::shortMonthName(dt.month())) + .tqarg(dt.year(), 4); LogFileName = KGlobal::dirs()->saveLocation("appdata", "Log") + "/" + LogFileName; @@ -233,7 +233,7 @@ void Accounting::timerEvent(TQTimerEvent *t) { double newLen; double connect_time = difftime(time(0), start_time); - rules.getActiveRule(TQDateTime::currentDateTime(), connect_time, newCosts, newLen); + rules.getActiveRule(TQDateTime::tqcurrentDateTime(), connect_time, newCosts, newLen); if(newLen < 1) { // changed to < 1 slotStop(); return; // no default rule found @@ -279,7 +279,7 @@ void Accounting::slotStart() { _lastcosts = 0.0; _lastlen = 0.0; _session = rules.perConnectionCosts(); - rules.setStartTime(TQDateTime::currentDateTime()); + rules.setStartTime(TQDateTime::tqcurrentDateTime()); acct_timer_id = startTimer(1); if(UPDATE_TIME > 0) update_timer_id = startTimer(UPDATE_TIME); diff --git a/kppp/accounts.cpp b/kppp/accounts.cpp index 66fac600..450e2a1b 100644 --- a/kppp/accounts.cpp +++ b/kppp/accounts.cpp @@ -26,7 +26,7 @@ #include #include -#include +#include #include #include #include @@ -75,7 +75,7 @@ AccountWidget::AccountWidget( TQWidget *parent, const char *name ) connect(edit_b, TQT_SIGNAL(clicked()), TQT_SLOT(editaccount())); TQWhatsThis::add(edit_b, i18n("Allows you to modify the selected account")); - min = edit_b->sizeHint().width(); + min = edit_b->tqsizeHint().width(); min = TQMAX(70,min); edit_b->setMinimumWidth(min); @@ -116,7 +116,7 @@ AccountWidget::AccountWidget( TQWidget *parent, const char *name ) costedit = new TQLineEdit(parent); costedit->setFocusPolicy(TQ_NoFocus); - costedit->setFixedHeight(costedit->sizeHint().height()); + costedit->setFixedHeight(costedit->tqsizeHint().height()); costedit->setEnabled(FALSE); l121->addWidget(costedit); l121->addStretch(1); @@ -135,7 +135,7 @@ AccountWidget::AccountWidget( TQWidget *parent, const char *name ) voledit = new TQLineEdit(parent,"voledit"); voledit->setFocusPolicy(TQ_NoFocus); - voledit->setFixedHeight(voledit->sizeHint().height()); + voledit->setFixedHeight(voledit->tqsizeHint().height()); voledit->setEnabled(FALSE); l121->addWidget(voledit); tmp = i18n("

      This shows the number of bytes transferred\n" @@ -324,7 +324,7 @@ void AccountWidget::copyaccount() { void AccountWidget::deleteaccount() { TQString s = i18n("Are you sure you want to delete\nthe account \"%1\"?") - .arg(accountlist_l->text(accountlist_l->currentItem())); + .tqarg(accountlist_l->text(accountlist_l->currentItem())); if(KMessageBox::warningYesNo(this, s, i18n("Confirm"), KGuiItem(i18n("Delete"), "editdelete"), KStdGuiItem::cancel()) != KMessageBox::Yes) return; @@ -450,7 +450,7 @@ QueryReset::QueryReset(TQWidget *parent) : TQDialog(parent, 0, true) { l1->activate(); - // this activates the f-layout and sets minimumSize() + // this activates the f-tqlayout and sets tqminimumSize() f->show(); tl->addWidget(f); @@ -466,11 +466,11 @@ QueryReset::QueryReset(TQWidget *parent) : TQDialog(parent, 0, true) { connect(cancel, TQT_SIGNAL(clicked()), this, TQT_SLOT(reject())); - bbox->layout(); + bbox->tqlayout(); tl->addWidget(bbox); // TODO: activate if KGroupBox is fixed - // setFixedSize(sizeHint()); + // setFixedSize(tqsizeHint()); } diff --git a/kppp/acctselect.cpp b/kppp/acctselect.cpp index 6b724b16..121713c5 100644 --- a/kppp/acctselect.cpp +++ b/kppp/acctselect.cpp @@ -36,7 +36,7 @@ #include #include #include -#include +#include #include #include #include @@ -85,7 +85,7 @@ AccountingSelector::AccountingSelector(TQWidget *parent, bool _isnewaccount, con selected = new TQLabel(parent); selected->setFrameStyle(TQFrame::Sunken | TQFrame::WinPanel); selected->setLineWidth(1); - selected->setFixedHeight(selected->sizeHint().height() + 16); + selected->setFixedHeight(selected->tqsizeHint().height() + 16); l11->addWidget(lsel, 0); l11->addSpacing(10); l11->addWidget(selected, 1); diff --git a/kppp/connect.cpp b/kppp/connect.cpp index 38630928..ea755a3e 100644 --- a/kppp/connect.cpp +++ b/kppp/connect.cpp @@ -26,7 +26,7 @@ #include -#include +#include #include #include @@ -109,10 +109,10 @@ ConnectWidget::ConnectWidget(TQWidget *parent, const char *name, PPPStats *st) l0->addSpacing(10); messg = new TQLabel(this, "messg"); messg->setFrameStyle(TQFrame::Panel|TQFrame::Sunken); - messg->setAlignment(AlignCenter); + messg->tqsetAlignment(AlignCenter); messg->setText(i18n("Unable to create modem lock file.")); - messg->setMinimumHeight(messg->sizeHint().height() + 5); - int messw = (messg->sizeHint().width() * 12) / 10; + messg->setMinimumHeight(messg->tqsizeHint().height() + 5); + int messw = (messg->tqsizeHint().width() * 12) / 10; messw = TQMAX(messw,280); messg->setMinimumWidth(messw); messg->setText(i18n("Looking for modem...")); @@ -131,8 +131,8 @@ ConnectWidget::ConnectWidget(TQWidget *parent, const char *name, PPPStats *st) cancel->setFocus(); connect(cancel, TQT_SIGNAL(clicked()), TQT_SLOT(cancelbutton())); - int maxw = TQMAX(cancel->sizeHint().width(), - debug->sizeHint().width()); + int maxw = TQMAX(cancel->tqsizeHint().width(), + debug->tqsizeHint().width()); maxw = TQMAX(maxw,65); debug->setFixedWidth(maxw); cancel->setFixedWidth(maxw); @@ -140,7 +140,7 @@ ConnectWidget::ConnectWidget(TQWidget *parent, const char *name, PPPStats *st) l1->addWidget(cancel); l1->addSpacing(10); - setFixedSize(sizeHint()); + setFixedSize(tqsizeHint()); pausetimer = new TQTimer(this); connect(pausetimer, TQT_SIGNAL(timeout()), TQT_SLOT(pause())); @@ -210,7 +210,7 @@ void ConnectWidget::init() { comlist = &gpppdata.scriptType(); arglist = &gpppdata.script(); - TQString tit = i18n("Connecting to: %1").arg(gpppdata.accname()); + TQString tit = i18n("Connecting to: %1").tqarg(gpppdata.accname()); setCaption(tit); kapp->processEvents(); @@ -398,7 +398,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) { TQStringList &plist = gpppdata.phonenumbers(); TQString bmarg= gpppdata.dialPrefix(); bmarg += *plist.at(dialnumber); - TQString bm = i18n("Dialing %1").arg(bmarg); + TQString bm = i18n("Dialing %1").tqarg(bmarg); messg->setText(bm); emit debugMessage(bm); @@ -434,7 +434,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) { Modem::modem->hangup(); if(gpppdata.busyWait() > 0) { - TQString bm = i18n("Line busy. Waiting: %1 seconds").arg(gpppdata.busyWait()); + TQString bm = i18n("Line busy. Waiting: %1 seconds").tqarg(gpppdata.busyWait()); messg->setText(bm); emit debugMessage(bm); @@ -467,7 +467,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) { timeout_timer->start(gpppdata.modemTimeout()*1000); if(gpppdata.busyWait() > 0) { - TQString bm = i18n("No carrier. Waiting: %1 seconds").arg(gpppdata.busyWait()); + TQString bm = i18n("No carrier. Waiting: %1 seconds").tqarg(gpppdata.busyWait()); messg->setText(bm); emit debugMessage(bm); @@ -553,7 +553,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) { } if (scriptCommand == "Scan") { - TQString bm = i18n("Scanning %1").arg(scriptArgument); + TQString bm = i18n("Scanning %1").tqarg(scriptArgument); messg->setText(bm); emit debugMessage(bm); @@ -563,7 +563,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) { } if (scriptCommand == "Save") { - TQString bm = i18n("Saving %1").arg(scriptArgument); + TQString bm = i18n("Saving %1").tqarg(scriptArgument); messg->setText(bm); emit debugMessage(bm); @@ -591,10 +591,10 @@ void ConnectWidget::timerEvent(TQTimerEvent *) { arg = arg.replace(re2, gpppdata.storedPassword()); if (scriptCommand == "Send") - bm = bm.arg(scriptArgument); + bm = bm.tqarg(scriptArgument); else { for(uint i = 0; i < scriptArgument.length(); i++) - bm = bm.arg("*"); + bm = bm.tqarg("*"); } messg->setText(bm); @@ -606,7 +606,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) { } if (scriptCommand == "Expect") { - TQString bm = i18n("Expecting %1").arg(scriptArgument); + TQString bm = i18n("Expecting %1").tqarg(scriptArgument); messg->setText(bm); emit debugMessage(bm); @@ -620,7 +620,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) { if (scriptCommand == "Pause") { - TQString bm = i18n("Pause %1 seconds").arg(scriptArgument); + TQString bm = i18n("Pause %1 seconds").tqarg(scriptArgument); messg->setText(bm); emit debugMessage(bm); @@ -637,7 +637,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) { timeout_timer->stop(); - TQString bm = i18n("Timeout %1 seconds").arg(scriptArgument); + TQString bm = i18n("Timeout %1 seconds").tqarg(scriptArgument); messg->setText(bm); emit debugMessage(bm); @@ -672,7 +672,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) { } if (scriptCommand == "ID") { - TQString bm = i18n("ID %1").arg(scriptArgument); + TQString bm = i18n("ID %1").tqarg(scriptArgument); messg->setText(bm); emit debugMessage(bm); @@ -708,7 +708,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) { } if (scriptCommand == "Password") { - TQString bm = i18n("Password %1").arg(scriptArgument); + TQString bm = i18n("Password %1").tqarg(scriptArgument); messg->setText(bm); emit debugMessage(bm); @@ -758,7 +758,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) { ts.insert( vstart, scanvar ); } - bm = bm.arg(ts); + bm = bm.tqarg(ts); messg->setText(bm); emit debugMessage(bm); @@ -782,7 +782,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) { } if (scriptCommand == "PWPrompt") { - TQString bm = i18n("PW Prompt %1").arg(scriptArgument); + TQString bm = i18n("PW Prompt %1").tqarg(scriptArgument); messg->setText(bm); emit debugMessage(bm); @@ -807,7 +807,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) { if (scriptCommand == "LoopStart") { - TQString bm = i18n("Loop Start %1").arg(scriptArgument); + TQString bm = i18n("Loop Start %1").tqarg(scriptArgument); // The incrementing of the scriptindex MUST be before the // call to setExpect otherwise the expect will miss a string that is @@ -832,9 +832,9 @@ void ConnectWidget::timerEvent(TQTimerEvent *) { } if (scriptCommand == "LoopEnd") { - TQString bm = i18n("Loop End %1").arg(scriptArgument); + TQString bm = i18n("Loop End %1").tqarg(scriptArgument); if ( loopnest <= 0 ) { - bm = i18n("LoopEnd without matching Start. Line: %1").arg(bm); + bm = i18n("LoopEnd without matching Start. Line: %1").tqarg(bm); vmain=20; cancelbutton(); KMessageBox::error(0, bm); @@ -1003,7 +1003,7 @@ void ConnectWidget::checkBuffers() { scanvar = scanvar.stripWhiteSpace(); // Show the Variabel content in the debug window - TQString sv = i18n("Scan Var: %1").arg(scanvar); + TQString sv = i18n("Scan Var: %1").tqarg(scanvar); emit debugMessage(sv); } @@ -1013,7 +1013,7 @@ void ConnectWidget::checkBuffers() { // keep everything after the expected string readbuffer.remove(0, readbuffer.find(expectstr) + expectstr.length()); - TQString ts = i18n("Found: %1").arg(expectstr); + TQString ts = i18n("Found: %1").tqarg(expectstr); emit debugMessage(ts); if (loopend) { @@ -1024,7 +1024,7 @@ void ConnectWidget::checkBuffers() { if (loopend && readbuffer.contains(loopstr[loopnest])) { expecting = false; readbuffer = ""; - TQString ts = i18n("Looping: %1").arg(loopstr[loopnest]); + TQString ts = i18n("Looping: %1").tqarg(loopstr[loopnest]); emit debugMessage(ts); scriptindex = loopstartindex[loopnest]; loopend = false; @@ -1117,7 +1117,7 @@ void ConnectWidget::setScan(const TQString &n) { scanstr = n; scanbuffer = ""; - TQString ts = i18n("Scanning: %1").arg(n); + TQString ts = i18n("Scanning: %1").tqarg(n); emit debugMessage(ts); } @@ -1126,7 +1126,7 @@ void ConnectWidget::setExpect(const TQString &n) { expecting = true; expectstr = n; - TQString ts = i18n("Expecting: %1").arg(n); + TQString ts = i18n("Expecting: %1").tqarg(n); ts.replace(TQRegExp("\n"), ""); emit debugMessage(ts); diff --git a/kppp/conwindow.cpp b/kppp/conwindow.cpp index 2e6f2281..14154e69 100644 --- a/kppp/conwindow.cpp +++ b/kppp/conwindow.cpp @@ -118,11 +118,11 @@ void ConWindow::accounting(bool on) { accountingEnabled = on; volumeAccountingEnabled = gpppdata.VolAcctEnabled(); - // delete old layout + // delete old tqlayout if(tl1 != 0) delete tl1; - // add layout now + // add tqlayout now tl1 = new TQVBoxLayout(this, 10, 10); tl1->addSpacing(5); TQHBoxLayout *tl = new TQHBoxLayout; @@ -142,11 +142,11 @@ void ConWindow::accounting(bool on) { l1->setColStretch(0, 0); l1->setColStretch(1, 1); - info2->setAlignment(AlignRight|AlignVCenter); - timelabel2->setAlignment(AlignRight|AlignVCenter); - session_bill->setAlignment(AlignRight|AlignVCenter); - total_bill->setAlignment(AlignRight|AlignVCenter); - volinfo->setAlignment(AlignRight|AlignVCenter); + info2->tqsetAlignment(AlignRight|AlignVCenter); + timelabel2->tqsetAlignment(AlignRight|AlignVCenter); + session_bill->tqsetAlignment(AlignRight|AlignVCenter); + total_bill->tqsetAlignment(AlignRight|AlignVCenter); + volinfo->tqsetAlignment(AlignRight|AlignVCenter); // make sure that there's enough space for the bills TQString s1 = session_bill->text(); TQString s2 = total_bill->text(); @@ -155,9 +155,9 @@ void ConWindow::accounting(bool on) { session_bill->setText("888888.88 XXX"); total_bill->setText("888888.88 XXX"); volinfo->setText("8888.8 MB"); - session_bill->setFixedSize(session_bill->sizeHint()); - total_bill->setFixedSize(total_bill->sizeHint()); - volinfo->setFixedSize(volinfo->sizeHint()); + session_bill->setFixedSize(session_bill->tqsizeHint()); + total_bill->setFixedSize(total_bill->tqsizeHint()); + volinfo->setFixedSize(volinfo->tqsizeHint()); session_bill->setText(s1); total_bill->setText(s2); volinfo->setText(s3); @@ -214,7 +214,7 @@ void ConWindow::accounting(bool on) { tl1->addSpacing(5); - setFixedSize(sizeHint()); + setFixedSize(tqsizeHint()); /* do not overwrite position read from config // If this gets re-enabled, fix it for Xinerama before committing to CVS. @@ -264,12 +264,12 @@ void ConWindow::timeclick() { TQString tooltip = i18n("Connection: %1\n" "Connected at: %2\n" "Time connected: %3") - .arg(gpppdata.accname()).arg(info2->text()) - .arg(time_string2); + .tqarg(gpppdata.accname()).tqarg(info2->text()) + .tqarg(time_string2); if(accountingEnabled) tooltip += i18n("\nSession Bill: %1\nTotal Bill: %2") - .arg(session_bill->text()).arg(total_bill->text()); + .tqarg(session_bill->text()).tqarg(total_bill->text()); // volume accounting if(volumeAccountingEnabled) { diff --git a/kppp/conwindow.h b/kppp/conwindow.h index c2948a3b..a1d13f09 100644 --- a/kppp/conwindow.h +++ b/kppp/conwindow.h @@ -32,7 +32,7 @@ #include #include #include -#include +#include class PPPStats; diff --git a/kppp/debug.cpp b/kppp/debug.cpp index 3dee5797..9b220c20 100644 --- a/kppp/debug.cpp +++ b/kppp/debug.cpp @@ -57,7 +57,7 @@ DebugWidget::DebugWidget(TQWidget *parent, const char *name) statuslabel = new TQLabel("", this, "statuslabel"); statuslabel->setFrameStyle( TQFrame::Panel | TQFrame::Sunken ); - statuslabel->setAlignment( AlignLeft|AlignVCenter ); + statuslabel->tqsetAlignment( AlignLeft|AlignVCenter ); statuslabel->setGeometry(2, 307, 400, 20); //statusPageLabel->setFont( KGlobalSettings::generalFont() ); diff --git a/kppp/edit.cpp b/kppp/edit.cpp index 96f36d90..39f88097 100644 --- a/kppp/edit.cpp +++ b/kppp/edit.cpp @@ -25,7 +25,7 @@ #include #include -#include +#include #include #include #include @@ -66,7 +66,7 @@ DialWidget::DialWidget( TQWidget *parent, bool isnewaccount, const char *name ) number_label = new TQLabel(i18n("P&hone number:"), parent); - number_label->setAlignment(AlignTop|AlignLeft); + number_label->tqsetAlignment(AlignTop|AlignLeft); tl->addWidget(number_label, 1, 0); TQHBoxLayout *lpn = new TQHBoxLayout(5); @@ -324,7 +324,7 @@ i18n("Here you can select commands to run at certain stages of the\n" "(unless, of course, you are root).\n\n" "Be sure to supply the whole path to the program otherwise\n" "kppp might be unable to find it."), parent); - l->setMinimumHeight(l->sizeHint().height()); + l->setMinimumHeight(l->tqsizeHint().height()); tl->addWidget(l); tl->addStretch(1); @@ -334,7 +334,7 @@ i18n("Here you can select commands to run at certain stages of the\n" l1->setColStretch(1, 1); before_connect_l = new TQLabel(i18n("&Before connect:"), parent); - before_connect_l->setAlignment(AlignVCenter); + before_connect_l->tqsetAlignment(AlignVCenter); l1->addWidget(before_connect_l, 0, 0); before_connect = new TQLineEdit(parent); before_connect_l->setBuddy(before_connect); @@ -350,7 +350,7 @@ i18n("Here you can select commands to run at certain stages of the\n" TQWhatsThis::add(before_connect,tmp); command_label = new TQLabel(i18n("&Upon connect:"), parent); - command_label->setAlignment(AlignVCenter); + command_label->tqsetAlignment(AlignVCenter); l1->addWidget(command_label, 1, 0); command = new TQLineEdit(parent); command_label->setBuddy(command); @@ -367,7 +367,7 @@ i18n("Here you can select commands to run at certain stages of the\n" predisconnect_label = new TQLabel(i18n("Before &disconnect:"), parent); - predisconnect_label->setAlignment(AlignVCenter); + predisconnect_label->tqsetAlignment(AlignVCenter); l1->addWidget(predisconnect_label, 2, 0); predisconnect = new TQLineEdit(parent); predisconnect_label->setBuddy(predisconnect); @@ -382,7 +382,7 @@ i18n("Here you can select commands to run at certain stages of the\n" discommand_label = new TQLabel(i18n("U&pon disconnect:"), parent); - discommand_label->setAlignment(AlignVCenter); + discommand_label->tqsetAlignment(AlignVCenter); l1->addWidget(discommand_label, 3, 0); discommand = new TQLineEdit(parent); @@ -655,7 +655,7 @@ DNSWidget::DNSWidget( TQWidget *parent, bool isnewaccount, const char *name ) tl->addLayout(l1, 4, 1); add = new TQPushButton(i18n("&Add"), parent); connect(add, TQT_SIGNAL(clicked()), TQT_SLOT(adddns())); - int width = add->sizeHint().width(); + int width = add->tqsizeHint().width(); width = TQMAX(width,60); add->setMinimumWidth(width); l1->addWidget(add); @@ -667,7 +667,7 @@ DNSWidget::DNSWidget( TQWidget *parent, bool isnewaccount, const char *name ) remove = new TQPushButton(i18n("&Remove"), parent); connect(remove, TQT_SIGNAL(clicked()), TQT_SLOT(removedns())); - width = remove->sizeHint().width(); + width = remove->tqsizeHint().width(); width = TQMAX(width,60); remove->setMinimumWidth(width); l1->addWidget(remove); @@ -676,7 +676,7 @@ DNSWidget::DNSWidget( TQWidget *parent, bool isnewaccount, const char *name ) "server entry from the list below")); servers_label = new TQLabel(i18n("DNS address &list:"), parent); - servers_label->setAlignment(AlignTop|AlignLeft); + servers_label->tqsetAlignment(AlignTop|AlignLeft); tl->addWidget(servers_label, 5, 0); dnsservers = new TQListBox(parent); @@ -892,7 +892,7 @@ ScriptWidget::ScriptWidget( TQWidget *parent, bool isnewaccount, const char *nam bbox->addStretch(1); remove = bbox->addButton(i18n("&Remove")); connect(remove, TQT_SIGNAL(clicked()), TQT_SLOT(removeButton())); - bbox->layout(); + bbox->tqlayout(); tl->addWidget(bbox); TQHBoxLayout *l12 = new TQHBoxLayout(0); @@ -908,7 +908,7 @@ ScriptWidget::ScriptWidget( TQWidget *parent, bool isnewaccount, const char *nam sl->setMinimumSize(TQSize(150, 140)); slb = new TQScrollBar(parent); - slb->setFixedWidth(slb->sizeHint().width()); + slb->setFixedWidth(slb->tqsizeHint().width()); connect(slb, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(scrolling(int))); l12->addWidget(stl, 1); diff --git a/kppp/general.cpp b/kppp/general.cpp index 3aa84116..5ed9c459 100644 --- a/kppp/general.cpp +++ b/kppp/general.cpp @@ -38,7 +38,7 @@ #include "devices.h" #include "pppdata.h" #include -#include +#include #include ///////////////////////////////////////////////////////////////////////////// diff --git a/kppp/iplined.cpp b/kppp/iplined.cpp index 197b13a6..989c790c 100644 --- a/kppp/iplined.cpp +++ b/kppp/iplined.cpp @@ -32,11 +32,11 @@ IPLineEdit::IPLineEdit( TQWidget *parent, const char *name ) setMaxLength(3 * 4 + 1 * 3); } -TQSize IPLineEdit::sizeHint() const { +TQSize IPLineEdit::tqsizeHint() const { TQFontMetrics fm = fontMetrics(); TQSize s; - s.setHeight(TQLineEdit::sizeHint().height()); + s.setHeight(TQLineEdit::tqsizeHint().height()); s.setWidth(fm.boundingRect("888.888.888.888XX").width()); return s; } diff --git a/kppp/iplined.h b/kppp/iplined.h index b978b6f5..64a6dcbb 100644 --- a/kppp/iplined.h +++ b/kppp/iplined.h @@ -34,7 +34,7 @@ public: IPLineEdit( TQWidget *parent=0, const char *name=0 ); ~IPLineEdit() {} - virtual TQSize sizeHint() const; + virtual TQSize tqsizeHint() const; }; #endif diff --git a/kppp/kpppwidget.cpp b/kppp/kpppwidget.cpp index 4b78d330..28afa910 100644 --- a/kppp/kpppwidget.cpp +++ b/kppp/kpppwidget.cpp @@ -189,13 +189,13 @@ KPPPWidget::KPPPWidget( TQWidget *parent, const char *name ) int minw = 0; quit_b = new KPushButton(KStdGuiItem::quit(), this); connect( quit_b, TQT_SIGNAL(clicked()), TQT_SLOT(quitbutton())); - if(quit_b->sizeHint().width() > minw) - minw = quit_b->sizeHint().width(); + if(quit_b->tqsizeHint().width() > minw) + minw = quit_b->tqsizeHint().width(); setup_b = new KPushButton(KGuiItem(i18n("Co&nfigure..."), "configure"), this); connect( setup_b, TQT_SIGNAL(clicked()), TQT_SLOT(expandbutton())); - if(setup_b->sizeHint().width() > minw) - minw = setup_b->sizeHint().width(); + if(setup_b->tqsizeHint().width() > minw) + minw = setup_b->tqsizeHint().width(); if(gpppdata.access() != KConfig::ReadWrite) setup_b->setEnabled(false); @@ -206,19 +206,19 @@ KPPPWidget::KPPPWidget( TQWidget *parent, const char *name ) KHelpMenu *helpMenu = new KHelpMenu(this, KGlobal::instance()->aboutData(), true); help_b->setPopup((TQPopupMenu*)helpMenu->menu()); - if(help_b->sizeHint().width() > minw) - minw = help_b->sizeHint().width(); + if(help_b->tqsizeHint().width() > minw) + minw = help_b->tqsizeHint().width(); connect_b = new TQPushButton(i18n("&Connect"), this); connect_b->setDefault(true); connect_b->setFocus(); connect(connect_b, TQT_SIGNAL(clicked()), TQT_SLOT(beginConnect())); - if(connect_b->sizeHint().width() > minw) - minw = connect_b->sizeHint().width(); + if(connect_b->tqsizeHint().width() > minw) + minw = connect_b->tqsizeHint().width(); quit_b->setFixedWidth(minw); setup_b->setFixedWidth(minw); - help_b->setFixedWidth(help_b->sizeHint().width()); + help_b->setFixedWidth(help_b->tqsizeHint().width()); connect_b->setFixedWidth(minw); l2->addWidget(quit_b); @@ -227,7 +227,7 @@ KPPPWidget::KPPPWidget( TQWidget *parent, const char *name ) l2->addSpacing(20); l2->addWidget(connect_b); - setFixedSize(sizeHint()); + setFixedSize(tqsizeHint()); (void)new Modem; @@ -258,7 +258,7 @@ KPPPWidget::KPPPWidget( TQWidget *parent, const char *name ) KWin::setIcons(con->winId(), kapp->icon(), kapp->miniIcon() ); connect(this, TQT_SIGNAL(begin_connect()),con, TQT_SLOT(preinit())); - TQRect desk = KGlobalSettings::desktopGeometry(topLevelWidget()); + TQRect desk = KGlobalSettings::desktopGeometry(tqtopLevelWidget()); con->setGeometry(desk.center().x()-175, desk.center().y()-55, 350,110); // connect the ConnectWidgets various signals @@ -305,7 +305,7 @@ KPPPWidget::KPPPWidget( TQWidget *parent, const char *name ) bool result = gpppdata.setModem(m_strCmdlModem); if (!result){ TQString string; - string = i18n("No such Modem:\n%1\nFalling back to default").arg(m_strCmdlModem); + string = i18n("No such Modem:\n%1\nFalling back to default").tqarg(m_strCmdlModem); KMessageBox::error(this, string); m_bCmdlModem = false; } @@ -315,7 +315,7 @@ KPPPWidget::KPPPWidget( TQWidget *parent, const char *name ) bool result = gpppdata.setAccount(m_strCmdlAccount); if (!result){ TQString string; - string = i18n("No such Account:\n%1").arg(m_strCmdlAccount); + string = i18n("No such Account:\n%1").tqarg(m_strCmdlAccount); KMessageBox::error(this, string); m_bCmdlAccount = false; show(); @@ -515,8 +515,8 @@ void KPPPWidget::resetmodems() { } label7->setShown(m_bModemCShown); modem_c->setShown(m_bModemCShown); - layout()->invalidate(); - setFixedSize(sizeHint()); + tqlayout()->tqinvalidate(); + setFixedSize(tqsizeHint()); //set the default modem if(!gpppdata.defaultModem().isEmpty()) { @@ -598,8 +598,8 @@ void KPPPWidget::sigPPPDDied() { Modem::modem->unlockdevice(); con->pppdDied(); - Requester::rq->pppdExitStatus(); - gpppdata.setWaitCallback(gpppdata.callbackType() && Requester::rq->lastStatus == E_CBCP_WAIT); + Requester::rq->pppdExittqStatus(); + gpppdata.setWaitCallback(gpppdata.callbackType() && Requester::rq->lasttqStatus == E_CBCP_WAIT); if(!gpppdata.automatic_redial() && !gpppdata.waitCallback()) { quit_b->setFocus(); @@ -617,14 +617,14 @@ void KPPPWidget::sigPPPDDied() { "to come up."); else { msg = i18n("

      The pppd daemon died unexpectedly!

      "); - Requester::rq->pppdExitStatus(); - if (Requester::rq->lastStatus != 99) { // more recent pppds only - msg += i18n("

      Exit status: %1").arg(Requester::rq->lastStatus); + Requester::rq->pppdExittqStatus(); + if (Requester::rq->lasttqStatus != 99) { // more recent pppds only + msg += i18n("

      Exit status: %1").tqarg(Requester::rq->lasttqStatus); msg += i18n("

      See 'man pppd' for an explanation of the error " "codes or take a look at the kppp FAQ on " " %2

      ") - .arg("http://developer.kde.org/~kppp/index.html") - .arg("http://developer.kde.org/~kppp/index.html"); + .tqarg("http://developer.kde.org/~kppp/index.html") + .tqarg("http://developer.kde.org/~kppp/index.html"); } } @@ -715,7 +715,7 @@ void KPPPWidget::beginConnect() { string = i18n("kppp cannot execute:\n %1\n" "Please make sure that you have given kppp " "setuid permission and that " - "pppd is executable.").arg(gpppdata.pppdPath()); + "pppd is executable.").tqarg(gpppdata.pppdPath()); KMessageBox::error(this, string); return; @@ -737,7 +737,7 @@ void KPPPWidget::beginConnect() { "your modem device properly " "and/or adjust the location of the modem device on " "the modem tab of " - "the setup dialog.").arg(device); + "the setup dialog.").tqarg(device); KMessageBox::error(this, string); return; } @@ -760,7 +760,7 @@ void KPPPWidget::beginConnect() { encodeWord(gpppdata.password()))) { TQString s; s = i18n("Cannot create PAP/CHAP authentication\n" - "file \"%1\"").arg(PAP_AUTH_FILE); + "file \"%1\"").tqarg(PAP_AUTH_FILE); KMessageBox::error(this, s); return; } @@ -775,7 +775,7 @@ void KPPPWidget::beginConnect() { hide(); - TQString tit = i18n("Connecting to: %1").arg(gpppdata.accname()); + TQString tit = i18n("Connecting to: %1").tqarg(gpppdata.accname()); con->setCaption(tit); con->enableButtons(); con->show(); @@ -922,7 +922,7 @@ void KPPPWidget::startAccounting() { if(!acct->loadRuleSet(gpppdata.accountingFile())) { TQString s= i18n("Can not load the accounting " - "ruleset \"%1\".").arg(gpppdata.accountingFile()); + "ruleset \"%1\".").tqarg(gpppdata.accountingFile()); // starting the messagebox with a timer will prevent us // from blocking the calling function ConnectWidget::timerEvent @@ -1020,7 +1020,7 @@ void KPPPWidget::showNews() { TQLabel *icon = new TQLabel(&dlg); icon->setPixmap(BarIcon("exclamation")); - icon->setFixedSize(icon->sizeHint()); + icon->setFixedSize(icon->tqsizeHint()); l1->addWidget(icon); l1->addLayout(l2); @@ -1037,7 +1037,7 @@ void KPPPWidget::showNews() { &dlg); TQCheckBox *cb = new TQCheckBox(i18n("Don't show this hint again"), &dlg); - cb->setFixedSize(cb->sizeHint()); + cb->setFixedSize(cb->tqsizeHint()); KButtonBox *bbox = new KButtonBox(&dlg); bbox->addStretch(1); @@ -1046,7 +1046,7 @@ void KPPPWidget::showNews() { dlg.connect(ok, TQT_SIGNAL(clicked()), &dlg, TQT_SLOT(accept())); bbox->addStretch(1); - bbox->layout(); + bbox->tqlayout(); l2->addWidget(l); l2->addWidget(cb); diff --git a/kppp/loginterm.cpp b/kppp/loginterm.cpp index fd544486..4be1dea0 100644 --- a/kppp/loginterm.cpp +++ b/kppp/loginterm.cpp @@ -123,10 +123,10 @@ LoginTerm::LoginTerm (TQWidget *parent, const char *name) connect(continue_b, TQT_SIGNAL(clicked()), TQT_SLOT(continuebutton())); int mwidth; - if (cancel_b->sizeHint().width() > continue_b->sizeHint().width()) - mwidth = cancel_b->sizeHint().width(); + if (cancel_b->tqsizeHint().width() > continue_b->tqsizeHint().width()) + mwidth = cancel_b->tqsizeHint().width(); else - mwidth = continue_b->sizeHint().width(); + mwidth = continue_b->tqsizeHint().width(); cancel_b->setFixedWidth(mwidth + 20); continue_b->setFixedWidth(mwidth + 20); diff --git a/kppp/logview/export.cpp b/kppp/logview/export.cpp index ae665ec5..b646acdc 100644 --- a/kppp/logview/export.cpp +++ b/kppp/logview/export.cpp @@ -23,7 +23,7 @@ #include "export.h" #include -#include +#include class Export; @@ -73,7 +73,7 @@ ExportWizard::ExportWizard(TQWidget *parent, const TQString &_date) formatLayout->addSpacing(10); typeInfo = new TQLabel(formatPage); - typeInfo->setAlignment(TQt::AlignTop | TQt::WordBreak); + typeInfo->tqsetAlignment(TQt::AlignTop | TQt::WordBreak); typeInfo->setText(i18n("Please choose the output format on the left side.")); typeInfo->setMinimumSize(350, 200); formatLayout->addWidget(typeInfo); @@ -219,12 +219,12 @@ void CSVExport::setFinishCode() { /***** HTMLExport *****/ HTMLExport::HTMLExport(const TQString &filename, const TQString &date) : Export(filename) { - TQString title = i18n("Connection log for %1").arg(date); + TQString title = i18n("Connection log for %1").tqarg(date); buffer = "\n"; buffer.append("\n\n "+title+"\n"); - buffer.append(TQString::fromLatin1(" ")); + TQString::tqfromLatin1("\">")); buffer.append("\n\n\n

      "+title+"

      \n\n"); buffer.append("
EventChanges to databaseoldStatusEventChanges to databaseoldtqStatus
John 17:44 Away (connexion) - (oldstatus was offline)oldstatus = away
\n"); diff --git a/kppp/logview/export.h b/kppp/logview/export.h index 91a3ab14..fb1f0291 100644 --- a/kppp/logview/export.h +++ b/kppp/logview/export.h @@ -25,7 +25,7 @@ #include #include -#include +#include #include #include #include diff --git a/kppp/logview/main.cpp b/kppp/logview/main.cpp index f034c462..6f87ae21 100644 --- a/kppp/logview/main.cpp +++ b/kppp/logview/main.cpp @@ -86,8 +86,8 @@ TopWidget::TopWidget() : KMainWindow(0, "") { kapp, TQT_SLOT(quit())); } - setMinimumSize(mw->sizeHint().width() + 15, - mw->sizeHint().height() + 120); + setMinimumSize(mw->tqsizeHint().width() + 15, + mw->tqsizeHint().height() + 120); setCentralWidget(w); } diff --git a/kppp/logview/monthly.cpp b/kppp/logview/monthly.cpp index 0844f85a..831976cc 100644 --- a/kppp/logview/monthly.cpp +++ b/kppp/logview/monthly.cpp @@ -38,67 +38,67 @@ static void formatBytes(double bytes, TQString &result) { if(bytes < 1024) result.setNum(bytes); else if(bytes < 1024*1024) - result = i18n("%1 KB").arg(KGlobal::locale()->formatNumber((float)bytes / 1024.0, 1)); + result = i18n("%1 KB").tqarg(KGlobal::locale()->formatNumber((float)bytes / 1024.0, 1)); else - result = i18n("%1 MB").arg(KGlobal::locale()->formatNumber((float)bytes / 1024.0 / 1024.0, 1)); + result = i18n("%1 MB").tqarg(KGlobal::locale()->formatNumber((float)bytes / 1024.0 / 1024.0, 1)); } static void formatBytesMonth(double bytes, TQString &result) { int day, days; - day = TQDate::currentDate().day(); - days = TQDate::currentDate().daysInMonth(); + day = TQDate::tqcurrentDate().day(); + days = TQDate::tqcurrentDate().daysInMonth(); bytes = (bytes / day) * days; if(bytes < 1024) result.setNum(bytes); else if(bytes < 1024*1024) - result = i18n("%1 KB").arg(KGlobal::locale()->formatNumber((float)bytes / 1024.0, 1)); + result = i18n("%1 KB").tqarg(KGlobal::locale()->formatNumber((float)bytes / 1024.0, 1)); else - result = i18n("%1 MB").arg(KGlobal::locale()->formatNumber((float)bytes / 1024.0 / 1024.0, 1)); + result = i18n("%1 MB").tqarg(KGlobal::locale()->formatNumber((float)bytes / 1024.0 / 1024.0, 1)); } static void formatDuration(int seconds, TQString &result) { TQString sec; sec.sprintf("%02d", seconds%60); if(seconds < 60) - result = i18n("%1s").arg(sec); + result = i18n("%1s").tqarg(sec); else if(seconds < 3600) - result = i18n("%1m %2s").arg(seconds/60).arg(sec); + result = i18n("%1m %2s").tqarg(seconds/60).tqarg(sec); else result = i18n("%1h %2m %3s") - .arg(seconds/3600) - .arg((seconds % 3600)/60) - .arg(sec); + .tqarg(seconds/3600) + .tqarg((seconds % 3600)/60) + .tqarg(sec); } static void formatDurationMonth(int seconds, TQString &result) { int day, days; - day = TQDate::currentDate().day(); - days = TQDate::currentDate().daysInMonth(); + day = TQDate::tqcurrentDate().day(); + days = TQDate::tqcurrentDate().daysInMonth(); seconds = (seconds / day) * days; TQString sec; sec.sprintf("%02d", seconds%60); if(seconds < 60) - result = i18n("%1s").arg(sec); + result = i18n("%1s").tqarg(sec); else if(seconds < 3600) - result = i18n("%1m %2s").arg(seconds/60).arg(sec); + result = i18n("%1m %2s").tqarg(seconds/60).tqarg(sec); else result = i18n("%1h %2m %3s") - .arg(seconds/3600) - .arg((seconds % 3600)/60) - .arg(sec); + .tqarg(seconds/3600) + .tqarg((seconds % 3600)/60) + .tqarg(sec); } static void costsMonth(double costs, double &result) { int day, days; - day = TQDate::currentDate().day(); - days = TQDate::currentDate().daysInMonth(); + day = TQDate::tqcurrentDate().day(); + days = TQDate::tqcurrentDate().daysInMonth(); result = (costs / day) * days; @@ -117,7 +117,7 @@ public: { } virtual void paintCell( TQPainter *p, const TQColorGroup & cg, - int column, int width, int alignment ); + int column, int width, int tqalignment ); virtual TQString key(int, bool) const; @@ -125,9 +125,9 @@ public: }; void LogListItem::paintCell( TQPainter *p, const TQColorGroup & cg, - int column, int width, int alignment ) + int column, int width, int tqalignment ) { - TQListViewItem::paintCell(p, cg, column, width, alignment); + TQListViewItem::paintCell(p, cg, column, width, tqalignment); // double line above sum //if(!li) { @@ -212,7 +212,7 @@ MonthlyWidget::MonthlyWidget(TQWidget *parent) : lv2->setSorting(-1); lv2->setItemMargin(2); lv2->setMaximumHeight(100); - lv2->setSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Minimum); + lv2->tqsetSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Minimum); lv2->setSelectionMode(TQListView::NoSelection); title = new TQLabel("X", this); @@ -220,7 +220,7 @@ MonthlyWidget::MonthlyWidget(TQWidget *parent) : f.setPointSize(f.pointSize() + 2); f.setBold(TRUE); title->setFont(f); - title->setFixedHeight(title->sizeHint().height()*2); + title->setFixedHeight(title->tqsizeHint().height()*2); cboConnections = new TQComboBox(false, this); // add a combo box to select connections cboConnections->setMaximumWidth(200); // a resonable size @@ -246,7 +246,7 @@ MonthlyWidget::MonthlyWidget(TQWidget *parent) : this, TQT_SLOT(exportWizard())); bbox->addStretch(8); - bbox->layout(); + bbox->tqlayout(); currentMonth(); layoutWidget(); @@ -265,8 +265,8 @@ void MonthlyWidget::layoutWidget() { f2.setPointSize(f2.pointSize() + 1); f2.setBold(TRUE); l->setFont(f2); - l->setFixedHeight(l->sizeHint().height()); - l->setAlignment( AlignLeft ); + l->setFixedHeight(l->tqsizeHint().height()); + l->tqsetAlignment( AlignLeft ); tl->addWidget(l, 5, 0); tl->addWidget(bbox, 1, 2); tl->addMultiCellWidget(lv, 1, 4, 0, 1); @@ -396,7 +396,7 @@ void MonthlyWidget::plotMonth() { const KCalendarSystem * calendar = KGlobal::locale()->calendar(); - if(calendar->month(periodeFirst()) == calendar->month(TQDate::currentDate())) { + if(calendar->month(periodeFirst()) == calendar->month(TQDate::tqcurrentDate())) { TQString m_bin, m_bout; @@ -426,13 +426,13 @@ void MonthlyWidget::plotMonth() { if(lv->childCount() > 0) { exportBttn->setEnabled(true); // export possibility t = i18n("Connection log for %1 %2") - .arg(calendar->monthName(startDate)) - .arg(calendar->year(startDate)); + .tqarg(calendar->monthName(startDate)) + .tqarg(calendar->year(startDate)); } else { exportBttn->setEnabled(false); // nothing to export t = i18n("No connection log for %1 %2 available") - .arg(calendar->monthName(startDate)) - .arg(calendar->year(startDate)); + .tqarg(calendar->monthName(startDate)) + .tqarg(calendar->year(startDate)); } title->setText(t); @@ -456,7 +456,7 @@ void MonthlyWidget::prevMonth() { void MonthlyWidget::currentMonth() { const KCalendarSystem * calendar = KGlobal::locale()->calendar(); - TQDate dt = TQDate::currentDate(); + TQDate dt = TQDate::tqcurrentDate(); calendar->setYMD(m_periodeFirst, calendar->year(dt), calendar->month(dt), 1); plotMonth(); @@ -464,9 +464,9 @@ void MonthlyWidget::currentMonth() { void MonthlyWidget::exportWizard() { const KCalendarSystem * calendar = KGlobal::locale()->calendar(); - TQString date = TQString::fromLatin1("%1-%2") // e.g.: June-2001 - .arg(calendar->monthName(periodeFirst())) - .arg(calendar->year(periodeFirst())); + TQString date = TQString::tqfromLatin1("%1-%2") // e.g.: June-2001 + .tqarg(calendar->monthName(periodeFirst())) + .tqarg(calendar->year(periodeFirst())); ExportWizard *wizard = new ExportWizard(0, date); wizard->exec(); @@ -576,7 +576,7 @@ void MonthlyWidget::exportWizard() { } } - if(calendar->month(periodeFirst()) == calendar->month(TQDate::currentDate())) { + if(calendar->month(periodeFirst()) == calendar->month(TQDate::tqcurrentDate())) { TQString m_bin, m_bout; if(bin < 0) @@ -595,10 +595,10 @@ void MonthlyWidget::exportWizard() { costsMonth(costs, costs); TQString m_costs(KGlobal::locale()->formatMoney(costs, TQString(), 2)); - TQString datetime = KGlobal::locale()->formatDateTime( TQDateTime::currentDateTime(), true); + TQString datetime = KGlobal::locale()->formatDateTime( TQDateTime::tqcurrentDateTime(), true); exportIFace->addEmptyLine(); - exportIFace->addDataline(i18n("Monthly estimates (%1)").arg(datetime), + exportIFace->addDataline(i18n("Monthly estimates (%1)").tqarg(datetime), TQString(), TQString(), TQString(), m_duration, m_costs, m_bin, m_bout); } diff --git a/kppp/logview/monthly.h b/kppp/logview/monthly.h index 71c33739..2889a5af 100644 --- a/kppp/logview/monthly.h +++ b/kppp/logview/monthly.h @@ -24,7 +24,7 @@ #include "log.h" #include -#include +#include #include #include #include diff --git a/kppp/macros.h b/kppp/macros.h index 1b5120ac..b631516a 100644 --- a/kppp/macros.h +++ b/kppp/macros.h @@ -3,13 +3,13 @@ #ifndef __MACROS__H__ #define __MACROS__H__ -#include - -#define MIN_WIDTH(w) w->setMinimumWidth(w->sizeHint().width()); -#define MIN_HEIGHT(w) w->setMinimumHeight(w->sizeHint().height()); -#define MIN_SIZE(w) w->setMinimumSize(w->sizeHint()); -#define FIXED_SIZE(w) w->setFixedSize(w->sizeHint()); -#define FIXED_WIDTH(w) w->setFixedWidth(w->sizeHint().width()); -#define FIXED_HEIGHT(w) w->setFixedHeight(w->sizeHint().height()); +#include + +#define MIN_WIDTH(w) w->setMinimumWidth(w->tqsizeHint().width()); +#define MIN_HEIGHT(w) w->setMinimumHeight(w->tqsizeHint().height()); +#define MIN_SIZE(w) w->setMinimumSize(w->tqsizeHint()); +#define FIXED_SIZE(w) w->setFixedSize(w->tqsizeHint()); +#define FIXED_WIDTH(w) w->setFixedWidth(w->tqsizeHint().width()); +#define FIXED_HEIGHT(w) w->setFixedHeight(w->tqsizeHint().height()); #endif diff --git a/kppp/main.cpp b/kppp/main.cpp index 753291ba..b6bb6c57 100644 --- a/kppp/main.cpp +++ b/kppp/main.cpp @@ -241,7 +241,7 @@ int main( int argc, char **argv ) { KGlobal::dirs()->saveLocation("appdata", "Rules"); int pid = create_pidfile(); - TQString err_msg = i18n("kppp can't create or read from\n%1.").arg(pidfile); + TQString err_msg = i18n("kppp can't create or read from\n%1.").tqarg(pidfile); if(pid < 0) { KMessageBox::error(0L, err_msg); @@ -281,7 +281,7 @@ int main( int argc, char **argv ) { "Alternatively, if you have determined that " "there is no other kppp running, please " "click Continue to begin.") - .arg(pidfile).arg(pid); + .tqarg(pidfile).tqarg(pid); int button = KMessageBox::warningYesNo(0, msg, i18n("Error"), i18n("Exit"), KStdGuiItem::cont()); if (button == KMessageBox::Yes) /* exit */ diff --git a/kppp/miniterm.cpp b/kppp/miniterm.cpp index f2eff97f..db73149f 100644 --- a/kppp/miniterm.cpp +++ b/kppp/miniterm.cpp @@ -39,7 +39,7 @@ #include #include -#include +#include #include #include #include @@ -79,11 +79,11 @@ MiniTerm::MiniTerm(TQWidget *parent, const char *name) setupToolbar(); - TQVBoxLayout *layout=new TQVBoxLayout(this); - layout->addWidget(menubar); - layout->addWidget(toolbar); - layout->addWidget(terminal); - layout->addWidget(statusbar); + TQVBoxLayout *tqlayout=new TQVBoxLayout(this); + tqlayout->addWidget(menubar); + tqlayout->addWidget(toolbar); + tqlayout->addWidget(terminal); + tqlayout->addWidget(statusbar); inittimer = new TQTimer(this); connect(inittimer,TQT_SIGNAL(timeout()),this,TQT_SLOT(init())); diff --git a/kppp/modemcmds.cpp b/kppp/modemcmds.cpp index f867bf78..2416e4c5 100644 --- a/kppp/modemcmds.cpp +++ b/kppp/modemcmds.cpp @@ -24,7 +24,7 @@ * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include +#include #include #include #include @@ -40,10 +40,10 @@ #include -#define ADJUSTEDIT(e) e->setText("XXXXXXXXqy"); e->setMinimumSize(e->sizeHint()); e->setFixedHeight(e->sizeHint().height()); e->setText(""); e->setMaxLength(MODEMSTR_SIZE); +#define ADJUSTEDIT(e) e->setText("XXXXXXXXqy"); e->setMinimumSize(e->tqsizeHint()); e->setFixedHeight(e->tqsizeHint().height()); e->setText(""); e->setMaxLength(MODEMSTR_SIZE); // a little trick to make the label look like a disabled lineedit -#define FORMATSLIDERLABEL(l) l->setFixedWidth(l->sizeHint().width()); l->setFixedHeight(TQLineEdit(dummyWidget).sizeHint().height()); l->setAlignment(AlignCenter); l->setFrameStyle(TQFrame::WinPanel|TQFrame::Sunken); l->setLineWidth(2); +#define FORMATSLIDERLABEL(l) l->setFixedWidth(l->tqsizeHint().width()); l->setFixedHeight(TQLineEdit(dummyWidget).tqsizeHint().height()); l->tqsetAlignment(AlignCenter); l->setFrameStyle(TQFrame::WinPanel|TQFrame::Sunken); l->setLineWidth(2); ModemCommands::ModemCommands(TQWidget *parent, const char *name) : KDialogBase(parent, name, true, i18n("Edit Modem Commands"), Ok|Cancel) @@ -55,7 +55,7 @@ ModemCommands::ModemCommands(TQWidget *parent, const char *name) const int GRIDROWS = 22; int row = 0; - // toplevel layout + // toplevel tqlayout TQVBoxLayout *tl = new TQVBoxLayout(dummyWidget, 10, 4); // add grid + frame @@ -72,7 +72,7 @@ ModemCommands::ModemCommands(TQWidget *parent, const char *name) preinitslider = new TQSlider(0, 300, 1, 0, Qt::Horizontal, dummyWidget); - preinitslider->setFixedHeight(preinitslider->sizeHint().height()); + preinitslider->setFixedHeight(preinitslider->tqsizeHint().height()); connect(preinitslider, TQT_SIGNAL(valueChanged(int)), lpreinitslider, TQT_SLOT(setNum(int))); l2->addWidget(lpreinitslider, 0); @@ -83,7 +83,7 @@ ModemCommands::ModemCommands(TQWidget *parent, const char *name) for(int i = 0; i < PPPData::NumInitStrings; i++) { initstr[i] = new TQLineEdit(dummyWidget); - TQLabel *initLabel = new TQLabel(i18n("Initialization string %1:").arg(i + 1), + TQLabel *initLabel = new TQLabel(i18n("Initialization string %1:").tqarg(i + 1), dummyWidget); ADJUSTEDIT(initstr[i]); l1->addWidget(initLabel, row, 1); @@ -96,7 +96,7 @@ ModemCommands::ModemCommands(TQWidget *parent, const char *name) FORMATSLIDERLABEL(linitslider); initslider = new TQSlider(1, 300, 1, 0, Qt::Horizontal, dummyWidget); - initslider->setFixedHeight(initslider->sizeHint().height()); + initslider->setFixedHeight(initslider->tqsizeHint().height()); connect(initslider, TQT_SIGNAL(valueChanged(int)), linitslider, TQT_SLOT(setNum(int))); l3->addWidget(linitslider, 0); @@ -112,7 +112,7 @@ ModemCommands::ModemCommands(TQWidget *parent, const char *name) FORMATSLIDERLABEL(ldurationslider); durationslider = new TQSlider(1, 255, 1, 0, Qt::Horizontal, dummyWidget); - durationslider->setFixedHeight(durationslider->sizeHint().height()); + durationslider->setFixedHeight(durationslider->tqsizeHint().height()); connect(durationslider, TQT_SIGNAL(valueChanged(int)), ldurationslider, TQT_SLOT(setNum(int))); l4->addWidget(ldurationslider, 0); @@ -228,7 +228,7 @@ ModemCommands::ModemCommands(TQWidget *parent, const char *name) slider = new TQSlider(0, 255, 1, 0, Qt::Horizontal, dummyWidget); - slider->setFixedHeight(slider->sizeHint().height()); + slider->setFixedHeight(slider->tqsizeHint().height()); connect(slider, TQT_SIGNAL(valueChanged(int)), lslider, TQT_SLOT(setNum(int))); l5->addWidget(lslider, 0); @@ -242,14 +242,14 @@ ModemCommands::ModemCommands(TQWidget *parent, const char *name) TQHBoxLayout *l6 = new TQHBoxLayout; l1->addLayout(l6, row++, 2); volume_off = new TQLineEdit(dummyWidget); - volume_off->setFixedHeight(volume_off->sizeHint().height()); - volume_off->setMinimumWidth((int)(volume_off->sizeHint().width() / 2)); + volume_off->setFixedHeight(volume_off->tqsizeHint().height()); + volume_off->setMinimumWidth((int)(volume_off->tqsizeHint().width() / 2)); volume_medium = new TQLineEdit(dummyWidget); - volume_medium->setFixedHeight(volume_medium->sizeHint().height()); - volume_medium->setMinimumWidth((int)(volume_medium->sizeHint().width() / 2)); + volume_medium->setFixedHeight(volume_medium->tqsizeHint().height()); + volume_medium->setMinimumWidth((int)(volume_medium->tqsizeHint().width() / 2)); volume_high = new TQLineEdit(dummyWidget); - volume_high->setFixedHeight(volume_high->sizeHint().height()); - volume_high->setMinimumWidth((int)(volume_high->sizeHint().width() / 2)); + volume_high->setFixedHeight(volume_high->tqsizeHint().height()); + volume_high->setMinimumWidth((int)(volume_high->tqsizeHint().width() / 2)); l6->addWidget(volume_off); l6->addWidget(volume_medium); l6->addWidget(volume_high); diff --git a/kppp/modemdb.cpp b/kppp/modemdb.cpp index 2729ede3..35eff389 100644 --- a/kppp/modemdb.cpp +++ b/kppp/modemdb.cpp @@ -34,7 +34,7 @@ #include #include -#include +#include #include "modemdb.h" #include #include @@ -51,7 +51,7 @@ ModemSelector::ModemSelector(TQWidget *parent) : TQDialog(parent, 0, true) { "right list. If you don't know which modem you have, " "you can try out one of the \"Generic\" modems."), this); - l1->setAlignment(AlignLeft | WordBreak); + l1->tqsetAlignment(AlignLeft | WordBreak); l1->setFixedWidth(400); l1->setMinimumHeight(50); tl->addWidget(l1, 0); @@ -73,9 +73,9 @@ ModemSelector::ModemSelector(TQWidget *parent) : TQDialog(parent, 0, true) { ok->setDefault(true); ok->setEnabled(false); cancel = bbox->addButton(KStdGuiItem::cancel()); - bbox->layout(); + bbox->tqlayout(); tl->addWidget(bbox); - setFixedSize(sizeHint()); + setFixedSize(tqsizeHint()); // set up modem database db = new ModemDatabase(); diff --git a/kppp/modeminfo.cpp b/kppp/modeminfo.cpp index 89fbff72..d242c4f4 100644 --- a/kppp/modeminfo.cpp +++ b/kppp/modeminfo.cpp @@ -26,7 +26,7 @@ #include #include -#include +#include #include #include #include @@ -48,7 +48,7 @@ ModemTransfer::ModemTransfer(TQWidget *parent, const char *name) statusBar = new TQLabel(this,"sBar"); statusBar->setFrameStyle(TQFrame::Panel|TQFrame::Sunken); - statusBar->setAlignment(AlignCenter); + statusBar->tqsetAlignment(AlignCenter); // This is a rather complicated case. Since we do not know which // message is the widest in the national language, we'd to @@ -56,12 +56,12 @@ ModemTransfer::ModemTransfer(TQWidget *parent, const char *name) // the longest english message, translate it and give it additional // 20 percent space. Hope this is enough. statusBar->setText(i18n("Unable to create modem lock file.")); - statusBar->setFixedWidth((statusBar->sizeHint().width() * 12) / 10); - statusBar->setFixedHeight(statusBar->sizeHint().height() + 4); + statusBar->setFixedWidth((statusBar->tqsizeHint().width() * 12) / 10); + statusBar->setFixedHeight(statusBar->tqsizeHint().height() + 4); // set original text statusBar->setText(i18n("Looking for modem...")); - progressBar->setFixedHeight(statusBar->minimumSize().height()); + progressBar->setFixedHeight(statusBar->tqminimumSize().height()); tl->addWidget(progressBar); tl->addWidget(statusBar); @@ -74,7 +74,7 @@ ModemTransfer::ModemTransfer(TQWidget *parent, const char *name) l1->addStretch(1); l1->addWidget(cancel); - setFixedSize(sizeHint()); + setFixedSize(tqsizeHint()); step = 0; @@ -280,7 +280,7 @@ ModemInfo::ModemInfo(TQWidget *parent, const char* name) connect(ok, TQT_SIGNAL(clicked()), TQT_SLOT(accept())); l2->addWidget(ok); - setMinimumSize(sizeHint()); + setMinimumSize(tqsizeHint()); } diff --git a/kppp/modems.cpp b/kppp/modems.cpp index ea4a461e..55f8f629 100644 --- a/kppp/modems.cpp +++ b/kppp/modems.cpp @@ -27,7 +27,7 @@ #include #include -#include +#include #include #include #include @@ -74,7 +74,7 @@ ModemsWidget::ModemsWidget( TQWidget *parent, const char *name ) connect(edit_b, TQT_SIGNAL(clicked()), TQT_SLOT(editmodem())); TQWhatsThis::add(edit_b, i18n("Allows you to modify the selected account")); - min = edit_b->sizeHint().width(); + min = edit_b->tqsizeHint().width(); min = TQMAX(70,min); edit_b->setMinimumWidth(min); @@ -190,7 +190,7 @@ void ModemsWidget::copymodem() { void ModemsWidget::deletemodem() { TQString s = i18n("Are you sure you want to delete\nthe modem \"%1\"?") - .arg(modemlist_l->text(modemlist_l->currentItem())); + .tqarg(modemlist_l->text(modemlist_l->currentItem())); if(KMessageBox::warningContinueCancel(this, s, i18n("Confirm"), KStdGuiItem::del()) != KMessageBox::Continue) return; diff --git a/kppp/newwidget.cpp b/kppp/newwidget.cpp index ba8508e5..49676ddd 100644 --- a/kppp/newwidget.cpp +++ b/kppp/newwidget.cpp @@ -1,6 +1,6 @@ ///////////////////////////////////////////////////////////////////////////// // -// functions generating layout-aware widgets +// functions generating tqlayout-aware widgets // ///////////////////////////////////////////////////////////////////////////// @@ -9,7 +9,7 @@ TQLineEdit *newLineEdit(int visiblewidth, TQWidget *parent) { TQLineEdit *l = new TQLineEdit(parent); if(visiblewidth == 0) - l->setMinimumWidth(l->sizeHint().width()); + l->setMinimumWidth(l->tqsizeHint().width()); else l->setFixedWidth(l->fontMetrics().width('H') * visiblewidth); diff --git a/kppp/newwidget.h b/kppp/newwidget.h index 2cb2e717..07129c74 100644 --- a/kppp/newwidget.h +++ b/kppp/newwidget.h @@ -1,6 +1,6 @@ ///////////////////////////////////////////////////////////////////////////// // -// functions generating layout-aware widgets +// functions generating tqlayout-aware widgets // ///////////////////////////////////////////////////////////////////////////// diff --git a/kppp/opener.cpp b/kppp/opener.cpp index 5d90cc0e..0d46edd9 100644 --- a/kppp/opener.cpp +++ b/kppp/opener.cpp @@ -128,7 +128,7 @@ extern "C" { static void sighandler_child(int); static pid_t pppdPid = -1; -static int pppdExitStatus = -1; +static int pppdExittqStatus = -1; static int checkForInterface(); // processing will stop at first file that could be opened successfully @@ -316,10 +316,10 @@ void Opener::mainLoop() { sendResponse(&response); break; - case PPPDExitStatus: + case PPPDExittqStatus: Debug("Opener: received PPPDExitStatus"); MY_ASSERT(len == sizeof(struct PPPDExitStatusRequest)); - response.status = pppdExitStatus; + response.status = pppdExittqStatus; sendResponse(&response); break; @@ -519,7 +519,7 @@ bool Opener::execpppd(const char *arguments) { if(ttyfd<0) return false; - pppdExitStatus = -1; + pppdExittqStatus = -1; switch(pppdPid = fork()) { @@ -711,10 +711,10 @@ void sighandler_child(int) { Debug("It was pppd that died"); pppdPid = -1; if((WIFEXITED(status))) { - pppdExitStatus = (WEXITSTATUS(status)); - Debug2("pppd exited with return value %d\n", pppdExitStatus); + pppdExittqStatus = (WEXITSTATUS(status)); + Debug2("pppd exited with return value %d\n", pppdExittqStatus); } else { - pppdExitStatus = 99; + pppdExittqStatus = 99; Debug("pppd exited abnormally."); } Debug2("Sending %i a SIGUSR1\n", getppid()); diff --git a/kppp/opener.h b/kppp/opener.h index 812ec9ba..99568f5d 100644 --- a/kppp/opener.h +++ b/kppp/opener.h @@ -34,7 +34,7 @@ public: SetSecret, RemoveSecret, SetHostname, ExecPPPDaemon, KillPPPDaemon, - PPPDExitStatus, + PPPDExittqStatus, Stop }; enum Auth { PAP = 1, CHAP }; enum { MaxPathLen = 30, MaxStrLen = 40, MaxArgs = 100 }; diff --git a/kppp/pppdargs.cpp b/kppp/pppdargs.cpp index 1b696811..56814f34 100644 --- a/kppp/pppdargs.cpp +++ b/kppp/pppdargs.cpp @@ -25,7 +25,7 @@ * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include +#include #include #include #include @@ -95,10 +95,10 @@ PPPdArguments::PPPdArguments(TQWidget *parent, const char *name) TQPushButton *cancel = bbox->addButton(KStdGuiItem::cancel()); connect(cancel, TQT_SIGNAL(clicked()), this, TQT_SLOT(reject())); - bbox->layout(); + bbox->tqlayout(); l->addWidget(bbox); - setFixedSize(sizeHint()); + setFixedSize(tqsizeHint()); //load info from gpppdata init(); diff --git a/kppp/pppdata.cpp b/kppp/pppdata.cpp index a983a8b4..ceb8298b 100644 --- a/kppp/pppdata.cpp +++ b/kppp/pppdata.cpp @@ -350,7 +350,7 @@ void PPPData::set_dock_into_panel(bool set) { TQString PPPData::pppdVersion() { - return TQString("%1.%2.%3").arg(pppdVer).arg(pppdMod).arg(pppdPatch); + return TQString("%1.%2.%3").tqarg(pppdVer).tqarg(pppdMod).tqarg(pppdPatch); } bool PPPData::pppdVersionMin(int ver, int mod, int patch) { @@ -498,7 +498,7 @@ int PPPData::copymodem(int i) { TQMap map = config->entryMap(cmodemgroup); TQMap ::ConstIterator it = map.begin(); - TQString newname = i18n("%1_copy").arg(modname()); + TQString newname = i18n("%1_copy").tqarg(modname()); newmodem(); @@ -1026,7 +1026,7 @@ int PPPData::copyaccount(int i) { TQMap map = config->entryMap(caccountgroup); TQMap ::ConstIterator it = map.begin(); - TQString newname = i18n("%1_copy").arg(accname()); + TQString newname = i18n("%1_copy").tqarg(accname()); newaccount(); diff --git a/kppp/ppplog.cpp b/kppp/ppplog.cpp index d634b366..a5075b3e 100644 --- a/kppp/ppplog.cpp +++ b/kppp/ppplog.cpp @@ -40,7 +40,7 @@ #include #include #include -#include +#include #include #include @@ -171,7 +171,7 @@ void PPPL_AnalyseLog(TQStringList &list, TQStringList &result) { if(!str.isEmpty()) { msg = i18n("Notice that the remote system has sent the following" " message:\n\"%1\"\nThis may give you a hint why the" - " the connection has failed.").arg(str); + " the connection has failed.").tqarg(str); result.append(msg); } } @@ -202,8 +202,8 @@ void PPPL_ShowLog() { bool foundConnect = false; bool foundLCP = gpppdata.getPPPDebug(); - TQString lcp = TQString::fromLatin1("[LCP"); - TQString conn = TQString::fromLatin1("Connect:"); + TQString lcp = TQString::tqfromLatin1("[LCP"); + TQString conn = TQString::tqfromLatin1("Connect:"); TQStringList::ConstIterator it = sl.begin(); for( ; it != sl.end(); it++) { if((*it).find(lcp) >= 0) { @@ -249,7 +249,7 @@ void PPPL_ShowLog() { bbox->addStretch(1); TQPushButton *write = bbox->addButton(i18n("Write to File")); TQPushButton *close = bbox->addButton(KStdGuiItem::close()); - bbox->layout(); + bbox->tqlayout(); edit->setMinimumSize(600, 250); label->setMinimumSize(600, 15); diagnosis->setMinimumSize(600, 60); @@ -258,7 +258,7 @@ void PPPL_ShowLog() { tl->addWidget(label); tl->addWidget(diagnosis, 1); tl->addWidget(bbox); - dlg->setFixedSize(dlg->sizeHint()); + dlg->setFixedSize(dlg->tqsizeHint()); for(uint i = 0; i < sl.count(); i++) edit->append(*sl.at(i)); @@ -281,7 +281,7 @@ void PPPL_ShowLog() { fclose(f); umask(old_umask); - TQString msg = i18n("The PPP log has been saved\nas \"%1\"!\n\nIf you want to send a bug report, or have\nproblems connecting to the Internet, please\nattach this file. It will help the maintainers\nto find the bug and to improve KPPP").arg(s); + TQString msg = i18n("The PPP log has been saved\nas \"%1\"!\n\nIf you want to send a bug report, or have\nproblems connecting to the Internet, please\nattach this file. It will help the maintainers\nto find the bug and to improve KPPP").tqarg(s); KMessageBox::information(0, msg); } delete dlg; diff --git a/kppp/pppstatdlg.cpp b/kppp/pppstatdlg.cpp index b85fe2ce..b5b12f42 100644 --- a/kppp/pppstatdlg.cpp +++ b/kppp/pppstatdlg.cpp @@ -23,7 +23,7 @@ */ -#include +#include #include #include #include @@ -80,7 +80,7 @@ PPPStatsDlg::PPPStatsDlg(TQWidget *parent, const char *name, TQWidget *, pixmap_l = new TQLabel(this); pixmap_l->setMinimumSize(big_modem_both_pixmap.size()); l111->addWidget(pixmap_l, 1); - pixmap_l->setAlignment(AlignVCenter|AlignLeft); + pixmap_l->tqsetAlignment(AlignVCenter|AlignLeft); TQGridLayout *l1112 = new TQGridLayout(3, 2); l111->addLayout(l1112); @@ -137,14 +137,14 @@ PPPStatsDlg::PPPStatsDlg(TQWidget *parent, const char *name, TQWidget *, for(i = 0; i < 5; i++) { labela2[i]->setText("888888888"); // TODO: resize automatically labelb2[i]->setText("888888888"); - labela2[i]->setAlignment(TQt::AlignRight); - labelb2[i]->setAlignment(TQt::AlignRight); - labela2[i]->setFixedSize(labela2[i]->sizeHint()); - labelb2[i]->setFixedSize(labelb2[i]->sizeHint()); + labela2[i]->tqsetAlignment(TQt::AlignRight); + labelb2[i]->tqsetAlignment(TQt::AlignRight); + labela2[i]->setFixedSize(labela2[i]->tqsizeHint()); + labelb2[i]->setFixedSize(labelb2[i]->tqsizeHint()); labela2[i]->setText(""); labelb2[i]->setText(""); - // add to layout + // add to tqlayout l112->addWidget(labela1[i], i, 0); l112->addWidget(labela2[i], i, 1); l112->addWidget(labelb1[i], i, 2); @@ -175,8 +175,8 @@ PPPStatsDlg::PPPStatsDlg(TQWidget *parent, const char *name, TQWidget *, cancelbutton = new KPushButton(KStdGuiItem::close(),this, "cancelbutton"); cancelbutton->setFocus(); connect(cancelbutton, TQT_SIGNAL(clicked()), this,TQT_SLOT(cancel())); - cancelbutton->setFixedHeight(cancelbutton->sizeHint().height()); - cancelbutton->setMinimumWidth(TQMAX(cancelbutton->sizeHint().width(), 70)); + cancelbutton->setFixedHeight(cancelbutton->tqsizeHint().height()); + cancelbutton->setMinimumWidth(TQMAX(cancelbutton->tqsizeHint().width(), 70)); l12->addWidget(cancelbutton); if(gpppdata.graphingEnabled()) { @@ -184,7 +184,7 @@ PPPStatsDlg::PPPStatsDlg(TQWidget *parent, const char *name, TQWidget *, connect(graphTimer, TQT_SIGNAL(timeout()), TQT_SLOT(updateGraph())); } - setFixedSize(sizeHint()); + setFixedSize(tqsizeHint()); connect(stats, TQT_SIGNAL(statsChanged(int)), TQT_SLOT(paintIcon(int))); @@ -290,8 +290,8 @@ void PPPStatsDlg::paintGraph() { TQRect r; TQString s = i18n("%1 (max. %2) kb/sec") - .arg(KGlobal::locale()->formatNumber((float)last_max / 1024.0, 1)) - .arg(KGlobal::locale()->formatNumber((float)max / 1024.0, 1)); + .tqarg(KGlobal::locale()->formatNumber((float)last_max / 1024.0, 1)) + .tqarg(KGlobal::locale()->formatNumber((float)max / 1024.0, 1)); p.drawText(0, 0, pm.width(), 2*8, AlignRight|AlignVCenter, s, -1, &r); p.drawLine(0, 8, r.left() - 8, 8); diff --git a/kppp/pppstats.cpp b/kppp/pppstats.cpp index 29a87e77..fb4d6428 100644 --- a/kppp/pppstats.cpp +++ b/kppp/pppstats.cpp @@ -127,25 +127,25 @@ void PPPStats::clear() compressed = 0; packetsunc = 0; packetsoutunc = 0; - ioStatus = BytesNone; + iotqStatus = BytesNone; } void PPPStats::timerClick() { - enum IOStatus newStatus; + enum IOtqStatus newtqStatus; doStats(); if((ibytes != ibytes_last) && (obytes != obytes_last)) - newStatus = BytesBoth; + newtqStatus = BytesBoth; else if(ibytes != ibytes_last) - newStatus = BytesIn; + newtqStatus = BytesIn; else if(obytes != obytes_last) - newStatus = BytesOut; + newtqStatus = BytesOut; else - newStatus = BytesNone; + newtqStatus = BytesNone; - if(newStatus != ioStatus) - emit statsChanged(ioStatus = newStatus); + if(newtqStatus != iotqStatus) + emit statsChanged(iotqStatus = newtqStatus); ibytes_last = ibytes; obytes_last = obytes; diff --git a/kppp/pppstats.h b/kppp/pppstats.h index 4fdf17bd..91e4e9e0 100644 --- a/kppp/pppstats.h +++ b/kppp/pppstats.h @@ -65,7 +65,7 @@ public: TQString local_ip_address; TQString remote_ip_address; - enum IOStatus { BytesNone = 0, BytesIn, BytesOut, BytesBoth }; + enum IOtqStatus { BytesNone = 0, BytesIn, BytesOut, BytesBoth }; private: bool get_ppp_stats(struct ppp_stats *curp); @@ -78,7 +78,7 @@ private: #endif int unit; char unitName[5]; - enum IOStatus ioStatus; + enum IOtqStatus iotqStatus; TQTimer *timer; }; diff --git a/kppp/providerdb.cpp b/kppp/providerdb.cpp index 2012ba18..97d13612 100644 --- a/kppp/providerdb.cpp +++ b/kppp/providerdb.cpp @@ -31,7 +31,7 @@ #include #include -#include +#include #include #include #include @@ -88,7 +88,7 @@ ProviderDB::ProviderDB(TQWidget *parent) : connect((const TQObject *)backButton(), TQT_SIGNAL(clicked()), this, TQT_SLOT(pageSelected())); - // resize(minimumSize()); + // resize(tqminimumSize()); adjustSize(); } @@ -461,7 +461,7 @@ void urlEncode(TQString &s) { if(TQString(UNENCODED_CHARS).find(s[i]) >= 0) s1 += s[i]; else { - tmp.sprintf("%%%03i", s[i].unicode()); + tmp.sprintf("%%%03i", s[i].tqunicode()); s1 += tmp; } } diff --git a/kppp/pwentry.cpp b/kppp/pwentry.cpp index 270b4b72..c3025762 100644 --- a/kppp/pwentry.cpp +++ b/kppp/pwentry.cpp @@ -36,7 +36,7 @@ PWEntry::PWEntry( TQWidget *parent, const char *name ) if(parent){ TQPoint point = mapToGlobal (TQPoint (0,0)); - TQRect pos = geometry(); + TQRect pos = tqgeometry(); setGeometry(point.x() + pos.width()/2 - 300/2, point.y() + pos.height()/2 - 90/2, diff --git a/kppp/requester.cpp b/kppp/requester.cpp index b5450929..dcb28fcb 100644 --- a/kppp/requester.cpp +++ b/kppp/requester.cpp @@ -70,7 +70,7 @@ Requester *Requester::rq = 0L; Requester::Requester(int s) : socket(s) { assert(rq==0L); rq = this; - lastStatus = -1; + lasttqStatus = -1; } Requester::~Requester() { @@ -167,7 +167,7 @@ bool Requester::recvResponse() { kdDebug(5002) << "response.status: " << response.status << endl; } - lastStatus = response.status; + lasttqStatus = response.status; return (response.status == 0); } @@ -306,10 +306,10 @@ bool Requester::killPPPDaemon() { return recvResponse(); } -int Requester::pppdExitStatus() +int Requester::pppdExittqStatus() { struct PPPDExitStatusRequest req; - req.header.type = Opener::PPPDExitStatus; + req.header.type = Opener::PPPDExittqStatus; sendRequest((struct RequestHeader *) &req, sizeof(req)); return recvResponse(); } diff --git a/kppp/requester.h b/kppp/requester.h index ea415df0..46626df5 100644 --- a/kppp/requester.h +++ b/kppp/requester.h @@ -17,12 +17,12 @@ public: bool setHostname(const TQString & name); bool execPPPDaemon(const TQString & arguments); bool killPPPDaemon(); - int pppdExitStatus(); + int pppdExittqStatus(); bool stop(); public: static Requester *rq; - int lastStatus; + int lasttqStatus; private: bool sendRequest(struct RequestHeader *request, int len); diff --git a/kppp/ruleset.cpp b/kppp/ruleset.cpp index 723d5f2b..ef9d9517 100644 --- a/kppp/ruleset.cpp +++ b/kppp/ruleset.cpp @@ -362,7 +362,7 @@ bool RuleSet::parseLine(const TQString &s) { // parse the days token = s.mid(s.find("on(") + 3, s.find(")betw")-s.find("on(") - 3); - if(!parseEntries(token, TQDate::currentDate().year(), + if(!parseEntries(token, TQDate::tqcurrentDate().year(), t1, t2, costs, len, after)) return FALSE; diff --git a/kppp/runtests.cpp b/kppp/runtests.cpp index a520d116..23f2196d 100644 --- a/kppp/runtests.cpp +++ b/kppp/runtests.cpp @@ -253,7 +253,7 @@ int runTests() { i18n("You don't have sufficient permission to run\n" "%1\n" "Please make sure that kppp is owned by root " - "and has the SUID bit set.").arg(f)); + "and has the SUID bit set.").tqarg(f)); warning++; } } @@ -265,7 +265,7 @@ int runTests() { TQString msgstr = i18n("%1 is missing or can't be read!\n" "Ask your system administrator to create " "this file (can be empty) with appropriate " - "read and write permissions.").arg(file); + "read and write permissions.").tqarg(file); KMessageBox::error(0, msgstr); warning ++; } diff --git a/kppp/scriptedit.cpp b/kppp/scriptedit.cpp index 21ed43fc..afa88821 100644 --- a/kppp/scriptedit.cpp +++ b/kppp/scriptedit.cpp @@ -26,7 +26,7 @@ */ #include "scriptedit.h" -#include +#include #include #include diff --git a/krdc/events.h b/krdc/events.h index 5100a23c..d9856449 100644 --- a/krdc/events.h +++ b/krdc/events.h @@ -33,10 +33,10 @@ * REMOTE_VIEW_DISCONNECTING * @li You can move from REMOTE_VIEW_DISCONNECTED to REMOTE_VIEW_CONNECTING * - * @ref KRemoteView::setStatus() will follow this rules for you. + * @ref KRemoteView::settqStatus() will follow this rules for you. * (If you add/remove a state here, you must adapt it) */ -enum RemoteViewStatus { +enum RemoteViewtqStatus { REMOTE_VIEW_CONNECTING = 0, REMOTE_VIEW_AUTHENTICATING = 1, REMOTE_VIEW_PREPARING = 2, @@ -78,13 +78,13 @@ const int StatusChangeEventType = 41002; class StatusChangeEvent : public TQCustomEvent { private: - RemoteViewStatus m_status; + RemoteViewtqStatus m_status; public: - StatusChangeEvent(RemoteViewStatus s) : + StatusChangeEvent(RemoteViewtqStatus s) : TQCustomEvent(StatusChangeEventType), m_status(s) {}; - RemoteViewStatus status() const { return m_status; }; + RemoteViewtqStatus status() const { return m_status; }; }; const int PasswordRequiredEventType = 41003; diff --git a/krdc/hostpreferences.cpp b/krdc/hostpreferences.cpp index 1c8ec573..1307bd5f 100644 --- a/krdc/hostpreferences.cpp +++ b/krdc/hostpreferences.cpp @@ -61,7 +61,7 @@ TQString HostPref::prefix() const { } TQString HostPref::prefix(const TQString &host, const TQString &type) { - return TQString("PerHost-%1-%2-").arg(type).arg(host); + return TQString("PerHost-%1-%2-").tqarg(type).tqarg(host); } diff --git a/krdc/hostprofiles.ui b/krdc/hostprofiles.ui index 25f52e48..c67ab2ca 100644 --- a/krdc/hostprofiles.ui +++ b/krdc/hostprofiles.ui @@ -82,7 +82,7 @@ Expanding - + 117 21 diff --git a/krdc/keycapturedialog.cpp b/krdc/keycapturedialog.cpp index fa4378b8..087f7bd7 100644 --- a/krdc/keycapturedialog.cpp +++ b/krdc/keycapturedialog.cpp @@ -25,7 +25,7 @@ #include "keycapturewidget.h" #include -#include +#include #include @@ -50,10 +50,10 @@ KeyCaptureDialog::KeyCaptureDialog(TQWidget *parent, const char *name) : KDialogBase(parent, name, true, i18n( "Enter Key Combination" ), Cancel, Cancel, true), m_grabbed(false) { TQFrame *main = makeMainWidget(); - TQVBoxLayout *layout = new TQVBoxLayout( main, 0, KDialog::spacingHint() ); + TQVBoxLayout *tqlayout = new TQVBoxLayout( main, 0, KDialog::spacingHint() ); m_captureWidget = new KeyCaptureWidget( main, "m_captureWidget" ); - layout->addWidget( m_captureWidget ); - layout->addStretch(); + tqlayout->addWidget( m_captureWidget ); + tqlayout->addStretch(); } KeyCaptureDialog::~KeyCaptureDialog() { diff --git a/krdc/keycapturewidget.ui b/krdc/keycapturewidget.ui index 43af98f4..e90411b1 100644 --- a/krdc/keycapturewidget.ui +++ b/krdc/keycapturewidget.ui @@ -26,7 +26,7 @@ Enter a special key or key combination to send to the remote side: - + WordBreak|AlignVCenter @@ -40,7 +40,7 @@ Expanding - + 112 21 @@ -51,7 +51,7 @@ keyLabel - + 100 0 @@ -77,7 +77,7 @@ Expanding - + 111 21 @@ -91,7 +91,7 @@ This function allows you to send a key combination like Ctrl+Alt+Del to the remote side. Press Esc to cancel. - + WordBreak|AlignVCenter diff --git a/krdc/kfullscreenpanel.cpp b/krdc/kfullscreenpanel.cpp index 0c85cfdd..81cd49e7 100644 --- a/krdc/kfullscreenpanel.cpp +++ b/krdc/kfullscreenpanel.cpp @@ -88,7 +88,7 @@ void KFullscreenPanel::setChild(TQWidget *child) { } void KFullscreenPanel::doLayout() { - TQSize s = sizeHint(); + TQSize s = tqsizeHint(); setFixedSize(s); setGeometry((m_fsResolution.width() - s.width())/2, 0, s.width(), s.height()); diff --git a/krdc/kfullscreenpanel.h b/krdc/kfullscreenpanel.h index 27b43cae..d6e28927 100644 --- a/krdc/kfullscreenpanel.h +++ b/krdc/kfullscreenpanel.h @@ -19,7 +19,7 @@ #define KFULLSCREENPANEL_H #include -#include +#include #include #include diff --git a/krdc/krdc.cpp b/krdc/krdc.cpp index 68c2d333..41d96a70 100644 --- a/krdc/krdc.cpp +++ b/krdc/krdc.cpp @@ -161,11 +161,11 @@ bool KRDC::start() } } - setCaption(i18n("%1 - Remote Desktop Connection").arg(serverHost)); + setCaption(i18n("%1 - Remote Desktop Connection").tqarg(serverHost)); m_scrollView = new TQScrollView2(this, "remote scrollview"); m_scrollView->setFrameStyle(TQFrame::NoFrame); - m_scrollView->setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, + m_scrollView->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding)); switch(m_protocol) @@ -198,8 +198,8 @@ bool KRDC::start() // note that the disconnectedError() will be disconnected when kremoteview // is completely initialized connect(m_view, TQT_SIGNAL(disconnectedError()), TQT_SIGNAL(disconnectedError())); - connect(m_view, TQT_SIGNAL(statusChanged(RemoteViewStatus)), - TQT_SLOT(changeProgress(RemoteViewStatus))); + connect(m_view, TQT_SIGNAL(statusChanged(RemoteViewtqStatus)), + TQT_SLOT(changeProgress(RemoteViewtqStatus))); connect(m_view, TQT_SIGNAL(showingPasswordDialog(bool)), TQT_SLOT(showingPasswordDialog(bool))); connect(m_keyCaptureDialog, TQT_SIGNAL(keyPressed(XEvent*)), @@ -210,7 +210,7 @@ bool KRDC::start() return ret_status; } -void KRDC::changeProgress(RemoteViewStatus s) { +void KRDC::changeProgress(RemoteViewtqStatus s) { if (!m_progressDialog) { m_progressDialog = new KProgressDialog(0, 0, TQString(), "1234567890", false); @@ -340,15 +340,15 @@ bool KRDC::parseHost(TQString &str, Protocol &prot, TQString &serverHost, int &s if (url.port()) { if (url.hasUser()) - str = TQString("%1@%2:%3").arg(userName).arg(serverHost).arg(url.port()); + str = TQString("%1@%2:%3").tqarg(userName).tqarg(serverHost).tqarg(url.port()); else - str = TQString("%1:%2").arg(serverHost).arg(url.port()); + str = TQString("%1:%2").tqarg(serverHost).tqarg(url.port()); } else { if (url.hasUser()) - str = TQString("%1@%2").arg(userName).arg(serverHost); + str = TQString("%1@%2").tqarg(userName).tqarg(serverHost); else - str = TQString("%1").arg(serverHost); + str = TQString("%1").tqarg(serverHost); } return true; } @@ -373,10 +373,10 @@ void KRDC::enableFullscreen(bool on) m_view->switchFullscreen(on); } -TQSize KRDC::sizeHint() +TQSize KRDC::tqsizeHint() { if ((m_isFullscreen != WINDOW_MODE_FULLSCREEN) && m_toolbar) { - int dockHint = m_dockArea->sizeHint().height(); + int dockHint = m_dockArea->tqsizeHint().height(); dockHint = dockHint < 1 ? 1 : dockHint; // fix wrong size hint return TQSize(m_view->framebufferSize().width(), dockHint + m_view->framebufferSize().height()); @@ -495,7 +495,7 @@ void KRDC::switchToFullscreen(bool scaling) TQLabel *hostLabel = new TQLabel(t); hostLabel->setName("kde toolbar widget"); - hostLabel->setAlignment(TQt::AlignCenter); + hostLabel->tqsetAlignment(TQt::AlignCenter); hostLabel->setText(" "+m_host+" "); t->insertWidget(FS_HOSTLABEL_ID, 150, hostLabel); t->setItemAutoSized(FS_HOSTLABEL_ID, true); @@ -575,7 +575,7 @@ void KRDC::switchToNormal(bool scaling) if (!m_toolbar) { m_dockArea = new TQDockArea(Qt::Horizontal, TQDockArea::Normal, this); - m_dockArea->setSizePolicy(TQSizePolicy(TQSizePolicy::MinimumExpanding, + m_dockArea->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::Fixed)); KToolBar *t = new KToolBar(m_dockArea); m_toolbar = t; @@ -633,7 +633,7 @@ void KRDC::switchToNormal(bool scaling) m_view->resize(m_view->framebufferSize()); } - setMaximumSize(sizeHint()); + setMaximumSize(tqsizeHint()); repositionView(false); @@ -644,7 +644,7 @@ void KRDC::switchToNormal(bool scaling) m_initialWindowSize = TQSize(); } else if (!scalingChanged) - resize(sizeHint()); + resize(tqsizeHint()); show(); if (scalingChanged) m_view->update(); @@ -681,14 +681,14 @@ void KRDC::iconify() } void KRDC::toolbarChanged() { - setMaximumSize(sizeHint()); + setMaximumSize(tqsizeHint()); // resize window when toolbar is docked and it was maximized TQSize fs = m_view->framebufferSize(); TQSize cs = size(); TQSize cs1(cs.width(), cs.height()-1); // adjusted for TQDockArea.height()==1 if ((fs == cs) || (fs == cs1)) - resize(sizeHint()); + resize(tqsizeHint()); } diff --git a/krdc/krdc.h b/krdc/krdc.h index a042e0e5..d78dc959 100644 --- a/krdc/krdc.h +++ b/krdc/krdc.h @@ -20,7 +20,7 @@ #include #include -#include +#include #include #include #include @@ -66,7 +66,7 @@ class KRDC : public TQWidget TQ_OBJECT private: SmartPtr m_progressDialog; // dialog, displayed while connecting - TQVBoxLayout *m_layout; // the layout for autosizing the scrollview + TQVBoxLayout *m_layout; // the tqlayout for autosizing the scrollview TQScrollView *m_scrollView; // scrollview that contains the remote widget KProgress *m_progress; // progress bar for the dialog KRemoteView *m_view; // the remote widget (e.g. KVncView) @@ -127,7 +127,7 @@ protected: virtual void mouseMoveEvent(TQMouseEvent *e); virtual bool event(TQEvent *e); virtual bool eventFilter(TQObject *watched, TQEvent *e); - virtual TQSize sizeHint(); + virtual TQSize tqsizeHint(); public: KRDC(WindowMode wm = WINDOW_MODE_AUTO, @@ -145,7 +145,7 @@ public: static void setLastHost(const TQString &host); private slots: - void changeProgress(RemoteViewStatus s); + void changeProgress(RemoteViewtqStatus s); void showingPasswordDialog(bool b); void showProgressTimeout(); diff --git a/krdc/kremoteview.cpp b/krdc/kremoteview.cpp index 76ae6267..a3dbce40 100644 --- a/krdc/kremoteview.cpp +++ b/krdc/kremoteview.cpp @@ -24,11 +24,11 @@ KRemoteView::KRemoteView(TQWidget *parent, m_status(REMOTE_VIEW_DISCONNECTED) { } -enum RemoteViewStatus KRemoteView::status() { +enum RemoteViewtqStatus KRemoteView::status() { return m_status; } -void KRemoteView::setStatus(RemoteViewStatus s) { +void KRemoteView::settqStatus(RemoteViewtqStatus s) { if (m_status == s) return; @@ -49,8 +49,8 @@ void KRemoteView::setStatus(RemoteViewStatus s) { // smooth state transition int origState = (int)m_status; for (int i = origState; i < (int)s; i++) { - m_status = (RemoteViewStatus) i; - emit statusChanged((RemoteViewStatus) i); + m_status = (RemoteViewtqStatus) i; + emit statusChanged((RemoteViewtqStatus) i); } } } diff --git a/krdc/kremoteview.h b/krdc/kremoteview.h index af4fb0ef..0b0ae11c 100644 --- a/krdc/kremoteview.h +++ b/krdc/kremoteview.h @@ -152,7 +152,7 @@ public: * Checks whether the view is currently quitting. * @return true if it is quitting * @see startQuitting() - * @see setStatus() + * @see settqStatus() */ virtual bool isQuitting() = 0; @@ -173,7 +173,7 @@ public: * dialogs to the user) and start connecting. Should not block * without running the event loop (so displaying a dialog is ok). * When the view starts connecting the application must call - * @ref setStatus() with the status REMOTE_VIEW_CONNECTING. + * @ref settqStatus() with the status REMOTE_VIEW_CONNECTING. * @return true if successful (so far), false * otherwise * @see connected() @@ -186,9 +186,9 @@ public: /** * Returns the current status of the connection. * @return the status of the connection - * @see setStatus() + * @see settqStatus() */ - enum RemoteViewStatus status(); + enum RemoteViewtqStatus status(); public slots: /** @@ -253,7 +253,7 @@ signals: * Emitted when the status of the view changed. * @param s the new status */ - void statusChanged(RemoteViewStatus s); + void statusChanged(RemoteViewtqStatus s); /** * Emitted when the password dialog is shown or hidden. @@ -275,21 +275,21 @@ protected: /** * The status of the remote view. */ - enum RemoteViewStatus m_status; + enum RemoteViewtqStatus m_status; /** * Set the status of the connection. * Emits a statusChanged() signal. * Note that the states need to be set in a certain order, - * see @ref RemoteViewStatus. setStatus() will try to do this + * see @ref RemoteViewtqStatus. settqStatus() will try to do this * transition automatically, so if you are in REMOTE_VIEW_CONNECTING - * and call setStatus(REMOTE_VIEW_PREPARING), setStatus() will + * and call settqStatus(REMOTE_VIEW_PREPARING), settqStatus() will * emit a REMOTE_VIEW_AUTHENTICATING and then REMOTE_VIEW_PREPARING. * If you transition backwards, it will emit a * REMOTE_VIEW_DISCONNECTED before doing the transition. * @param s the new status */ - virtual void setStatus(RemoteViewStatus s); + virtual void settqStatus(RemoteViewtqStatus s); }; #endif diff --git a/krdc/main.cpp b/krdc/main.cpp index ed59061a..95657483 100644 --- a/krdc/main.cpp +++ b/krdc/main.cpp @@ -27,7 +27,7 @@ #include #include #include -#include +#include #include #include "../config.h" @@ -135,7 +135,7 @@ int main(int argc, char *argv[]) TQString passwordFile = args->getOption("password-file"); TQFile f(passwordFile); if (!f.open(IO_ReadOnly)) { - KMessageBox::error(0, i18n("The password file '%1' does not exist.").arg(passwordFile)); + KMessageBox::error(0, i18n("The password file '%1' does not exist.").tqarg(passwordFile)); return 1; } password = TQTextStream(&f).readLine(); @@ -149,7 +149,7 @@ int main(int argc, char *argv[]) if (!is.isNull()) { TQRegExp re("([0-9]+)[xX]([0-9]+)"); if (!re.exactMatch(is)) - args->usage(i18n("Wrong geometry format, must be widthXheight")); + args->usage(i18n("Wrong tqgeometry format, must be widthXheight")); initialWindowSize = TQSize(re.cap(1).toInt(), re.cap(2).toInt()); } diff --git a/krdc/maindialogbase.ui b/krdc/maindialogbase.ui index c1757016..96f04ff0 100644 --- a/krdc/maindialogbase.ui +++ b/krdc/maindialogbase.ui @@ -48,7 +48,7 @@ m_serverInput - + 250 0 @@ -149,7 +149,7 @@ Remote Desktop Connection only supports systems that use VNC. Expanding - + 34 16 @@ -188,7 +188,7 @@ Remote Desktop Connection only supports systems that use VNC. Expanding - + 34 16 @@ -226,7 +226,7 @@ Remote Desktop Connection only supports systems that use VNC. 0 - + 100 0 diff --git a/krdc/maindialogwidget.cpp b/krdc/maindialogwidget.cpp index 09b0de52..eed72b99 100644 --- a/krdc/maindialogwidget.cpp +++ b/krdc/maindialogwidget.cpp @@ -56,7 +56,7 @@ class UrlListViewItem : public KListViewItem if ( !desc.isNull() ) setText( 0, desc ); if ( ( !userid.isEmpty() ) && ( !fullname.isEmpty() ) ) - setText( 0, TQString( "%1 (%2)" ).arg( fullname ).arg( userid ) ); + setText( 0, TQString( "%1 (%2)" ).tqarg( fullname ).tqarg( userid ) ); else if ( !userid.isNull() ) setText( 0, userid ); else if ( !fullname.isNull() ) @@ -175,8 +175,8 @@ void MainDialogWidget::enableBrowsingArea( bool enable ) m_browsingPanel->setMaximumSize(0, 0); m_browsingPanel->setEnabled(false); m_browseButton->setText(m_browseButton->text().replace("<<", ">>")); - int h = minimumSize().height()-hOffset; - setMinimumSize(minimumSize().width(), (h > 0) ? h : 0); + int h = tqminimumSize().height()-hOffset; + setMinimumSize(tqminimumSize().width(), (h > 0) ? h : 0); resize(width(), height()-hOffset); TQTimer::singleShot( 0, parentWidget(), TQT_SLOT( adjustSize() ) ); diff --git a/krdc/preferencesdialog.cpp b/krdc/preferencesdialog.cpp index b244c6ff..ab302434 100644 --- a/krdc/preferencesdialog.cpp +++ b/krdc/preferencesdialog.cpp @@ -80,7 +80,7 @@ void PreferencesDialog::load() m_rdpPrefs->setShowPrefs( m_rdpDefaults->askOnConnect() ); m_rdpPrefs->setUseKWallet( m_rdpDefaults->useKWallet() ); m_rdpPrefs->setColorDepth( m_rdpDefaults->colorDepth() ); - m_rdpPrefs->setKbLayout( keymap2int( m_rdpDefaults->layout() )); + m_rdpPrefs->setKbLayout( keymap2int( m_rdpDefaults->tqlayout() )); m_rdpPrefs->setResolution(); } diff --git a/krdc/rdp/krdpview.cpp b/krdc/rdp/krdpview.cpp index 14f5cabc..4e5bc632 100644 --- a/krdc/rdp/krdpview.cpp +++ b/krdc/rdp/krdpview.cpp @@ -120,13 +120,13 @@ KRdpView::~KRdpView() // returns the size of the framebuffer TQSize KRdpView::framebufferSize() { - return m_container->sizeHint(); + return m_container->tqsizeHint(); } // returns the suggested size -TQSize KRdpView::sizeHint() +TQSize KRdpView::tqsizeHint() { - return maximumSize(); + return tqmaximumSize(); } // start closing the connection @@ -164,12 +164,12 @@ bool KRdpView::editPreferences( HostPrefPtr host ) int wv = hp->width(); int hv = hp->height(); int cd = hp->colorDepth(); - TQString kl = hp->layout(); + TQString kl = hp->tqlayout(); bool kwallet = hp->useKWallet(); // show preferences dialog KDialogBase *dlg = new KDialogBase( 0L, "dlg", true, - i18n( "RDP Host Preferences for %1" ).arg( host->host() ), + i18n( "RDP Host Preferences for %1" ).tqarg( host->host() ), KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, true ); TQVBox *vbox = dlg->makeVBoxMainWidget(); @@ -243,7 +243,7 @@ bool KRdpView::start() *m_process << "-g" << (TQString::number(hp->width()) + "x" + TQString::number(hp->height())); } } - *m_process << "-k" << hp->layout(); + *m_process << "-k" << hp->tqlayout(); if(!m_user.isEmpty()) { *m_process << "-u" << m_user; } if(m_password.isEmpty() && useKWallet ) { @@ -303,7 +303,7 @@ bool KRdpView::start() return false; } - setStatus(REMOTE_VIEW_CONNECTING); + settqStatus(REMOTE_VIEW_CONNECTING); return true; } @@ -340,9 +340,9 @@ void KRdpView::setViewOnly(bool s) void KRdpView::connectionOpened(WId /*window*/) { - TQSize size = m_container->sizeHint(); + TQSize size = m_container->tqsizeHint(); - setStatus(REMOTE_VIEW_CONNECTED); + settqStatus(REMOTE_VIEW_CONNECTED); setFixedSize(size); m_container->setFixedSize(size); emit changeSize(size.width(), size.height()); @@ -353,7 +353,7 @@ void KRdpView::connectionOpened(WId /*window*/) void KRdpView::connectionClosed() { emit disconnected(); - setStatus(REMOTE_VIEW_DISCONNECTED); + settqStatus(REMOTE_VIEW_DISCONNECTED); m_quitFlag = true; } @@ -361,7 +361,7 @@ void KRdpView::processDied(KProcess */*proc*/) { if(m_status == REMOTE_VIEW_CONNECTING) { - setStatus(REMOTE_VIEW_DISCONNECTED); + settqStatus(REMOTE_VIEW_DISCONNECTED); if(m_clientVersion.isEmpty()) { KMessageBox::error(0, i18n("Connection attempt to host failed."), diff --git a/krdc/rdp/krdpview.h b/krdc/rdp/krdpview.h index 7f6180b5..c34d3c27 100644 --- a/krdc/rdp/krdpview.h +++ b/krdc/rdp/krdpview.h @@ -69,7 +69,7 @@ class KRdpView : public KRemoteView // functions regarding the window virtual TQSize framebufferSize(); // returns the size of the remote view - TQSize sizeHint(); // returns the suggested size + TQSize tqsizeHint(); // returns the suggested size virtual bool viewOnly(); virtual bool startFullscreen(); diff --git a/krdc/rdp/rdphostpref.cpp b/krdc/rdp/rdphostpref.cpp index ba876146..00ce88d7 100644 --- a/krdc/rdp/rdphostpref.cpp +++ b/krdc/rdp/rdphostpref.cpp @@ -48,7 +48,7 @@ void RdpHostPref::save() m_config->writeEntry(p+"width", m_width); m_config->writeEntry(p+"height", m_height); m_config->writeEntry(p+"colorDepth", m_colorDepth); - m_config->writeEntry(p+"layout", m_layout); + m_config->writeEntry(p+"tqlayout", m_layout); m_config->writeEntry(p+"askOnConnect", m_askOnConnect); m_config->writeEntry(p+"useKWallet", m_useKWallet); } @@ -73,7 +73,7 @@ void RdpHostPref::load() m_width = m_config->readNumEntry(p+"width", 0); m_height = m_config->readNumEntry(p+"height", 0); m_colorDepth = m_config->readNumEntry(p+"colorDepth", 24); - m_layout = m_config->readEntry(p+"layout", "en-us"); + m_layout = m_config->readEntry(p+"tqlayout", "en-us"); m_askOnConnect = m_config->readBoolEntry(p+"askOnConnect", true); m_useKWallet = m_config->readBoolEntry(p+"useKWallet", true); } @@ -91,7 +91,7 @@ void RdpHostPref::remove() m_config->deleteEntry(p+"width"); m_config->deleteEntry(p+"height"); m_config->deleteEntry(p+"colorDepth"); - m_config->deleteEntry(p+"layout"); + m_config->deleteEntry(p+"tqlayout"); m_config->deleteEntry(p+"askOnConnect"); m_config->deleteEntry(p+"useKWallet"); } @@ -110,8 +110,8 @@ void RdpHostPref::setDefaults() TQString RdpHostPref::prefDescription() const { return i18n("Show Preferences: %1, Resolution: %2x%3, Color Depth: %4, Keymap: %5, KWallet: %6") - .arg(m_askOnConnect ? i18n("yes") : i18n("no")).arg(m_width).arg(m_height) - .arg(m_colorDepth).arg(m_layout).arg(m_useKWallet ? i18n("yes") : i18n("no")); + .tqarg(m_askOnConnect ? i18n("yes") : i18n("no")).tqarg(m_width).tqarg(m_height) + .tqarg(m_colorDepth).tqarg(m_layout).tqarg(m_useKWallet ? i18n("yes") : i18n("no")); } void RdpHostPref::setWidth(int w) @@ -154,7 +154,7 @@ void RdpHostPref::setLayout(const TQString &l) save(); } -TQString RdpHostPref::layout() const +TQString RdpHostPref::tqlayout() const { return m_layout; } diff --git a/krdc/rdp/rdphostpref.h b/krdc/rdp/rdphostpref.h index 7b7be704..11f490ec 100644 --- a/krdc/rdp/rdphostpref.h +++ b/krdc/rdp/rdphostpref.h @@ -60,29 +60,29 @@ static const int rdpDefaultKeymap = 6; // en-us inline int keymap2int(const TQString &keymap) { - int layout; - for(layout = 0; layout < rdpNumKeymaps; layout++) + int tqlayout; + for(tqlayout = 0; tqlayout < rdpNumKeymaps; tqlayout++) { - if(keymap == rdpKeymaps[layout]) + if(keymap == rdpKeymaps[tqlayout]) { break; } } - if(layout == rdpNumKeymaps) + if(tqlayout == rdpNumKeymaps) { - layout = rdpDefaultKeymap; + tqlayout = rdpDefaultKeymap; } - return layout; + return tqlayout; } -inline TQString int2keymap(int layout) +inline TQString int2keymap(int tqlayout) { - if(layout < 0 || layout >= rdpNumKeymaps) + if(tqlayout < 0 || tqlayout >= rdpNumKeymaps) { return rdpKeymaps[rdpDefaultKeymap]; } - return rdpKeymaps[layout]; + return rdpKeymaps[tqlayout]; } class RdpHostPref : public HostPref @@ -117,7 +117,7 @@ class RdpHostPref : public HostPref void setColorDepth(int depth); int colorDepth() const; void setLayout(const TQString &l); - TQString layout() const; + TQString tqlayout() const; void setAskOnConnect(bool ask); bool askOnConnect() const; bool useKWallet() const; diff --git a/krdc/rdp/rdpprefs.ui b/krdc/rdp/rdpprefs.ui index 338dff73..0d37422a 100644 --- a/krdc/rdp/rdpprefs.ui +++ b/krdc/rdp/rdpprefs.ui @@ -40,7 +40,7 @@ Fixed - + 70 21 @@ -84,7 +84,7 @@ 0 - + 280 0 @@ -124,7 +124,7 @@ H&eight: - + AlignVCenter|AlignRight @@ -325,7 +325,7 @@ 0 - + 280 0 @@ -338,7 +338,7 @@ 4 - Use this to specify your keyboard layout. This layout setting is used to send the correct keyboard codes to the server. + Use this to specify your keyboard tqlayout. This tqlayout setting is used to send the correct keyboard codes to the server. @@ -354,7 +354,7 @@ - &Keyboard layout: + &Keyboard tqlayout: cmbKbLayout @@ -422,7 +422,7 @@ &Width: - + AlignVCenter|AlignRight diff --git a/krdc/smartptr.h b/krdc/smartptr.h index 49fa25c2..53cbfeea 100644 --- a/krdc/smartptr.h +++ b/krdc/smartptr.h @@ -425,7 +425,7 @@ public: rcrcount = rc->refsToThis; } return TQString("SmartPtr: ptr=%1, refcounts=%2, ptrnum=%3") - .arg((int)ptr).arg(objrcount).arg(rcrcount); + .tqarg((int)ptr).tqarg(objrcount).tqarg(rcrcount); } }; diff --git a/krdc/vnc/desktop.c b/krdc/vnc/desktop.c index 73b2e423..003a7160 100644 --- a/krdc/vnc/desktop.c +++ b/krdc/vnc/desktop.c @@ -626,7 +626,7 @@ void SyncScreenRegionX11Thread(int x, int y, int width, int height) { } /* - * ToplevelInitBeforeRealization sets the title, geometry and other resources + * ToplevelInitBeforeRealization sets the title, tqgeometry and other resources * on the toplevel window. */ diff --git a/krdc/vnc/kvncview.cpp b/krdc/vnc/kvncview.cpp index b7a3b8bf..02cd3a78 100644 --- a/krdc/vnc/kvncview.cpp +++ b/krdc/vnc/kvncview.cpp @@ -30,7 +30,7 @@ #include #include -#include +#include #include #include #include @@ -92,7 +92,7 @@ KVncView::KVncView(TQWidget *parent, setFixedSize(16,16); setFocusPolicy(TQ_StrongFocus); - m_cb = TQApplication::clipboard(); + m_cb = TQApplication::tqclipboard(); connect(m_cb, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(selectionChanged())); connect(m_cb, TQT_SIGNAL(dataChanged()), this, TQT_SLOT(clipboardChanged())); @@ -219,7 +219,7 @@ bool KVncView::checkLocalKRfb() { if (m_port != portNum) return true; - setStatus(REMOTE_VIEW_DISCONNECTED); + settqStatus(REMOTE_VIEW_DISCONNECTED); KMessageBox::error(0, i18n("It is not possible to connect to a local desktop sharing service."), i18n("Connection Failure")); @@ -236,7 +236,7 @@ bool KVncView::editPreferences( HostPrefPtr host ) // show preferences dialog KDialogBase *dlg = new KDialogBase( 0L, "dlg", true, - i18n( "VNC Host Preferences for %1" ).arg( host->host() ), + i18n( "VNC Host Preferences for %1" ).tqarg( host->host() ), KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, true ); TQVBox *vbox = dlg->makeVBoxMainWidget(); @@ -295,7 +295,7 @@ bool KVncView::start() { useKWallet = hp->useKWallet(); } - setStatus(REMOTE_VIEW_CONNECTING); + settqStatus(REMOTE_VIEW_CONNECTING); m_cthread.start(); setBackgroundMode(TQt::NoBackground); @@ -390,7 +390,7 @@ void KVncView::customEvent(TQCustomEvent *e) } else if (e->type() == StatusChangeEventType) { StatusChangeEvent *sce = (StatusChangeEvent*) e; - setStatus(sce->status()); + settqStatus(sce->status()); if (m_status == REMOTE_VIEW_CONNECTED) { emit connected(); setFocus(); @@ -458,7 +458,7 @@ void KVncView::customEvent(TQCustomEvent *e) } else if (e->type() == FatalErrorEventType) { FatalErrorEvent *fee = (FatalErrorEvent*) e; - setStatus(REMOTE_VIEW_DISCONNECTED); + settqStatus(REMOTE_VIEW_DISCONNECTED); switch (fee->errorCode()) { case ERROR_CONNECTION: KMessageBox::error(0, @@ -683,8 +683,8 @@ void KVncView::focusOutEvent(TQFocusEvent *) { unpressModifiers(); } -TQSize KVncView::sizeHint() { - return maximumSize(); +TQSize KVncView::tqsizeHint() { + return tqmaximumSize(); } void KVncView::setRemoteMouseTracking(bool s) { diff --git a/krdc/vnc/kvncview.h b/krdc/vnc/kvncview.h index 7a8c9a2c..7fdf402c 100644 --- a/krdc/vnc/kvncview.h +++ b/krdc/vnc/kvncview.h @@ -84,7 +84,7 @@ public: DotCursorState dotCursorState = DOT_CURSOR_AUTO, const TQString &encodings = TQString()); ~KVncView(); - TQSize sizeHint(); + TQSize tqsizeHint(); void drawRegion(int x, int y, int w, int h); void lockFramebuffer(); void unlockFramebuffer(); diff --git a/krdc/vnc/rfbproto.c b/krdc/vnc/rfbproto.c index 8424e6ac..13676bb6 100644 --- a/krdc/vnc/rfbproto.c +++ b/krdc/vnc/rfbproto.c @@ -159,7 +159,7 @@ ConnectToRFBServer(const char *hostname, int port) * InitialiseRFBConnection. */ -enum InitStatus +enum InittqStatus InitialiseRFBConnection() { rfbProtocolVersionMsg pv; @@ -734,12 +734,12 @@ static void *MakeSoftCursor(int bpp, int cursorWidth, int cursorHeight, /********************************************************************* - * HandleCursorShape(). Support for XCursor and RichCursor shape + * HandletqCursorShape(). Support for XCursor and RichCursor tqshape * updates. We emulate cursor operating on the frame buffer (that is * why we call it "software cursor"). ********************************************************************/ -static Bool HandleCursorShape(int xhot, int yhot, int width, int height, CARD32 enc) +static Bool HandletqCursorShape(int xhot, int yhot, int width, int height, CARD32 enc) { int bytesPerPixel; size_t bytesPerRow, bytesMaskData; @@ -956,7 +956,7 @@ HandleRFBServerMessage() if (rect.encoding == rfbEncodingXCursor || rect.encoding == rfbEncodingRichCursor) { - if (!HandleCursorShape(rect.r.x, rect.r.y, rect.r.w, rect.r.h, + if (!HandletqCursorShape(rect.r.x, rect.r.y, rect.r.w, rect.r.h, rect.encoding)) { return False; } diff --git a/krdc/vnc/rfbproto.h b/krdc/vnc/rfbproto.h index f08fe66a..1b5fd839 100644 --- a/krdc/vnc/rfbproto.h +++ b/krdc/vnc/rfbproto.h @@ -27,7 +27,7 @@ * * All multiple byte integers are in big endian (network) order (most * significant byte first). Unless noted otherwise there is no special - * alignment of protocol structures. + * tqalignment of protocol structures. * * * Once the initial handshaking is done, all messages start with a type byte, @@ -54,7 +54,7 @@ /*----------------------------------------------------------------------------- * Structure used to specify a rectangle. This structure is a multiple of 4 * bytes so that it can be interspersed with 32-bit pixel data without - * affecting alignment. + * affecting tqalignment. */ typedef struct { @@ -299,7 +299,7 @@ typedef struct { /* * Special encoding numbers: * 0xFFFFFF00 .. 0xFFFFFF0F -- encoding-specific compression levels; - * 0xFFFFFF10 .. 0xFFFFFF1F -- mouse cursor shape data; + * 0xFFFFFF10 .. 0xFFFFFF1F -- mouse cursor tqshape data; * 0xFFFFFF20 .. 0xFFFFFF2F -- various protocol extensions; * 0xFFFFFF30 .. 0xFFFFFFDF -- not allocated yet; * 0xFFFFFFE0 .. 0xFFFFFFEF -- quality level for JPEG compressor; @@ -350,7 +350,7 @@ typedef struct { * This message consists of a header giving the number of rectangles of pixel * data followed by the rectangles themselves. The header is padded so that * together with the type byte it is an exact multiple of 4 bytes (to help - * with alignment of 32-bit pixels): + * with tqalignment of 32-bit pixels): */ typedef struct { @@ -633,7 +633,7 @@ typedef struct { /*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - * XCursor encoding. This is a special encoding used to transmit X-style - * cursor shapes from server to clients. Note that for this encoding, + * cursor tqshapes from server to clients. Note that for this encoding, * coordinates in rfbFramebufferUpdateRectHeader structure hold hotspot * position (r.x, r.y) and cursor size (r.w, r.h). If (w * h != 0), two RGB * samples are sent after header in the rfbXCursorColors structure. They @@ -664,7 +664,7 @@ typedef struct { /*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - * RichCursor encoding. This is a special encoding used to transmit cursor - * shapes from server to clients. It is similar to the XCursor encoding but + * tqshapes from server to clients. It is similar to the XCursor encoding but * uses client pixel format instead of two RGB colors to represent cursor * image. For this encoding, coordinates in rfbFramebufferUpdateRectHeader * structure hold hotspot position (r.x, r.y) and cursor size (r.w, r.h). diff --git a/krdc/vnc/threads.cpp b/krdc/vnc/threads.cpp index 097e1367..f4e0eefe 100644 --- a/krdc/vnc/threads.cpp +++ b/krdc/vnc/threads.cpp @@ -47,7 +47,7 @@ ControllerThread::ControllerThread(KVncView *v, WriterThread &wt, volatile bool { } -void ControllerThread::changeStatus(RemoteViewStatus s) { +void ControllerThread::changetqStatus(RemoteViewtqStatus s) { m_status = s; TQApplication::postEvent(m_view, new StatusChangeEvent(s)); } @@ -86,13 +86,13 @@ void ControllerThread::run() { return; } if (m_quitFlag) { - changeStatus(REMOTE_VIEW_DISCONNECTED); + changetqStatus(REMOTE_VIEW_DISCONNECTED); return; } - changeStatus(REMOTE_VIEW_AUTHENTICATING); + changetqStatus(REMOTE_VIEW_AUTHENTICATING); - enum InitStatus s = InitialiseRFBConnection(); + enum InittqStatus s = InitialiseRFBConnection(); if (s != INIT_OK) { if (s == INIT_CONNECTION_FAILED) sendFatalError(ERROR_IO); @@ -103,7 +103,7 @@ void ControllerThread::run() { else if (s == INIT_AUTHENTICATION_FAILED) sendFatalError(ERROR_AUTHENTICATION); else if (s == INIT_ABORTED) - changeStatus(REMOTE_VIEW_DISCONNECTED); + changetqStatus(REMOTE_VIEW_DISCONNECTED); else sendFatalError(ERROR_INTERNAL); return; @@ -120,18 +120,18 @@ void ControllerThread::run() { m_waiter.wait(1000); if (m_quitFlag) { - changeStatus(REMOTE_VIEW_DISCONNECTED); + changetqStatus(REMOTE_VIEW_DISCONNECTED); return; } - changeStatus(REMOTE_VIEW_PREPARING); + changetqStatus(REMOTE_VIEW_PREPARING); if (!SetFormatAndEncodings()) { sendFatalError(ERROR_INTERNAL); return; } - changeStatus(REMOTE_VIEW_CONNECTED); + changetqStatus(REMOTE_VIEW_CONNECTED); m_wthread.start(); @@ -143,11 +143,11 @@ void ControllerThread::run() { } m_quitFlag = true; - changeStatus(REMOTE_VIEW_DISCONNECTED); + changetqStatus(REMOTE_VIEW_DISCONNECTED); m_wthread.kick(); } -enum RemoteViewStatus ControllerThread::status() { +enum RemoteViewtqStatus ControllerThread::status() { return m_status; } @@ -185,7 +185,7 @@ bool WriterThread::sendIncrementalUpdateRequest() { } bool WriterThread::sendUpdateRequest(const TQRegion ®ion) { - TQMemArray r = region.rects(); + TQMemArray r = region.tqrects(); for (unsigned int i = 0; i < r.size(); i++) if (!SendFramebufferUpdateRequest(r[i].x(), r[i].y(), diff --git a/krdc/vnc/threads.h b/krdc/vnc/threads.h index 08ca4c20..4bb77ef3 100644 --- a/krdc/vnc/threads.h +++ b/krdc/vnc/threads.h @@ -102,18 +102,18 @@ protected: class ControllerThread : public TQThread { private: KVncView *m_view; - enum RemoteViewStatus m_status; + enum RemoteViewtqStatus m_status; WriterThread &m_wthread; volatile bool &m_quitFlag; volatile bool m_desktopInitialized; TQWaitCondition m_waiter; - void changeStatus(RemoteViewStatus s); + void changetqStatus(RemoteViewtqStatus s); void sendFatalError(ErrorCode s); public: ControllerThread(KVncView *v, WriterThread &wt, volatile bool &quitFlag); - enum RemoteViewStatus status(); + enum RemoteViewtqStatus status(); void desktopInit(); void kick(); diff --git a/krdc/vnc/vnchostpref.cpp b/krdc/vnc/vnchostpref.cpp index 7fea2889..3ae6ed92 100644 --- a/krdc/vnc/vnchostpref.cpp +++ b/krdc/vnc/vnchostpref.cpp @@ -96,7 +96,7 @@ TQString VncHostPref::prefDescription() const { Q_ASSERT(true); } return i18n("Show Preferences: %1, Quality: %2, KWallet: %3") - .arg(m_askOnConnect ? i18n("yes") : i18n("no")).arg(q).arg(m_useKWallet ? i18n("yes") : i18n("no")); + .tqarg(m_askOnConnect ? i18n("yes") : i18n("no")).tqarg(q).tqarg(m_useKWallet ? i18n("yes") : i18n("no")); } void VncHostPref::setQuality(int q) { diff --git a/krdc/vnc/vncprefs.ui b/krdc/vnc/vncprefs.ui index ad38431c..f569bb3f 100644 --- a/krdc/vnc/vncprefs.ui +++ b/krdc/vnc/vncprefs.ui @@ -104,7 +104,7 @@ 0 - + 280 0 @@ -124,7 +124,7 @@ Expanding - + 84 16 diff --git a/krdc/vnc/vnctypes.h b/krdc/vnc/vnctypes.h index fae12549..4dba9a5c 100644 --- a/krdc/vnc/vnctypes.h +++ b/krdc/vnc/vnctypes.h @@ -54,7 +54,7 @@ typedef struct { } AppData; -enum InitStatus { +enum InittqStatus { INIT_OK = 0, INIT_NAME_RESOLUTION_FAILURE = 1, INIT_PROTOCOL_FAILURE = 2, diff --git a/krdc/vnc/vncviewer.h b/krdc/vnc/vncviewer.h index 285357b9..4b1f6cb9 100644 --- a/krdc/vnc/vncviewer.h +++ b/krdc/vnc/vncviewer.h @@ -155,7 +155,7 @@ typedef struct { extern PointerImage pointerImages[]; extern int ConnectToRFBServer(const char *hostname, int port); -extern enum InitStatus InitialiseRFBConnection(void); +extern enum InittqStatus InitialiseRFBConnection(void); extern Bool SetFormatAndEncodings(void); extern Bool SendIncrementalFramebufferUpdateRequest(void); extern Bool SendFramebufferUpdateRequest(int x, int y, int w, int h, diff --git a/krfb/kcm_krfb/configurationwidget.ui b/krfb/kcm_krfb/configurationwidget.ui index 0eb11995..7eaf2d96 100644 --- a/krfb/kcm_krfb/configurationwidget.ui +++ b/krfb/kcm_krfb/configurationwidget.ui @@ -53,7 +53,7 @@ Invitations - + AlignAuto @@ -247,7 +247,7 @@ Expanding - + 0 50 @@ -316,7 +316,7 @@ Expanding - + 0 20 @@ -442,7 +442,7 @@ Most VNC clients use a display number instead of the actual port. This display n Expanding - + 0 20 diff --git a/krfb/kcm_krfb/kcm_krfb.cpp b/krfb/kcm_krfb/kcm_krfb.cpp index 10c77b73..688b674b 100644 --- a/krfb/kcm_krfb/kcm_krfb.cpp +++ b/krfb/kcm_krfb/kcm_krfb.cpp @@ -19,7 +19,7 @@ #include "kcm_krfb.h" #include "kcm_krfb.moc" -#include +#include #include #include #include @@ -97,7 +97,7 @@ void KcmKRfb::setInvitationNum(int num) { if (num == 0) m_confWidget->invitationNumLabel->setText(i18n("You have no open invitation.")); else - m_confWidget->invitationNumLabel->setText(i18n("Open invitations: %1").arg(num)); + m_confWidget->invitationNumLabel->setText(i18n("Open invitations: %1").tqarg(num)); } void KcmKRfb::checkKInetd(bool &kinetdAvailable, bool &krfbAvailable) { diff --git a/krfb/kinetd/kinetd.cpp b/krfb/kinetd/kinetd.cpp index 2aa7a0cd..f20076de 100644 --- a/krfb/kinetd/kinetd.cpp +++ b/krfb/kinetd/kinetd.cpp @@ -181,7 +181,7 @@ void PortListener::loadConfig(KService::Ptr s) { m_dnssdRegister = false; - m_slpLifetimeEnd = TQDateTime::currentDateTime().addSecs(m_serviceLifetime); + m_slpLifetimeEnd = TQDateTime::tqcurrentDateTime().addSecs(m_serviceLifetime); m_defaultPortBase = m_portBase; m_defaultAutoPortRange = m_autoPortRange; @@ -195,7 +195,7 @@ void PortListener::loadConfig(KService::Ptr s) { TQDateTime nullTime; m_expirationTime = m_config->readDateTimeEntry("enabled_expiration_"+m_serviceName, &nullTime); - if ((!m_expirationTime.isNull()) && (m_expirationTime < TQDateTime::currentDateTime())) + if ((!m_expirationTime.isNull()) && (m_expirationTime < TQDateTime::tqcurrentDateTime())) m_enabled = false; m_registerService = m_config->readBoolEntry("enabled_srvreg_"+m_serviceName, m_registerService); @@ -210,7 +210,7 @@ void PortListener::accepted(KSocket *sock) { } KExtendedSocket::resolve(ksa, host, port); KNotifyClient::event("IncomingConnection", - i18n("Connection from %1").arg(host)); + i18n("Connection from %1").tqarg(host)); delete ksa; if ((!m_enabled) || @@ -226,9 +226,9 @@ void PortListener::accepted(KSocket *sock) { m_process << m_execPath << m_argument << TQString::number(sock->socket()); if (!m_process.start(KProcess::DontCare)) { KNotifyClient::event("ProcessFailed", - i18n("Call \"%1 %2 %3\" failed").arg(m_execPath) - .arg(m_argument) - .arg(sock->socket())); + i18n("Call \"%1 %2 %3\" failed").tqarg(m_execPath) + .tqarg(m_argument) + .tqarg(sock->socket())); } delete sock; @@ -356,7 +356,7 @@ void PortListener::setServiceRegistrationEnabledInternal(bool e) { } m_serviceRegistered = true; // make lifetime 30s shorter, because the timeout is not precise - m_slpLifetimeEnd = TQDateTime::currentDateTime().addSecs(m_serviceLifetime-30); + m_slpLifetimeEnd = TQDateTime::tqcurrentDateTime().addSecs(m_serviceLifetime-30); } else { TQStringList::Iterator it = m_registeredServiceURLs.begin(); while (it != m_registeredServiceURLs.end()) @@ -383,7 +383,7 @@ void PortListener::dnssdRegister(bool e) { } void PortListener::refreshRegistration() { - if (m_serviceRegistered && (m_slpLifetimeEnd.addSecs(-90) < TQDateTime::currentDateTime())) { + if (m_serviceRegistered && (m_slpLifetimeEnd.addSecs(-90) < TQDateTime::tqcurrentDateTime())) { setServiceRegistrationEnabledInternal(false); setServiceRegistrationEnabledInternal(true); } @@ -458,7 +458,7 @@ void KInetD::expirationTimer() { void KInetD::setExpirationTimer() { TQDateTime nextEx = getNextExpirationTime(); // disables expired portlistener! if (!nextEx.isNull()) - m_expirationTimer.start(TQDateTime::currentDateTime().secsTo(nextEx)*1000 + 30000, + m_expirationTimer.start(TQDateTime::tqcurrentDateTime().secsTo(nextEx)*1000 + 30000, false); else m_expirationTimer.stop(); @@ -475,7 +475,7 @@ void KInetD::setReregistrationTimer() { while (pl) { TQDateTime d2 = pl->serviceLifetimeEnd(); if (!d2.isNull()) { - if (d2 < TQDateTime::currentDateTime()) { + if (d2 < TQDateTime::tqcurrentDateTime()) { m_reregistrationTimer.start(0, true); return; } @@ -486,7 +486,7 @@ void KInetD::setReregistrationTimer() { } if (!d.isNull()) { - int s = TQDateTime::currentDateTime().secsTo(d); + int s = TQDateTime::tqcurrentDateTime().secsTo(d); if (s < 30) s = 30; // max frequency 30s m_reregistrationTimer.start(s*1000, true); @@ -544,7 +544,7 @@ TQDateTime KInetD::getNextExpirationTime() while (pl) { TQDateTime d2 = pl->expiration(); if (!d2.isNull()) { - if (d2 < TQDateTime::currentDateTime()) + if (d2 < TQDateTime::tqcurrentDateTime()) pl->setEnabled(false); else if (d.isNull() || (d2 < d)) d = d2; diff --git a/krfb/krfb/configuration.cc b/krfb/krfb/configuration.cc index bf0e31a7..2076c4ed 100644 --- a/krfb/krfb/configuration.cc +++ b/krfb/krfb/configuration.cc @@ -148,7 +148,7 @@ void Configuration::doKinetdConf() { lastExpiration = t; it++; } - if (lastExpiration.isNull() || (lastExpiration < TQDateTime::currentDateTime())) { + if (lastExpiration.isNull() || (lastExpiration < TQDateTime::tqcurrentDateTime())) { setKInetdEnabled(false); portNum = -1; } @@ -453,15 +453,15 @@ void Configuration::inviteEmail() { " http://%7:%8/\n" "\n" "For security reasons this invitation will expire at %9.") - .arg(inv.password()) - .arg(hostname()) - .arg(port()) - .arg(hostname()) - .arg(port()) - .arg(inv.password()) - .arg(hostname()) - .arg(5800) // determine with dcop ... later ... - .arg(KGlobal::locale()->formatDateTime(inv.expirationTime()))); + .tqarg(inv.password()) + .tqarg(hostname()) + .tqarg(port()) + .tqarg(hostname()) + .tqarg(port()) + .tqarg(inv.password()) + .tqarg(hostname()) + .tqarg(5800) // determine with dcop ... later ... + .tqarg(KGlobal::locale()->formatDateTime(inv.expirationTime()))); } ////////////// invoke kcontrol module ////////////////////////// diff --git a/krfb/krfb/connectionwidget.ui b/krfb/krfb/connectionwidget.ui index db280527..a4a27b02 100644 --- a/krfb/krfb/connectionwidget.ui +++ b/krfb/krfb/connectionwidget.ui @@ -71,7 +71,7 @@ AutoText - + WordBreak|AlignVCenter|AlignLeft @@ -92,13 +92,13 @@ 0 - + 108 318 - + 108 318 @@ -178,7 +178,7 @@ Minimum - + 20 84 @@ -195,7 +195,7 @@ Minimum - + 20 80 diff --git a/krfb/krfb/invitation.cc b/krfb/krfb/invitation.cc index e764036c..d06feefe 100644 --- a/krfb/krfb/invitation.cc +++ b/krfb/krfb/invitation.cc @@ -25,8 +25,8 @@ TQString cryptStr(const TQString &aStr) { TQString result; for (unsigned int i = 0; i < aStr.length(); i++) - result += (aStr[i].unicode() < 0x20) ? aStr[i] : - TQChar(0x1001F - aStr[i].unicode()); + result += (aStr[i].tqunicode() < 0x20) ? aStr[i] : + TQChar(0x1001F - aStr[i].tqunicode()); return result; } @@ -59,8 +59,8 @@ static TQString readableRandomString(int length) { Invitation::Invitation() : m_viewItem(0) { m_password = readableRandomString(4)+"-"+readableRandomString(3); - m_creationTime = TQDateTime::currentDateTime(); - m_expirationTime = TQDateTime::currentDateTime().addSecs(INVITATION_DURATION); + m_creationTime = TQDateTime::tqcurrentDateTime(); + m_expirationTime = TQDateTime::tqcurrentDateTime().addSecs(INVITATION_DURATION); } Invitation::Invitation(const Invitation &x) : @@ -71,9 +71,9 @@ Invitation::Invitation(const Invitation &x) : } Invitation::Invitation(KConfig* config, int num) { - m_password = cryptStr(config->readEntry(TQString("password%1").arg(num), "")); - m_creationTime = config->readDateTimeEntry(TQString("creation%1").arg(num)); - m_expirationTime = config->readDateTimeEntry(TQString("expiration%1").arg(num)); + m_password = cryptStr(config->readEntry(TQString("password%1").tqarg(num), "")); + m_creationTime = config->readDateTimeEntry(TQString("creation%1").tqarg(num)); + m_expirationTime = config->readDateTimeEntry(TQString("expiration%1").tqarg(num)); m_viewItem = 0; } @@ -93,9 +93,9 @@ Invitation &Invitation::operator= (const Invitation&x) { } void Invitation::save(KConfig *config, int num) const { - config->writeEntry(TQString("password%1").arg(num), cryptStr(m_password)); - config->writeEntry(TQString("creation%1").arg(num), m_creationTime); - config->writeEntry(TQString("expiration%1").arg(num), m_expirationTime); + config->writeEntry(TQString("password%1").tqarg(num), cryptStr(m_password)); + config->writeEntry(TQString("creation%1").tqarg(num), m_creationTime); + config->writeEntry(TQString("expiration%1").tqarg(num), m_expirationTime); } TQString Invitation::password() const { @@ -111,7 +111,7 @@ TQDateTime Invitation::creationTime() const { } bool Invitation::isValid() const { - return m_expirationTime > TQDateTime::currentDateTime(); + return m_expirationTime > TQDateTime::tqcurrentDateTime(); } void Invitation::setViewItem(KListViewItem *i) { diff --git a/krfb/krfb/invitedialog.cc b/krfb/krfb/invitedialog.cc index f3b202a9..73d55b75 100644 --- a/krfb/krfb/invitedialog.cc +++ b/krfb/krfb/invitedialog.cc @@ -59,7 +59,7 @@ void InviteDialog::enableInviteButton( bool enable ) void InviteDialog::setInviteCount( int count ) { m_inviteWidget->btnManageInvite->setText( - i18n( "&Manage Invitations (%1)..." ).arg( count ) ); + i18n( "&Manage Invitations (%1)..." ).tqarg( count ) ); } #include "invitedialog.moc" diff --git a/krfb/krfb/invitewidget.ui b/krfb/krfb/invitewidget.ui index 589f929c..46f39fec 100644 --- a/krfb/krfb/invitewidget.ui +++ b/krfb/krfb/invitewidget.ui @@ -59,13 +59,13 @@ 0 - + 108 318 - + 108 318 @@ -80,7 +80,7 @@ true - + AlignTop @@ -94,7 +94,7 @@ Expanding - + 40 20 @@ -125,7 +125,7 @@ Fixed - + 20 24 @@ -142,7 +142,7 @@ Expanding - + 40 20 @@ -178,7 +178,7 @@ MinimumExpanding - + 20 89 diff --git a/krfb/krfb/manageinvitations.ui b/krfb/krfb/manageinvitations.ui index d6cfa41b..807ce195 100644 --- a/krfb/krfb/manageinvitations.ui +++ b/krfb/krfb/manageinvitations.ui @@ -38,7 +38,7 @@ Expanding - + 20 0 @@ -55,7 +55,7 @@ Expanding - + 0 20 diff --git a/krfb/krfb/personalinvitedialog.cc b/krfb/krfb/personalinvitedialog.cc index a5664bcb..245e0069 100644 --- a/krfb/krfb/personalinvitedialog.cc +++ b/krfb/krfb/personalinvitedialog.cc @@ -40,7 +40,7 @@ PersonalInviteDialog::PersonalInviteDialog( TQWidget *parent, const char *name ) void PersonalInviteDialog::setHost( const TQString &host, uint port ) { m_inviteWidget->hostLabel->setText( TQString( "%1:%2" ) - .arg( host ).arg( port ) ); + .tqarg( host ).tqarg( port ) ); } void PersonalInviteDialog::setPassword( const TQString &passwd ) diff --git a/krfb/krfb/personalinvitewidget.ui b/krfb/krfb/personalinvitewidget.ui index 9a4e3cd9..da8ce9d9 100644 --- a/krfb/krfb/personalinvitewidget.ui +++ b/krfb/krfb/personalinvitewidget.ui @@ -55,7 +55,7 @@ Give the information below to the person that you want to invite (<a href="wh Expanding - + 20 34 @@ -74,13 +74,13 @@ Give the information below to the person that you want to invite (<a href="wh 0 - + 108 318 - + 108 318 @@ -106,7 +106,7 @@ Give the information below to the person that you want to invite (<a href="wh Expanding - + 20 30 diff --git a/krfb/krfb/rfbcontroller.cc b/krfb/krfb/rfbcontroller.cc index d826ecfe..93dc5539 100644 --- a/krfb/krfb/rfbcontroller.cc +++ b/krfb/krfb/rfbcontroller.cc @@ -52,7 +52,7 @@ #include #include #include -#include +#include #include #include @@ -361,7 +361,7 @@ RFBController::RFBController(Configuration *c) : connect(&initIdleTimer, TQT_SIGNAL(timeout()), TQT_SLOT(checkAsyncEvents())); connect(&idleTimer, TQT_SIGNAL(timeout()), TQT_SLOT(idleSlot())); - clipboard = TQApplication::clipboard(); + clipboard = TQApplication::tqclipboard(); connect(clipboard, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(selectionChanged())); connect(clipboard, TQT_SIGNAL(dataChanged()), this, TQT_SLOT(clipboardChanged())); @@ -373,7 +373,7 @@ RFBController::RFBController(Configuration *c) : if (gethostname(hostname, 255)) hostname[0] = 0; hostname[255] = 0; - desktopName = i18n("%1@%2 (shared desktop)").arg(KUser().loginName()).arg(hostname); + desktopName = i18n("%1@%2 (shared desktop)").tqarg(KUser().loginName()).tqarg(hostname); } RFBController::~RFBController() @@ -508,7 +508,7 @@ void RFBController::acceptConnection(bool aRemoteControl) { KNotifyClient::event("UserAcceptsConnection", i18n("User accepts connection from %1") - .arg(remoteIp)); + .tqarg(remoteIp)); if (state != RFB_CONNECTING) return; @@ -521,7 +521,7 @@ void RFBController::refuseConnection() { KNotifyClient::event("UserRefusesConnection", i18n("User refuses connection from %1") - .arg(remoteIp)); + .tqarg(remoteIp)); if (state != RFB_CONNECTING) return; @@ -569,7 +569,7 @@ void RFBController::connectionClosed() { KNotifyClient::event("ConnectionClosed", i18n("Closed connection: %1.") - .arg(remoteIp)); + .tqarg(remoteIp)); idleTimer.stop(); initIdleTimer.stop(); @@ -698,12 +698,12 @@ bool RFBController::handleCheckPassword(rfbClientPtr cl, if (configuration->invitations().size() > 0) { sendKNotifyEvent("InvalidPasswordInvitations", i18n("Failed login attempt from %1: wrong password") - .arg(remoteIp)); + .tqarg(remoteIp)); } else sendKNotifyEvent("InvalidPassword", i18n("Failed login attempt from %1: wrong password") - .arg(remoteIp)); + .tqarg(remoteIp)); return FALSE; } @@ -739,7 +739,7 @@ enum rfbNewClientAction RFBController::handleNewClient(rfbClientPtr cl) if (state != RFB_WAITING) { sendKNotifyEvent("TooManyConnections", i18n("Connection refused from %1, already connected.") - .arg(host)); + .tqarg(host)); return RFB_CLIENT_REFUSE; } remoteIp = host; @@ -749,7 +749,7 @@ enum rfbNewClientAction RFBController::handleNewClient(rfbClientPtr cl) (configuration->invitations().size() == 0)) { sendKNotifyEvent("NewConnectionAutoAccepted", i18n("Accepted uninvited connection from %1") - .arg(remoteIp)); + .tqarg(remoteIp)); connectionAccepted(configuration->allowDesktopControl()); return RFB_CLIENT_ACCEPT; @@ -757,11 +757,11 @@ enum rfbNewClientAction RFBController::handleNewClient(rfbClientPtr cl) sendKNotifyEvent("NewConnectionOnHold", i18n("Received connection from %1, on hold (waiting for confirmation)") - .arg(remoteIp)); + .tqarg(remoteIp)); dialog.setRemoteHost(remoteIp); dialog.setAllowRemoteControl( true ); - dialog.setFixedSize(dialog.sizeHint()); + dialog.setFixedSize(dialog.tqsizeHint()); dialog.show(); return RFB_CLIENT_ON_HOLD; } diff --git a/krfb/krfb/trayicon.cpp b/krfb/krfb/trayicon.cpp index 14c94bc2..5878b633 100644 --- a/krfb/krfb/trayicon.cpp +++ b/krfb/krfb/trayicon.cpp @@ -101,7 +101,7 @@ void TrayIcon::showConnectedMessage(TQString host) { i18n("The remote user has been authenticated and is now connected."), trayIconOpen, this); - TQToolTip::add(this, i18n("Desktop Sharing - connected with %1").arg(host)); + TQToolTip::add(this, i18n("Desktop Sharing - connected with %1").tqarg(host)); } void TrayIcon::showDisconnectedMessage() { diff --git a/krfb/libvncserver/cursor.c b/krfb/libvncserver/cursor.c index a27a2fef..f13eaaf9 100644 --- a/krfb/libvncserver/cursor.c +++ b/krfb/libvncserver/cursor.c @@ -1,5 +1,5 @@ /* - * cursor.c - support for cursor shape updates. + * cursor.c - support for cursor tqshape updates. */ /* @@ -25,11 +25,11 @@ #include "rfb.h" /* - * Send cursor shape either in X-style format or in client pixel format. + * Send cursor tqshape either in X-style format or in client pixel format. */ Bool -rfbSendCursorShape(cl) +rfbSendtqCursorShape(cl) rfbClientPtr cl; { rfbCursorPtr pCursor; diff --git a/krfb/libvncserver/rfb.h b/krfb/libvncserver/rfb.h index e8dbfb65..56dce45e 100644 --- a/krfb/libvncserver/rfb.h +++ b/krfb/libvncserver/rfb.h @@ -535,10 +535,10 @@ typedef struct _rfbClientRec { Bool enableLastRectEncoding; /* client supports LastRect encoding */ Bool enableSoftCursorUpdates; /* client supports softcursor updates */ Bool disableBackground; /* client wants to disable background */ - Bool enableCursorShapeUpdates; /* client supports cursor shape updates */ + Bool enabletqCursorShapeUpdates; /* client supports cursor tqshape updates */ Bool useRichCursorEncoding; /* rfbEncodingRichCursor is preferred */ - Bool cursorWasChanged; /* cursor shape update should be sent */ - Bool cursorWasMoved; /* cursor move shape update should be sent */ + Bool cursorWasChanged; /* cursor tqshape update should be sent */ + Bool cursorWasMoved; /* cursor move tqshape update should be sent */ #ifdef BACKCHANNEL Bool enableBackChannel; #endif @@ -569,8 +569,8 @@ typedef struct _rfbClientRec { */ #define FB_UPDATE_PENDING(cl) \ - ((!(cl)->enableCursorShapeUpdates && !(cl)->screen->cursorIsDrawn) || \ - ((cl)->enableCursorShapeUpdates && (cl)->cursorWasChanged) || \ + ((!(cl)->enabletqCursorShapeUpdates && !(cl)->screen->cursorIsDrawn) || \ + ((cl)->enabletqCursorShapeUpdates && (cl)->cursorWasChanged) || \ !sraRgnEmpty((cl)->copyRegion) || !sraRgnEmpty((cl)->modifiedRegion)) /* @@ -733,7 +733,7 @@ typedef struct rfbCursor { unsigned char *richSource; /* source bytes for a rich cursor */ } rfbCursor, *rfbCursorPtr; -extern Bool rfbSendCursorShape(rfbClientPtr cl/*, rfbScreenInfoPtr pScreen*/); +extern Bool rfbSendtqCursorShape(rfbClientPtr cl/*, rfbScreenInfoPtr pScreen*/); extern Bool rfbSendSoftCursor(rfbClientPtr cl, Bool cursorWasChanged); extern unsigned char rfbReverseByte[0x100]; extern void rfbConvertLSBCursorBitmapOrMask(int width,int height,unsigned char* bitmap); diff --git a/krfb/libvncserver/rfbproto.h b/krfb/libvncserver/rfbproto.h index cd619dff..e511006e 100644 --- a/krfb/libvncserver/rfbproto.h +++ b/krfb/libvncserver/rfbproto.h @@ -30,7 +30,7 @@ * * All multiple byte integers are in big endian (network) order (most * significant byte first). Unless noted otherwise there is no special - * alignment of protocol structures. + * tqalignment of protocol structures. * * * Once the initial handshaking is done, all messages start with a type byte, @@ -56,7 +56,7 @@ /*----------------------------------------------------------------------------- * Structure used to specify a rectangle. This structure is a multiple of 4 * bytes so that it can be interspersed with 32-bit pixel data without - * affecting alignment. + * affecting tqalignment. */ typedef struct { @@ -306,7 +306,7 @@ typedef struct { /* * Special encoding numbers: * 0xFFFFFF00 .. 0xFFFFFF0F -- encoding-specific compression levels; - * 0xFFFFFF10 .. 0xFFFFFF1F -- mouse cursor shape data; + * 0xFFFFFF10 .. 0xFFFFFF1F -- mouse cursor tqshape data; * 0xFFFFFF20 .. 0xFFFFFF2F -- various protocol extensions; * 0xFFFFFF30 .. 0xFFFFFFDF -- not allocated yet; * 0xFFFFFFE0 .. 0xFFFFFFEF -- quality level for JPEG compressor; @@ -356,7 +356,7 @@ typedef struct { * This message consists of a header giving the number of rectangles of pixel * data followed by the rectangles themselves. The header is padded so that * together with the type byte it is an exact multiple of 4 bytes (to help - * with alignment of 32-bit pixels): + * with tqalignment of 32-bit pixels): */ typedef struct { @@ -517,7 +517,7 @@ typedef struct { /*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - * XCursor encoding. This is a special encoding used to transmit X-style - * cursor shapes from server to clients. Note that for this encoding, + * cursor tqshapes from server to clients. Note that for this encoding, * coordinates in rfbFramebufferUpdateRectHeader structure hold hotspot * position (r.x, r.y) and cursor size (r.w, r.h). If (w * h != 0), two RGB * samples are sent after header in the rfbXCursorColors structure. They @@ -548,7 +548,7 @@ typedef struct { /*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - * RichCursor encoding. This is a special encoding used to transmit cursor - * shapes from server to clients. It is similar to the XCursor encoding but + * tqshapes from server to clients. It is similar to the XCursor encoding but * uses client pixel format instead of two RGB colors to represent cursor * image. For this encoding, coordinates in rfbFramebufferUpdateRectHeader * structure hold hotspot position (r.x, r.y) and cursor size (r.w, r.h). diff --git a/krfb/libvncserver/rfbserver.c b/krfb/libvncserver/rfbserver.c index 66cc4ee3..22c9202d 100644 --- a/krfb/libvncserver/rfbserver.c +++ b/krfb/libvncserver/rfbserver.c @@ -270,7 +270,7 @@ rfbNewTCPOrUDPClient(rfbScreen,sock,isUDP) for (i = 0; i < 4; i++) cl->zsActive[i] = FALSE; - cl->enableCursorShapeUpdates = FALSE; + cl->enabletqCursorShapeUpdates = FALSE; cl->useRichCursorEncoding = FALSE; cl->enableLastRectEncoding = FALSE; cl->disableBackground = FALSE; @@ -663,7 +663,7 @@ rfbProcessClientNormalMessage(cl) cl->preferredEncoding = -1; cl->useCopyRect = FALSE; - cl->enableCursorShapeUpdates = FALSE; + cl->enabletqCursorShapeUpdates = FALSE; cl->enableLastRectEncoding = FALSE; cl->disableBackground = FALSE; @@ -729,7 +729,7 @@ rfbProcessClientNormalMessage(cl) if(!cl->screen->dontConvertRichCursorToXCursor) { rfbLog("Enabling X-style cursor updates for client %s\n", cl->host); - cl->enableCursorShapeUpdates = TRUE; + cl->enabletqCursorShapeUpdates = TRUE; cl->cursorWasChanged = TRUE; } break; @@ -738,7 +738,7 @@ rfbProcessClientNormalMessage(cl) "%s\n", cl->host); if (cl->enableSoftCursorUpdates) break; - cl->enableCursorShapeUpdates = TRUE; + cl->enabletqCursorShapeUpdates = TRUE; cl->useRichCursorEncoding = TRUE; cl->cursorWasChanged = TRUE; break; @@ -748,7 +748,7 @@ rfbProcessClientNormalMessage(cl) cl->enableSoftCursorUpdates = TRUE; cl->cursorWasChanged = TRUE; cl->cursorWasMoved = TRUE; - cl->enableCursorShapeUpdates = FALSE; + cl->enabletqCursorShapeUpdates = FALSE; cl->useRichCursorEncoding = FALSE; break; case rfbEncodingLastRect: @@ -959,24 +959,24 @@ rfbSendFramebufferUpdate(cl, givenUpdateRegion) rfbFramebufferUpdateMsg *fu = (rfbFramebufferUpdateMsg *)cl->updateBuf; sraRegionPtr updateRegion,updateCopyRegion,tmpRegion; int dx, dy; - Bool sendCursorShape = FALSE; + Bool sendtqCursorShape = FALSE; int sendSoftCursorRects = 0; if(cl->screen->displayHook) cl->screen->displayHook(cl); /* - * If this client understands cursor shape updates, cursor should be + * If this client understands cursor tqshape updates, cursor should be * removed from the framebuffer. Otherwise, make sure it's put up. */ - if (cl->enableCursorShapeUpdates) { + if (cl->enabletqCursorShapeUpdates) { if (cl->screen->cursorIsDrawn) { rfbUndrawCursor(cl->screen); } if (!cl->screen->cursorIsDrawn && cl->cursorWasChanged && cl->readyForSetColourMapEntries) - sendCursorShape = TRUE; + sendtqCursorShape = TRUE; } else if (cl->enableSoftCursorUpdates) { if (cl->screen->cursorIsDrawn) { @@ -1012,7 +1012,7 @@ rfbSendFramebufferUpdate(cl, givenUpdateRegion) updateRegion = sraRgnCreateRgn(givenUpdateRegion); sraRgnOr(updateRegion,cl->copyRegion); if(!sraRgnAnd(updateRegion,cl->requestedRegion) && - !(sendCursorShape || sendSoftCursorRects)) { + !(sendtqCursorShape || sendSoftCursorRects)) { sraRgnDestroy(updateRegion); UNLOCK(cl->updateMutex); return TRUE; @@ -1113,15 +1113,15 @@ rfbSendFramebufferUpdate(cl, givenUpdateRegion) if (nUpdateRegionRects != 0xFFFF) { fu->nRects = Swap16IfLE((CARD16)(sraRgnCountRects(updateCopyRegion) + nUpdateRegionRects - + !!sendCursorShape + sendSoftCursorRects)); + + !!sendtqCursorShape + sendSoftCursorRects)); } else { fu->nRects = 0xFFFF; } cl->ublen = sz_rfbFramebufferUpdateMsg; - if (sendCursorShape) { + if (sendtqCursorShape) { cl->cursorWasChanged = FALSE; - if (!rfbSendCursorShape(cl)) { + if (!rfbSendtqCursorShape(cl)) { sraRgnDestroy(updateRegion); return FALSE; } diff --git a/krfb/libvncserver/stats.c b/krfb/libvncserver/stats.c index 954e6d14..86934011 100644 --- a/krfb/libvncserver/stats.c +++ b/krfb/libvncserver/stats.c @@ -82,7 +82,7 @@ rfbPrintStats(rfbClientPtr cl) cl->rfbLastRectMarkersSent, cl->rfbLastRectBytesSent); if (cl->rfbCursorUpdatesSent != 0) - rfbLog(" cursor shape updates %d, bytes %d\n", + rfbLog(" cursor tqshape updates %d, bytes %d\n", cl->rfbCursorUpdatesSent, cl->rfbCursorBytesSent); for (i = 0; i < MAX_ENCODINGS; i++) { diff --git a/krfb/libvncserver/zlib.c b/krfb/libvncserver/zlib.c index 5661d265..d1b300b0 100644 --- a/krfb/libvncserver/zlib.c +++ b/krfb/libvncserver/zlib.c @@ -89,7 +89,7 @@ rfbSendOneRectEncodingZlib(cl, x, y, w, h) int result; /* The translation function (used also by the in raw encoding) - * requires 4/2/1 byte alignment in the output buffer (which is + * requires 4/2/1 byte tqalignment in the output buffer (which is * updateBuf for the raw encoding) based on the bitsPerPixel of * the viewer/client. This prevents SIGBUS errors on some * architectures like SPARC, PARISC... diff --git a/krfb/srvloc/kserviceregistry.cpp b/krfb/srvloc/kserviceregistry.cpp index 1dd57881..eac3ac18 100644 --- a/krfb/srvloc/kserviceregistry.cpp +++ b/krfb/srvloc/kserviceregistry.cpp @@ -119,7 +119,7 @@ bool KServiceRegistry::registerService(const TQString &serviceURL, while (it != attributes.end()) { if (!s.isEmpty()) s += ","; - s += TQString("(%1=%2)").arg(it.key()).arg(it.data()); + s += TQString("(%1=%2)").tqarg(it.key()).tqarg(it.data()); it++; } return registerService(serviceURL, s, lifetime); diff --git a/krfb/srvloc/kserviceregistry.h b/krfb/srvloc/kserviceregistry.h index ad2c0b1a..05e88780 100644 --- a/krfb/srvloc/kserviceregistry.h +++ b/krfb/srvloc/kserviceregistry.h @@ -78,7 +78,7 @@ class KServiceRegistryPrivate; *
  *   KServiceRegistry ksr;
  *   KInetAddress kia = KInetAddress->getLocalAddress();
- *   ksr.registerService(TQString("service:remotedesktop.kde:vnc://%1:0").arg(kia->nodeName()),
+ *   ksr.registerService(TQString("service:remotedesktop.kde:vnc://%1:0").tqarg(kia->nodeName()),
  *                       "(type=shared)");
  *   delete kia;
  * 
diff --git a/ksirc/FilterRuleEditor.cpp b/ksirc/FilterRuleEditor.cpp index 76fd1190..76a6a2ef 100644 --- a/ksirc/FilterRuleEditor.cpp +++ b/ksirc/FilterRuleEditor.cpp @@ -132,7 +132,7 @@ void FilterRuleEditor::updateListBox(int citem ) } if(filter->RuleList->count() > 0) filter->RuleList->setCurrentItem(citem); - filter->RuleList->repaint(); + filter->RuleList->tqrepaint(); filter->DeleteButton->setEnabled( filter->RuleList->currentItem() > -1 ); filter->ModifyButton->setEnabled( filter->RuleList->currentItem() > -1 ); diff --git a/ksirc/FilterRuleEditor.dlg b/ksirc/FilterRuleEditor.dlg index 5461d839..bbfa72e2 100644 --- a/ksirc/FilterRuleEditor.dlg +++ b/ksirc/FilterRuleEditor.dlg @@ -24,7 +24,7 @@ Label { Margin {-1} Rect {140 10 80 30} Name {Label_1} - LayoutStatus {NoLayout} + LayouttqStatus {NoLayout} MinimumSize {0 0} MaximumSize {32767 32767} } @@ -36,7 +36,7 @@ LineEdit { Rect {220 10 280 30} Name {LineEdit_1} Variable {LineTitle} - LayoutStatus {NoLayout} + LayouttqStatus {NoLayout} MinimumSize {0 0} MaximumSize {32767 32767} } @@ -46,7 +46,7 @@ Label { Margin {-1} Rect {140 50 70 30} Name {Label_4} - LayoutStatus {NoLayout} + LayouttqStatus {NoLayout} MinimumSize {0 0} MaximumSize {32767 32767} } @@ -58,7 +58,7 @@ LineEdit { Rect {220 50 280 30} Name {LineEdit_2} Variable {LineSearch} - LayoutStatus {NoLayout} + LayouttqStatus {NoLayout} MinimumSize {0 0} MaximumSize {32767 32767} } @@ -68,7 +68,7 @@ Label { Margin {-1} Rect {140 90 80 30} Name {Label_7} - LayoutStatus {NoLayout} + LayouttqStatus {NoLayout} MinimumSize {0 0} MaximumSize {32767 32767} } @@ -78,7 +78,7 @@ Label { Margin {-1} Rect {140 130 70 30} Name {Label_9} - LayoutStatus {NoLayout} + LayouttqStatus {NoLayout} MinimumSize {0 0} MaximumSize {32767 32767} } @@ -90,7 +90,7 @@ LineEdit { Rect {220 90 280 30} Name {LineEdit_3} Variable {LineFrom} - LayoutStatus {NoLayout} + LayouttqStatus {NoLayout} MinimumSize {0 0} MaximumSize {32767 32767} } @@ -102,7 +102,7 @@ LineEdit { Rect {220 130 280 30} Name {LineEdit_4} Variable {LineTo} - LayoutStatus {NoLayout} + LayouttqStatus {NoLayout} MinimumSize {0 0} MaximumSize {32767 32767} } @@ -117,7 +117,7 @@ PushButton { Name {PushButton_1} Variable {ApplyButton} Signal {[Protected] clicked --> OkPressed ()} - LayoutStatus {NoLayout} + LayouttqStatus {NoLayout} MinimumSize {10 10} MaximumSize {32767 32767} } @@ -131,7 +131,7 @@ PushButton { Rect {390 210 110 30} Name {PushButton_2} Signal {[Protected] clicked --> closePressed ()} - LayoutStatus {NoLayout} + LayouttqStatus {NoLayout} MinimumSize {10 10} MaximumSize {32767 32767} } @@ -145,7 +145,7 @@ PushButton { Rect {270 170 110 30} Name {PushButton_7} Signal {[Protected] clicked --> newRule ()} - LayoutStatus {NoLayout} + LayouttqStatus {NoLayout} MinimumSize {10 10} MaximumSize {32767 32767} } @@ -160,7 +160,7 @@ PushButton { Name {PushButton_8} Variable {deleteButton} Signal {[Protected] clicked --> deleteRule ()} - LayoutStatus {NoLayout} + LayouttqStatus {NoLayout} MinimumSize {10 10} MaximumSize {32767 32767} } @@ -174,7 +174,7 @@ PushButton { Rect {10 210 55 30} Name {PushButton_9} Signal {[Protected] clicked --> raiseRule ()} - LayoutStatus {NoLayout} + LayouttqStatus {NoLayout} MinimumSize {10 10} MaximumSize {32767 32767} } @@ -188,7 +188,7 @@ PushButton { Rect {75 210 55 30} Name {PushButton_10} Signal {[Protected] clicked --> lowerRule ()} - LayoutStatus {NoLayout} + LayouttqStatus {NoLayout} MinimumSize {10 10} MaximumSize {32767 32767} } @@ -208,7 +208,7 @@ ListBox { Variable {RuleList} Signal {[Protected] highlighted --> newHighlight (int)} Signal {[Protected] selected --> newHighlight (int)} - LayoutStatus {NoLayout} + LayouttqStatus {NoLayout} MinimumSize {10 10} MaximumSize {32767 32767} } diff --git a/ksirc/KSOpenkSirc/open_ksirc.cpp b/ksirc/KSOpenkSirc/open_ksirc.cpp index 54d1f7f9..423e90c0 100644 --- a/ksirc/KSOpenkSirc/open_ksirc.cpp +++ b/ksirc/KSOpenkSirc/open_ksirc.cpp @@ -233,7 +233,7 @@ TQString open_ksirc::encryptPassword( const TQString &password ) memcpy(result.data(), kapp->randomString(utf8Length).latin1(), utf8Length); for (unsigned int i = 0; i < utf8Length; ++i) result[i + utf8Length] = utf8[i] ^ result[i]; - return TQString::fromLatin1(KCodecs::base64Encode(result)); + return TQString::tqfromLatin1(KCodecs::base64Encode(result)); } TQString open_ksirc::decryptPassword( const TQString &scrambled ) diff --git a/ksirc/KSOpenkSirc/open_ksircData.ui b/ksirc/KSOpenkSirc/open_ksircData.ui index 24dcccd7..0bc3374d 100644 --- a/ksirc/KSOpenkSirc/open_ksircData.ui +++ b/ksirc/KSOpenkSirc/open_ksircData.ui @@ -134,7 +134,7 @@ 0
- + WordBreak|AlignTop|AlignLeft @@ -280,7 +280,7 @@ Expanding - + 20 20 diff --git a/ksirc/KSPrefs/ksprefs.cpp b/ksirc/KSPrefs/ksprefs.cpp index 181d6e68..40ccc56f 100644 --- a/ksirc/KSPrefs/ksprefs.cpp +++ b/ksirc/KSPrefs/ksprefs.cpp @@ -7,7 +7,7 @@ * * ***************************************************************************/ -#include +#include #include #include diff --git a/ksirc/KSPrefs/page_autoconnect.cpp b/ksirc/KSPrefs/page_autoconnect.cpp index 1b311682..49920e42 100644 --- a/ksirc/KSPrefs/page_autoconnect.cpp +++ b/ksirc/KSPrefs/page_autoconnect.cpp @@ -59,7 +59,7 @@ void PageAutoConnect::saveConfig() if(it->text(SSL).length() > 0) server += " (SSL)"; if(it->text(PASS).length() > 0) - server += TQString(" (pass: %1)").arg(it->text(PASS)); + server += TQString(" (pass: %1)").tqarg(it->text(PASS)); servers << server; @@ -73,7 +73,7 @@ void PageAutoConnect::saveConfig() channel = ch->text(NAME); if(ch->text(PK).length() > 0) - channel += TQString(" (key: %1)").arg(ch->text(PK)); + channel += TQString(" (key: %1)").tqarg(ch->text(PK)); channels << channel; @@ -183,7 +183,7 @@ void PageAutoConnect::add_pressed() } parent->setText(NAME, ServerLE->text()); - parent->setText(PK, TQString("%1").arg(PortKI->value())); + parent->setText(PK, TQString("%1").tqarg(PortKI->value())); parent->setText(PASS, PassLE->text()); if(sslCB->isChecked()) parent->setText(SSL, i18n("SSL")); diff --git a/ksirc/KSPrefs/page_autoconnectbase.ui b/ksirc/KSPrefs/page_autoconnectbase.ui index dae19a85..3f9943c4 100644 --- a/ksirc/KSPrefs/page_autoconnectbase.ui +++ b/ksirc/KSPrefs/page_autoconnectbase.ui @@ -90,7 +90,7 @@ - layout13 + tqlayout13 @@ -98,7 +98,7 @@ - layout9 + tqlayout9 @@ -121,7 +121,7 @@ - layout12 + tqlayout12 @@ -147,7 +147,7 @@ - layout11 + tqlayout11 @@ -170,7 +170,7 @@ - layout15 + tqlayout15 @@ -201,7 +201,7 @@ - layout12 + tqlayout12 @@ -209,7 +209,7 @@ - layout3 + tqlayout3 @@ -235,7 +235,7 @@ - layout9 + tqlayout9 @@ -263,7 +263,7 @@ - layout17 + tqlayout17 diff --git a/ksirc/KSPrefs/page_colorsbase.ui b/ksirc/KSPrefs/page_colorsbase.ui index e793d755..9c14536f 100644 --- a/ksirc/KSPrefs/page_colorsbase.ui +++ b/ksirc/KSPrefs/page_colorsbase.ui @@ -113,7 +113,7 @@ genericTextCBtn - + 60 32767 @@ -144,7 +144,7 @@ Expanding - + 20 20 @@ -155,7 +155,7 @@ linkCBtn - + 60 32767 @@ -169,7 +169,7 @@ backCBtn - + 60 32767 @@ -183,7 +183,7 @@ errorCBtn - + 60 32767 @@ -208,7 +208,7 @@ infoCBtn - + 60 32767 @@ -222,7 +222,7 @@ chanMsgCBtn - + 60 32767 @@ -236,7 +236,7 @@ selBackCBtn - + 60 32767 @@ -250,7 +250,7 @@ selForeCBtn - + 60 32767 @@ -336,7 +336,7 @@ Expanding - + 21 40 @@ -384,7 +384,7 @@ ownNickCBtn - + 60 32767 @@ -428,7 +428,7 @@ Expanding - + 202 20 @@ -490,13 +490,13 @@ nickFGCBtn - + 0 0 - + 60 32767 @@ -524,7 +524,7 @@ false - + 60 32767 @@ -544,7 +544,7 @@ Expanding - + 83 21 @@ -566,7 +566,7 @@ - layout12 + tqlayout12 @@ -587,7 +587,7 @@ ownContainNickCBtn - + 60 32767 @@ -607,7 +607,7 @@ Expanding - + 169 21 @@ -618,7 +618,7 @@ - layout11 + tqlayout11 @@ -644,7 +644,7 @@ msg1CBtn - + 60 32767 @@ -672,7 +672,7 @@ Expanding - + 104 21 @@ -683,7 +683,7 @@ - layout10 + tqlayout10 @@ -709,7 +709,7 @@ msg2CBtn - + 60 32767 @@ -737,7 +737,7 @@ Expanding - + 104 21 @@ -797,7 +797,7 @@ Expanding - + 21 20 @@ -816,7 +816,7 @@ Expanding - + 31 16 diff --git a/ksirc/KSPrefs/page_font.cpp b/ksirc/KSPrefs/page_font.cpp index 5ea0dd9b..d320a3f5 100644 --- a/ksirc/KSPrefs/page_font.cpp +++ b/ksirc/KSPrefs/page_font.cpp @@ -3,9 +3,9 @@ PageFont::PageFont( TQWidget *parent, const char *name ) : TQWidget( parent, name) { - layout = new TQHBoxLayout(this); + tqlayout = new TQHBoxLayout(this); fontchooser = new KFontChooser(this); - layout->addWidget(fontchooser); + tqlayout->addWidget(fontchooser); connect(fontchooser,TQT_SIGNAL(fontSelected ( const TQFont&)), this, TQT_SLOT(update())); } @@ -21,7 +21,7 @@ void PageFont::update( void ){ void PageFont::saveConfig( void ) { ksopts->defaultFont = fontchooser->font(); - TQApplication::setFont(fontchooser->font(), true, "KSirc::TextView" ); + TQApplication::tqsetFont(fontchooser->font(), true, "KSirc::TextView" ); } void PageFont::readConfig( const KSOColors * opts ) diff --git a/ksirc/KSPrefs/page_font.h b/ksirc/KSPrefs/page_font.h index c5fbe44d..fcda96f2 100644 --- a/ksirc/KSPrefs/page_font.h +++ b/ksirc/KSPrefs/page_font.h @@ -1,7 +1,7 @@ #ifndef _PAGE_FONT #define _PAGE_FONT #include // For the font selection widget -#include // For the layout +#include // For the tqlayout #include "ksopts.h" // For storing the info. /** @@ -57,7 +57,7 @@ class PageFont : public TQWidget private: KFontChooser* fontchooser; /** The font choosing widget from kdelib */ - TQHBoxLayout* layout; + TQHBoxLayout* tqlayout; }; #endif diff --git a/ksirc/KSPrefs/page_generalbase.ui b/ksirc/KSPrefs/page_generalbase.ui index 839c0f59..e5811a1a 100644 --- a/ksirc/KSPrefs/page_generalbase.ui +++ b/ksirc/KSPrefs/page_generalbase.ui @@ -12,7 +12,7 @@ 489 - + 425 0 @@ -69,7 +69,7 @@ historyItemsLabel - + 120 32767 @@ -230,7 +230,7 @@ Expanding - + 16 21 @@ -357,7 +357,7 @@ - layout2 + tqlayout2 @@ -393,7 +393,7 @@ Expanding - + 31 71 diff --git a/ksirc/KSPrefs/page_irccolorsbase.ui b/ksirc/KSPrefs/page_irccolorsbase.ui index ae87e929..b83b9b05 100644 --- a/ksirc/KSPrefs/page_irccolorsbase.ui +++ b/ksirc/KSPrefs/page_irccolorsbase.ui @@ -71,7 +71,7 @@ CBtn_1 - + 60 32767 @@ -137,7 +137,7 @@ 0 - + 60 32767 @@ -187,7 +187,7 @@ CBtn_2 - + 60 32767 @@ -237,7 +237,7 @@ CBtn_4 - + 60 32767 @@ -279,7 +279,7 @@ CBtn_3 - + 60 32767 @@ -321,7 +321,7 @@ CBtn_5 - + 60 32767 @@ -363,7 +363,7 @@ CBtn_6 - + 60 32767 @@ -405,7 +405,7 @@ CBtn_7 - + 60 32767 @@ -516,7 +516,7 @@ Expanding - + 31 41 @@ -629,7 +629,7 @@ CBtn_8 - + 60 32767 @@ -643,7 +643,7 @@ CBtn_9 - + 60 32767 @@ -657,7 +657,7 @@ CBtn_10 - + 60 32767 @@ -671,7 +671,7 @@ CBtn_11 - + 60 32767 @@ -685,7 +685,7 @@ CBtn_12 - + 60 32767 @@ -699,7 +699,7 @@ CBtn_13 - + 60 32767 @@ -713,7 +713,7 @@ CBtn_14 - + 60 32767 @@ -727,7 +727,7 @@ CBtn_15 - + 60 32767 @@ -1043,7 +1043,7 @@ Expanding - + 21 121 diff --git a/ksirc/KSPrefs/page_looknfeelbase.ui b/ksirc/KSPrefs/page_looknfeelbase.ui index 5b366680..49688ab9 100644 --- a/ksirc/KSPrefs/page_looknfeelbase.ui +++ b/ksirc/KSPrefs/page_looknfeelbase.ui @@ -12,7 +12,7 @@ 452 - + 425 450 @@ -61,7 +61,7 @@ Expanding - + 20 31 @@ -92,7 +92,7 @@ Expanding - + 20 31 @@ -106,7 +106,7 @@ Choose your favorite window mode: - + WordBreak|AlignVCenter|AlignLeft @@ -132,13 +132,13 @@ Frame3 - + 120 120 - + 120 120 @@ -198,13 +198,13 @@ wallpaperPathLE - + 100 25 - + 32767 30 @@ -217,13 +217,13 @@ Frame3_2 - + 120 120 - + 120 120 @@ -264,7 +264,7 @@ Expanding - + 51 1 diff --git a/ksirc/KSPrefs/page_rmbmenubase.ui b/ksirc/KSPrefs/page_rmbmenubase.ui index 1073d179..09fbef0d 100644 --- a/ksirc/KSPrefs/page_rmbmenubase.ui +++ b/ksirc/KSPrefs/page_rmbmenubase.ui @@ -26,7 +26,7 @@ explLabel - + 32767 32767 @@ -41,7 +41,7 @@ This page allows configuration of the RMB Menu for the nicklist located on the right. You can define names for certain actions. Look at the predefined commands to learn how it works. - + WordBreak|AlignVCenter|AlignLeft @@ -133,7 +133,7 @@ Expanding - + 20 20 @@ -161,7 +161,7 @@ false - + 32767 32767 @@ -178,7 +178,7 @@ false - + 32767 32767 @@ -200,7 +200,7 @@ Fixed - + 10 21 diff --git a/ksirc/KSPrefs/page_shortcuts.cpp b/ksirc/KSPrefs/page_shortcuts.cpp index 6947f97b..6dce178b 100644 --- a/ksirc/KSPrefs/page_shortcuts.cpp +++ b/ksirc/KSPrefs/page_shortcuts.cpp @@ -7,7 +7,7 @@ * * ***************************************************************************/ -#include +#include #include #include @@ -22,7 +22,7 @@ PageShortcuts::PageShortcuts( TQWidget *parent, const char *name ) : PageShortcu m_key = new KKeyChooser(servercontroller::self()->getGlobalAccel(), globalGB); connect(m_key, TQT_SIGNAL(keyChange()), this, TQT_SLOT(changed())); - globalGB->layout()->add(m_key); + globalGB->tqlayout()->add(m_key); } PageShortcuts::~PageShortcuts() diff --git a/ksirc/KSPrefs/page_shortcutsbase.ui b/ksirc/KSPrefs/page_shortcutsbase.ui index ca76ff9b..1c40bdca 100644 --- a/ksirc/KSPrefs/page_shortcutsbase.ui +++ b/ksirc/KSPrefs/page_shortcutsbase.ui @@ -12,7 +12,7 @@ 452 - + 425 450 diff --git a/ksirc/KSPrefs/page_startupbase.ui b/ksirc/KSPrefs/page_startupbase.ui index 629e3d30..42dfefeb 100644 --- a/ksirc/KSPrefs/page_startupbase.ui +++ b/ksirc/KSPrefs/page_startupbase.ui @@ -42,7 +42,7 @@ nickGB - + 32767 32767 diff --git a/ksirc/KSProgress/ksprogress.cpp b/ksirc/KSProgress/ksprogress.cpp index ccf3b194..361c171c 100644 --- a/ksirc/KSProgress/ksprogress.cpp +++ b/ksirc/KSProgress/ksprogress.cpp @@ -39,7 +39,7 @@ void KSProgress::setTopText(TQString text) void KSProgress::setBotText(TQString text) { - transferStatus->setText(text); + transfertqStatus->setText(text); } void KSProgress::setValue(int value) diff --git a/ksirc/KSProgress/ksprogress.dlg b/ksirc/KSProgress/ksprogress.dlg index 5484c4d6..4d1b065d 100644 --- a/ksirc/KSProgress/ksprogress.dlg +++ b/ksirc/KSProgress/ksprogress.dlg @@ -124,7 +124,7 @@ - layout2 + tqlayout2 diff --git a/ksirc/dccMgrTest.cpp b/ksirc/dccMgrTest.cpp index ac2b76cb..b37a8795 100644 --- a/ksirc/dccMgrTest.cpp +++ b/ksirc/dccMgrTest.cpp @@ -19,7 +19,7 @@ public: } void timerEvent( TQTimerEvent * ) { - m_it->changeStatus(dccItem::dccSending); + m_it->changetqStatus(dccItem::dccSending); bytes += 1000; m_it->setReceivedBytes(bytes); diff --git a/ksirc/dccNew.cpp b/ksirc/dccNew.cpp index fef6b27b..871c044d 100644 --- a/ksirc/dccNew.cpp +++ b/ksirc/dccNew.cpp @@ -31,7 +31,7 @@ dccNew::dccNew( TQWidget *parent, const char *name, int type, TQString nick ) : dccNewBase( parent, name) { - TQColorGroup cg_mainw = kapp->palette().active(); + TQColorGroup cg_mainw = kapp->tqpalette().active(); cg_mainw.setColor(TQColorGroup::Base, ksopts->backgroundColor); cg_mainw.setColor(TQColorGroup::Text, ksopts->textColor); cg_mainw.setColor(TQColorGroup::Link, ksopts->linkColor); diff --git a/ksirc/dccNewbase.ui b/ksirc/dccNewbase.ui index 8c6e9fef..661ed5f5 100644 --- a/ksirc/dccNewbase.ui +++ b/ksirc/dccNewbase.ui @@ -63,7 +63,7 @@ Expanding - + 51 20 @@ -87,7 +87,7 @@ nickList - + 0 100 @@ -108,7 +108,7 @@ gbFile - + 0 0 @@ -141,7 +141,7 @@ - layout1 + tqlayout1 diff --git a/ksirc/displayMgrMDI.cpp b/ksirc/displayMgrMDI.cpp index d554004a..b7bbf16c 100644 --- a/ksirc/displayMgrMDI.cpp +++ b/ksirc/displayMgrMDI.cpp @@ -178,7 +178,7 @@ void DisplayMgrMDI::reparentReq() { kdDebug(5008) << "got reparent" << endl; - TQWidget *o = kapp->focusWidget(); + TQWidget *o = kapp->tqfocusWidget(); TQWidget *s; if(o == NULL){ diff --git a/ksirc/dockservercontroller.cpp b/ksirc/dockservercontroller.cpp index 7deb5b2f..bd669edb 100644 --- a/ksirc/dockservercontroller.cpp +++ b/ksirc/dockservercontroller.cpp @@ -98,7 +98,7 @@ dockServerController::dockServerController(servercontroller *sc, TQWidget *paren m_blinkTimer = new TQTimer( this ); connect( m_blinkTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT( blinkDockedIcon() ) ); - m_blinkStatus = false; + m_blinktqStatus = false; m_blinkActive = false; servercontroller::self() @@ -316,14 +316,14 @@ void dockServerController::startBlink(const TQString& reason, const TQString& te if(m_blinkActive == false){ // change icon (to "someone's talking to you" icon) setPixmap( m_pic_info ); - m_blinkStatus = true; + m_blinktqStatus = true; m_blinkActive = true; m_blinkTimer->start( 500 ); // half a second } if(!reason.isNull()){ TQString br(reason); if(text.isNull() && ksopts->runDocked && ksopts->dockPopups) - KPassivePopup::message(TQString("Notify: %1").arg(reason), this); + KPassivePopup::message(TQString("Notify: %1").tqarg(reason), this); else { TQStringList sl; TQString cutup = text; @@ -338,7 +338,7 @@ void dockServerController::startBlink(const TQString& reason, const TQString& te cutup = sl.join("\n"); cutup.truncate(cutup.length()-1); if(ksopts->runDocked && ksopts->dockPopups) - KPassivePopup::message(TQString("%1").arg(reason), cutup, this); + KPassivePopup::message(TQString("%1").tqarg(reason), cutup, this); } m_blink_reason.append(br); createMainPopup(); @@ -395,8 +395,8 @@ void dockServerController::raiseLastActiveWindow() void dockServerController::blinkDockedIcon() { - m_blinkStatus = !m_blinkStatus; - setPixmap( m_blinkStatus ? m_pic_info : m_pic_dock ); + m_blinktqStatus = !m_blinktqStatus; + setPixmap( m_blinktqStatus ? m_pic_info : m_pic_dock ); } void dockServerController::helpNotice() diff --git a/ksirc/dockservercontroller.h b/ksirc/dockservercontroller.h index 94f13674..51020fdd 100644 --- a/ksirc/dockservercontroller.h +++ b/ksirc/dockservercontroller.h @@ -36,7 +36,7 @@ public: void setOffline() { m_status = isOffline; m_offline = TQTime::currentTime(); } const TQTime offline() { return m_offline; } - void setStatus(enum status stat) { m_status = stat; } + void settqStatus(enum status stat) { m_status = stat; } enum status status() { return m_status; } private: @@ -100,7 +100,7 @@ private: bool m_mainPopVisible; bool m_blinkActive; - bool m_blinkStatus; // true: blue icon, false: normal icon + bool m_blinktqStatus; // true: blue icon, false: normal icon TQTimer* m_blinkTimer; TQStringList m_blink_reason; diff --git a/ksirc/ioBroadcast.cpp b/ksirc/ioBroadcast.cpp index b36e4420..ef0fa33b 100644 --- a/ksirc/ioBroadcast.cpp +++ b/ksirc/ioBroadcast.cpp @@ -5,7 +5,7 @@ $$Id$$ The IO broadcaster bassed on the ksircmessage receiver takes a - message and send it all ksircmessage receivers, except of course it + message and send it all ksircmessage tqreceivers, except of course it self. It does the same with control_messages. diff --git a/ksirc/ioDCC.cpp b/ksirc/ioDCC.cpp index f994cfa7..7f601ace 100644 --- a/ksirc/ioDCC.cpp +++ b/ksirc/ioDCC.cpp @@ -61,7 +61,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool ) if(str.find("DCC GET read:", 0) != -1){ /*fold01*/ TQRegExp rx("read: (.+) who: (.+) bytes: (.*)"); if(rx.search(str)){ - TQString key = TQString("%1/%2").arg(rx.cap(1)).arg(rx.cap(2)); + TQString key = TQString("%1/%2").tqarg(rx.cap(1)).tqarg(rx.cap(2)); uint bytesXfer = rx.cap(3).toUInt(); // @@ -76,7 +76,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool ) else if(str.find("DCC SEND write:", 0) != -1){ /*fold01*/ TQRegExp rx("write: (.+) who: (.+) bytes: (.*)"); if(rx.search(str)){ - TQString key = TQString("%1/%2").arg(rx.cap(1)).arg(rx.cap(2)); + TQString key = TQString("%1/%2").tqarg(rx.cap(1)).tqarg(rx.cap(2)); uint bytesXfer = rx.cap(3).toUInt(); if(DCCSendItems[key]){ @@ -103,7 +103,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool ) this, TQT_SLOT(dccRenameDone(dccItem *, TQString, TQString))); it->setWhoPostfix("(" + ip + ")"); - TQString key = TQString("%1/%2").arg(filename).arg(who); + TQString key = TQString("%1/%2").tqarg(filename).tqarg(who); if(DCCGetItems[key]){ /* * don't add duplicates, this cuases real headaches @@ -113,11 +113,11 @@ void KSircIODCC::sirc_receive(TQCString str, bool ) dccItem *old = DCCGetItems.take(key); int i; for(i = 0; i <= (int) DCCGetItems.count()+1; i++){ - renamed = TQString("%1 (finished %2)/%3").arg(filename).arg(i+1).arg(old->who()); + renamed = TQString("%1 (finished %2)/%3").tqarg(filename).tqarg(i+1).tqarg(old->who()); if( DCCGetItems[renamed] == 0x0) break; } - old->changeFilename(TQString("%1 (finished %2)").arg(filename).arg(i+1)); + old->changeFilename(TQString("%1 (finished %2)").tqarg(filename).tqarg(i+1)); DCCGetItems.insert(renamed, it); } @@ -139,7 +139,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool ) // setup dcc dialog displayMgr->show(mgr); dccItem *it = mgr->mgr()->newSendItem(filename, who, dccItem::dccSentOffer, fileSize); - TQString key = TQString("%1/%2").arg(filename).arg(who); + TQString key = TQString("%1/%2").tqarg(filename).tqarg(who); if(DCCSendItems[key]){ /* * don't add duplicates, this cuases real headaches @@ -151,11 +151,11 @@ void KSircIODCC::sirc_receive(TQCString str, bool ) dccItem *old = DCCSendItems.take(key); int i; for(i = 0; i <= (int) DCCSendItems.count()+1; i++){ - renamed = TQString("%1 (sent %2)/%3").arg(filename).arg(i+1).arg(old->who()); + renamed = TQString("%1 (sent %2)/%3").tqarg(filename).tqarg(i+1).tqarg(old->who()); if( DCCSendItems[renamed] == 0x0) break; } - old->changeFilename(TQString("%1 (sent %2)").arg(filename).arg(i+1)); + old->changeFilename(TQString("%1 (sent %2)").tqarg(filename).tqarg(i+1)); DCCSendItems.insert(renamed, it); } DCCSendItems.insert(key, it); @@ -204,21 +204,21 @@ void KSircIODCC::sirc_receive(TQCString str, bool ) TQString who = rx.cap(1); TQString filename = rx.cap(2); TQString error = rx.cap(3); - enum dccItem::dccStatus status = dccItem::dccDone; + enum dccItem::dcctqStatus status = dccItem::dccDone; if(error == "CLOSE"){ status = dccItem::dccCancel; } if(error != "OK"){ status = dccItem::dccError; - KPassivePopup::message(i18n("DCC SEND with %1 for %2 failed because of %3").arg(who).arg(filename).arg(error), mgr->mgr()); + KPassivePopup::message(i18n("DCC SEND with %1 for %2 failed because of %3").tqarg(who).tqarg(filename).tqarg(error), mgr->mgr()); } - TQString key = TQString("%1/%2").arg(filename).arg(who); + TQString key = TQString("%1/%2").tqarg(filename).tqarg(who); if(DCCSendItems[key]){ kdDebug(5008) << "SendPercent: " << DCCSendItems[key]->getPercent() << endl; if((status == dccItem::dccDone) && (DCCSendItems[key]->getPercent() < 100)) status = dccItem::dccError; - DCCSendItems[key]->changeStatus(status); + DCCSendItems[key]->changetqStatus(status); } } } @@ -229,18 +229,18 @@ void KSircIODCC::sirc_receive(TQCString str, bool ) TQString who = rx.cap(1); TQString filename = rx.cap(2); TQString error = rx.cap(3); - enum dccItem::dccStatus status = dccItem::dccDone; + enum dccItem::dcctqStatus status = dccItem::dccDone; if(error != "OK"){ status = dccItem::dccError; - KPassivePopup::message(i18n("DCC GET with %1 for %2 failed because of %3").arg(who).arg(filename).arg(error), mgr->mgr()); + KPassivePopup::message(i18n("DCC GET with %1 for %2 failed because of %3").tqarg(who).tqarg(filename).tqarg(error), mgr->mgr()); } - TQString key = TQString("%1/%2").arg(filename).arg(who); + TQString key = TQString("%1/%2").tqarg(filename).tqarg(who); if(DCCGetItems[key]){ kdDebug(5008) << "GetPercent: " << DCCGetItems[key]->getPercent() << endl; if((status == dccItem::dccDone) && (DCCGetItems[key]->getPercent() < 100)) status = dccItem::dccError; - DCCGetItems[key]->changeStatus(status); + DCCGetItems[key]->changetqStatus(status); } } else { @@ -252,13 +252,13 @@ void KSircIODCC::sirc_receive(TQCString str, bool ) if(rx.search(str)){ TQString who = rx.cap(1); TQString filename = rx.cap(2); - TQString key = TQString("%1/%2").arg(filename).arg(who); + TQString key = TQString("%1/%2").tqarg(filename).tqarg(who); if(DCCGetItems[key]){ dccItem *it = DCCGetItems[key]; kdDebug(5008) << "Got DCC GET resumed message..." << it->file() << endl; if(it->status() == dccItem::dccWaitOnResume) dccConnectClicked(it); - it->changeStatus(dccItem::dccResumed); + it->changetqStatus(dccItem::dccResumed); } } } @@ -267,9 +267,9 @@ void KSircIODCC::sirc_receive(TQCString str, bool ) if(rx.search(str)){ TQString who = rx.cap(1); TQString filename = rx.cap(2); - TQString key = TQString("%1/%2").arg(filename).arg(who); + TQString key = TQString("%1/%2").tqarg(filename).tqarg(who); if(DCCSendItems[key]){ - DCCSendItems[key]->changeStatus(dccItem::dccResumed); + DCCSendItems[key]->changetqStatus(dccItem::dccResumed); } } } @@ -278,9 +278,9 @@ void KSircIODCC::sirc_receive(TQCString str, bool ) if(rx.search(str)){ TQString who = rx.cap(1); TQString filename = rx.cap(2); - TQString key = TQString("%1/%2").arg(filename).arg(who); + TQString key = TQString("%1/%2").tqarg(filename).tqarg(who); if(DCCGetItems[key]){ - DCCGetItems[key]->changeStatus(dccItem::dccRecving); + DCCGetItems[key]->changetqStatus(dccItem::dccRecving); } } } @@ -290,10 +290,10 @@ void KSircIODCC::sirc_receive(TQCString str, bool ) TQString who = rx.cap(1); TQString filename = rx.cap(2); TQString ip = rx.cap(3); - TQString key = TQString("%1/%2").arg(filename).arg(who); + TQString key = TQString("%1/%2").tqarg(filename).tqarg(who); if(DCCSendItems[key]){ DCCSendItems[key]->setWhoPostfix("(" + ip + ")"); - DCCSendItems[key]->changeStatus(dccItem::dccSending); + DCCSendItems[key]->changetqStatus(dccItem::dccSending); } } } @@ -302,7 +302,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool ) if(rx.search(str)){ TQString who = rx.cap(1); if(DCCChatItems[who]){ - DCCChatItems[who]->changeStatus(dccItem::dccOpen); + DCCChatItems[who]->changetqStatus(dccItem::dccOpen); proc->new_toplevel(KSircChannel(proc->serverName(), TQString("=") + who.lower())); } } @@ -314,7 +314,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool ) TQString ip = rx.cap(2); if(DCCChatItems[who]){ DCCChatItems[who]->setWhoPostfix("(" + ip + ")"); - DCCChatItems[who]->changeStatus(dccItem::dccOpen); + DCCChatItems[who]->changetqStatus(dccItem::dccOpen); proc->new_toplevel(KSircChannel(proc->serverName(), TQString("=") + who.lower())); } } @@ -325,11 +325,11 @@ void KSircIODCC::sirc_receive(TQCString str, bool ) TQString who = rx.cap(1); TQString filename = rx.cap(2); TQString error = rx.cap(3); - TQString key = TQString("%1/%2").arg(filename).arg(who); + TQString key = TQString("%1/%2").tqarg(filename).tqarg(who); if(DCCGetItems[key]){ - DCCGetItems[key]->changeStatus(dccItem::dccError); + DCCGetItems[key]->changetqStatus(dccItem::dccError); } - KPassivePopup::message(i18n("DCC Get with %1 for %2 failed because of %3").arg(who).arg(filename).arg(error), mgr->mgr()); + KPassivePopup::message(i18n("DCC Get with %1 for %2 failed because of %3").tqarg(who).tqarg(filename).tqarg(error), mgr->mgr()); } } else if(str.find("DCC CHAT failed") != -1){ /*FOLD01*/ @@ -338,9 +338,9 @@ void KSircIODCC::sirc_receive(TQCString str, bool ) TQString who = rx.cap(1); TQString error = rx.cap(2); if(DCCChatItems[who]){ - DCCChatItems[who]->changeStatus(dccItem::dccError); + DCCChatItems[who]->changetqStatus(dccItem::dccError); } - KPassivePopup::message(i18n("DCC Chat with %1 failed because of %2").arg(who).arg(error), mgr->mgr()); + KPassivePopup::message(i18n("DCC Chat with %1 failed because of %2").tqarg(who).tqarg(error), mgr->mgr()); } } else if(str.find("DCC CHAT renamed") != -1){ /*FOLD01*/ @@ -360,9 +360,9 @@ void KSircIODCC::sirc_receive(TQCString str, bool ) if(rx.search(str)){ TQString who = rx.cap(1); TQString filename = rx.cap(2); - TQString key = TQString("%1/%2").arg(filename).arg(who); + TQString key = TQString("%1/%2").tqarg(filename).tqarg(who); if(DCCGetItems[key]){ - DCCGetItems[key]->changeStatus(dccItem::dccCancel); + DCCGetItems[key]->changetqStatus(dccItem::dccCancel); } } } @@ -371,9 +371,9 @@ void KSircIODCC::sirc_receive(TQCString str, bool ) // if(rx.search(str)){ // TQString who = rx.cap(1); // TQString filename = rx.cap(2); -// TQString key = TQString("%1/%2").arg(filename).arg(who); +// TQString key = TQString("%1/%2").tqarg(filename).tqarg(who); // if(DCCSendItems[key]){ -// DCCSendItems[key]->changeStatus(dccItem::dccCancel); +// DCCSendItems[key]->changetqStatus(dccItem::dccCancel); // } // } // } @@ -382,7 +382,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool ) if(rx.search(str)){ TQString who = rx.cap(1); if(DCCChatItems[who]){ - DCCChatItems[who]->changeStatus(dccItem::dccDone); + DCCChatItems[who]->changetqStatus(dccItem::dccDone); } } } @@ -392,7 +392,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool ) TQString who = rx.cap(1); TQString filename = rx.cap(2); - //TQString key = TQString("%1/%2").arg(filename).arg(who); + //TQString key = TQString("%1/%2").tqarg(filename).tqarg(who); TQPtrList toDel; TQDict new_list; @@ -470,11 +470,11 @@ void KSircIODCC::control_message(int, TQString) void KSircIODCC::cancelTransfer(TQString filename) { //if(DlgList[filename]){ - //emit outputLine(DCCStatus[filename]->cancelMessage.ascii()); + //emit outputLine(DCCtqStatus[filename]->cancelMessage.ascii()); //delete DlgList[filename]; //DlgList.remove(filename); - //delete DCCStatus[filename]; - //DCCStatus.remove(filename); + //delete DCCtqStatus[filename]; + //DCCtqStatus.remove(filename); //} } @@ -561,7 +561,7 @@ void KSircIODCC::dccResumeClicked(dccItem *it) kdDebug(5008) << "Got resume click on " << it->who() << " " << it->type() << endl; switch(it->type()){ case dccItem::dccGet: - it->changeStatus(dccItem::dccWaitOnResume); + it->changetqStatus(dccItem::dccWaitOnResume); str = "/resume " + it->who() + " " + it->file() + "\n"; emit outputLine(str.ascii()); break; @@ -583,10 +583,10 @@ void KSircIODCC::dccAbortClicked(dccItem *it) case dccItem::dccError: switch(it->type()) { case dccItem::dccGet: - DCCGetItems.remove(TQString("%1/%2").arg(it->file()).arg(it->who())); + DCCGetItems.remove(TQString("%1/%2").tqarg(it->file()).tqarg(it->who())); break; case dccItem::dccSend: - DCCSendItems.remove(TQString("%1/%2").arg(it->file()).arg(it->who())); + DCCSendItems.remove(TQString("%1/%2").tqarg(it->file()).tqarg(it->who())); break; case dccItem::dccChat: DCCChatItems.remove(it->who()); @@ -615,11 +615,11 @@ void KSircIODCC::dccAbortClicked(dccItem *it) void KSircIODCC::dccRenameDone(dccItem *it, TQString oldWho, TQString oldFile) { if(it->type() == dccItem::dccGet){ - TQString str = TQString("/dcc rename %1 %2 %3\n").arg(oldWho).arg(oldFile).arg(it->file()); - TQString key = TQString("%1/%2").arg(oldFile).arg(oldWho); + TQString str = TQString("/dcc rename %1 %2 %3\n").tqarg(oldWho).tqarg(oldFile).tqarg(it->file()); + TQString key = TQString("%1/%2").tqarg(oldFile).tqarg(oldWho); if(DCCGetItems[key]){ DCCGetItems.take(key); - TQString newkey = TQString("%1/%2").arg(it->file()).arg(it->who()); + TQString newkey = TQString("%1/%2").tqarg(it->file()).tqarg(it->who()); DCCGetItems.insert(newkey, it); } emit outputLine(str.ascii()); @@ -629,7 +629,7 @@ void KSircIODCC::dccRenameDone(dccItem *it, TQString oldWho, TQString oldFile) DCCChatItems.take(oldWho); DCCChatItems.insert(it->who(), it); } - TQString str = TQString("/dcc rchat %1 %2\n").arg(oldWho).arg(it->who()); + TQString str = TQString("/dcc rchat %1 %2\n").tqarg(oldWho).tqarg(it->who()); emit outputLine(str.ascii()); } diff --git a/ksirc/ioDCC.h b/ksirc/ioDCC.h index 216c0419..791d5d19 100644 --- a/ksirc/ioDCC.h +++ b/ksirc/ioDCC.h @@ -52,7 +52,7 @@ signals: private: // TQDict DlgList; //TQDict DlgList; - //TQDict DCCStatus; + //TQDict DCCtqStatus; TQDict DCCGetItems; TQDict DCCSendItems; TQDict DCCChatItems; diff --git a/ksirc/iocontroller.cpp b/ksirc/iocontroller.cpp index f295989b..d16f798a 100644 --- a/ksirc/iocontroller.cpp +++ b/ksirc/iocontroller.cpp @@ -75,7 +75,7 @@ #include "ksopts.h" #include -#include +#include #include #include #include diff --git a/ksirc/ksirc.cpp b/ksirc/ksirc.cpp index ae3222bb..296e9049 100644 --- a/ksirc/ksirc.cpp +++ b/ksirc/ksirc.cpp @@ -103,10 +103,10 @@ extern "C" KDE_EXPORT int kdemain( int argc, char ** argv ) sc->restore(1, false ); } else - { // no Session management -> care about docking, geometry, etc. + { // no Session management -> care about docking, tqgeometry, etc. - if( !opts.geometry.isEmpty() ) - sc->setGeometry( opts.geometry ); + if( !opts.tqgeometry.isEmpty() ) + sc->setGeometry( opts.tqgeometry ); KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); diff --git a/ksirc/ksircprocess.cpp b/ksirc/ksircprocess.cpp index 26dbc8c7..2aa02e63 100644 --- a/ksirc/ksircprocess.cpp +++ b/ksirc/ksircprocess.cpp @@ -421,7 +421,7 @@ void KSircProcess::close_toplevel(KSircTopLevel *wm, TQString name) kdDebug(5008) << "KSP: get close_toplevel: " << name << endl; // the removeTopLevel below also deletes the mditoplevel (in case - // we are using mdi) , which deletes its children, which deletes + // we are using mdi) , which deletes its tqchildren, which deletes // 'wm' , so watch out not to delete twice! (Simon) TQGuardedPtr guardedwm = wm; // Do this now or we get junk left on the screen diff --git a/ksirc/ksopts.cpp b/ksirc/ksopts.cpp index de03ab79..c0d6a927 100644 --- a/ksirc/ksopts.cpp +++ b/ksirc/ksopts.cpp @@ -142,7 +142,7 @@ void KSOptions::load( int sections ) { KConfig *conf = kapp->config(); conf->setGroup( "ServerController" ); - geometry = conf->readRectEntry( "Size" ); + tqgeometry = conf->readRectEntry( "Size" ); // Using the fields itself as default values as they are already // set to the defaults. @@ -232,17 +232,17 @@ void KSOptions::load( int sections ) colourTheme = conf->readEntry("ColourTheme", colourTheme ); for ( int i = 0; i < 16; ++i ) { ircColors[i] = - conf->readColorEntry(TQString::fromLatin1( "IRC-%1" ).arg( i ), + conf->readColorEntry(TQString::tqfromLatin1( "IRC-%1" ).tqarg( i ), &ircColors[i] ); nickHighlight[i] = - conf->readBoolEntry(TQString::fromLatin1( "nickHighlight-%1" ).arg( i ), + conf->readBoolEntry(TQString::tqfromLatin1( "nickHighlight-%1" ).tqarg( i ), &nickHighlight[i] ); } } conf->setGroup( "GlobalOptions" ); TQFont df = kapp->font((TQWidget*)0); defaultFont = conf->readFontEntry( "MainFont", &df); - TQApplication::setFont( defaultFont, true, "KSirc::TextView" ); + TQApplication::tqsetFont( defaultFont, true, "KSirc::TextView" ); } if ( sections & Channels ) { @@ -268,7 +268,7 @@ void KSOptions::load( int sections ) channel["global"]["global"].encoding = conf->readEntry("globalglobalEncoding", "Default"); } - TQDateTime now(TQDateTime::currentDateTime()); + TQDateTime now(TQDateTime::tqcurrentDateTime()); TQStringList servers = conf->readListEntry("Servers"); TQStringList::ConstIterator ser = servers.begin(); for( ; ser != servers.end(); ser++){ @@ -422,8 +422,8 @@ void KSOptions::save( int sections ) conf->writeEntry( "nickColourization", nickColourization ); conf->writeEntry( "ColourTheme", colourTheme ); for ( int i = 0; i < 16; ++i ) { - conf->writeEntry( TQString::fromLatin1( "IRC-%1" ).arg( i ), ircColors[i] ); - conf->writeEntry( TQString::fromLatin1( "nickHighlight-%1" ).arg( i ), nickHighlight[i] ); + conf->writeEntry( TQString::tqfromLatin1( "IRC-%1" ).tqarg( i ), ircColors[i] ); + conf->writeEntry( TQString::tqfromLatin1( "nickHighlight-%1" ).tqarg( i ), nickHighlight[i] ); } /* Store the font setting */ conf->setGroup( "GlobalOptions" ); @@ -500,10 +500,10 @@ void KSOptions::channelSetup(TQString serv, TQString chan) channel[serv].insert(chan, ksoc); channel[serv][chan].server = serv; channel[serv][chan].channel = chan; - channel[serv][chan].lastUsed = TQDateTime::currentDateTime(); + channel[serv][chan].lastUsed = TQDateTime::tqcurrentDateTime(); } else { - channel[serv][chan].lastUsed = TQDateTime::currentDateTime(); + channel[serv][chan].lastUsed = TQDateTime::tqcurrentDateTime(); } } @@ -530,10 +530,10 @@ void KSOptions::serverSetup(TQString serv) server.insert(serv, ksos); server[serv].server = serv; server[serv].globalCopy = true; - server[serv].lastUsed = TQDateTime::currentDateTime(); + server[serv].lastUsed = TQDateTime::tqcurrentDateTime(); } else { - server[serv].lastUsed = TQDateTime::currentDateTime(); + server[serv].lastUsed = TQDateTime::tqcurrentDateTime(); } } diff --git a/ksirc/ksopts.h b/ksirc/ksopts.h index 9bd96192..421370fb 100644 --- a/ksirc/ksopts.h +++ b/ksirc/ksopts.h @@ -99,7 +99,7 @@ class KSOStartup public: KSOStartup(); - TQRect geometry; + TQRect tqgeometry; // TQString nick; // TQString altNick; // TQString realName; diff --git a/ksirc/ksparser.cpp b/ksirc/ksparser.cpp index 100fc4c4..e2ebf903 100644 --- a/ksirc/ksparser.cpp +++ b/ksirc/ksparser.cpp @@ -63,12 +63,12 @@ TQString KSParser::parse( const TQString &message ) TQString at; TQColor c = ircColor(fg); if ( c.isValid() ) { - at += TQString( "color=\"%1\" " ).arg( c.name() ); + at += TQString( "color=\"%1\" " ).tqarg( c.name() ); } c = ircColor(bg); if ( c.isValid() ) { - at += TQString( "bgcolor=\"%1\" " ).arg( c.name() ); + at += TQString( "bgcolor=\"%1\" " ).tqarg( c.name() ); } if(at.length() > 0){ res += pushTag( "font", at ); @@ -108,13 +108,13 @@ TQString KSParser::parse( const TQString &message ) res += toggleTag( "u" ); break; case 'n': - res += toggleTag( "font", TQString( "color=\"%1\"" ).arg( ksopts->nickForeground.name() ) ); + res += toggleTag( "font", TQString( "color=\"%1\"" ).tqarg( ksopts->nickForeground.name() ) ); break; case 'o': - res += pushTag( "font", TQString( "color=\"%1\"" ).arg( ksopts->msgContainNick.name() ) ); + res += pushTag( "font", TQString( "color=\"%1\"" ).tqarg( ksopts->msgContainNick.name() ) ); break; case '#': - res += pushTag( "font", TQString( "color=\"#%1\"" ).arg( message.mid(i, 6) )); + res += pushTag( "font", TQString( "color=\"#%1\"" ).tqarg( message.mid(i, 6) )); i+=6; break; case '~': diff --git a/ksirc/kstextview.cpp b/ksirc/kstextview.cpp index 151a3be6..bd43d82c 100644 --- a/ksirc/kstextview.cpp +++ b/ksirc/kstextview.cpp @@ -24,7 +24,7 @@ #include #include #include -#include +#include #include #include #include @@ -245,7 +245,7 @@ Item *TextChunk::breakLine( int width ) return 0; } -Item::LayoutResetStatus TextChunk::resetLayout() +Item::LayoutResettqStatus TextChunk::resetLayout() { if ( m_originalTextLength == 0 ) @@ -376,12 +376,12 @@ Item *TextChunk::hardBreak( const StringPtr &rightHandSide ) selStart->offset -= m_text.len; selEnd->offset -= m_text.len; selStart->item = selEnd->item = chunk; - chunk->setSelectionStatus( m_selection ); + chunk->setSelectiontqStatus( m_selection ); m_selection = NoSelection; } else if ( selEnd->offset >= m_text.len ) { selEnd->offset -= m_text.len; selEnd->item = chunk; - chunk->setSelectionStatus( SelectionEnd ); + chunk->setSelectiontqStatus( SelectionEnd ); m_selection = SelectionStart; } } @@ -389,7 +389,7 @@ Item *TextChunk::hardBreak( const StringPtr &rightHandSide ) if ( selection && selection->offset >= m_text.len ) { selection->offset -= m_text.len; selection->item = chunk; - chunk->setSelectionStatus( m_selection ); + chunk->setSelectiontqStatus( m_selection ); m_selection = NoSelection; } @@ -433,7 +433,7 @@ int TextChunk::paintSelection( TQPainter &p, int x, const StringPtr &text ) const int width = m_metrics.width( str ); - const TQColorGroup &cg = m_parag->textView()->colorGroup(); + const TQColorGroup &cg = m_parag->textView()->tqcolorGroup(); if (m_props.bgSelColor.isValid()) p.fillRect( x, 0, width, height(), m_props.bgSelColor ); @@ -482,11 +482,11 @@ void TextChunk::mergeSelection( TextChunk *child, SelectionPoint *selection ) selection->item = this; - if ( ( m_selection == SelectionStart && child->selectionStatus() == SelectionEnd ) || - ( m_selection == SelectionEnd && child->selectionStatus() == SelectionStart ) ) + if ( ( m_selection == SelectionStart && child->selectiontqStatus() == SelectionEnd ) || + ( m_selection == SelectionEnd && child->selectiontqStatus() == SelectionStart ) ) m_selection = SelectionBoth; else - m_selection = child->selectionStatus(); + m_selection = child->selectiontqStatus(); } ImageItem::ImageItem( TextParag *parag, const TQPixmap &pixmap ) @@ -512,7 +512,7 @@ void ImageItem::paint( TQPainter &painter ) if (m_props.bgSelColor.isValid()) painter.fillRect( 0, 0, width(), h, m_props.bgSelColor ); else { - const TQColorGroup &cg = m_parag->textView()->colorGroup(); + const TQColorGroup &cg = m_parag->textView()->tqcolorGroup(); painter.fillRect( 0, 0, width(), h, cg.highlight() ); } } @@ -520,7 +520,7 @@ void ImageItem::paint( TQPainter &painter ) painter.drawPixmap( 0, y, m_pixmap ); } -Item::LayoutResetStatus ImageItem::resetLayout() +Item::LayoutResettqStatus ImageItem::resetLayout() { // nothin' to do return KeepItem; @@ -645,7 +645,7 @@ bool Tokenizer::parseNextToken( Token &tok ) return false; tok.id = Token::Text; - tok.value = StringPtr( m_text.unicode() + idx, + tok.value = StringPtr( m_text.tqunicode() + idx, m_text.length() - idx ); tok.attributes.clear(); return true; @@ -658,7 +658,7 @@ bool Tokenizer::parseNextToken( Token &tok ) { tok.id = Token::Text; tok.attributes.clear(); - tok.value = StringPtr( m_text.unicode(), + tok.value = StringPtr( m_text.tqunicode(), (*m_lastTag).index ); m_textBeforeFirstTagProcessed = true; @@ -676,7 +676,7 @@ bool Tokenizer::parseNextToken( Token &tok ) if ( lastType == TagIndex::Open && type == TagIndex::Close ) { - const TQChar *tagStart = m_text.unicode() + lastIndex + 1; + const TQChar *tagStart = m_text.tqunicode() + lastIndex + 1; uint tagLen = ( index - 1 ) - ( lastIndex + 1 ) + 1; // ? if ( *tagStart == '/' ) @@ -699,7 +699,7 @@ bool Tokenizer::parseNextToken( Token &tok ) { tok.id = Token::Text; tok.attributes.clear(); - tok.value = StringPtr( m_text.unicode() + lastIndex + 1, + tok.value = StringPtr( m_text.tqunicode() + lastIndex + 1, ( index - 1 ) - lastIndex ); m_lastTag = it; @@ -715,7 +715,7 @@ bool Tokenizer::parseNextToken( Token &tok ) Tokenizer::TagIndexList Tokenizer::scanTagIndices( const TQString &text ) { - const TQChar *start = text.unicode(); + const TQChar *start = text.tqunicode(); const TQChar *p = start; const TQChar *endP = p + text.length(); bool quoted = false; @@ -754,7 +754,7 @@ Tokenizer::TagIndexList Tokenizer::scanTagIndices( const TQString &text ) void Tokenizer::resolveEntities( TQString &text, TagIndexList &tags ) { - const TQChar *p = text.unicode(); + const TQChar *p = text.tqunicode(); const TQChar *endP = p + text.length(); uint i = 0; bool scanForSemicolon = false; @@ -793,13 +793,13 @@ void Tokenizer::resolveEntities( TQString &text, TagIndexList &tags ) if ( entityValue.isNull() ) continue; - const uint ampersandPos = ampersand - text.unicode(); + const uint ampersandPos = ampersand - text.tqunicode(); text[ ampersandPos ] = entityValue; text.remove( ampersandPos + 1, entityLength + 1 ); i = ampersandPos; - p = text.unicode() + i; - endP = text.unicode() + text.length(); + p = text.tqunicode() + i; + endP = text.tqunicode() + text.length(); ampersand = 0; uint adjustment = entityLength + 1; @@ -1081,7 +1081,7 @@ TQString TextLine::updateSelection( const SelectionPoint &start, const Selection { if ( i == start.item ) { - i->setSelectionStatus( Item::SelectionStart ); + i->setSelectiontqStatus( Item::SelectionStart ); StringPtr txt = i->text(); if ( !txt.isNull() ) @@ -1090,7 +1090,7 @@ TQString TextLine::updateSelection( const SelectionPoint &start, const Selection } else if ( i == end.item ) { - i->setSelectionStatus( Item::SelectionEnd ); + i->setSelectiontqStatus( Item::SelectionEnd ); StringPtr txt = i->text(); if ( !txt.isNull() ) @@ -1098,7 +1098,7 @@ TQString TextLine::updateSelection( const SelectionPoint &start, const Selection } else { - i->setSelectionStatus( Item::InSelection ); + i->setSelectiontqStatus( Item::InSelection ); selectedText += i->text().toTQString(); } @@ -1111,7 +1111,7 @@ void TextLine::clearSelection() { Item *i = m_items.first(); for (; i; i = m_items.next() ) - i->setSelectionStatus( Item::NoSelection ); + i->setSelectiontqStatus( Item::NoSelection ); } void TextLine::appendItem( Item *i, int layoutUpdatePolicy ) @@ -1225,7 +1225,7 @@ TextParag::~TextParag() { } -void TextParag::layout( int width ) +void TextParag::tqlayout( int width ) { TQPtrList items; @@ -1658,7 +1658,7 @@ void TextView::viewportResizeEvent( TQResizeEvent *ev ) TQScrollView::viewportResizeEvent(ev); if ( ev->size().width() != ev->oldSize().width() ) - layout(); + tqlayout(); int newdiff = ev->size().height() - ev->oldSize().height(); setContentsPos( 0, contentsY()-newdiff ); @@ -1720,7 +1720,7 @@ void TextView::clear() stopAutoScroll(); clearSelection(); m_parags.clear(); - layout(); + tqlayout(); viewport()->erase(); } @@ -1728,7 +1728,7 @@ TextParagIterator TextView::appendParag( const TQString &richText ) { TextParag *parag = new TextParag( this, richText ); m_parags.append( parag ); - layout( false ); + tqlayout( false ); scrollToBottom(); TQPtrListIterator it( m_parags ); it.toLast(); @@ -1758,7 +1758,7 @@ bool TextView::removeParag( const TextParagIterator ¶g ) if(m_selectionEnd.item != 0) m_selectionEnd.pos.ry() -= height; - //layout( false ); + //tqlayout( false ); contentsChange(-height, true); @@ -1768,14 +1768,14 @@ bool TextView::removeParag( const TextParagIterator ¶g ) return true; } -void TextView::clearSelection( bool repaint ) +void TextView::clearSelection( bool tqrepaint ) { m_selectionStart = SelectionPoint(); m_selectionEnd = SelectionPoint(); m_selectionEndBeforeStart = false; m_selectedText = TQString(); clearSelectionInternal(); - if ( repaint ) + if ( tqrepaint ) updateContents(); } @@ -1814,7 +1814,7 @@ void TextView::setLinkColor( const TQColor &linkColor ) void TextView::copy() { - TQApplication::clipboard()->setText( m_selectedText ); + TQApplication::tqclipboard()->setText( m_selectedText ); } void TextView::clearSelectionInternal() @@ -1840,7 +1840,7 @@ void TextView::contentsMousePressEvent( TQMouseEvent *ev ) Item *itemUnderMouse = itemAt( ev->pos(), &p, Item::SelectFuzzy ); if ( p.item && ( ev->button() & Qt::LeftButton ) ) { m_selectionMaybeStart = p; - p.item->setSelectionStatus( Item::NoSelection ); + p.item->setSelectiontqStatus( Item::NoSelection ); } if ( TextChunk *text = dynamic_cast( itemUnderMouse ) ) { StringPtr href = text->props().attributes[ "href" ]; @@ -1953,7 +1953,7 @@ void TextView::contentsMouseReleaseEvent( TQMouseEvent *ev ) m_selectionMaybeStart = SelectionPoint(); if ( (ev->button() & Qt::LeftButton) && !m_selectedText.isEmpty() ) - TQApplication::clipboard()->setText( m_selectedText, TQClipboard::Selection ); + TQApplication::tqclipboard()->setText( m_selectedText, TQClipboard::Selection ); if ( clicked ) { emitLinkClickedForMouseEvent( ev ); @@ -1962,7 +1962,7 @@ void TextView::contentsMouseReleaseEvent( TQMouseEvent *ev ) if (ev->button() & Qt::MidButton) { - emit pasteReq( KApplication::clipboard()->text( TQClipboard::Selection ) ); + emit pasteReq( KApplication::tqclipboard()->text( TQClipboard::Selection ) ); return; } } @@ -1973,7 +1973,7 @@ void TextView::fontChange( const TQFont & ) for (; it.current(); ++it ) it.current()->fontChange( font() ); - layout( true ); + tqlayout( true ); } void TextView::startDrag() @@ -2103,11 +2103,11 @@ TQString TextView::updateSelection( const SelectionPoint &start, const Selection { if ( start.pos.x() == end.pos.x() ) { - i->setSelectionStatus( Item::NoSelection ); + i->setSelectiontqStatus( Item::NoSelection ); return TQString(); } - i->setSelectionStatus( Item::SelectionBoth ); + i->setSelectiontqStatus( Item::SelectionBoth ); // ### ugly const TextChunk *t = dynamic_cast( i ); @@ -2119,7 +2119,7 @@ TQString TextView::updateSelection( const SelectionPoint &start, const Selection } else { - i->setSelectionStatus( Item::SelectionBoth ); + i->setSelectiontqStatus( Item::SelectionBoth ); // ### ugly TextChunk *t = dynamic_cast( i ); @@ -2156,7 +2156,7 @@ TQString TextView::updateSelection( const SelectionPoint &start, const Selection return selectedText; } -void TextView::layout( bool force ) +void TextView::tqlayout( bool force ) { int height = 0; int contentsWidth = visibleWidth(); @@ -2166,7 +2166,7 @@ void TextView::layout( bool force ) for (; it.current(); ++it ) { if ( !it.current()->isLayouted() || force ) - it.current()->layout( width ); + it.current()->tqlayout( width ); height += it.current()->height(); contentsWidth = kMax( contentsWidth, it.current()->minWidth() ); @@ -2182,7 +2182,7 @@ void TextView::layout( bool force ) void TextView::contentsChange(int heightChange, bool force) { if(m_height == -1){ - layout(force); + tqlayout(force); } else { m_height += heightChange; @@ -2248,7 +2248,7 @@ void TextParagIterator::setRichText( const TQString &richText ) m_paragIt.current()->setRichText( richText ); TextView *textView = m_paragIt.current()->textView(); - textView->layout( false ); + textView->tqlayout( false ); if ( textView->isUpdatesEnabled() ) textView->updateContents(); diff --git a/ksirc/kstextview.h b/ksirc/kstextview.h index 1c537e95..6b3813a8 100644 --- a/ksirc/kstextview.h +++ b/ksirc/kstextview.h @@ -40,7 +40,7 @@ struct StringPtr StringPtr( const TQChar *_ptr, uint _len ) : ptr( _ptr ), len( _len ) {} explicit StringPtr( const TQString &s ) // use with care! - : ptr( s.unicode() ), len( s.length() ) {} + : ptr( s.tqunicode() ), len( s.length() ) {} inline bool isNull() const { return ptr == 0; } @@ -142,8 +142,8 @@ class SelectionPoint; class Item { public: - enum LayoutResetStatus { DeleteItem, KeepItem }; - enum SelectionStatus { SelectionStart = 0, InSelection, SelectionEnd, SelectionBoth, + enum LayoutResettqStatus { DeleteItem, KeepItem }; + enum SelectiontqStatus { SelectionStart = 0, InSelection, SelectionEnd, SelectionBoth, NoSelection }; enum SelectionAccuracy { SelectExact, SelectFuzzy }; @@ -163,13 +163,13 @@ public: virtual Item *breakLine( int width ); - virtual LayoutResetStatus resetLayout() = 0; + virtual LayoutResettqStatus resetLayout() = 0; virtual int calcSelectionOffset( int x ); - void setSelectionStatus( SelectionStatus status ) { m_selection = status; } + void setSelectiontqStatus( SelectiontqStatus status ) { m_selection = status; } - SelectionStatus selectionStatus() const { return m_selection; } + SelectiontqStatus selectiontqStatus() const { return m_selection; } void selectionOffsets( int &startOffset, int &endOffset ); @@ -194,7 +194,7 @@ protected: virtual void calcExtends() const = 0; - SelectionStatus m_selection; + SelectiontqStatus m_selection; TextLine *m_line; TextParag *m_parag; ItemProperties m_props; @@ -211,7 +211,7 @@ public: virtual Item *breakLine( int width ); - virtual LayoutResetStatus resetLayout(); + virtual LayoutResettqStatus resetLayout(); virtual int calcSelectionOffset( int x ); @@ -247,7 +247,7 @@ public: virtual void paint( TQPainter &painter ); - virtual LayoutResetStatus resetLayout(); + virtual LayoutResettqStatus resetLayout(); protected: virtual void calcExtends() const; @@ -354,7 +354,7 @@ public: ~TextParag(); - void layout( int width ); + void tqlayout( int width ); void paint( TQPainter &p, int y, int maxY ); @@ -482,7 +482,7 @@ public: bool removeParag( const TextParagIterator ¶g ); - void clearSelection( bool repaint = false ); // ### re-consider the repaint arg... + void clearSelection( bool tqrepaint = false ); // ### re-consider the tqrepaint arg... TQString selectedText() const { return m_selectedText; } @@ -537,7 +537,7 @@ private: SelectionPoint *selectionStart(); SelectionPoint *selectionEnd(); - void layout( bool force = true ); + void tqlayout( bool force = true ); Item *itemAt( const TQPoint &pos, SelectionPoint *selectionInfo = 0, Item::SelectionAccuracy accuracy = Item::SelectExact ); diff --git a/ksirc/kstextviewtest.cpp b/ksirc/kstextviewtest.cpp index ded2f45c..fd5133ac 100644 --- a/ksirc/kstextviewtest.cpp +++ b/ksirc/kstextviewtest.cpp @@ -16,8 +16,8 @@ public: m_lines++; if ( m_lines > 15 ) m_view->removeParag( m_view->firstParag() ); - m_view->appendParag( TQString::fromLatin1( "color testcolor testcolor testcolor testcolor testcolor testcolor testcolor testcolor test" ) ); - m_view->appendParag( TQString::fromLatin1( "aaaaaa bbbbbb cccccccc ddddddddd eeeeeee " ) ); + m_view->appendParag( TQString::tqfromLatin1( "color testcolor testcolor testcolor testcolor testcolor testcolor testcolor testcolor test" ) ); + m_view->appendParag( TQString::tqfromLatin1( "aaaaaa bbbbbb cccccccc ddddddddd eeeeeee " ) ); m_view->setContentsPos( 0, m_view->contentsHeight() ); } private: @@ -33,17 +33,17 @@ int main( int argc, char **argv ) app.setMainWidget( &view ); view.show(); - view.appendParag( TQString::fromLatin1( "boldNormalItalic hey!reverse!" ) ); - view.appendParag( TQString::fromLatin1( "bleh foo hey bar schubidu bliep blop" ) ); - view.appendParag( TQString::fromLatin1( "more longish paragraphs .. yaddayadda yadda" ) ); - view.appendParag( TQString::fromLatin1( "<tronical> hah! &" ) ); - view.appendParag( TQString::fromLatin1( "url" ) ); - view.appendParag( TQString::fromLatin1( "color test" ) ); - view.appendParag( TQString::fromLatin1( "another color test" ) ); - view.appendParag( TQString::fromLatin1( "another color test" ) ); - view.appendParag( TQString::fromLatin1( "simple attr test 123 \" oof>complicated attr test" ) ); - view.appendParag( TQString::fromLatin1( "\" 123 \" oof>\"third attr test 2\"" ) ); - view.appendParag( TQString::fromLatin1( "aaaaaa bbbbbb cccccccc ddddddddd eeeeeee" ) ); + view.appendParag( TQString::tqfromLatin1( "boldNormalItalic hey!reverse!" ) ); + view.appendParag( TQString::tqfromLatin1( "bleh foo hey bar schubidu bliep blop" ) ); + view.appendParag( TQString::tqfromLatin1( "more longish paragraphs .. yaddayadda yadda" ) ); + view.appendParag( TQString::tqfromLatin1( "<tronical> hah! &" ) ); + view.appendParag( TQString::tqfromLatin1( "url" ) ); + view.appendParag( TQString::tqfromLatin1( "color test" ) ); + view.appendParag( TQString::tqfromLatin1( "another color test" ) ); + view.appendParag( TQString::tqfromLatin1( "another color test" ) ); + view.appendParag( TQString::tqfromLatin1( "simple attr test 123 \" oof>complicated attr test" ) ); + view.appendParag( TQString::tqfromLatin1( "\" 123 \" oof>\"third attr test 2\"" ) ); + view.appendParag( TQString::tqfromLatin1( "aaaaaa bbbbbb cccccccc ddddddddd eeeeeee" ) ); Timer t( &view ); return app.exec(); diff --git a/ksirc/ksview.cpp b/ksirc/ksview.cpp index fec60844..4fb90d9b 100644 --- a/ksirc/ksview.cpp +++ b/ksirc/ksview.cpp @@ -18,12 +18,12 @@ // $Id$ -#include +#include #include #include #include #include -#include +#include #include #include @@ -73,10 +73,10 @@ void KSircView::clear() TQString KSircView::makeTimeStamp() { TQTime now = TQTime::currentTime(); - TQString timeStamp = TQString::fromLatin1( "[%1:%2:%3] " ) - .arg( TQString::number( now.hour() ).rightJustify( 2, '0' ) ) - .arg( TQString::number( now.minute() ).rightJustify( 2, '0' ) ) - .arg( TQString::number( now.second() ).rightJustify( 2, '0' ) ); + TQString timeStamp = TQString::tqfromLatin1( "[%1:%2:%3] " ) + .tqarg( TQString::number( now.hour() ).rightJustify( 2, '0' ) ) + .tqarg( TQString::number( now.minute() ).rightJustify( 2, '0' ) ) + .tqarg( TQString::number( now.second() ).rightJustify( 2, '0' ) ); return timeStamp; } @@ -109,14 +109,14 @@ TQString KSircView::addLine(const TQString &pixmap, const TQColor &color, const //kdDebug(5008) << "Start Text: " << _text << endl; TQString richText( "" ); - richText = richText.arg( color.name() ); + richText = richText.tqarg( color.name() ); if ( !pixmap.isEmpty() ) - richText.prepend( TQString::fromLatin1( "" ).arg( pixmap ) ); + richText.prepend( TQString::tqfromLatin1( "" ).tqarg( pixmap ) ); - TQString timeStamp = TQString::fromLatin1( "%2" ) - .arg( ksopts->textColor.name() ) - .arg( makeTimeStamp() ); + TQString timeStamp = TQString::tqfromLatin1( "%2" ) + .tqarg( ksopts->textColor.name() ) + .tqarg( makeTimeStamp() ); m_timeStamps.append(timeStamp); if ( m_timestamps ) richText.prepend( timeStamp ); @@ -131,11 +131,11 @@ TQString KSircView::addLine(const TQString &pixmap, const TQColor &color, const // 'nick< to catch queries. TQRegExp bidiRe( "^(<\\S+>)(.+)$" ); - text.replace( bidiRe, TQString::fromLatin1( "\\1\\2" ) ); + text.replace( bidiRe, TQString::tqfromLatin1( "\\1\\2" ) ); TQRegExp bidiRe2( "^(\\[\\S+\\])(.+)$" ); - text.replace( bidiRe2, TQString::fromLatin1( "\\1\\2" ) ); + text.replace( bidiRe2, TQString::tqfromLatin1( "\\1\\2" ) ); TQRegExp bidiRe3( "^(>\\S+<)(.+)$" ); - text.replace( bidiRe3, TQString::fromLatin1( "\\1\\2" ) ); + text.replace( bidiRe3, TQString::tqfromLatin1( "\\1\\2" ) ); TQRegExp nickCol( "~n(.+)~n" ); nickCol.setMinimal(true); @@ -147,13 +147,13 @@ TQString KSircView::addLine(const TQString &pixmap, const TQColor &color, const if( nickCol.cap(1) != m_proc->getNick()){ TQColor col = nickColourMaker::colourMaker()->findFg(nickCol.cap(1)); - newText.prepend(TQString("").arg(col.name())); + newText.prepend(TQString("").tqarg(col.name())); newText.append(""); } else { TQColor col = ksopts->ownNickColor.name(); if( ! col.isValid()) nickColourMaker::colourMaker()->findFg(nickCol.cap(1)); - newText.prepend(TQString("").arg(col.name())); + newText.prepend(TQString("").tqarg(col.name())); newText.append(""); if(ksopts->ownNickBold){ newText.prepend(""); @@ -199,7 +199,7 @@ TQString KSircView::addLine(const TQString &pixmap, const TQColor &color, const } if (parser.beeped()) { - KNotifyClient::event(winId(), TQString::fromLatin1("BeepReceived"), + KNotifyClient::event(winId(), TQString::tqfromLatin1("BeepReceived"), i18n("Beep Received")); } @@ -224,9 +224,9 @@ void KSircView::addRichText(const TQString &_text) timeStamp = re.cap(1); } else { - timeStamp = TQString::fromLatin1( "%2" ) - .arg( ksopts->textColor.name() ) - .arg( makeTimeStamp() ); + timeStamp = TQString::tqfromLatin1( "%2" ) + .tqarg( ksopts->textColor.name() ) + .tqarg( makeTimeStamp() ); if ( m_timestamps ) text.prepend( timeStamp ); } @@ -303,12 +303,12 @@ void KSircView::anchorClicked(const TQMouseEvent *ev, const TQString &url) void KSircView::openBrowser(const TQString &url ) { - (void) new KRun( KURL( url.startsWith("www") ? TQString::fromLatin1("http://") + url : url)); + (void) new KRun( KURL( url.startsWith("www") ? TQString::tqfromLatin1("http://") + url : url)); } void KSircView::copyLinkToClipboard( const TQString &url ) { - TQApplication::clipboard()->setText( url, TQClipboard::Clipboard ); + TQApplication::tqclipboard()->setText( url, TQClipboard::Clipboard ); } TQColor KSircView::ircColor(int code) diff --git a/ksirc/logfile.cpp b/ksirc/logfile.cpp index 2246cd30..e65be271 100644 --- a/ksirc/logfile.cpp +++ b/ksirc/logfile.cpp @@ -39,16 +39,16 @@ void LogFile::open() assert( m_file->isOpen() == true ); - log( TQString::fromLatin1( "### Log session started at " ) - + TQDateTime::currentDateTime().toString() - + TQString::fromLatin1( "###\n" ) ); + log( TQString::tqfromLatin1( "### Log session started at " ) + + TQDateTime::tqcurrentDateTime().toString() + + TQString::tqfromLatin1( "###\n" ) ); } void LogFile::closeLog() { - log( TQString::fromLatin1( "### Log session terminated at " ) - + TQDateTime::currentDateTime().toString() - + TQString::fromLatin1( "###\n" ) ); + log( TQString::tqfromLatin1( "### Log session terminated at " ) + + TQDateTime::tqcurrentDateTime().toString() + + TQString::tqfromLatin1( "###\n" ) ); if ( m_flushTimerId != -1 ) killTimer( m_flushTimerId ); @@ -77,7 +77,7 @@ TQString LogFile::makeLogFileName( const TQString &channel, const TQString &serv { TQString res = channel + '_'; - TQDate dt = TQDate::currentDate(); + TQDate dt = TQDate::tqcurrentDate(); TQString dateStr; dateStr.sprintf( "%.4d_%.2d_%.2d_", dt.year(), dt.month(), dt.day() ); res += dateStr; diff --git a/ksirc/messageReceiver.cpp b/ksirc/messageReceiver.cpp index 26fb0d6a..e60d82e3 100644 --- a/ksirc/messageReceiver.cpp +++ b/ksirc/messageReceiver.cpp @@ -1,6 +1,6 @@ #include "messageReceiver.h" -#include +#include #include #include #include diff --git a/ksirc/nickColourMaker.cpp b/ksirc/nickColourMaker.cpp index ce866349..c5a3b972 100644 --- a/ksirc/nickColourMaker.cpp +++ b/ksirc/nickColourMaker.cpp @@ -43,7 +43,7 @@ int nickColourMaker::findIdx(TQString nick) const return -1; for(i = 0; i < nick.length(); i++){ - c = nick[i].unicode(); + c = nick[i].tqunicode(); switch(c){ case '|': case '-': diff --git a/ksirc/objFinder.cpp b/ksirc/objFinder.cpp index bb4fe5dc..c5283dbd 100644 --- a/ksirc/objFinder.cpp +++ b/ksirc/objFinder.cpp @@ -67,7 +67,7 @@ TQObject *objFinder::find(const char *name, const char *inherits){ delete qobl; ++it; } - TQWidgetList *all = TQApplication::allWidgets(); + TQWidgetList *all = TQApplication::tqallWidgets(); TQWidgetListIt itW(*all); while(itW.current()){ if(len == strlen(itW.current()->name()) && @@ -93,7 +93,7 @@ void objFinder::dumpTree(){ it.current()->dumpObjectTree(); ++it; } - TQWidgetList *all = TQApplication::allWidgets(); + TQWidgetList *all = TQApplication::tqallWidgets(); TQWidgetListIt itW(*all); while(itW.current()){ kdDebug(5008) << itW.current()->className() << "::" << itW.current()->name("unnamed") << endl; @@ -119,7 +119,7 @@ TQStringList objFinder::allObjects(){ delete qobl; ++it; } - TQWidgetList *all = TQApplication::allWidgets(); + TQWidgetList *all = TQApplication::tqallWidgets(); TQWidgetListIt itW(*all); while(itW.current()){ TQString name; diff --git a/ksirc/openksircproc.dlg b/ksirc/openksircproc.dlg index 1378f569..080199d9 100644 --- a/ksirc/openksircproc.dlg +++ b/ksirc/openksircproc.dlg @@ -26,7 +26,7 @@ Label { Rect {10 10 100 30} Name {Label_1} Font {"helvetica" 12 63 0 0 0 0 0 0} - LayoutStatus {NoLayout} + LayouttqStatus {NoLayout} MinimumSize {10 10} MaximumSize {32767 32767} } @@ -42,7 +42,7 @@ PushButton { Variable {okButton} Font {"helvetica" 12 63 0 0 0 0 0 0} Signal {[Protected] clicked --> create_toplevel ()} - LayoutStatus {NoLayout} + LayouttqStatus {NoLayout} MinimumSize {10 10} MaximumSize {32767 32767} } @@ -56,7 +56,7 @@ PushButton { Rect {10 50 180 30} Name {PushButton_2} Signal {[Protected] clicked --> terminate ()} - LayoutStatus {NoLayout} + LayouttqStatus {NoLayout} MinimumSize {10 10} MaximumSize {32767 32767} } @@ -68,7 +68,7 @@ ComboBox { Rect {70 10 320 30} Name {ComboBox_1} Variable {nameSLE} - LayoutStatus {NoLayout} + LayouttqStatus {NoLayout} MinimumSize {10 10} MaximumSize {32767 32767} } diff --git a/ksirc/puke/HOWTO-PUKE.pod b/ksirc/puke/HOWTO-PUKE.pod index c6bf8136..600f2111 100644 --- a/ksirc/puke/HOWTO-PUKE.pod +++ b/ksirc/puke/HOWTO-PUKE.pod @@ -11,7 +11,7 @@ under Linux. Puke's a generic protocol allowing dsirc to communicate with ksirc. Communications works over a unix domain socket between multiple client dsirc process's to a single ksirc process. All communications -is done via a variable length message with the following layout: +is done via a variable length message with the following tqlayout: =begin text @@ -68,17 +68,17 @@ supporting perl5-oop object. The C++ code must be able to hand all required settings and messages for the widget. Each new widget iherites it's parent and so forth -allowing for a nice oop layout. The widget structure the author is +allowing for a nice oop tqlayout. The widget structure the author is following is the same as Qt's. Their seems to work well, why re-invent the wheel? =item 2.1.1 General Layout, etc Figure where your new widget goes in the heirachy. If it's a simple -Qt widget, I recommend using their existing layout. Man pages list +Qt widget, I recommend using their existing tqlayout. Man pages list what widgets inherit what. -The general idea behind the widget layout should be to be to provide +The general idea behind the widget tqlayout should be to be to provide all the functionality of the widget to dsirc perl script. Incoming messages are handled via the messageHandler and ALL messages should return an ACK with current state info. @@ -106,7 +106,7 @@ These set and return your widget. If you care about inheritance, which you should, all these functions should be virtual. (Since we are using pointers to PWidget's -everywhere, it's a good bet you want your children's overriden +everywhere, it's a good bet you want your tqchildren's overriden functions called, not yours) The structure internally will have to hold a local copy of the widget, diff --git a/ksirc/puke/commands.h b/ksirc/puke/commands.h index ead9fb07..2baa316e 100644 --- a/ksirc/puke/commands.h +++ b/ksirc/puke/commands.h @@ -130,38 +130,38 @@ // cArg: not define #define PUKE_WIDGET_HIDE_ACK -1003 -// Desc: repaint widget -// iWinId: widget to repaint +// Desc: tqrepaint widget +// iWinId: widget to tqrepaint // iArg: erase, 0 for false, 1 for true // cArg: no defines #define PUKE_WIDGET_REPAINT 1005 -// Desc: repaint widget ack -// iWinId: widget to repaint +// Desc: tqrepaint widget ack +// iWinId: widget to tqrepaint // iArg: not defined // cArg: not defined #define PUKE_WIDGET_REPAINT_ACK -1005 // Desc: update widget on next event loop -// iWinId: widget to repaint +// iWinId: widget to tqrepaint // iArg: erase, 0 for false, 1 for true // cArg: no defines #define PUKE_WIDGET_UPDATE 1010 -// Desc: repaint widget ack -// iWinId: widget to repaint +// Desc: tqrepaint widget ack +// iWinId: widget to tqrepaint // iArg: not defined // cArg: not defined #define PUKE_WIDGET_UPDATE_ACK -1010 // Desc: resize the widget -// iWinId: widget to repaint +// iWinId: widget to tqrepaint // iArg: width in the low 16 bit, height in next 16 bits // cArg: not defined #define PUKE_WIDGET_RESIZE 1015 -// Desc: repaint widget ack -// iWinId: widget to repaint +// Desc: tqrepaint widget ack +// iWinId: widget to tqrepaint // iArg: new widget in lower 16 bit, new height in lower 16 bits // cArg: not defined #define PUKE_WIDGET_RESIZE_ACK -1015 @@ -766,13 +766,13 @@ // Desc: Set label's allignment // iWinId: window id -// iArg: alignment +// iArg: tqalignment // cArg: not defined #define PUKE_LABEL_SETALIGNMENT 1715 // Desc: Set label's allignment, ACK // iWinId: window id -// iArg: alignment +// iArg: tqalignment // cArg: not defined #define PUKE_LABEL_SETALIGNMENT_ACK -1715 @@ -993,14 +993,14 @@ #define PWIDGET_OBJFINDER 18 -// Group layout commands exist between 10000 and 11000 +// Group tqlayout commands exist between 10000 and 11000 -// Desc: create new box layout +// Desc: create new box tqlayout // iWinId: PWidget parent // iArg: 2 shorts, short[0] direction, short[1] border // cArg: random character string #define PUKE_LAYOUT_NEW 11000 -// Desc: ack for box layout +// Desc: ack for box tqlayout // iWinId: Layout ID. // iArg: not define // cArg: same random m character string as PUKE_LAYOUT_NEW @@ -1009,10 +1009,10 @@ #define PUKE_LAYOUT_ADDLAYOUT 11005 #define PUKE_LAYOUT_ADDLAYOUT_ACK -11005 -// Desc: add widget into layout manager +// Desc: add widget into tqlayout manager // iWinId: Layout Manager to add widget too // iArg: Widget Id to be added -// cArg: 2 characters, char[0] strech, char[1] alignment +// cArg: 2 characters, char[0] strech, char[1] tqalignment #define PUKE_LAYOUT_ADDWIDGET 11010 // Desc: ack for add widget // iWinId: Layout manager @@ -1032,7 +1032,7 @@ // cArg: not define #define PUKE_LAYOUT_ADDSTRUT_ACK -11015 -// Desc: activates layout management, like show() for widget +// Desc: activates tqlayout management, like show() for widget // iWinId: Layout Manager to activate // iArg: undef // cArg: undef diff --git a/ksirc/puke/controller.cpp b/ksirc/puke/controller.cpp index a790436d..20c020c7 100644 --- a/ksirc/puke/controller.cpp +++ b/ksirc/puke/controller.cpp @@ -32,7 +32,7 @@ using namespace std; // iostream.h include cstring which puts strlen into #include "pframe.h" #include "pkfiledialog.h" #include "plabel.h" -#include "playout.h" +#include "ptqlayout.h" #include "plined.h" #include "plistbox.h" #include "pmenudta.h" @@ -173,7 +173,7 @@ void PukeController::NewConnect(int) fcntl(cfd, F_SETFL, O_NONBLOCK); // Set it non-block so that // cfd() never blocks. - fdStatus *fds = new fdStatus(); + fdtqStatus *fds = new fdtqStatus(); fds->sr = new TQSocketNotifier(cfd, TQSocketNotifier::Read, this); fds->sw = new TQSocketNotifier(cfd, TQSocketNotifier::Write, this); connect(fds->sr, TQT_SIGNAL(activated(int)), @@ -868,7 +868,7 @@ void PukeController::messageHandler(int fd, PukeMessage *pm) { return; } - TQString libName = "ksirc/lib"+TQString::fromLatin1(pm->cArg); + TQString libName = "ksirc/lib"+TQString::tqfromLatin1(pm->cArg); if (libName.right(3) == ".so") libName = libName.left(libName.length()-2)+"la"; diff --git a/ksirc/puke/controller.h b/ksirc/puke/controller.h index c2a086f7..92c8be98 100644 --- a/ksirc/puke/controller.h +++ b/ksirc/puke/controller.h @@ -27,7 +27,7 @@ typedef struct { TQString server; bool writeable; TQSocketNotifier *sr,*sw; -} fdStatus; +} fdtqStatus; struct commandStruct { @@ -137,7 +137,7 @@ private: int iListenFd; bool bClosing; // Set true if we are closing, we don't try and close twice at the same time. TQSocketNotifier *qsnListen; - TQIntDict qidConnectFd; + TQIntDict qidConnectFd; /** * Controller ID is defined as 1 diff --git a/ksirc/puke/dcc_status.pm b/ksirc/puke/dcc_status.pm index 65bc1b07..799c8cf5 100644 --- a/ksirc/puke/dcc_status.pm +++ b/ksirc/puke/dcc_status.pm @@ -6,7 +6,7 @@ &docommand("/load ptablevw.pm"); &docommand("/load plistbox.pm"); &docommand("/load pbutton.pm");; -&docommand("/load pboxlayout.pm"); +&docommand("/load pboxtqlayout.pm"); &docommand("/load plabel.pm"); &docommand("/load pbutton.pm"); &docommand("/load ppushbt.pm"); @@ -123,7 +123,7 @@ sub sendClicked { use vars qw(@ISA $KSIRC_DCC %KSIRC_DCC); -package DCCStatus; +package DCCtqStatus; use vars qw(@ISA); @ISA = qw(PFrame); @@ -330,7 +330,7 @@ sub hook_ksirc_dcc_request { my($size) = shift; my($mwho) = $who; if($KSIRC_DCCSTATUS == undef){ - $KSIRC_DCCSTATUS = new DCCStatus; + $KSIRC_DCCSTATUS = new DCCtqStatus; $KSIRC_DCCSTATUS->resize(400, 275); } @@ -473,13 +473,13 @@ addhook("dcc_disconnect", "ksirc_dcc_disconnect"); &print("*I* Done DCC Status"); -#$::test = new DCCStatus; +#$::test = new DCCtqStatus; #$::test->resize(400, 275); #$::test->show(); sub popup_dccstatus{ if($KSIRC_DCCSTATUS == undef){ - $KSIRC_DCCSTATUS = new DCCStatus; + $KSIRC_DCCSTATUS = new DCCtqStatus; $KSIRC_DCCSTATUS->resize(400, 275); } $KSIRC_DCCSTATUS->show(); @@ -487,7 +487,7 @@ sub popup_dccstatus{ sub popup_dccsend{ if($KSIRC_DCCSTATUS == undef){ - $KSIRC_DCCSTATUS = new DCCStatus; + $KSIRC_DCCSTATUS = new DCCtqStatus; $KSIRC_DCCSTATUS->resize(400, 275); } $KSIRC_DCCSTATUS->sendClicked(); diff --git a/ksirc/puke/load_all.pm b/ksirc/puke/load_all.pm index 26594c0f..048eb9eb 100644 --- a/ksirc/puke/load_all.pm +++ b/ksirc/puke/load_all.pm @@ -1,7 +1,7 @@ &docommand("/load pbase.pm"); &docommand("/load pwidget.pm"); &docommand("/load pframe.pm"); -&docommand("/load pboxlayout.pm"); +&docommand("/load pboxtqlayout.pm"); &docommand("/load plined.pm"); &docommand("/load pbutton.pm"); &docommand("/load ppushbt.pm"); diff --git a/ksirc/puke/palistbox.cpp b/ksirc/puke/palistbox.cpp index 9f43b124..05124441 100644 --- a/ksirc/puke/palistbox.cpp +++ b/ksirc/puke/palistbox.cpp @@ -88,7 +88,7 @@ void PAListBox::messageHandler(int fd, PukeMessage *pm) widget()->removeItem(index); item->setVoice(pm->iArg); widget()->inSort(item); - widget()->repaint(TRUE); + widget()->tqrepaint(TRUE); pmRet.iCommand = - pm->iCommand; pmRet.iWinId = pm->iWinId; @@ -108,7 +108,7 @@ void PAListBox::messageHandler(int fd, PukeMessage *pm) widget()->removeItem(index); item->setOp(pm->iArg); widget()->inSort(item); - widget()->repaint(TRUE); + widget()->tqrepaint(TRUE); pmRet.iCommand = - pm->iCommand; pmRet.iWinId = pm->iWinId; diff --git a/ksirc/puke/pboxlayout.pm b/ksirc/puke/pboxlayout.pm index 505ddc0d..9896fd1c 100644 --- a/ksirc/puke/pboxlayout.pm +++ b/ksirc/puke/pboxlayout.pm @@ -40,7 +40,7 @@ sub new { #} # else{ if(ref($widget) ne ''){ - # print "*\cbI\cb* Generic Non-topleve layout type\n"; + # print "*\cbI\cb* Generic Non-topleve tqlayout type\n"; $self->{Parent} = $widget; $self->{ParentType} = 'Widget'; $self->{Direction} = shift; @@ -99,7 +99,7 @@ sub addWidget { my $align = shift; if($self->{Added} == 0){ - print "*E* Burp: Can't add widget without first being added to parent layout\n"; + print "*E* Burp: Can't add widget without first being added to parent tqlayout\n"; return; } @@ -128,41 +128,41 @@ sub addLayout { my $self = shift; if($self->{Added} == 0){ - print "*E* Burp: Can't add layout without first being added to parent layout\n"; + print "*E* Burp: Can't add tqlayout without first being added to parent tqlayout\n"; } - my $layout = shift; - if(ref($layout) ne 'PBoxLayout'){ - print "*E* Passed non layout type to addLayout\n"; + my $tqlayout = shift; + if(ref($tqlayout) ne 'PBoxLayout'){ + print "*E* Passed non tqlayout type to addLayout\n"; return 1; } - if($layout->{iWinId} <= 0){ - print "*E* Trying to add invalid layout " . ref($layout) . "\n"; + if($tqlayout->{iWinId} <= 0){ + print "*E* Trying to add invalid tqlayout " . ref($tqlayout) . "\n"; return; } # make sure we can run, and the widget we want to add can run. - # my @ARG = ($layout); + # my @ARG = ($tqlayout); #$self->canRun($self, \&PBoxLayout::addLayout, \@ARG) || return; - #$layout->canRun($self, \&PBoxLayout::addLayout, \@ARG) || return; + #$tqlayout->canRun($self, \&PBoxLayout::addLayout, \@ARG) || return; my %REPLY = $self->sendMessage('iCommand' => $::PUKE_LAYOUT_ADDLAYOUT, 'iWinId' => $self->{iWinId}, - 'iArg' => $layout->{iWinId}, + 'iArg' => $tqlayout->{iWinId}, 'cArg' => pack("C", 0), 'CallBack' => sub { }, 'WaitFor' => 1); - # print "*I* Adding layout\n"; + # print "*I* Adding tqlayout\n"; if($REPLY{'iArg'} != 0){ print "*E* AddLayout call failed\n"; } else{ - # print "*I* Added new Layout for " . $layout->{iWinId} . "\n"; - $layout->{Added} = 1; + # print "*I* Added new Layout for " . $tqlayout->{iWinId} . "\n"; + $tqlayout->{Added} = 1; } } diff --git a/ksirc/puke/pframe.pm b/ksirc/puke/pframe.pm index f851cdb8..2ef36ebc 100644 --- a/ksirc/puke/pframe.pm +++ b/ksirc/puke/pframe.pm @@ -44,13 +44,13 @@ sub setFrameStyle { my $self = shift; my $frame = shift; - my $repaint = shift; + my $tqrepaint = shift; $self->sendMessage('iCommand' => $::PUKE_QFRAME_SET_FRAME, 'iArg' => $frame, 'CallBack' => sub {}); - $self->repaint(1) if($repaint == 1); + $self->tqrepaint(1) if($tqrepaint == 1); } diff --git a/ksirc/puke/plabel.cpp b/ksirc/puke/plabel.cpp index 7567ac08..41a68636 100644 --- a/ksirc/puke/plabel.cpp +++ b/ksirc/puke/plabel.cpp @@ -83,7 +83,7 @@ void PLabel::messageHandler(int fd, PukeMessage *pm) if(!checkWidget()) return; - widget()->setAlignment(pm->iArg); + widget()->tqsetAlignment(pm->iArg); pmRet.iCommand = - pm->iCommand; pmRet.iWinId = pm->iWinId; pmRet.iArg = 0; diff --git a/ksirc/puke/plabel.pm b/ksirc/puke/plabel.pm index bc557b5e..efdcf490 100644 --- a/ksirc/puke/plabel.pm +++ b/ksirc/puke/plabel.pm @@ -83,7 +83,7 @@ sub text { -sub setAlignment { +sub tqsetAlignment { my $self = shift; my $align = shift; diff --git a/ksirc/puke/playout.cpp b/ksirc/puke/playout.cpp index 9bcdfa2a..3dbe5c87 100644 --- a/ksirc/puke/playout.cpp +++ b/ksirc/puke/playout.cpp @@ -1,7 +1,7 @@ #include -#include "playout.h" +#include "ptqlayout.h" #include "commands.h" PLayout::PLayout(TQObject *pobject) @@ -16,7 +16,7 @@ PLayout::~PLayout() // kdDebug(5008) << "PObject: in destructor" << endl; /* delete widget(); - layout = 0; + tqlayout = 0; setWidget(); */ } @@ -34,12 +34,12 @@ PObject *PLayout::createWidget(CreateArgs &ca) if((ca.parent != 0) && (ca.parent->widget()->isWidgetType() == TRUE)){ qbl = new TQBoxLayout((TQWidget *) ca.parent->widget(), (TQBoxLayout::Direction) direction, border); - // kdDebug(5008) << "Creating layout with parent: " << parent.iWinId << endl; + // kdDebug(5008) << "Creating tqlayout with parent: " << parent.iWinId << endl; } else{ qbl = new TQBoxLayout((TQBoxLayout::Direction) direction, border); - // kdDebug(5008) << "Creating layout NO PARENT" << endl; + // kdDebug(5008) << "Creating tqlayout NO PARENT" << endl; } pw->setWidget(qbl); pw->setWidgetId(ca.pwI); @@ -142,16 +142,16 @@ void PLayout::setWidget(TQObject *_layout) return; } - layout = (TQBoxLayout *) _layout; + tqlayout = (TQBoxLayout *) _layout; PObject::setWidget(_layout); } TQBoxLayout *PLayout::widget() { - return layout; + return tqlayout; } -#include "playout.moc" +#include "ptqlayout.moc" diff --git a/ksirc/puke/playout.h b/ksirc/puke/playout.h index 439a87a2..4124cb14 100644 --- a/ksirc/puke/playout.h +++ b/ksirc/puke/playout.h @@ -4,7 +4,7 @@ class PLayout; #include -#include +#include #include "pmessage.h" #include "pobject.h" @@ -36,7 +36,7 @@ public: private: - TQBoxLayout *layout; + TQBoxLayout *tqlayout; }; diff --git a/ksirc/puke/pobject.cpp b/ksirc/puke/pobject.cpp index 9e46e042..ab729315 100644 --- a/ksirc/puke/pobject.cpp +++ b/ksirc/puke/pobject.cpp @@ -131,7 +131,7 @@ void PObject::manTerm() { void PObject::errorInvalidSet(TQObject *_w) { - m_error = TQString("Tried setting a %1 to %2").arg(_w->className()).arg(className()); + m_error = TQString("Tried setting a %1 to %2").tqarg(_w->className()).tqarg(className()); m_hasError = true; } #include "pobject.moc" diff --git a/ksirc/puke/pwidget.cpp b/ksirc/puke/pwidget.cpp index b62f64c1..cf3ac667 100644 --- a/ksirc/puke/pwidget.cpp +++ b/ksirc/puke/pwidget.cpp @@ -90,7 +90,7 @@ void PWidget::messageHandler(int fd, PukeMessage *pm) emit outputMessage(fd, &pmRet); break; case PUKE_WIDGET_REPAINT: - widget()->repaint(pm->iArg); + widget()->tqrepaint(pm->iArg); pmRet.iCommand = PUKE_WIDGET_REPAINT_ACK; pmRet.iWinId = pm->iWinId; pmRet.iArg = 0; @@ -209,12 +209,12 @@ void PWidget::messageHandler(int fd, PukeMessage *pm) int *pos; pos = (int *) pm->cArg; TQColor bg(pos[0], pos[1], pos[2]); - TQColorGroup cg = TQColorGroup(widget()->colorGroup().foreground(), + TQColorGroup cg = TQColorGroup(widget()->tqcolorGroup().foreground(), bg, - widget()->colorGroup().light(), - widget()->colorGroup().dark(), - widget()->colorGroup().mid(), - widget()->colorGroup().text(), + widget()->tqcolorGroup().light(), + widget()->tqcolorGroup().dark(), + widget()->tqcolorGroup().mid(), + widget()->tqcolorGroup().text(), bg); widget()->setPalette(TQPalette(cg,cg,cg)); diff --git a/ksirc/puke/pwidget.pm b/ksirc/puke/pwidget.pm index 5a73d393..56381db6 100644 --- a/ksirc/puke/pwidget.pm +++ b/ksirc/puke/pwidget.pm @@ -61,7 +61,7 @@ sub hide { $self->sendMessage('iCommand' => $::PUKE_WIDGET_HIDE); } -sub repaint { +sub tqrepaint { my $self = shift; my $erase = shift; # 1 for erase and reapint diff --git a/ksirc/puke/small.pl b/ksirc/puke/small.pl index 7e7b251d..fdeae902 100644 --- a/ksirc/puke/small.pl +++ b/ksirc/puke/small.pl @@ -1,7 +1,7 @@ &docommand("/load pbase.pm"); &docommand("/load pwidget.pm"); &docommand("/load pframe.pm"); -&docommand("/load pboxlayout.pm"); +&docommand("/load pboxtqlayout.pm"); &docommand("/load plined.pm"); &docommand("/load pbutton.pm"); &docommand("/load ppushbt.pm"); diff --git a/ksirc/puke/test.pl b/ksirc/puke/test.pl index 4b4c3169..369a2dc9 100644 --- a/ksirc/puke/test.pl +++ b/ksirc/puke/test.pl @@ -1,7 +1,7 @@ &docommand("/load pbase.pm"); &docommand("/load pwidget.pm"); &docommand("/load pframe.pm"); -&docommand("/load pboxlayout.pm"); +&docommand("/load pboxtqlayout.pm"); &docommand("/load plined.pm"); &docommand("/load pbutton.pm"); &docommand("/load ppushbt.pm"); diff --git a/ksirc/puke/user_monitor.ks b/ksirc/puke/user_monitor.ks index a0b2a56a..d73fa513 100644 --- a/ksirc/puke/user_monitor.ks +++ b/ksirc/puke/user_monitor.ks @@ -3,7 +3,7 @@ &docommand("/load pframe.pm"); &docommand("/load ptablevw.pm"); &docommand("/load plistbox.pm"); -&docommand("/load pboxlayout.pm"); +&docommand("/load pboxtqlayout.pm"); &docommand("/load plabel.pm"); &docommand("/load pmenudta.pm"); &docommand("/load ppopmenu.pm"); diff --git a/ksirc/servercontroller.cpp b/ksirc/servercontroller.cpp index 73d32daf..9ad1b913 100644 --- a/ksirc/servercontroller.cpp +++ b/ksirc/servercontroller.cpp @@ -253,7 +253,7 @@ void servercontroller::new_ksircprocess(KSircServer &kss) return; server_id = kss.server(); while(proc_list[server_id]){ // if it already exists, quit - server_id = TQString("%1 %2").arg(kss.server()).arg(id++); + server_id = TQString("%1 %2").tqarg(kss.server()).tqarg(id++); } // Insert new base @@ -386,7 +386,7 @@ void servercontroller::font_update(const TQFont &font) KConfig *kConfig = kapp->config(); kConfig->setGroup("GlobalOptions"); kConfig->sync(); - TQApplication::setFont( font, true, "KSirc::TextView" ); + TQApplication::tqsetFont( font, true, "KSirc::TextView" ); } void servercontroller::configChange() @@ -435,7 +435,7 @@ void servercontroller::ProcMessage(TQString server, int command, TQString args) if(online_item->childCount() == 0) delete online_item; if(ksopts->runDocked && ksopts->dockPopups) - KPassivePopup::message(i18n("%1 just went offline on %2").arg(args).arg(server), dockWidget); + KPassivePopup::message(i18n("%1 just went offline on %2").tqarg(args).tqarg(server), dockWidget); } dockWidget->nickOffline(server, args); break; @@ -457,7 +457,7 @@ void servercontroller::ProcMessage(TQString server, int command, TQString args) item = new TQListViewItem(online_item, args); item->setPixmap( 0, pic_run ); if(ksopts->runDocked && ksopts->dockPopups) - KPassivePopup::message(i18n("%1 just came online on %2").arg(args).arg(server), dockWidget); + KPassivePopup::message(i18n("%1 just came online on %2").tqarg(args).tqarg(server), dockWidget); dockWidget->nickOnline(server, args); break; } @@ -615,7 +615,7 @@ void servercontroller::saveGlobalProperties(KConfig *ksc) ksc->setGroup("ServerController"); // ksc->writeEntry("Docked", !isVisible()); - ksc->writeEntry("Size", geometry()); + ksc->writeEntry("Size", tqgeometry()); ksc->setGroup(group); } @@ -718,7 +718,7 @@ void servercontroller::showEvent( TQShowEvent *e ) { TQWidget::showEvent( e ); if ( !e->spontaneous() ) - saveDockingStatus(); + saveDockingtqStatus(); } void servercontroller::hideEvent( TQHideEvent * ) @@ -726,7 +726,7 @@ void servercontroller::hideEvent( TQHideEvent * ) /* TQWidget::hideEvent( e ); if ( !e->spontaneous() ) - saveDockingStatus(); + saveDockingtqStatus(); if(TQWidget::isMinimized()){ hide(); KWin::setState(winId(), NET::SkipTaskbar); @@ -734,7 +734,7 @@ void servercontroller::hideEvent( TQHideEvent * ) */ } -void servercontroller::saveDockingStatus() +void servercontroller::saveDockingtqStatus() { if ( we_are_exiting ) // we are hidden by closeEvent return; diff --git a/ksirc/servercontroller.dlg b/ksirc/servercontroller.dlg index 7e515bdc..208d4508 100644 --- a/ksirc/servercontroller.dlg +++ b/ksirc/servercontroller.dlg @@ -25,7 +25,7 @@ User { Rect {0 0 410 30} Name {User_2} Variable {MenuBar} - LayoutStatus {NoLayout} + LayouttqStatus {NoLayout} MinimumSize {10 10} MaximumSize {32767 32767} } diff --git a/ksirc/servercontroller.h b/ksirc/servercontroller.h index 781627b3..891ececd 100644 --- a/ksirc/servercontroller.h +++ b/ksirc/servercontroller.h @@ -206,7 +206,7 @@ protected: virtual void showEvent( TQShowEvent *e ); virtual void hideEvent( TQHideEvent *e ); virtual void closeEvent( TQCloseEvent * ); - void saveDockingStatus(); + void saveDockingtqStatus(); void saveGlobalProperties(KConfig *); void readGlobalProperties(KConfig *); diff --git a/ksirc/ssfepromptdata.cpp b/ksirc/ssfepromptdata.cpp index 15349f44..563fc7eb 100644 --- a/ksirc/ssfepromptdata.cpp +++ b/ksirc/ssfepromptdata.cpp @@ -31,7 +31,7 @@ ssfepromptdata::ssfepromptdata prompt->setMinimumSize( 10, 10 ); prompt->setMaximumSize( 32767, 32767 ); prompt->setText( "" ); - prompt->setAlignment( 289 ); + prompt->tqsetAlignment( 289 ); prompt->setMargin( -1 ); SLine = new TQLineEdit( this, "LineEdit_1" ); diff --git a/ksirc/topic.cpp b/ksirc/topic.cpp index bcaa4408..a470c3c7 100644 --- a/ksirc/topic.cpp +++ b/ksirc/topic.cpp @@ -11,8 +11,8 @@ #include #include #include -#include -#include +#include +#include #include #include @@ -34,13 +34,13 @@ KSircTopic::KSircTopic( TQWidget *parent, const char *name ) m_editor = 0; m_doEdit = false; m_height = 0; -// setBackgroundColor( colorGroup().light() ); +// setBackgroundColor( tqcolorGroup().light() ); setFrameStyle( TQFrame::Panel | TQFrame::Sunken ); - setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed ) ); + tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed ) ); setTextFormat( RichText ); setWordWrap(TQTextEdit::NoWrap); doResize(); -// setAlignment( alignment() | WordBreak ); +// tqsetAlignment( tqalignment() | WordBreak ); } void KSircTopic::setText( const TQString &_text) @@ -49,7 +49,7 @@ void KSircTopic::setText( const TQString &_text) TQString text = _text; TQString richText( "" ); - richText = richText.arg( ksopts->textColor.name() ); + richText = richText.tqarg( ksopts->textColor.name() ); text.replace('&', "&"); text.replace('<', "<"); @@ -65,11 +65,11 @@ void KSircTopic::setText( const TQString &_text) // 'nick< to catch queries. TQRegExp bidiRe( "^(<\\S+>)(.+)$" ); - text.replace( bidiRe, TQString::fromLatin1( "\\1\\2" ) ); + text.replace( bidiRe, TQString::tqfromLatin1( "\\1\\2" ) ); TQRegExp bidiRe2( "^(\\[\\S+\\])(.+)$" ); - text.replace( bidiRe2, TQString::fromLatin1( "\\1\\2" ) ); + text.replace( bidiRe2, TQString::tqfromLatin1( "\\1\\2" ) ); TQRegExp bidiRe3( "^(>\\S+<)(.+)$" ); - text.replace( bidiRe3, TQString::fromLatin1( "\\1\\2" ) ); + text.replace( bidiRe3, TQString::tqfromLatin1( "\\1\\2" ) ); KSParser parser; richText += parser.parse( text ); @@ -111,7 +111,7 @@ void KSircTopic::contentsMouseReleaseEvent( TQMouseEvent *e ) * the size really breaks and you get * a huge widget */ - m_editor->setGeometry( geometry() ); + m_editor->setGeometry( tqgeometry() ); m_editor->setFocus(); m_editor->show(); @@ -211,7 +211,7 @@ void KSircTopicEditor::focusOutEvent( TQFocusEvent * fe ) // menu if ( fe->reason() == TQFocusEvent::Popup ) { - TQWidget *focusw = tqApp->focusWidget(); + TQWidget *focusw = tqApp->tqfocusWidget(); if ( focusw && m_popup && focusw == m_popup ) return; } diff --git a/ksirc/topic.h b/ksirc/topic.h index c5570b67..ccd59a8a 100644 --- a/ksirc/topic.h +++ b/ksirc/topic.h @@ -8,7 +8,7 @@ #define __topic_h__ #include -#include +#include #include #include #include diff --git a/ksirc/toplevel.cpp b/ksirc/toplevel.cpp index f68a9cc5..fa53cded 100644 --- a/ksirc/toplevel.cpp +++ b/ksirc/toplevel.cpp @@ -50,12 +50,12 @@ #include #include -#include +#include #include #include #include -#include -#include +#include +#include #include #include @@ -85,7 +85,7 @@ TQStringList KSircTopLevel::cmd_menu; void KSircTopLevel::initColors() { - TQColorGroup cg_mainw = kapp->palette().active(); + TQColorGroup cg_mainw = kapp->tqpalette().active(); cg_mainw.setColor(TQColorGroup::Base, ksopts->backgroundColor); cg_mainw.setColor(TQColorGroup::Text, ksopts->textColor); cg_mainw.setColor(TQColorGroup::Link, ksopts->linkColor); @@ -216,7 +216,7 @@ KSircTopLevel::KSircTopLevel(KSircProcess *_proc, const KSircChannel &channelInf kmenu->setAccel(Key_F, KST_CHANNEL_ID); /* - * Ok, let's look at the basic widget "layout" + * Ok, let's look at the basic widget "tqlayout" * Everything belongs to q TQFrame F, this is use so we * can give the KApplication a single main client widget, which is needs. * @@ -258,7 +258,7 @@ KSircTopLevel::KSircTopLevel(KSircProcess *_proc, const KSircChannel &channelInf lag = new TQLabel(nicks_box); lag->setFrameStyle(TQFrame::Panel|TQFrame::Sunken); - lag->setAlignment(TQt::AlignCenter | TQt::SingleLine); + lag->tqsetAlignment(TQt::AlignCenter | TQt::SingleLine); lag->setText(i18n("Lag: Wait")); @@ -587,9 +587,9 @@ void KSircTopLevel::setMode(TQString mode, int mode_type, TQString currentNick) { TQString command; if (mode_type == 0) - command = TQString::fromLatin1("/mode %1 %2\n").arg(m_channelInfo.channel()).arg(mode); + command = TQString::tqfromLatin1("/mode %1 %2\n").tqarg(m_channelInfo.channel()).tqarg(mode); else - command = TQString::fromLatin1("/mode %1 %2\n").arg(currentNick).arg(mode); + command = TQString::tqfromLatin1("/mode %1 %2\n").tqarg(currentNick).tqarg(mode); sirc_write(command); linee->setFocus(); } @@ -829,7 +829,7 @@ void KSircTopLevel::sirc_receive(TQString str, bool broadcast) // that we enter a local event loop (think of the ssfeprompt dialog!) // which might trigger a socketnotifier activation which in turn // might result in the execution of code that modifies the LineBuffer, - // which would invalidate iterators (Simon) + // which would tqinvalidate iterators (Simon) while ( LineBuffer.begin() != LineBuffer.end() ) { TQString plainText(""); @@ -877,7 +877,7 @@ void KSircTopLevel::sirc_receive(TQString str, bool broadcast) list = pan->sizes(); it = list.begin(); while( it != list.end()){ - values += TQString("%1 ").arg(*it); + values += TQString("%1 ").tqarg(*it); ++it; } } @@ -974,7 +974,7 @@ void KSircTopLevel::sirc_write(const TQString &str) return; } else if ( plain.startsWith( "/away" ) ) { - TQString awayEvalCommand = TQString::fromLatin1( "/eval $publicAway = %1\n" ).arg( ksopts->publicAway ? '1' : '0' ); + TQString awayEvalCommand = TQString::tqfromLatin1( "/eval $publicAway = %1\n" ).tqarg( ksopts->publicAway ? '1' : '0' ); emit outputUnicodeLine( awayEvalCommand ); } @@ -985,7 +985,7 @@ void KSircTopLevel::sirc_write(const TQString &str) if(!isSpecialWindow()) { // channel or private chat if(plain[0].latin1() != '/'){ - command.prepend(TQString::fromLatin1("/msg %1 ").arg(m_channelInfo.channel())); + command.prepend(TQString::tqfromLatin1("/msg %1 ").tqarg(m_channelInfo.channel())); } else if(plain.startsWith("/me ")) { command.remove(0, 3); @@ -1104,7 +1104,7 @@ void KSircTopLevel::returnPressed() uint i; TQChar c; for(i = 0; (c = s[i]); i++){ - switch(c.unicode()){ + switch(c.tqunicode()){ case 0336: s[i] = 002; break; @@ -1147,15 +1147,15 @@ void KSircTopLevel::UserParseMenu(int id) return; TQString s; - s = TQString("/eval $dest_nick='%1';\n").arg(nicks->text(nicks->currentItem())); + s = TQString("/eval $dest_nick='%1';\n").tqarg(nicks->text(nicks->currentItem())); sirc_write(s); // set $$dest_chan variable - s = TQString("/eval $dest_chan='%1';\n").arg(m_channelInfo.channel()); + s = TQString("/eval $dest_chan='%1';\n").tqarg(m_channelInfo.channel()); sirc_write(s); TQString action = user_menu->at(id)->action; if (action.length() && action[0] == '/') action.remove(0, 1); - s = TQString("/eval &docommand(eval{\"%1\"});\n").arg(action); + s = TQString("/eval &docommand(eval{\"%1\"});\n").tqarg(action); s.replace(TQRegExp("\\$\\$"), "$"); sirc_write(s); } @@ -1233,7 +1233,7 @@ void KSircTopLevel::gotFocus() if(isVisible() == TRUE){ if(have_focus == 0){ if(m_channelInfo.channel()[0] != '!' ){ - TQString str = TQString("/join %1").arg(m_channelInfo.channel()); + TQString str = TQString("/join %1").tqarg(m_channelInfo.channel()); if(m_channelInfo.key().length() > 0){ str.append(" " + m_channelInfo.key()); } @@ -1247,7 +1247,7 @@ void KSircTopLevel::gotFocus() } if(m_gotMsgWithoutFocus == true){ m_gotMsgWithoutFocus = false; - servercontroller::self()->decreaseNotificationCount(TQString("%1 -> %2 got message").arg(ksircProcess()->serverID()).arg(m_channelInfo.channel())); + servercontroller::self()->decreaseNotificationCount(TQString("%1 -> %2 got message").tqarg(ksircProcess()->serverID()).tqarg(m_channelInfo.channel())); } } @@ -1293,14 +1293,14 @@ void KSircTopLevel::control_message(int command, TQString str) emit currentWindow(this); if(m_channelInfo.channel()[0] == '#' || m_channelInfo.channel()[0] == '&'){ - TQString str = TQString("/join %1 %2\n").arg(m_channelInfo.channel()).arg(m_channelInfo.key()); + TQString str = TQString("/join %1 %2\n").tqarg(m_channelInfo.channel()).tqarg(m_channelInfo.key()); kdDebug(5008) << "Doing /join " << m_channelInfo.channel() << " :" << str << endl; emit outputUnicodeLine(str); emit outputLine("/eval $query=''\n"); } else if (m_channelInfo.channel()[0] != '!') { - emit outputUnicodeLine(TQString("/eval $query='%1'\n").arg(m_channelInfo.channel())); + emit outputUnicodeLine(TQString("/eval $query='%1'\n").tqarg(m_channelInfo.channel())); } bool isPrivate = isPrivateChat(); @@ -1327,13 +1327,13 @@ void KSircTopLevel::control_message(int command, TQString str) // nicks->show(); // lag->show(); } - if(layout()) { - //kdDebug(5008) << "Redoeing layout" << endl; - layout()->invalidate(); - layout()->activate(); + if(tqlayout()) { + //kdDebug(5008) << "Redoeing tqlayout" << endl; + tqlayout()->tqinvalidate(); + tqlayout()->activate(); } else { - //kdDebug(5008) << "No layout" << endl; + //kdDebug(5008) << "No tqlayout" << endl; } pan->refresh(); @@ -1497,8 +1497,8 @@ void KSircTopLevel::openQueryFromNick(const TQString &nick) void KSircTopLevel::pasteToWindow() { // Ctrl-V - //kdDebug(5008) << "Going to paste: " << KApplication::clipboard()->text( TQClipboard::Clipboard ) << endl; - slotTextDropped(KApplication::clipboard()->text( TQClipboard::Clipboard ) ); + //kdDebug(5008) << "Going to paste: " << KApplication::tqclipboard()->text( TQClipboard::Clipboard ) << endl; + slotTextDropped(KApplication::tqclipboard()->text( TQClipboard::Clipboard ) ); } void KSircTopLevel::pasteToNickList(int button, @@ -1510,7 +1510,7 @@ void KSircTopLevel::pasteToNickList(int button, emit open_toplevel(ci); TQStringList lines = TQStringList::split( '\n', - KApplication::clipboard()->text( TQClipboard::Selection ), + KApplication::tqclipboard()->text( TQClipboard::Selection ), true ); TQStringList::ConstIterator it = lines.begin(); TQStringList::ConstIterator end = lines.end(); @@ -1574,7 +1574,7 @@ void KSircTopLevel::slotTextDropped( const TQString& _text ) approx_lines = lines; if (lines > 4) { int result = KMessageBox::warningContinueCancel(this, - i18n("You are about to send %1 lines of text.\nDo you really want to send that much?").arg(approx_lines), + i18n("You are about to send %1 lines of text.\nDo you really want to send that much?").tqarg(approx_lines), TQString(), i18n("Send")); if (result != KMessageBox::Continue) { @@ -1700,7 +1700,7 @@ void KSircTopLevel::slotDccURLs( const TQStringList& urls, const TQString& nick TQString file( *it ); kdDebug(5008) << "........ " << file << endl; if ( !file.isEmpty() ) - sirc_write(s.arg( file )); + sirc_write(s.tqarg( file )); } } @@ -1727,7 +1727,7 @@ void KSircTopLevel::outputUnicodeLine( const TQString &message ) void KSircTopLevel::setTopicIntern( const TQString &topic ) { - TQString command = TQString::fromLatin1( "/topic %1 %2\n" ).arg( m_channelInfo.channel() ).arg( topic ); + TQString command = TQString::tqfromLatin1( "/topic %1 %2\n" ).tqarg( m_channelInfo.channel() ).tqarg( topic ); sirc_write( command ); linee->setFocus(); } @@ -1739,15 +1739,15 @@ void KSircTopLevel::doChange(bool pers, TQString text) // beep only every 2 seconds otherwise it'll get very noisy in the room ;) if ( TQABS( lastBeep.secsTo( ctime ) ) > 1 ) { if ( pers ) { - int winId = !ticker ? topLevelWidget()->winId() : ticker->winId(); + int winId = !ticker ? tqtopLevelWidget()->winId() : ticker->winId(); KNotifyClient::event(winId, - TQString::fromLatin1("ChannelPersonal"), - i18n("Your nick appeared on channel %1").arg(m_channelInfo.channel())); + TQString::tqfromLatin1("ChannelPersonal"), + i18n("Your nick appeared on channel %1").tqarg(m_channelInfo.channel())); } else { - int winId = !ticker ? topLevelWidget()->winId() : ticker->winId(); + int winId = !ticker ? tqtopLevelWidget()->winId() : ticker->winId(); KNotifyClient::event(winId, - TQString::fromLatin1("ChannelChanged"), - i18n("Channel %1 changed").arg(m_channelInfo.channel())); + TQString::tqfromLatin1("ChannelChanged"), + i18n("Channel %1 changed").tqarg(m_channelInfo.channel())); } lastBeep = ctime; } @@ -1755,7 +1755,7 @@ void KSircTopLevel::doChange(bool pers, TQString text) if(have_focus == 0 && pers == true && m_gotMsgWithoutFocus == false){ m_gotMsgWithoutFocus = true; - servercontroller::self()->increaseNotificationCount(TQString("%1 -> %2").arg(ksircProcess()->serverID()).arg(m_channelInfo.channel()), text); + servercontroller::self()->increaseNotificationCount(TQString("%1 -> %2").tqarg(ksircProcess()->serverID()).tqarg(m_channelInfo.channel()), text); } } diff --git a/ksirc/toplevel.h b/ksirc/toplevel.h index 47da2064..ba1a25bc 100644 --- a/ksirc/toplevel.h +++ b/ksirc/toplevel.h @@ -454,7 +454,7 @@ private: */ TQPoint mypoint; /** - * Ticker's size and geometry + * Ticker's size and tqgeometry */ TQRect tickerrect; /** diff --git a/ktalkd/kcmktalkd/answmachpage.cpp b/ktalkd/kcmktalkd/answmachpage.cpp index efff4e06..4a3947da 100644 --- a/ktalkd/kcmktalkd/answmachpage.cpp +++ b/ktalkd/kcmktalkd/answmachpage.cpp @@ -49,27 +49,27 @@ KAnswmachPageConfig::KAnswmachPageConfig( TQWidget *parent, const char* name, mail_edit->setMinimumWidth(150); mail_label = new TQLabel(mail_edit,i18n("&Mail address:"),this); mail_label->adjustSize(); - mail_label->setAlignment( ShowPrefix | AlignVCenter ); + mail_label->tqsetAlignment( ShowPrefix | AlignVCenter ); subj_edit = new TQLineEdit(this); subj_edit->adjustSize(); subj_edit->setMinimumWidth(150); subj_label = new TQLabel(subj_edit, i18n("Mail s&ubject:"),this); subj_label->adjustSize(); - subj_label->setAlignment( ShowPrefix | AlignVCenter ); + subj_label->tqsetAlignment( ShowPrefix | AlignVCenter ); subj_tip = new TQLabel(i18n("Use %s for the caller name"),this); - subj_tip->setAlignment( ShowPrefix ); + subj_tip->tqsetAlignment( ShowPrefix ); head_edit = new TQLineEdit(this); head_edit->adjustSize(); head_edit->setMinimumWidth(150); head_label = new TQLabel(head_edit, i18n("Mail &first line:"),this); head_label->adjustSize(); - head_label->setAlignment( ShowPrefix | AlignVCenter ); + head_label->tqsetAlignment( ShowPrefix | AlignVCenter ); head_tip = new TQLabel( i18n("Use first %s for caller name, and second %s for caller hostname"), this); - head_tip->setAlignment( ShowPrefix ); + head_tip->tqsetAlignment( ShowPrefix ); emptymail_cb = new TQCheckBox(i18n("&Receive a mail even if no message left"), this); emptymail_cb->adjustSize(); @@ -79,7 +79,7 @@ KAnswmachPageConfig::KAnswmachPageConfig( TQWidget *parent, const char* name, msg_ml->setMinimumWidth(150); msg_label = new TQLabel(msg_ml, i18n("&Banner displayed on answering machine startup:"),this); msg_label->adjustSize(); - msg_label->setAlignment( ShowPrefix | AlignVCenter ); + msg_label->tqsetAlignment( ShowPrefix | AlignVCenter ); int h = 10 + answmach_cb->height() + mail_edit->height() + subj_edit->height() + subj_tip->height() + head_edit->height() diff --git a/ktalkd/kcmktalkd/forwmachpage.cpp b/ktalkd/kcmktalkd/forwmachpage.cpp index 33438651..2046833d 100644 --- a/ktalkd/kcmktalkd/forwmachpage.cpp +++ b/ktalkd/kcmktalkd/forwmachpage.cpp @@ -45,7 +45,7 @@ KForwmachPageConfig::KForwmachPageConfig( TQWidget *parent, const char* name, address_edit->setMinimumWidth(150); address_label = new TQLabel(address_edit,i18n("&Destination (user or user@host):"),this); address_label->adjustSize(); - address_label->setAlignment( ShowPrefix | AlignVCenter ); + address_label->tqsetAlignment( ShowPrefix | AlignVCenter ); method_combo = new TQComboBox(this); method_combo->insertItem("FWA"); @@ -55,7 +55,7 @@ KForwmachPageConfig::KForwmachPageConfig( TQWidget *parent, const char* name, method_combo->setMinimumWidth(80); method_label = new TQLabel(method_combo, i18n("Forward &method:"),this); method_label->adjustSize(); - method_label->setAlignment( ShowPrefix | AlignVCenter ); + method_label->tqsetAlignment( ShowPrefix | AlignVCenter ); expl_label = new TQLabel(i18n( "FWA: Forward announcement only. Direct connection. Not recommended.\n\ diff --git a/ktalkd/kcmktalkd/main.cpp b/ktalkd/kcmktalkd/main.cpp index 19bc3c61..bd68e17a 100644 --- a/ktalkd/kcmktalkd/main.cpp +++ b/ktalkd/kcmktalkd/main.cpp @@ -28,7 +28,7 @@ #include #include #include -#include +#include KTalkdConfigModule::KTalkdConfigModule(TQWidget *parent, const char *name) : KCModule(parent, name) @@ -36,11 +36,11 @@ KTalkdConfigModule::KTalkdConfigModule(TQWidget *parent, const char *name) config = new KSimpleConfig("ktalkdrc"); announceconfig = new KSimpleConfig("ktalkannouncerc"); - TQVBoxLayout *layout = new TQVBoxLayout(this); + TQVBoxLayout *tqlayout = new TQVBoxLayout(this); tab = new TQTabWidget(this); - layout->addWidget(tab); + tqlayout->addWidget(tab); soundpage = new KSoundPageConfig(this, "soundpage", config, announceconfig); answmachpage = new KAnswmachPageConfig(this, "answmachpage", config); diff --git a/ktalkd/kcmktalkd/soundpage.cpp b/ktalkd/kcmktalkd/soundpage.cpp index 535fb36d..26b82f59 100644 --- a/ktalkd/kcmktalkd/soundpage.cpp +++ b/ktalkd/kcmktalkd/soundpage.cpp @@ -27,7 +27,7 @@ #include //for setenv #include -#include +#include #include #include #include @@ -66,7 +66,7 @@ KSoundPageConfig::KSoundPageConfig( TQWidget *parent, const char* name, extprg_box->setColumnLayout( 0, Qt::Horizontal ); toplay->addWidget(extprg_box); - TQGridLayout* l = new TQGridLayout(extprg_box->layout()); + TQGridLayout* l = new TQGridLayout(extprg_box->tqlayout()); extprg_edit = new KURLRequester(extprg_box); l->addWidget(extprg_edit, 2, 4); @@ -193,7 +193,7 @@ void KSoundPageConfig::sound_listDropEvent(TQDropEvent* e){ if (url.path().right(4).upper() != ".WAV") { TQString msg = i18n("%1\ndoes not appear "\ - "to be a WAV file.").arg(url.path()); + "to be a WAV file.").tqarg(url.path()); KMessageBox::sorry(this, msg, i18n("Improper File Extension")); @@ -203,7 +203,7 @@ void KSoundPageConfig::sound_listDropEvent(TQDropEvent* e){ if (!addToSound_List(url.path())) { // did not add file because it is already in the list - TQString msg = i18n("The file %1 is already in the list").arg(url.path()); + TQString msg = i18n("The file %1 is already in the list").tqarg(url.path()); KMessageBox::information(this, msg, i18n("File Already in List")); diff --git a/ktalkd/ktalkd/threads.cpp b/ktalkd/ktalkd/threads.cpp index 604280b2..2cee3338 100644 --- a/ktalkd/ktalkd/threads.cpp +++ b/ktalkd/ktalkd/threads.cpp @@ -44,7 +44,7 @@ static int nb_child_to_wait=0; #undef DEBUG_THREADS -/** Register a new process (by just increasing the number of children */ +/** Register a new process (by just increasing the number of tqchildren */ void new_process() { nb_child_to_wait++; @@ -76,7 +76,7 @@ int wait_process(int pid) return status; } -/** Wait for children (if any) to exit. Return 1 if no more child to wait */ +/** Wait for tqchildren (if any) to exit. Return 1 if no more child to wait */ int ack_process() { if (nb_child_to_wait>0) diff --git a/ktalkd/ktalkd/threads.h b/ktalkd/ktalkd/threads.h index 4630f8b0..600ae53b 100644 --- a/ktalkd/ktalkd/threads.h +++ b/ktalkd/ktalkd/threads.h @@ -31,9 +31,9 @@ * (BSD License, from tdelibs/doc/common/bsd-license.html) */ -/** Register a new process (by just increasing the number of children */ +/** Register a new process (by just increasing the number of tqchildren */ void new_process(); /** Wait for a given process - not registered - and see if others exited */ int wait_process(int pid); -/** Wait for children (if any) to exit. Return 1 if no more child to wait */ +/** Wait for tqchildren (if any) to exit. Return 1 if no more child to wait */ int ack_process(); diff --git a/ktalkd/ktalkdlg/ktalkdlg.cpp b/ktalkd/ktalkdlg/ktalkdlg.cpp index c987179e..b7fa0684 100644 --- a/ktalkd/ktalkdlg/ktalkdlg.cpp +++ b/ktalkd/ktalkdlg/ktalkdlg.cpp @@ -98,7 +98,7 @@ int main (int argc, char **argv) { s += '\n'; TQString callee = args->arg(1); - s += i18n ("for user %1").arg( callee.isEmpty() ? i18n("") : callee ); + s += i18n ("for user %1").tqarg( callee.isEmpty() ? i18n("") : callee ); } s += "."; diff --git a/lanbrowsing/kcmlisa/findnic.cpp b/lanbrowsing/kcmlisa/findnic.cpp index 721834c9..d7437848 100644 --- a/lanbrowsing/kcmlisa/findnic.cpp +++ b/lanbrowsing/kcmlisa/findnic.cpp @@ -275,21 +275,21 @@ TQString flags_tos (unsigned int flags) if (flags & IFF_BROADCAST) { if (tmp.length()) { - tmp += TQString::fromLatin1(", "); + tmp += TQString::tqfromLatin1(", "); } tmp += i18n("Broadcast"); } if (flags & IFF_MULTICAST) { if (tmp.length()) { - tmp += TQString::fromLatin1(", "); + tmp += TQString::tqfromLatin1(", "); } tmp += i18n("Multicast"); } if (flags & IFF_LOOPBACK) { if (tmp.length()) { - tmp += TQString::fromLatin1(", "); + tmp += TQString::tqfromLatin1(", "); } tmp += i18n("Loopback"); } diff --git a/lanbrowsing/kcmlisa/kcmkiolan.cpp b/lanbrowsing/kcmlisa/kcmkiolan.cpp index b7abad2c..2f02e2fa 100644 --- a/lanbrowsing/kcmlisa/kcmkiolan.cpp +++ b/lanbrowsing/kcmlisa/kcmkiolan.cpp @@ -21,7 +21,7 @@ #include "kcmkiolan.h" #include -#include +#include #include #include #include @@ -35,8 +35,8 @@ IOSlaveSettings::IOSlaveSettings(const TQString& config, TQWidget *parent) :KCModule(parent) ,m_config(config,false,true) { - TQVBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint()); - layout->setAutoAdd(true); + TQVBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint()); + tqlayout->setAutoAdd(true); TQGroupBox* group=new TQGroupBox(1,Qt::Horizontal, i18n("Show Links for Following Services"), this); @@ -53,13 +53,13 @@ IOSlaveSettings::IOSlaveSettings(const TQString& config, TQWidget *parent) label->setBuddy(m_defaultLisaHostLe); TQWidget *w=new TQWidget(this); - layout->setStretchFactor(m_ftpSettings,0); - layout->setStretchFactor(m_httpSettings,0); - layout->setStretchFactor(m_nfsSettings,0); - layout->setStretchFactor(m_smbSettings,0); - layout->setStretchFactor(m_shortHostnames,0); - layout->setStretchFactor(hbox,0); - layout->setStretchFactor(w,1); + tqlayout->setStretchFactor(m_ftpSettings,0); + tqlayout->setStretchFactor(m_httpSettings,0); + tqlayout->setStretchFactor(m_nfsSettings,0); + tqlayout->setStretchFactor(m_smbSettings,0); + tqlayout->setStretchFactor(m_shortHostnames,0); + tqlayout->setStretchFactor(hbox,0); + tqlayout->setStretchFactor(w,1); connect(m_ftpSettings,TQT_SIGNAL(changed()),this,TQT_SIGNAL(changed())); connect(m_httpSettings,TQT_SIGNAL(changed()),this,TQT_SIGNAL(changed())); diff --git a/lanbrowsing/kcmlisa/kcmlisa.cpp b/lanbrowsing/kcmlisa/kcmlisa.cpp index e17cf5b0..ea0ee2d9 100644 --- a/lanbrowsing/kcmlisa/kcmlisa.cpp +++ b/lanbrowsing/kcmlisa/kcmlisa.cpp @@ -55,8 +55,8 @@ LisaSettings::LisaSettings(const TQString& config, TQWidget *parent) ,m_configFilename(config) ,m_changed(false) { - TQVBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint()); - layout->setAutoAdd(true); + TQVBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint()); + tqlayout->setAutoAdd(true); TQWidget *dummy(0); @@ -83,7 +83,7 @@ LisaSettings::LisaSettings(const TQString& config, TQWidget *parent) TQGrid *addressesGrid = new TQGrid(2, Qt::Horizontal, this); addressesGrid->setSpacing(10); - layout->setStretchFactor(addressesGrid,0); + tqlayout->setStretchFactor(addressesGrid,0); label=new TQLabel(i18n("&Broadcast network address:"),addressesGrid); comment=i18n("Your network address/subnet mask (e.g. 192.168.0.0/255.255.255.0;)"); @@ -102,13 +102,13 @@ LisaSettings::LisaSettings(const TQString& config, TQWidget *parent) label->setBuddy(m_allowedAddresses); dummy=new TQWidget(this); - layout->setStretchFactor(dummy,10); + tqlayout->setStretchFactor(dummy,10); hbox = new TQHBox(this); hbox->setSpacing(10); // m_autoSetup=new TQPushButton(i18n("&Guided LISa Setup..."),hbox); m_autoSetup=new TQPushButton(i18n("Setup Wizard..."),hbox); - m_autoSetup->setFixedWidth( m_autoSetup->sizeHint().width() ); + m_autoSetup->setFixedWidth( m_autoSetup->tqsizeHint().width() ); m_suggestSettings=new TQPushButton(i18n("&Suggest Settings"),hbox); @@ -288,7 +288,7 @@ void LisaSettings::save() confStream<<"PingNames = "<name+": "+tmp->addr+"/"+tmp->netmask+";
"; } - KMessageBox::information(0,TQString("%1").arg(msg)); + KMessageBox::information(0,TQString("%1").tqarg(msg)); } emit changed(); diff --git a/lanbrowsing/kcmlisa/kcmreslisa.cpp b/lanbrowsing/kcmlisa/kcmreslisa.cpp index 17c12671..1ced6c13 100644 --- a/lanbrowsing/kcmlisa/kcmreslisa.cpp +++ b/lanbrowsing/kcmlisa/kcmreslisa.cpp @@ -27,7 +27,7 @@ #include #include #include -#include +#include #include #include @@ -53,8 +53,8 @@ ResLisaSettings::ResLisaSettings(const TQString& config, TQWidget *parent) ,m_maxPingsAtOnce(0) ,m_reslisaAdvancedDlg(0) { - TQVBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint()); - layout->setAutoAdd(true); + TQVBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint()); + tqlayout->setAutoAdd(true); TQVButtonGroup *gb=new TQVButtonGroup(i18n("Tell ResLISa Daemon How to Search for Hosts"),this); gb->setInsideSpacing(10); @@ -237,9 +237,9 @@ void ResLisaSettings::suggestSettings() { msg+=""+tmp->name+": "+tmp->addr+"/"+tmp->netmask+";
"; } - KMessageBox::information(0,TQString("%1").arg(msg)); + KMessageBox::information(0,TQString("%1").tqarg(msg)); } - KMessageBox::information(0,TQString("%1").arg(i18n("The ResLISa daemon is now configured " + KMessageBox::information(0,TQString("%1").tqarg(i18n("The ResLISa daemon is now configured " "correctly, hopefully.
Make sure that the reslisa binary is installed suid root."))); emit changed(); diff --git a/lanbrowsing/kcmlisa/setupwizard.cpp b/lanbrowsing/kcmlisa/setupwizard.cpp index 53b5033d..f5b985e1 100644 --- a/lanbrowsing/kcmlisa/setupwizard.cpp +++ b/lanbrowsing/kcmlisa/setupwizard.cpp @@ -199,7 +199,7 @@ void SetupWizard::setupSearchPage() m_searchPage->setSpacing(KDialog::spacingHint()); m_searchPage->setMargin(KDialog::marginHint()); info=new TQLabel(i18n("If unsure, keep it as is."),m_searchPage); - info->setAlignment(AlignRight|AlignVCenter); + info->tqsetAlignment(AlignRight|AlignVCenter); setHelpEnabled( m_searchPage, false ); } @@ -219,13 +219,13 @@ void SetupWizard::setupAddressesPage() "4. ranges for each part of the address, like 10-10.1-5.1-25.1-3;
" "You can also enter combinations of 1 to 4, separated by \";\", like
" "192.168.0.0/255.255.255.0;10.0.0.0;10.0.1.1-10.0.1.100;
"),m_addressesPage); - info->setAlignment(AlignLeft|AlignVCenter|WordBreak); + info->tqsetAlignment(AlignLeft|AlignVCenter|WordBreak); TQWidget *dummy=new TQWidget(m_addressesPage); m_addressesPage->setStretchFactor(dummy,10); m_addressesPage->setSpacing(KDialog::spacingHint()); m_addressesPage->setMargin(KDialog::marginHint()); info=new TQLabel(i18n("If unsure, keep it as is."), m_addressesPage); - info->setAlignment(AlignRight|AlignVCenter); + info->tqsetAlignment(AlignRight|AlignVCenter); setHelpEnabled( m_addressesPage, false ); } @@ -238,7 +238,7 @@ void SetupWizard::setupAllowedPage() "Only hosts which fit into the addresses given here are accepted by LISa as clients. " "The list of hosts published by LISa will also only contain hosts which fit into this scheme.
" "Usually you enter your IP address/network mask here."),m_allowedAddressesPage); - info->setAlignment(AlignLeft|AlignVCenter|WordBreak); + info->tqsetAlignment(AlignLeft|AlignVCenter|WordBreak); m_allowedAddresses=new KRestrictedLine(m_allowedAddressesPage,"0123456789./-;"); m_trustedHostsLabel=new TQLabel(m_allowedAddressesPage); @@ -247,7 +247,7 @@ void SetupWizard::setupAllowedPage() m_allowedAddressesPage->setSpacing(KDialog::spacingHint()); m_allowedAddressesPage->setMargin(KDialog::marginHint()); info=new TQLabel(i18n("If unsure, keep it as is."), m_allowedAddressesPage); - info->setAlignment(AlignRight|AlignVCenter); + info->tqsetAlignment(AlignRight|AlignVCenter); setHelpEnabled( m_allowedAddressesPage, false ); } @@ -256,18 +256,18 @@ void SetupWizard::setupBcastPage() { m_bcastPage=new TQVBox(this); TQLabel *info=new TQLabel(i18n("
Enter your IP address and network mask here, like 192.168.0.1/255.255.255.0"),m_bcastPage); - info->setAlignment(AlignLeft|AlignVCenter|WordBreak); + info->tqsetAlignment(AlignLeft|AlignVCenter|WordBreak); m_bcastAddress=new KRestrictedLine(m_bcastPage,"0123456789./"); info=new TQLabel(i18n("
To reduce the network load, the LISa servers in one network
" "cooperate with each other. Therefore you have to enter the broadcast
" "address here. If you are connected to more than one network, choose
" "one of the broadcast addresses."),m_bcastPage); - info->setAlignment(AlignLeft|AlignVCenter|WordBreak); + info->tqsetAlignment(AlignLeft|AlignVCenter|WordBreak); TQWidget *dummy=new TQWidget(m_bcastPage); m_bcastPage->setStretchFactor(dummy,10); m_bcastPage->setSpacing(KDialog::spacingHint()); info=new TQLabel(i18n("If unsure, keep it as is."), m_bcastPage); - info->setAlignment(AlignRight|AlignVCenter); + info->tqsetAlignment(AlignRight|AlignVCenter); m_bcastPage->setSpacing(KDialog::spacingHint()); m_bcastPage->setMargin(KDialog::marginHint()); @@ -287,13 +287,13 @@ void SetupWizard::setupUpdateIntervalPage() "up to 16 times the value you enter here, if nobody accesses the LISa server. " "So if you enter 300 sec = 5 min here, this does not mean that LISa will ping " "your whole network every 5 minutes. The interval will increase up to 16 x 5 min = 80 min."),m_intervalPage); - info->setAlignment(AlignLeft|AlignVCenter|WordBreak); + info->tqsetAlignment(AlignLeft|AlignVCenter|WordBreak); TQWidget *dummy=new TQWidget(m_intervalPage); m_intervalPage->setStretchFactor(dummy,10); m_intervalPage->setSpacing(KDialog::spacingHint()); m_intervalPage->setMargin(KDialog::marginHint()); info=new TQLabel(i18n("If unsure, keep it as is."), m_intervalPage); - info->setAlignment(AlignRight|AlignVCenter); + info->tqsetAlignment(AlignRight|AlignVCenter); info->setTextFormat(TQt::RichText); setHelpEnabled( m_intervalPage, false ); @@ -338,7 +338,7 @@ void SetupWizard::setupAdvancedSettingsPage() //m_advancedPage->setMargin(KDialog::marginHint()); info=new TQLabel(i18n("If unsure, keep it as is."), m_advancedPage); - info->setAlignment(AlignRight|AlignVCenter); + info->tqsetAlignment(AlignRight|AlignVCenter); connect(m_secondScan,TQT_SIGNAL(toggled(bool)),m_secondWait,TQT_SLOT(setEnabled(bool))); setHelpEnabled( m_advancedPage, false ); diff --git a/lanbrowsing/kcmlisa/setupwizard.h b/lanbrowsing/kcmlisa/setupwizard.h index 7e502b40..c67b330b 100644 --- a/lanbrowsing/kcmlisa/setupwizard.h +++ b/lanbrowsing/kcmlisa/setupwizard.h @@ -32,7 +32,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/lanbrowsing/kio_lan/kio_lan.cpp b/lanbrowsing/kio_lan/kio_lan.cpp index 55cc13b4..06eb0a18 100644 --- a/lanbrowsing/kio_lan/kio_lan.cpp +++ b/lanbrowsing/kio_lan/kio_lan.cpp @@ -187,7 +187,7 @@ int LANProtocol::lanReadDataFromServer() if ((bytesRead<0) || (receivedBytes<4)) { delete [] receiveBuffer; - error(ERR_INTERNAL_SERVER,i18n("Received unexpected data from %1").arg(m_currentHost)); + error(ERR_INTERNAL_SERVER,i18n("Received unexpected data from %1").tqarg(m_currentHost)); return 0; } @@ -206,7 +206,7 @@ int LANProtocol::lanReadDataFromServer() if ((memchr(currentBuf,0,bytesLeft)==0) || (memchr(currentBuf,int('\n'),bytesLeft)==0)) { delete [] receiveBuffer; - error(ERR_INTERNAL_SERVER,i18n("Received unexpected data from %1").arg(m_currentHost)); + error(ERR_INTERNAL_SERVER,i18n("Received unexpected data from %1").tqarg(m_currentHost)); return 0; } kdDebug(7101)<<"LANProtocol::lanReadDataFromServer: processing "<title = elemText; - if (!(elemText = extractNode(node, TQString::fromLatin1("link"))).isNull()) + if (!(elemText = extractNode(node, TQString::tqfromLatin1("link"))).isNull()) d->link = elemText; - if (!(elemText = extractNode(node, TQString::fromLatin1("description"))).isNull()) + if (!(elemText = extractNode(node, TQString::tqfromLatin1("description"))).isNull()) d->description = elemText; - if (!(elemText = extractNode(node, TQString::fromLatin1("pubDate"))).isNull()) { + if (!(elemText = extractNode(node, TQString::tqfromLatin1("pubDate"))).isNull()) { time_t _time = KRFCDate::parseDate(elemText); /* \bug This isn't really the right way since it will set the date to * Jan 1 1970, 1:00:00 if the passed date was invalid; this means that @@ -57,7 +57,7 @@ Article::Article(const TQDomNode &node) : d(new Private) */ d->pubDate.setTime_t(_time); } - if (!(elemText = extractNode(node, TQString::fromLatin1("dc:date"))).isNull()) { + if (!(elemText = extractNode(node, TQString::tqfromLatin1("dc:date"))).isNull()) { time_t _time = KRFCDate::parseDateISO8601(elemText); /* \bug This isn't really the right way since it will set the date to * Jan 1 1970, 1:00:00 if the passed date was invalid; this means that @@ -66,12 +66,12 @@ Article::Article(const TQDomNode &node) : d(new Private) d->pubDate.setTime_t(_time); } - TQDomNode n = node.namedItem(TQString::fromLatin1("guid")); + TQDomNode n = node.namedItem(TQString::tqfromLatin1("guid")); if (!n.isNull()) { d->guidIsPermaLink = true; - if (n.toElement().attribute(TQString::fromLatin1("isPermaLink"), "true") == "false") d->guidIsPermaLink = false; + if (n.toElement().attribute(TQString::tqfromLatin1("isPermaLink"), "true") == "false") d->guidIsPermaLink = false; - if (!(elemText = extractNode(node, TQString::fromLatin1("guid"))).isNull()) + if (!(elemText = extractNode(node, TQString::tqfromLatin1("guid"))).isNull()) d->guid = elemText; } } diff --git a/librss/document.cpp b/librss/document.cpp index 8a19aa3f..d6059f05 100644 --- a/librss/document.cpp +++ b/librss/document.cpp @@ -70,7 +70,7 @@ Document::Document(const TQDomDocument &doc) : d(new Private) TQDomNode rootNode = doc.documentElement(); // Determine the version of the present RSS markup. - TQString attr = rootNode.toElement().attribute(TQString::fromLatin1("xmlns"), TQString()); + TQString attr = rootNode.toElement().attribute(TQString::tqfromLatin1("xmlns"), TQString()); if (!attr.isNull()) { /* * Hardcoding these URLs is actually a bad idea, since the DTD doesn't @@ -80,33 +80,33 @@ Document::Document(const TQDomDocument &doc) : d(new Private) * distinguish the RSS versions by analyzing the relationship between * the nodes. */ - if (attr == TQString::fromLatin1("http://my.netscape.com/rdf/simple/0.9/")) + if (attr == TQString::tqfromLatin1("http://my.netscape.com/rdf/simple/0.9/")) d->version = v0_90; - else if (attr == TQString::fromLatin1("http://purl.org/rss/1.0/")) { + else if (attr == TQString::tqfromLatin1("http://purl.org/rss/1.0/")) { d->version = v1_0; } } else { - attr = rootNode.toElement().attribute(TQString::fromLatin1("version"), TQString()); + attr = rootNode.toElement().attribute(TQString::tqfromLatin1("version"), TQString()); if (!attr.isNull()) { - if (attr == TQString::fromLatin1("0.91")) + if (attr == TQString::tqfromLatin1("0.91")) d->version = v0_91; - else if (attr == TQString::fromLatin1("0.92")) + else if (attr == TQString::tqfromLatin1("0.92")) d->version = v0_92; - else if (attr == TQString::fromLatin1("0.93")) + else if (attr == TQString::tqfromLatin1("0.93")) d->version = v0_93; - else if (attr == TQString::fromLatin1("0.94")) + else if (attr == TQString::tqfromLatin1("0.94")) d->version = v0_94; - else if (attr == TQString::fromLatin1("2.0") || attr == TQString::fromLatin1("2")) + else if (attr == TQString::tqfromLatin1("2.0") || attr == TQString::tqfromLatin1("2")) d->version = v2_0; } } - TQDomNode channelNode = rootNode.namedItem(TQString::fromLatin1("channel")); + TQDomNode channelNode = rootNode.namedItem(TQString::tqfromLatin1("channel")); - if (!(elemText = extractNode(channelNode, TQString::fromLatin1("title"))).isNull()) + if (!(elemText = extractNode(channelNode, TQString::tqfromLatin1("title"))).isNull()) d->title = elemText; - if (!(elemText = extractNode(channelNode, TQString::fromLatin1("description"))).isNull()) + if (!(elemText = extractNode(channelNode, TQString::tqfromLatin1("description"))).isNull()) d->description = elemText; - if (!(elemText = extractNode(channelNode, TQString::fromLatin1("link"))).isNull()) + if (!(elemText = extractNode(channelNode, TQString::tqfromLatin1("link"))).isNull()) d->link = elemText; /* This is ugly but necessary since RSS 0.90 and 1.0 have a different parent @@ -118,218 +118,218 @@ Document::Document(const TQDomDocument &doc) : d(new Private) else parentNode = channelNode; - TQDomNode n = parentNode.namedItem(TQString::fromLatin1("image")); + TQDomNode n = parentNode.namedItem(TQString::tqfromLatin1("image")); if (!n.isNull()) d->image = new Image(n); - n = parentNode.namedItem(TQString::fromLatin1("textinput")); + n = parentNode.namedItem(TQString::tqfromLatin1("textinput")); if (!n.isNull()) d->textInput = new TextInput(n); // Our (hopefully faster) version of elementsByTagName() for (n = parentNode.firstChild(); !n.isNull(); n = n.nextSibling()) { const TQDomElement e = n.toElement(); - if (e.tagName() == TQString::fromLatin1("item")) + if (e.tagName() == TQString::tqfromLatin1("item")) d->articles.append(Article(e)); } - if (!(elemText = extractNode(channelNode, TQString::fromLatin1("copyright"))).isNull()) + if (!(elemText = extractNode(channelNode, TQString::tqfromLatin1("copyright"))).isNull()) d->copyright = elemText; - if (!(elemText = extractNode(channelNode, TQString::fromLatin1("language"))).isNull()) { - if (elemText == TQString::fromLatin1("af")) + if (!(elemText = extractNode(channelNode, TQString::tqfromLatin1("language"))).isNull()) { + if (elemText == TQString::tqfromLatin1("af")) d->language = af; - else if (elemText == TQString::fromLatin1("sq")) + else if (elemText == TQString::tqfromLatin1("sq")) d->language = sq; - else if (elemText == TQString::fromLatin1("eu")) + else if (elemText == TQString::tqfromLatin1("eu")) d->language = eu; - else if (elemText == TQString::fromLatin1("be")) + else if (elemText == TQString::tqfromLatin1("be")) d->language = be; - else if (elemText == TQString::fromLatin1("bg")) + else if (elemText == TQString::tqfromLatin1("bg")) d->language = bg; - else if (elemText == TQString::fromLatin1("ca")) + else if (elemText == TQString::tqfromLatin1("ca")) d->language = ca; - else if (elemText == TQString::fromLatin1("zh-cn")) + else if (elemText == TQString::tqfromLatin1("zh-cn")) d->language = zh_cn; - else if (elemText == TQString::fromLatin1("zh-tw")) + else if (elemText == TQString::tqfromLatin1("zh-tw")) d->language = zh_tw; - else if (elemText == TQString::fromLatin1("hr")) + else if (elemText == TQString::tqfromLatin1("hr")) d->language = hr; - else if (elemText == TQString::fromLatin1("cs")) + else if (elemText == TQString::tqfromLatin1("cs")) d->language = cs; - else if (elemText == TQString::fromLatin1("da")) + else if (elemText == TQString::tqfromLatin1("da")) d->language = da; - else if (elemText == TQString::fromLatin1("nl")) + else if (elemText == TQString::tqfromLatin1("nl")) d->language = nl; - else if (elemText == TQString::fromLatin1("nl-be")) + else if (elemText == TQString::tqfromLatin1("nl-be")) d->language = nl_be; - else if (elemText == TQString::fromLatin1("nl-nl")) + else if (elemText == TQString::tqfromLatin1("nl-nl")) d->language = nl_nl; - else if (elemText == TQString::fromLatin1("en")) + else if (elemText == TQString::tqfromLatin1("en")) d->language = en; - else if (elemText == TQString::fromLatin1("en-au")) + else if (elemText == TQString::tqfromLatin1("en-au")) d->language = en_au; - else if (elemText == TQString::fromLatin1("en-bz")) + else if (elemText == TQString::tqfromLatin1("en-bz")) d->language = en_bz; - else if (elemText == TQString::fromLatin1("en-ca")) + else if (elemText == TQString::tqfromLatin1("en-ca")) d->language = en_ca; - else if (elemText == TQString::fromLatin1("en-ie")) + else if (elemText == TQString::tqfromLatin1("en-ie")) d->language = en_ie; - else if (elemText == TQString::fromLatin1("en-jm")) + else if (elemText == TQString::tqfromLatin1("en-jm")) d->language = en_jm; - else if (elemText == TQString::fromLatin1("en-nz")) + else if (elemText == TQString::tqfromLatin1("en-nz")) d->language = en_nz; - else if (elemText == TQString::fromLatin1("en-ph")) + else if (elemText == TQString::tqfromLatin1("en-ph")) d->language = en_ph; - else if (elemText == TQString::fromLatin1("en-za")) + else if (elemText == TQString::tqfromLatin1("en-za")) d->language = en_za; - else if (elemText == TQString::fromLatin1("en-tt")) + else if (elemText == TQString::tqfromLatin1("en-tt")) d->language = en_tt; - else if (elemText == TQString::fromLatin1("en-gb")) + else if (elemText == TQString::tqfromLatin1("en-gb")) d->language = en_gb; - else if (elemText == TQString::fromLatin1("en-us")) + else if (elemText == TQString::tqfromLatin1("en-us")) d->language = en_us; - else if (elemText == TQString::fromLatin1("en-zw")) + else if (elemText == TQString::tqfromLatin1("en-zw")) d->language = en_zw; - else if (elemText == TQString::fromLatin1("fo")) + else if (elemText == TQString::tqfromLatin1("fo")) d->language = fo; - else if (elemText == TQString::fromLatin1("fi")) + else if (elemText == TQString::tqfromLatin1("fi")) d->language = fi; - else if (elemText == TQString::fromLatin1("fr")) + else if (elemText == TQString::tqfromLatin1("fr")) d->language = fr; - else if (elemText == TQString::fromLatin1("fr-be")) + else if (elemText == TQString::tqfromLatin1("fr-be")) d->language = fr_be; - else if (elemText == TQString::fromLatin1("fr-ca")) + else if (elemText == TQString::tqfromLatin1("fr-ca")) d->language = fr_ca; - else if (elemText == TQString::fromLatin1("fr-fr")) + else if (elemText == TQString::tqfromLatin1("fr-fr")) d->language = fr_fr; - else if (elemText == TQString::fromLatin1("fr-lu")) + else if (elemText == TQString::tqfromLatin1("fr-lu")) d->language = fr_lu; - else if (elemText == TQString::fromLatin1("fr-mc")) + else if (elemText == TQString::tqfromLatin1("fr-mc")) d->language = fr_mc; - else if (elemText == TQString::fromLatin1("fr-ch")) + else if (elemText == TQString::tqfromLatin1("fr-ch")) d->language = fr_ch; - else if (elemText == TQString::fromLatin1("gl")) + else if (elemText == TQString::tqfromLatin1("gl")) d->language = gl; - else if (elemText == TQString::fromLatin1("gd")) + else if (elemText == TQString::tqfromLatin1("gd")) d->language = gd; - else if (elemText == TQString::fromLatin1("de")) + else if (elemText == TQString::tqfromLatin1("de")) d->language = de; - else if (elemText == TQString::fromLatin1("de-at")) + else if (elemText == TQString::tqfromLatin1("de-at")) d->language = de_at; - else if (elemText == TQString::fromLatin1("de-de")) + else if (elemText == TQString::tqfromLatin1("de-de")) d->language = de_de; - else if (elemText == TQString::fromLatin1("de-li")) + else if (elemText == TQString::tqfromLatin1("de-li")) d->language = de_li; - else if (elemText == TQString::fromLatin1("de-lu")) + else if (elemText == TQString::tqfromLatin1("de-lu")) d->language = de_lu; - else if (elemText == TQString::fromLatin1("de-ch")) + else if (elemText == TQString::tqfromLatin1("de-ch")) d->language = de_ch; - else if (elemText == TQString::fromLatin1("el")) + else if (elemText == TQString::tqfromLatin1("el")) d->language = el; - else if (elemText == TQString::fromLatin1("hu")) + else if (elemText == TQString::tqfromLatin1("hu")) d->language = hu; - else if (elemText == TQString::fromLatin1("is")) + else if (elemText == TQString::tqfromLatin1("is")) d->language = is; - else if (elemText == TQString::fromLatin1("id")) + else if (elemText == TQString::tqfromLatin1("id")) d->language = id; - else if (elemText == TQString::fromLatin1("ga")) + else if (elemText == TQString::tqfromLatin1("ga")) d->language = ga; - else if (elemText == TQString::fromLatin1("it")) + else if (elemText == TQString::tqfromLatin1("it")) d->language = it; - else if (elemText == TQString::fromLatin1("it-it")) + else if (elemText == TQString::tqfromLatin1("it-it")) d->language = it_it; - else if (elemText == TQString::fromLatin1("it-ch")) + else if (elemText == TQString::tqfromLatin1("it-ch")) d->language = it_ch; - else if (elemText == TQString::fromLatin1("ja")) + else if (elemText == TQString::tqfromLatin1("ja")) d->language = ja; - else if (elemText == TQString::fromLatin1("ko")) + else if (elemText == TQString::tqfromLatin1("ko")) d->language = ko; - else if (elemText == TQString::fromLatin1("mk")) + else if (elemText == TQString::tqfromLatin1("mk")) d->language = mk; - else if (elemText == TQString::fromLatin1("no")) + else if (elemText == TQString::tqfromLatin1("no")) d->language = no; - else if (elemText == TQString::fromLatin1("pl")) + else if (elemText == TQString::tqfromLatin1("pl")) d->language = pl; - else if (elemText == TQString::fromLatin1("pt")) + else if (elemText == TQString::tqfromLatin1("pt")) d->language = pt; - else if (elemText == TQString::fromLatin1("pt-br")) + else if (elemText == TQString::tqfromLatin1("pt-br")) d->language = pt_br; - else if (elemText == TQString::fromLatin1("pt-pt")) + else if (elemText == TQString::tqfromLatin1("pt-pt")) d->language = pt_pt; - else if (elemText == TQString::fromLatin1("ro")) + else if (elemText == TQString::tqfromLatin1("ro")) d->language = ro; - else if (elemText == TQString::fromLatin1("ro-mo")) + else if (elemText == TQString::tqfromLatin1("ro-mo")) d->language = ro_mo; - else if (elemText == TQString::fromLatin1("ro-ro")) + else if (elemText == TQString::tqfromLatin1("ro-ro")) d->language = ro_ro; - else if (elemText == TQString::fromLatin1("ru")) + else if (elemText == TQString::tqfromLatin1("ru")) d->language = ru; - else if (elemText == TQString::fromLatin1("ru-mo")) + else if (elemText == TQString::tqfromLatin1("ru-mo")) d->language = ru_mo; - else if (elemText == TQString::fromLatin1("ru-ru")) + else if (elemText == TQString::tqfromLatin1("ru-ru")) d->language = ru_ru; - else if (elemText == TQString::fromLatin1("sr")) + else if (elemText == TQString::tqfromLatin1("sr")) d->language = sr; - else if (elemText == TQString::fromLatin1("sk")) + else if (elemText == TQString::tqfromLatin1("sk")) d->language = sk; - else if (elemText == TQString::fromLatin1("sl")) + else if (elemText == TQString::tqfromLatin1("sl")) d->language = sl; - else if (elemText == TQString::fromLatin1("es")) + else if (elemText == TQString::tqfromLatin1("es")) d->language = es; - else if (elemText == TQString::fromLatin1("es-ar")) + else if (elemText == TQString::tqfromLatin1("es-ar")) d->language = es_ar; - else if (elemText == TQString::fromLatin1("es-bo")) + else if (elemText == TQString::tqfromLatin1("es-bo")) d->language = es_bo; - else if (elemText == TQString::fromLatin1("es-cl")) + else if (elemText == TQString::tqfromLatin1("es-cl")) d->language = es_cl; - else if (elemText == TQString::fromLatin1("es-co")) + else if (elemText == TQString::tqfromLatin1("es-co")) d->language = es_co; - else if (elemText == TQString::fromLatin1("es-cr")) + else if (elemText == TQString::tqfromLatin1("es-cr")) d->language = es_cr; - else if (elemText == TQString::fromLatin1("es-do")) + else if (elemText == TQString::tqfromLatin1("es-do")) d->language = es_do; - else if (elemText == TQString::fromLatin1("es-ec")) + else if (elemText == TQString::tqfromLatin1("es-ec")) d->language = es_ec; - else if (elemText == TQString::fromLatin1("es-sv")) + else if (elemText == TQString::tqfromLatin1("es-sv")) d->language = es_sv; - else if (elemText == TQString::fromLatin1("es-gt")) + else if (elemText == TQString::tqfromLatin1("es-gt")) d->language = es_gt; - else if (elemText == TQString::fromLatin1("es-hn")) + else if (elemText == TQString::tqfromLatin1("es-hn")) d->language = es_hn; - else if (elemText == TQString::fromLatin1("es-mx")) + else if (elemText == TQString::tqfromLatin1("es-mx")) d->language = es_mx; - else if (elemText == TQString::fromLatin1("es-ni")) + else if (elemText == TQString::tqfromLatin1("es-ni")) d->language = es_ni; - else if (elemText == TQString::fromLatin1("es-pa")) + else if (elemText == TQString::tqfromLatin1("es-pa")) d->language = es_pa; - else if (elemText == TQString::fromLatin1("es-py")) + else if (elemText == TQString::tqfromLatin1("es-py")) d->language = es_py; - else if (elemText == TQString::fromLatin1("es-pe")) + else if (elemText == TQString::tqfromLatin1("es-pe")) d->language = es_pe; - else if (elemText == TQString::fromLatin1("es-pr")) + else if (elemText == TQString::tqfromLatin1("es-pr")) d->language = es_pr; - else if (elemText == TQString::fromLatin1("es-es")) + else if (elemText == TQString::tqfromLatin1("es-es")) d->language = es_es; - else if (elemText == TQString::fromLatin1("es-uy")) + else if (elemText == TQString::tqfromLatin1("es-uy")) d->language = es_uy; - else if (elemText == TQString::fromLatin1("es-ve")) + else if (elemText == TQString::tqfromLatin1("es-ve")) d->language = es_ve; - else if (elemText == TQString::fromLatin1("sv")) + else if (elemText == TQString::tqfromLatin1("sv")) d->language = sv; - else if (elemText == TQString::fromLatin1("sv-fi")) + else if (elemText == TQString::tqfromLatin1("sv-fi")) d->language = sv_fi; - else if (elemText == TQString::fromLatin1("sv-se")) + else if (elemText == TQString::tqfromLatin1("sv-se")) d->language = sv_se; - else if (elemText == TQString::fromLatin1("tr")) + else if (elemText == TQString::tqfromLatin1("tr")) d->language = tr; - else if (elemText == TQString::fromLatin1("uk")) + else if (elemText == TQString::tqfromLatin1("uk")) d->language = uk; else d->language = UndefinedLanguage; } - if (!(elemText = extractNode(channelNode, TQString::fromLatin1("pubDate"))).isNull()) { + if (!(elemText = extractNode(channelNode, TQString::tqfromLatin1("pubDate"))).isNull()) { time_t _time = KRFCDate::parseDate(elemText); /* \bug This isn't really the right way since it will set the date to * Jan 1 1970, 1:00:00 if the passed date was invalid; this means that @@ -338,7 +338,7 @@ Document::Document(const TQDomDocument &doc) : d(new Private) d->pubDate.setTime_t(_time); } - if (!(elemText = extractNode(channelNode, TQString::fromLatin1("dc:date"))).isNull()) { + if (!(elemText = extractNode(channelNode, TQString::tqfromLatin1("dc:date"))).isNull()) { time_t _time = KRFCDate::parseDateISO8601(elemText); /* \bug This isn't really the right way since it will set the date to * Jan 1 1970, 1:00:00 if the passed date was invalid; this means that @@ -347,46 +347,46 @@ Document::Document(const TQDomDocument &doc) : d(new Private) d->pubDate.setTime_t(_time); } - if (!(elemText = extractNode(channelNode, TQString::fromLatin1("lastBuildDate"))).isNull()) { + if (!(elemText = extractNode(channelNode, TQString::tqfromLatin1("lastBuildDate"))).isNull()) { time_t _time = KRFCDate::parseDate(elemText); d->lastBuildDate.setTime_t(_time); } - if (!(elemText = extractNode(channelNode, TQString::fromLatin1("rating"))).isNull()) + if (!(elemText = extractNode(channelNode, TQString::tqfromLatin1("rating"))).isNull()) d->rating = elemText; - if (!(elemText = extractNode(channelNode, TQString::fromLatin1("docs"))).isNull()) + if (!(elemText = extractNode(channelNode, TQString::tqfromLatin1("docs"))).isNull()) d->docs = elemText; - if (!(elemText = extractNode(channelNode, TQString::fromLatin1("managingEditor"))).isNull()) + if (!(elemText = extractNode(channelNode, TQString::tqfromLatin1("managingEditor"))).isNull()) d->managingEditor = elemText; - if (!(elemText = extractNode(channelNode, TQString::fromLatin1("webMaster"))).isNull()) + if (!(elemText = extractNode(channelNode, TQString::tqfromLatin1("webMaster"))).isNull()) d->webMaster = elemText; - n = channelNode.namedItem(TQString::fromLatin1("skipHours")); + n = channelNode.namedItem(TQString::tqfromLatin1("skipHours")); if (!n.isNull()) for (TQDomElement e = n.firstChild().toElement(); !e.isNull(); e = e.nextSibling().toElement()) - if (e.tagName() == TQString::fromLatin1("hour")) + if (e.tagName() == TQString::tqfromLatin1("hour")) d->skipHours.append(e.text().toUInt()); - n = channelNode.namedItem(TQString::fromLatin1("skipDays")); + n = channelNode.namedItem(TQString::tqfromLatin1("skipDays")); if (!n.isNull()) { Day day; TQString elemText; for (TQDomElement e = n.firstChild().toElement(); !e.isNull(); e = e.nextSibling().toElement()) - if (e.tagName() == TQString::fromLatin1("day")) { + if (e.tagName() == TQString::tqfromLatin1("day")) { elemText = e.text().lower(); - if (elemText == TQString::fromLatin1("monday")) + if (elemText == TQString::tqfromLatin1("monday")) day = Monday; - else if (elemText == TQString::fromLatin1("tuesday")) + else if (elemText == TQString::tqfromLatin1("tuesday")) day = Tuesday; - else if (elemText == TQString::fromLatin1("wednesday")) + else if (elemText == TQString::tqfromLatin1("wednesday")) day = Wednesday; - else if (elemText == TQString::fromLatin1("thursday")) + else if (elemText == TQString::tqfromLatin1("thursday")) day = Thursday; - else if (elemText == TQString::fromLatin1("friday")) + else if (elemText == TQString::tqfromLatin1("friday")) day = Friday; - else if (elemText == TQString::fromLatin1("saturday")) + else if (elemText == TQString::tqfromLatin1("saturday")) day = Saturday; - else if (elemText == TQString::fromLatin1("sunday")) + else if (elemText == TQString::tqfromLatin1("sunday")) day = Sunday; else day = UndefinedDay; @@ -410,13 +410,13 @@ Version Document::version() const TQString Document::verbVersion() const { switch (d->version) { - case v0_90: return TQString::fromLatin1("0.90"); - case v0_91: return TQString::fromLatin1("0.91"); - case v0_92: return TQString::fromLatin1("0.92"); - case v0_93: return TQString::fromLatin1("0.93"); - case v0_94: return TQString::fromLatin1("0.94"); - case v1_0: return TQString::fromLatin1("1.0"); - case v2_0: return TQString::fromLatin1("2.0"); + case v0_90: return TQString::tqfromLatin1("0.90"); + case v0_91: return TQString::tqfromLatin1("0.91"); + case v0_92: return TQString::tqfromLatin1("0.92"); + case v0_93: return TQString::tqfromLatin1("0.93"); + case v0_94: return TQString::tqfromLatin1("0.94"); + case v1_0: return TQString::tqfromLatin1("1.0"); + case v2_0: return TQString::tqfromLatin1("2.0"); } return TQString(); } diff --git a/librss/global.h b/librss/global.h index c7e4cdeb..95ca433f 100644 --- a/librss/global.h +++ b/librss/global.h @@ -40,7 +40,7 @@ namespace RSS * Possible status values returned by the signal * Loader::loadingComplete(). */ - enum Status { + enum tqStatus { Success, /** * Nothing went wrong so far, but you still have to check * what values are returned by the classes since it's not diff --git a/librss/image.cpp b/librss/image.cpp index 242c65aa..a1fe032c 100644 --- a/librss/image.cpp +++ b/librss/image.cpp @@ -47,17 +47,17 @@ Image::Image(const TQDomNode &node) : TQObject(), d(new Private) { TQString elemText; - if (!(elemText = extractNode(node, TQString::fromLatin1("title"))).isNull()) + if (!(elemText = extractNode(node, TQString::tqfromLatin1("title"))).isNull()) d->title = elemText; - if (!(elemText = extractNode(node, TQString::fromLatin1("url"))).isNull()) + if (!(elemText = extractNode(node, TQString::tqfromLatin1("url"))).isNull()) d->url = elemText; - if (!(elemText = extractNode(node, TQString::fromLatin1("link"))).isNull()) + if (!(elemText = extractNode(node, TQString::tqfromLatin1("link"))).isNull()) d->link = elemText; - if (!(elemText = extractNode(node, TQString::fromLatin1("description"))).isNull()) + if (!(elemText = extractNode(node, TQString::tqfromLatin1("description"))).isNull()) d->description = elemText; - if (!(elemText = extractNode(node, TQString::fromLatin1("height"))).isNull()) + if (!(elemText = extractNode(node, TQString::tqfromLatin1("height"))).isNull()) d->height = elemText.toUInt(); - if (!(elemText = extractNode(node, TQString::fromLatin1("width"))).isNull()) + if (!(elemText = extractNode(node, TQString::tqfromLatin1("width"))).isNull()) d->width = elemText.toUInt(); } diff --git a/librss/loader.cpp b/librss/loader.cpp index 0ca68389..b16c3d1e 100644 --- a/librss/loader.cpp +++ b/librss/loader.cpp @@ -197,7 +197,7 @@ Loader *Loader::create() Loader *Loader::create(TQObject *object, const char *slot) { Loader *loader = create(); - connect(loader, TQT_SIGNAL(loadingComplete(Loader *, Document, Status)), + connect(loader, TQT_SIGNAL(loadingComplete(Loader *, Document, tqStatus)), object, slot); return loader; } @@ -237,7 +237,7 @@ void Loader::slotRetrieverDone(const TQByteArray &data, bool success) d->retriever = NULL; Document rssDoc; - Status status = Success; + tqStatus status = Success; if (success) { TQDomDocument doc; @@ -256,7 +256,7 @@ void Loader::slotRetrieverDone(const TQByteArray &data, bool success) } /* It seems that some Microsoft-developed code generates UTF-8 files - * with the three leading unicode characters 0357, 0273, 0277. For + * with the three leading tqunicode characters 0357, 0273, 0277. For * an example, check http://msdn.microsoft.com/rss.xml */ if (len > 3 && TQChar(*charData) == TQChar(0357)) { diff --git a/librss/loader.h b/librss/loader.h index e3ae1b6f..8eca6643 100644 --- a/librss/loader.h +++ b/librss/loader.h @@ -197,8 +197,8 @@ namespace RSS * * \code * Loader *loader = Loader::create(); - * connect(loader, TQT_SIGNAL(loadingComplete(Loader *, Document, Status)), - * this, TQT_SLOT(slotLoadingComplete(Loader *, Document, Status))); + * connect(loader, TQT_SIGNAL(loadingComplete(Loader *, Document, tqStatus)), + * this, TQT_SLOT(slotLoadingComplete(Loader *, Document, tqStatus))); * loader->loadFrom("http://www.blah.org/foobar.rdf", new FileRetriever); * \endcode * @@ -222,7 +222,7 @@ namespace RSS * 'slotLoadingComplete' method might look like this: * * \code - * void MyClass::slotLoadingComplete(Loader *loader, Document doc, Status status) + * void MyClass::slotLoadingComplete(Loader *loader, Document doc, tqStatus status) * { * // Note that Loader::~Loader() is private, so you cannot delete Loader instances. * // You don't need to do that anyway since Loader instances delete themselves. @@ -304,9 +304,9 @@ namespace RSS * the case if you intend to call getPixmap() on Document::image()! * @param status A status byte telling whether there were any problems * while retrieving or parsing the data. - * @see Document, Status + * @see Document, tqStatus */ - void loadingComplete(Loader *loader, Document doc, Status status); + void loadingComplete(Loader *loader, Document doc, tqStatus status); private slots: void slotRetrieverDone(const TQByteArray &data, bool success); diff --git a/librss/testlibrss.cpp b/librss/testlibrss.cpp index 2cbbe913..d513b003 100644 --- a/librss/testlibrss.cpp +++ b/librss/testlibrss.cpp @@ -10,12 +10,12 @@ using namespace RSS; void Tester::test() { Loader *loader = Loader::create(); - connect( loader, TQT_SIGNAL( loadingComplete( Loader *, Document, Status ) ), - this, TQT_SLOT( slotLoadingComplete( Loader *, Document, Status ) ) ); + connect( loader, TQT_SIGNAL( loadingComplete( Loader *, Document, tqStatus ) ), + this, TQT_SLOT( slotLoadingComplete( Loader *, Document, tqStatus ) ) ); loader->loadFrom( "http://sourceforge.net/export/rss2_projnews.php?group_id=29057&rss_fulltext=1", new FileRetriever ); } -void Tester::slotLoadingComplete( Loader *loader, Document doc, Status status ) +void Tester::slotLoadingComplete( Loader *loader, Document doc, tqStatus status ) { if ( status == Success ) kdDebug() << "Successfully retrieverd '" << doc.title() << "'" << endl; diff --git a/librss/testlibrss.h b/librss/testlibrss.h index d394abed..9ec92ec7 100644 --- a/librss/testlibrss.h +++ b/librss/testlibrss.h @@ -9,7 +9,7 @@ using RSS::Loader; using RSS::Document; -using RSS::Status; +using RSS::tqStatus; class Tester : public TQObject { @@ -19,7 +19,7 @@ class Tester : public TQObject void test(); private slots: - void slotLoadingComplete( Loader *loader, Document doc, Status status ); + void slotLoadingComplete( Loader *loader, Document doc, tqStatus status ); }; #endif diff --git a/librss/textinput.cpp b/librss/textinput.cpp index f2af0940..265c93ed 100644 --- a/librss/textinput.cpp +++ b/librss/textinput.cpp @@ -38,13 +38,13 @@ TextInput::TextInput(const TQDomNode &node) : d(new Private) { TQString elemText; - if (!(elemText = extractNode(node, TQString::fromLatin1("title"))).isNull()) + if (!(elemText = extractNode(node, TQString::tqfromLatin1("title"))).isNull()) d->title = elemText; - if (!(elemText = extractNode(node, TQString::fromLatin1("description"))).isNull()) + if (!(elemText = extractNode(node, TQString::tqfromLatin1("description"))).isNull()) d->description = elemText; - if (!(elemText = extractNode(node, TQString::fromLatin1("name")))) + if (!(elemText = extractNode(node, TQString::tqfromLatin1("name")))) d->name = elemText; - if (!(elemText = extractNode(node, TQString::fromLatin1("link"))).isNull()) + if (!(elemText = extractNode(node, TQString::tqfromLatin1("link"))).isNull()) d->link = elemText; } diff --git a/wifi/kcmwifi/configadvanced.ui b/wifi/kcmwifi/configadvanced.ui index 1e54d280..3eda59d7 100644 --- a/wifi/kcmwifi/configadvanced.ui +++ b/wifi/kcmwifi/configadvanced.ui @@ -96,7 +96,7 @@ Expanding - + 40 20 diff --git a/wifi/kcmwifi/configcrypto.ui b/wifi/kcmwifi/configcrypto.ui index 41cfdf33..76736675 100644 --- a/wifi/kcmwifi/configcrypto.ui +++ b/wifi/kcmwifi/configcrypto.ui @@ -260,7 +260,7 @@ Expanding - + 80 20 @@ -310,25 +310,25 @@ le_key1 textChanged(const TQString&) ConfigCrypto - slotUpdateKey1Status(const TQString&) + slotUpdateKey1tqStatus(const TQString&) le_key2 textChanged(const TQString&) ConfigCrypto - slotUpdateKey2Status(const TQString&) + slotUpdateKey2tqStatus(const TQString&) le_key3 textChanged(const TQString&) ConfigCrypto - slotUpdateKey3Status(const TQString&) + slotUpdateKey3tqStatus(const TQString&) le_key4 textChanged(const TQString&) ConfigCrypto - slotUpdateKey4Status(const TQString&) + slotUpdateKey4tqStatus(const TQString&) @@ -345,10 +345,10 @@ configcrypto.ui.h - slotUpdateKey1Status( const TQString & key ) - slotUpdateKey2Status( const TQString & key ) - slotUpdateKey3Status( const TQString & key ) - slotUpdateKey4Status( const TQString & key ) + slotUpdateKey1tqStatus( const TQString & key ) + slotUpdateKey2tqStatus( const TQString & key ) + slotUpdateKey3tqStatus( const TQString & key ) + slotUpdateKey4tqStatus( const TQString & key ) load( const IfConfig & ifconfig ) diff --git a/wifi/kcmwifi/configcrypto.ui.h b/wifi/kcmwifi/configcrypto.ui.h index acb98974..be561bff 100644 --- a/wifi/kcmwifi/configcrypto.ui.h +++ b/wifi/kcmwifi/configcrypto.ui.h @@ -32,7 +32,7 @@ void ConfigCrypto::save( IfConfig &ifconfig ) } -void ConfigCrypto::slotUpdateKey1Status(const TQString& key) +void ConfigCrypto::slotUpdateKey1tqStatus(const TQString& key) { KeyStates status = ::Key::isValid( key ); switch (status) { @@ -63,7 +63,7 @@ void ConfigCrypto::slotUpdateKey1Status(const TQString& key) } } -void ConfigCrypto::slotUpdateKey2Status(const TQString& key) +void ConfigCrypto::slotUpdateKey2tqStatus(const TQString& key) { KeyStates status = ::Key::isValid( key ); switch (status) { @@ -94,7 +94,7 @@ void ConfigCrypto::slotUpdateKey2Status(const TQString& key) } } -void ConfigCrypto::slotUpdateKey3Status(const TQString& key) +void ConfigCrypto::slotUpdateKey3tqStatus(const TQString& key) { KeyStates status = ::Key::isValid( key ); switch (status) { @@ -125,7 +125,7 @@ void ConfigCrypto::slotUpdateKey3Status(const TQString& key) } } -void ConfigCrypto::slotUpdateKey4Status(const TQString& key) +void ConfigCrypto::slotUpdateKey4tqStatus(const TQString& key) { KeyStates status = ::Key::isValid( key ); switch (status) { diff --git a/wifi/kcmwifi/ifconfigpagebase.ui b/wifi/kcmwifi/ifconfigpagebase.ui index f5aedf41..089284aa 100644 --- a/wifi/kcmwifi/ifconfigpagebase.ui +++ b/wifi/kcmwifi/ifconfigpagebase.ui @@ -18,7 +18,7 @@ - layout16 + tqlayout16 @@ -80,7 +80,7 @@ Expanding - + 226 20 @@ -91,7 +91,7 @@ - layout13 + tqlayout13 @@ -126,7 +126,7 @@ Expanding - + 196 20 @@ -137,7 +137,7 @@ - layout11 + tqlayout11 @@ -178,7 +178,7 @@ Expanding - + 285 20 @@ -189,7 +189,7 @@ - layout6 + tqlayout6 @@ -286,7 +286,7 @@ Expanding - + 190 20 @@ -297,7 +297,7 @@ - layout5 + tqlayout5 @@ -354,7 +354,7 @@ Expanding - + 413 20 @@ -365,7 +365,7 @@ - layout14 + tqlayout14 @@ -392,7 +392,7 @@ Expanding - + 131 20 @@ -403,7 +403,7 @@ - layout17 + tqlayout17 @@ -444,7 +444,7 @@ Expanding - + 396 20 diff --git a/wifi/kcmwifi/kcmwifi.cpp b/wifi/kcmwifi/kcmwifi.cpp index ddc81408..36ca0daf 100644 --- a/wifi/kcmwifi/kcmwifi.cpp +++ b/wifi/kcmwifi/kcmwifi.cpp @@ -18,7 +18,7 @@ Boston, MA 02110-1301, USA. */ -#include +#include #include #include #include @@ -54,7 +54,7 @@ KCMWifi::KCMWifi(TQWidget * parent, const char *name, const TQStringList &) for ( int i=0; im_numConfigs; ++i ) { IfConfigPage *ifConfigPage = new IfConfigPage( i, tabs, "m_configPage" ); - tabs->addTab(ifConfigPage, i18n ("Config &%1").arg( i+1 )); + tabs->addTab(ifConfigPage, i18n ("Config &%1").tqarg( i+1 )); connect(ifConfigPage, TQT_SIGNAL(changed()), TQT_SLOT( slotChanged() ) ); m_ifConfigPage[ i ] = ifConfigPage; @@ -146,7 +146,7 @@ IfConfigPage* KCMWifi::addConfigTab( int count, bool vendor ) if (vendor) { IfConfigPage *ifConfigPage = new IfConfigPage( vendorBase + m_activeVendorCount, tabs, "m_configPage" ); - tabs->addTab(ifConfigPage, i18n ("Vendor %1").arg( m_activeVendorCount+1 ) ); + tabs->addTab(ifConfigPage, i18n ("Vendor %1").tqarg( m_activeVendorCount+1 ) ); connect(ifConfigPage, TQT_SIGNAL(changed()), TQT_SLOT( slotChanged() ) ); m_ifConfigPage[ vendorBase+m_activeVendorCount ] = ifConfigPage; m_mainConfig->registerConfig( vendorBase+m_activeVendorCount ); @@ -169,7 +169,7 @@ IfConfigPage* KCMWifi::addConfigTab( int count, bool vendor ) for ( int i=config->m_numConfigs; im_numConfigs+count; i++ ) { IfConfigPage *ifConfigPage = new IfConfigPage( i, tabs, "m_configPage" ); - tabs->insertTab(ifConfigPage, i18n ("Config &%1").arg( i+1 ), i ); + tabs->insertTab(ifConfigPage, i18n ("Config &%1").tqarg( i+1 ), i ); connect(ifConfigPage, TQT_SIGNAL(changed()), TQT_SLOT( slotChanged() ) ); m_ifConfigPage[ i ] = ifConfigPage; m_mainConfig->registerConfig( i+1 ); @@ -295,8 +295,8 @@ void KCMWifi::activate() if ( ifconfig.m_keys[ i ].isValid( ifconfig.m_keys[ i ].key() ) > INVALID ) { proc << "key" - << TQString( "[%1]").arg( i+1 ) - << TQString( "%1").arg( ifconfig.m_keys[ i ].rawKey() ); + << TQString( "[%1]").tqarg( i+1 ) + << TQString( "%1").tqarg( ifconfig.m_keys[ i ].rawKey() ); } } @@ -308,7 +308,7 @@ void KCMWifi::activate() proc << "key" << ifconfig.cryptomodeAsString(); proc << "key" - << TQString( "[%1]" ).arg( ifconfig.activeKeyId() ); + << TQString( "[%1]" ).tqarg( ifconfig.activeKeyId() ); proc << "key" << "on"; } @@ -334,10 +334,10 @@ void KCMWifi::activate() { proc << "power" << "period" - << TQString( "%1" ).arg( ifconfig.m_wakeupPeriod ); + << TQString( "%1" ).tqarg( ifconfig.m_wakeupPeriod ); proc << "power" << "timeout" - << TQString( "%1" ).arg( ifconfig.m_sleepTimeout ); + << TQString( "%1" ).tqarg( ifconfig.m_sleepTimeout ); proc << ifconfig.powermodeAsString(); } diff --git a/wifi/kcmwifi/mainconfig.cpp b/wifi/kcmwifi/mainconfig.cpp index c740df69..ca2a666d 100644 --- a/wifi/kcmwifi/mainconfig.cpp +++ b/wifi/kcmwifi/mainconfig.cpp @@ -39,7 +39,7 @@ MainConfig::MainConfig( TQWidget *parent, const char *name ) WifiConfig *config = WifiConfig::instance(); for (int i=1;i<=config->m_numConfigs;i++) { - cmb_presetConfig->insertItem( i18n( "Config %1" ).arg( i ) ); + cmb_presetConfig->insertItem( i18n( "Config %1" ).tqarg( i ) ); } @@ -91,12 +91,12 @@ void MainConfig::registerConfig( int number ) { if ( number >= KCMWifi::vendorBase ) { - cmb_presetConfig->insertItem( i18n( "Vendor %1" ).arg( number-KCMWifi::vendorBase+1 ) ); + cmb_presetConfig->insertItem( i18n( "Vendor %1" ).tqarg( number-KCMWifi::vendorBase+1 ) ); } else { WifiConfig* config = WifiConfig::instance(); - cmb_presetConfig->insertItem( i18n( "Config %1" ).arg( number ), number-1 ); + cmb_presetConfig->insertItem( i18n( "Config %1" ).tqarg( number ), number-1 ); } } diff --git a/wifi/kcmwifi/mainconfigbase.ui b/wifi/kcmwifi/mainconfigbase.ui index 5fcb1dab..77e168c1 100644 --- a/wifi/kcmwifi/mainconfigbase.ui +++ b/wifi/kcmwifi/mainconfigbase.ui @@ -48,7 +48,7 @@ Expanding - + 146 20 @@ -117,7 +117,7 @@ Expanding - + 106 20 @@ -134,7 +134,7 @@ Expanding - + 66 20 diff --git a/wifi/kcmwifi/vendorconfig.cpp b/wifi/kcmwifi/vendorconfig.cpp index e415c276..395cbc58 100644 --- a/wifi/kcmwifi/vendorconfig.cpp +++ b/wifi/kcmwifi/vendorconfig.cpp @@ -184,7 +184,7 @@ is incremented _after_ successful setup of each given config. */ TQString value = buffer.section ( ' ', 1, 1 ); kdDebug ( ) << "Variable " << var << " contains " << value << ".\n"; // evaluate the meaningful lines - if ( var.startsWith ( "wireless", false ) ) + if ( var.tqstartsWith ( "wireless", false ) ) { if ( var.endsWith ( "essid" ) ) { diff --git a/wifi/kcmwifi/wificonfig.cpp b/wifi/kcmwifi/wificonfig.cpp index 1cd6b3f2..bce6afd9 100644 --- a/wifi/kcmwifi/wificonfig.cpp +++ b/wifi/kcmwifi/wificonfig.cpp @@ -119,7 +119,7 @@ void IfConfig::load( KConfig *config, int i ) { TQString entry; - TQString group = TQString( "Configuration %1" ).arg( i+1 ); + TQString group = TQString( "Configuration %1" ).tqarg( i+1 ); config->setGroup( group ); m_networkName = config->readEntry( "NetworkName" ); @@ -150,7 +150,7 @@ void IfConfig::load( KConfig *config, int i ) void IfConfig::save( KConfig *config, int i ) { - TQString group = TQString( "Configuration %1" ).arg( i+1 ); + TQString group = TQString( "Configuration %1" ).tqarg( i+1 ); config->setGroup( group ); config->writeEntry( "NetworkName", m_networkName ); diff --git a/wifi/kwifimanager.cpp b/wifi/kwifimanager.cpp index 8ce5b07e..67b9378e 100644 --- a/wifi/kwifimanager.cpp +++ b/wifi/kwifimanager.cpp @@ -22,7 +22,7 @@ // include files for QT #include #include -#include +#include #include #include #include @@ -184,7 +184,7 @@ KWiFiManagerApp::slotLogESSID (TQString essid) if (!log_file.open (IO_WriteOnly | IO_Append)) kdDebug () << "Logging failed!" << endl; TQTextStream stream (&log_file); - stream << TQDateTime::currentDateTime().toString ().latin1 (); + stream << TQDateTime::tqcurrentDateTime().toString ().latin1 (); stream << " Entering network: " << essid.latin1() << endl; log_file.close (); } @@ -262,7 +262,7 @@ KWiFiManagerApp::slotChangeTrayIcon () } else if (((str == 0) && (mode == 2)) || (!validdata)) { - sstrength2.setText( TQString::fromLatin1("0") ); + sstrength2.setText( TQString::tqfromLatin1("0") ); ICON = strength->OOR_DOWN; if (led->state == true) led->Off (); @@ -286,7 +286,7 @@ KWiFiManagerApp::slotChangeTrayIcon () labelfont.setStretch( TQFont::Condensed ); labelfont.setBold( true ); sstrength2.setFont( labelfont ); - sstrength2.setFixedSize( sstrength2.sizeHint() ); + sstrength2.setFixedSize( sstrength2.tqsizeHint() ); } TQPixmap labeltemp = TQPixmap::grabWidget( &sstrength2 ); labeltemp.setMask( labeltemp.createHeuristicMask() ); @@ -360,10 +360,10 @@ KWiFiManagerApp::initView () view = new TQWidget (this, "mainwidget"); view->setBackgroundMode (PaletteBackground); setCentralWidget (view); - TQGridLayout *zentrallayout = new TQGridLayout (view); - zentrallayout->setMargin( KDialog::marginHint() ); + TQGridLayout *zentraltqlayout = new TQGridLayout (view); + zentraltqlayout->setMargin( KDialog::marginHint() ); speedmeter = new Speed (view, device); - status = new Status (view, device); + status = new tqStatus (view, device); location = new Locator (view, device); strength = new Strength (view, device); pictogram = new Picture (view, device); @@ -377,25 +377,25 @@ KWiFiManagerApp::initView () strength->setMinimumSize (strength->mySizeHint()); speedmeter->setMinimumHeight (60); status->setMinimumHeight (60); - zentrallayout->addWidget (pictogram, 0, 0); - zentrallayout->addWidget (strength, 1, 0); - zentrallayout->addWidget (speedmeter, 0, 1); - zentrallayout->addMultiCellWidget (status, 1, 2, 1, 1); - zentrallayout->addWidget (scan, 2, 0); - zentrallayout->addMultiCellWidget (location, 3, 3, 0, 1, TQt::AlignLeft); + zentraltqlayout->addWidget (pictogram, 0, 0); + zentraltqlayout->addWidget (strength, 1, 0); + zentraltqlayout->addWidget (speedmeter, 0, 1); + zentraltqlayout->addMultiCellWidget (status, 1, 2, 1, 1); + zentraltqlayout->addWidget (scan, 2, 0); + zentraltqlayout->addMultiCellWidget (location, 3, 3, 0, 1, TQt::AlignLeft); connect (device, TQT_SIGNAL (interfaceChanged ()), this, TQT_SLOT (slotChangeWindowCaption ())); connect (device, TQT_SIGNAL (strengthChanged ()), this, TQT_SLOT (slotChangeTrayIcon ())); - connect (device, TQT_SIGNAL (strengthChanged ()), strength, TQT_SLOT (repaint ())); - connect (device, TQT_SIGNAL (statusChanged ()), status, TQT_SLOT (repaint ())); - connect (device, TQT_SIGNAL (speedChanged ()), speedmeter, TQT_SLOT (repaint ())); - connect (device, TQT_SIGNAL (modeChanged ()), pictogram, TQT_SLOT (repaint ())); + connect (device, TQT_SIGNAL (strengthChanged ()), strength, TQT_SLOT (tqrepaint ())); + connect (device, TQT_SIGNAL (statusChanged ()), status, TQT_SLOT (tqrepaint ())); + connect (device, TQT_SIGNAL (speedChanged ()), speedmeter, TQT_SLOT (tqrepaint ())); + connect (device, TQT_SIGNAL (modeChanged ()), pictogram, TQT_SLOT (tqrepaint ())); connect (device, TQT_SIGNAL (essidChanged (TQString)), this, TQT_SLOT (slotLogESSID (TQString))); - connect (device, TQT_SIGNAL (essidChanged (TQString)), location, TQT_SLOT (repaint ())); - connect (device, TQT_SIGNAL (statusChanged ()), location, TQT_SLOT (repaint ())); + connect (device, TQT_SIGNAL (essidChanged (TQString)), location, TQT_SLOT (tqrepaint ())); + connect (device, TQT_SIGNAL (statusChanged ()), location, TQT_SLOT (tqrepaint ())); connect (device, TQT_SIGNAL (txPowerChanged ()), this, TQT_SLOT (slotTXPowerChanged ())); connect (device, TQT_SIGNAL (txPowerChanged ()), this, TQT_SLOT (slotChangeTrayIcon ())); - connect (device, TQT_SIGNAL (txPowerChanged ()), pictogram, TQT_SLOT (repaint ())); - connect (device, TQT_SIGNAL (txPowerChanged ()), strength, TQT_SLOT (repaint ())); + connect (device, TQT_SIGNAL (txPowerChanged ()), pictogram, TQT_SLOT (tqrepaint ())); + connect (device, TQT_SIGNAL (txPowerChanged ()), strength, TQT_SLOT (tqrepaint ())); connect (scan, TQT_SIGNAL (clicked()), this, TQT_SLOT (slotNetworkScan())); } @@ -427,7 +427,7 @@ KWiFiManagerApp::slotStartStatViewer () delete statistik; statistik = new Statistics (device, showStatsNoise); statistik->setFixedSize (590, 300); - connect(device,TQT_SIGNAL(statsUpdated()),statistik,TQT_SLOT(repaint())); + connect(device,TQT_SIGNAL(statsUpdated()),statistik,TQT_SLOT(tqrepaint())); statistik->show (); } diff --git a/wifi/kwifimanager.h b/wifi/kwifimanager.h index 6a58de44..c52969ac 100644 --- a/wifi/kwifimanager.h +++ b/wifi/kwifimanager.h @@ -39,7 +39,7 @@ class KProcess; #include "interface_wireless.h" #include "interface_dcop.h" class Strength; -class Status; +class tqStatus; class Picture; class Locator; class Speed; @@ -115,7 +115,7 @@ private: Speed *speedmeter; TQBoxLayout *bla; TQLabel *profil; - Status *status; + tqStatus *status; Strength *strength; Picture *pictogram; Locator *location; diff --git a/wifi/kwireless/kwirelesswidget.cpp b/wifi/kwireless/kwirelesswidget.cpp index 77e20128..86bb6ed7 100644 --- a/wifi/kwireless/kwirelesswidget.cpp +++ b/wifi/kwireless/kwirelesswidget.cpp @@ -50,7 +50,7 @@ float DeviceInfo::quality() TQString DeviceInfo::qualityString() { - return i18n("%1%").arg(TQString::number(m_quality*100, 'f', 0)); + return i18n("%1%").tqarg(TQString::number(m_quality*100, 'f', 0)); } float DeviceInfo::signal() @@ -60,7 +60,7 @@ float DeviceInfo::signal() TQString DeviceInfo::signalString() { - return i18n("%1%").arg(TQString::number(m_signal*100, 'f', 0)); + return i18n("%1%").tqarg(TQString::number(m_signal*100, 'f', 0)); } float DeviceInfo::noise() @@ -70,7 +70,7 @@ float DeviceInfo::noise() TQString DeviceInfo::noiseString() { - return i18n("%1%").arg(TQString::number(m_noise*100, 'f', 0)); + return i18n("%1%").tqarg(TQString::number(m_noise*100, 'f', 0)); } const TQString& DeviceInfo::device() diff --git a/wifi/kwireless/linuxwirelesswidget.cpp b/wifi/kwireless/linuxwirelesswidget.cpp index 3efdbf98..02b7e217 100644 --- a/wifi/kwireless/linuxwirelesswidget.cpp +++ b/wifi/kwireless/linuxwirelesswidget.cpp @@ -187,7 +187,7 @@ void LinuxWireLessWidget::poll() if(updateNeeded) { emit(updateDeviceInfo(&deviceInfo)); - repaint(false); + tqrepaint(false); } if(updateToolTip) { @@ -199,9 +199,9 @@ void LinuxWireLessWidget::poll() if (!text.isEmpty()) text.append('\n'); text += i18n("%1: Link Quality %2, Bitrate: %3") - .arg(info->device()) - .arg(info->qualityString()) - .arg(info->bitrateString()); + .tqarg(info->device()) + .tqarg(info->qualityString()) + .tqarg(info->bitrateString()); } TQToolTip::add(this, text); diff --git a/wifi/kwireless/propertytable.cpp b/wifi/kwireless/propertytable.cpp index 79fcbe89..7c73b1c2 100644 --- a/wifi/kwireless/propertytable.cpp +++ b/wifi/kwireless/propertytable.cpp @@ -11,7 +11,7 @@ #include #include #include -#include +#include #include #include #include "propertytable.h" diff --git a/wifi/locator.cpp b/wifi/locator.cpp index 2ca40398..6bb0cd62 100644 --- a/wifi/locator.cpp +++ b/wifi/locator.cpp @@ -35,12 +35,12 @@ Locator::generateLocWidget () sentence = new TQLabel (i18n ("AccessPoint: ") + whois (mac.local8Bit (), APs), this); setFixedSize (TQSize - (sentence->sizeHint ().width () + 2, - sentence->sizeHint ().height ())); + (sentence->tqsizeHint ().width () + 2, + sentence->tqsizeHint ().height ())); sentence-> setFixedSize (TQSize - (sentence->sizeHint ().width () + 2, - sentence->sizeHint ().height ())); + (sentence->tqsizeHint ().width () + 2, + sentence->tqsizeHint ().height ())); sentence->show (); widgetbild = TQPixmap::grabWidget (sentence); delete sentence; diff --git a/wifi/networkscanning.cpp b/wifi/networkscanning.cpp index 46b3a27d..0e2a42a8 100644 --- a/wifi/networkscanning.cpp +++ b/wifi/networkscanning.cpp @@ -19,7 +19,7 @@ #include #include -#include +#include #include #include @@ -119,26 +119,26 @@ NetworkScanning::switchToNetwork() TQString tempfilename = tempfile->name(); cmdline = (TQString)"ifconfig %1 down\n"; - cmdline = cmdline.arg( device->get_interface_name() ); + cmdline = cmdline.tqarg( device->get_interface_name() ); write( tempfile->handle(), cmdline.ascii(), strlen( cmdline.ascii() ) ); cmdline = (TQString)"iwconfig %1 essid %2 mode %3 enc %4\n"; - cmdline = cmdline.arg( device->get_interface_name() ); - cmdline = cmdline.arg( KProcess::quote( networks->text( networks->currentRow(), 0 ) ) ); + cmdline = cmdline.tqarg( device->get_interface_name() ); + cmdline = cmdline.tqarg( KProcess::quote( networks->text( networks->currentRow(), 0 ) ) ); TQString modetemp; if (networks->text( networks->currentRow(), 1 ) == i18n("Managed") ) modetemp = "Managed"; else modetemp = "Ad-Hoc"; - cmdline = cmdline.arg( modetemp ); + cmdline = cmdline.tqarg( modetemp ); if ( encryption != NONE ) { - cmdline = cmdline.arg( (encryption == VALID_STRING ? "s:" : "" ) + KProcess::quote( networks->text( networks->currentRow(), 3 ) ) ); + cmdline = cmdline.tqarg( (encryption == VALID_STRING ? "s:" : "" ) + KProcess::quote( networks->text( networks->currentRow(), 3 ) ) ); } else { - cmdline = cmdline.arg("off"); + cmdline = cmdline.tqarg("off"); } write( tempfile->handle(), cmdline.ascii(), strlen( cmdline.ascii() ) ); cmdline = (TQString)"ifconfig %1 up\n"; - cmdline = cmdline.arg( device->get_interface_name() ); + cmdline = cmdline.tqarg( device->get_interface_name() ); write( tempfile->handle(), cmdline.ascii(), strlen( cmdline.ascii() ) ); delete tempfile; // autoDeletion off, so the file remains on disk diff --git a/wifi/statistics.cpp b/wifi/statistics.cpp index 15295180..7dfe88b6 100644 --- a/wifi/statistics.cpp +++ b/wifi/statistics.cpp @@ -102,10 +102,10 @@ Statistics::paintEvent (TQPaintEvent *) { if (showStatsNoise) { statpainter->setPen (red); - statpainter->drawPolyline (datensatz2, 1); + statpainter->tqdrawPolyline (datensatz2, 1); } statpainter->setPen (blue); - statpainter->drawPolyline (datensatz, 1); + statpainter->tqdrawPolyline (datensatz, 1); } delete statpainter; } diff --git a/wifi/status.cpp b/wifi/status.cpp index 4d8b5784..0bd45b3a 100644 --- a/wifi/status.cpp +++ b/wifi/status.cpp @@ -22,13 +22,13 @@ #include #include -Status::Status (TQWidget * parent, Interface_wireless * device) +tqStatus::tqStatus (TQWidget * parent, Interface_wireless * device) : TQWidget (parent, "KWiFiManager status") { this->device = device; } -bool Status::generateStatsWidget () +bool tqStatus::generateStatsWidget () { double freq = 0.; @@ -69,79 +69,79 @@ bool Status::generateStatsWidget () { if (freq / 1000000. > 5690.) { - temp3 = temp3.arg(140); + temp3 = temp3.tqarg(140); } else if (freq / 1000000. > 5670.) { - temp3 = temp3.arg(136); + temp3 = temp3.tqarg(136); } else if (freq / 1000000. > 5650.) { - temp3 = temp3.arg(132); + temp3 = temp3.tqarg(132); } else if (freq / 1000000. > 5630.) { - temp3 = temp3.arg(128); + temp3 = temp3.tqarg(128); } else if (freq / 1000000. > 5610.) { - temp3 = temp3.arg(124); + temp3 = temp3.tqarg(124); } else if (freq / 1000000. > 5590.) { - temp3 = temp3.arg(120); + temp3 = temp3.tqarg(120); } else if (freq / 1000000. > 5570.) { - temp3 = temp3.arg(116); + temp3 = temp3.tqarg(116); } else if (freq / 1000000. > 5550.) { - temp3 = temp3.arg(112); + temp3 = temp3.tqarg(112); } else if (freq / 1000000. > 5530.) { - temp3 = temp3.arg(108); + temp3 = temp3.tqarg(108); } else if (freq / 1000000. > 5510.) { - temp3 = temp3.arg(104); + temp3 = temp3.tqarg(104); } else if (freq / 1000000. > 5490.) { - temp3 = temp3.arg(100); + temp3 = temp3.tqarg(100); } else if (freq / 1000000. > 5310.) { - temp3 = temp3.arg(64); + temp3 = temp3.tqarg(64); } else if (freq / 1000000. > 5290.) { - temp3 = temp3.arg(60); + temp3 = temp3.tqarg(60); } else if (freq / 1000000. > 5270.) { - temp3 = temp3.arg(56); + temp3 = temp3.tqarg(56); } else if (freq / 1000000. > 5250.) { - temp3 = temp3.arg(52); + temp3 = temp3.tqarg(52); } else if (freq / 1000000. > 5230.) { - temp3 = temp3.arg(48); + temp3 = temp3.tqarg(48); } else if (freq / 1000000. > 5210.) { - temp3 = temp3.arg(44); + temp3 = temp3.tqarg(44); } else if (freq / 1000000. > 5190.) { - temp3 = temp3.arg(40); + temp3 = temp3.tqarg(40); } else if (freq / 1000000. > 5170.) { - temp3 = temp3.arg(36); + temp3 = temp3.tqarg(36); } else if (freq / 1000000. > 2474.) { @@ -361,10 +361,10 @@ bool Status::generateStatsWidget () else enc = new TQLabel (i18n ("active"), content); } - // content->setFixedSize (content->sizeHint ()); - content->setMinimumSize(content->sizeHint()); + // content->setFixedSize (content->tqsizeHint ()); + content->setMinimumSize(content->tqsizeHint()); if ( content->minimumWidth() < 280 ) content->setMinimumWidth( 280 ); - setFixedSize (content->minimumSize()); + setFixedSize (content->tqminimumSize()); content->show (); widgetbild = TQPixmap::grabWidget (content); delete @@ -373,7 +373,7 @@ bool Status::generateStatsWidget () } void -Status::paintEvent (TQPaintEvent *) +tqStatus::paintEvent (TQPaintEvent *) { TQPainter *paintArea = new TQPainter (this); generateStatsWidget (); diff --git a/wifi/status.h b/wifi/status.h index 59efff87..dfdfd81d 100644 --- a/wifi/status.h +++ b/wifi/status.h @@ -26,10 +26,10 @@ class Interface_wireless; -class Status:public TQWidget +class tqStatus:public TQWidget { public: - Status (TQWidget * parent, Interface_wireless * device); + tqStatus (TQWidget * parent, Interface_wireless * device); private: void paintEvent (TQPaintEvent *); bool generateStatsWidget (); diff --git a/wifi/strength.cpp b/wifi/strength.cpp index a448cfdb..e33a6155 100644 --- a/wifi/strength.cpp +++ b/wifi/strength.cpp @@ -63,7 +63,7 @@ TQSize Strength::mySizeHint () // up to now: this is the height required to get a decent logo display // now determine height of TQLabels to calculate the extra needed height TQLabel heightTest( "ABC", 0 ); - temp->setHeight( temp->height() + 2 * heightTest.sizeHint().height() + 10 ); + temp->setHeight( temp->height() + 2 * heightTest.tqsizeHint().height() + 10 ); return *temp; } @@ -149,7 +149,7 @@ Strength::updateInfo (TQPaintEvent *) else if (((strength == 0) && (mode == 2)) || (!validdata)) { sstrength1 = i18n("OUT OF RANGE"); - sstrength2 = TQString::fromLatin1("0"); + sstrength2 = TQString::tqfromLatin1("0"); strengthpainter->drawPixmap (50, 10, *OOR_DOWN); } else -- cgit v1.2.1