[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kopete-devel
Subject:    Re: [Kopete-devel] Misc info re: 0.6 release and showstoppers
From:       Stefan Gehn <sgehn () gmx ! net>
Date:       2003-01-30 21:11:59
[Download RAW message or body]

Boing,

On Donnerstag Januar 30 2003 21:58, Stefan Gehn wrote:
> > I could disable the sync for 0.6 (it's a one liner, just comment out the
> > call to c->rename() in KMC::rename()) but for after that we definitely
> > need something better.
>
> I think I found out how to make sure people can still access both names in
> icq
>
> An ICQUser got Nick and Alias. Alias is the one that gets set on renaming
> that user and what gets sent to server as well (found something that should
> send things, have to test that).

K, tested and seems to work (renamed two users and their names showed up in 
icq2go afterwards).
See attached patch.

Now really off to bed, yesterday was way too late for me, Stefan aka mETz
-- 
sgehn_AT_gmx.net | ICQ#51123152 | Moege der Pinguin mit euch sein

["ICQ.serverside-rename.patch" (text/x-diff)]

? ICQ.serverside-rename.patch
Index: icqcontact.cpp
===================================================================
RCS file: /home/kde/kdenonbeta/kopete/protocols/icq_new/icqcontact.cpp,v
retrieving revision 1.89
diff -u -3 -p -r1.89 icqcontact.cpp
--- icqcontact.cpp	30 Jan 2003 20:34:30 -0000	1.89
+++ icqcontact.cpp	30 Jan 2003 21:04:08 -0000
@@ -822,7 +822,8 @@ void ICQContact::slotUpdateNickname(cons
 
 void ICQContact::slotDeletingGroup(const QString &groupName)
 {
-	kdDebug(14110) << k_funcinfo << "called." << endl;
+	kdDebug(14110) << k_funcinfo << "called for user " << displayName() <<
+		"(" << uin() << ") [" << mUser->GrpId << "]" << endl;
 
 	ICQUser *u = static_cast<ICQProtocol*>( protocol() )->engine()->getUser(mUser->Uin, false);
 	if (!u)
@@ -841,9 +842,11 @@ void ICQContact::slotDeletingGroup(const
 	}
 }
 
-void ICQContact::rename( const QString &/*newName*/ )
+void ICQContact::rename( const QString &newName )
 {
-	// ignore stupid crap
+	kdDebug(14110) << k_funcinfo << "called. newName=" << newName << endl;
+	static_cast<ICQProtocol*>( protocol() )->engine()->renameUser(mUser, newName.local8Bit() );
+//	setDisplayName(newName);
 }
 
 #include "icqcontact.moc"

_______________________________________________
Kopete-devel mailing list
Kopete-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/kopete-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic