On Friday 12 December 2008 07:38:28 am Tejas Dinkar wrote:
> Today in IRC, someone suggested that it should be easier for gTalk users
> to set up their account in Kopete.
>
> Enclosed is a patch for this. This method can be extended beyond just
> gmail.com addresses though.
>
> Here is how it works:
> QMap <QString, JabberWellKnownServer> is a mapping of some well known
> addresses (ex"@gmail.com") to well known setting (enable SSL, server,
> etc).
>
> It can be populated in the constructor of EditAccountWidget:
> wellKnownServers.insert("gmail.com", JabberWellKnownServer(true, true,
> true, "talk.google.com", 5223));
>
> Now, when the jabber ID changes, we query this object for the
> configuration, and, if it fails, we use the default values (this
> shouldn't affect kopete's behaviour in any way to the user).
> JabberWellKnownServer values = wellKnownServers.value(newServer,
> JabberWellKnownServer(newServer, cbUseSSL->isChecked()));
>
> Please tell me if I can commit this

No. You can't.

Why? Cause it's stupid for us to keep track of "well known" jabber servers
in code because then when another one becomes well known, we have to edit the 
code, rerelease, etc.

Instead, you should just write another .desktop file that describes Google 
Talk instead of Jabber, and find a way to integrate those .desktop files in to 
Kopete that way.
-- 
Matt
_______________________________________________
kopete-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kopete-devel

Reply via email to