summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/gadu/gaducontact.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
commit69cac65817d949cda2672ec4f0aa73d5e66a0ba1 (patch)
tree073fde0496ea90eb5bf5cffe66a8da43a9f55fbc /kopete/protocols/gadu/gaducontact.cpp
parent3467e6464beac3a162839bf7078e22e3a74d73e7 (diff)
downloadtdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.tar.gz
tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.zip
TQt4 port kdenetwork
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/protocols/gadu/gaducontact.cpp')
-rw-r--r--kopete/protocols/gadu/gaducontact.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kopete/protocols/gadu/gaducontact.cpp b/kopete/protocols/gadu/gaducontact.cpp
index dfbb93a4..2ee61e97 100644
--- a/kopete/protocols/gadu/gaducontact.cpp
+++ b/kopete/protocols/gadu/gaducontact.cpp
@@ -44,8 +44,8 @@
using Kopete::UserInfoDialog;
-GaduContact::GaduContact( uin_t uin, const TQString& name, Kopete::Account* account, Kopete::MetaContact* parent )
-: Kopete::Contact( account, TQString::number( uin ), parent ), uin_( uin )
+GaduContact::GaduContact( uin_t uin, const TQString& name, Kopete::Account* account, Kopete::MetaContact* tqparent )
+: Kopete::Contact( account, TQString::number( uin ), tqparent ), uin_( uin )
{
msgManager_ = 0L;
account_ = static_cast<GaduAccount*>( account );
@@ -66,21 +66,21 @@ 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 );
}
-QString
+TQString
GaduContact::identityId() const
{
- return parentIdentity_;
+ return tqparentIdentity_;
}
void
GaduContact::setParentIdentity( const TQString& id)
{
- parentIdentity_ = id;
+ tqparentIdentity_ = id;
}
uin_t
@@ -96,7 +96,7 @@ GaduContact::sendFile( const KURL &sourceURL, const TQString &/*fileName*/, uint
//If the file location is null, then get it from a file open dialog
if( !sourceURL.isValid() )
- filePath = KFileDialog::getOpenFileName(TQString::null, "*", 0l , i18n("Kopete File Transfer"));
+ filePath = KFileDialog::getOpenFileName(TQString(), "*", 0l , i18n("Kopete File Transfer"));
else
filePath = sourceURL.path(-1);
@@ -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();
}
@@ -277,7 +277,7 @@ GaduContactsList::ContactLine*
GaduContact::contactDetails()
{
Kopete::GroupList groupList;
- QString groups;
+ TQString groups;
GaduContactsList::ContactLine* cl = new GaduContactsList::ContactLine;
@@ -315,7 +315,7 @@ GaduContact::contactDetails()
return cl;
}
-QString
+TQString
GaduContact::findBestContactName( const GaduContactsList::ContactLine* cl )
{
TQString name;