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

List:       kopete-devel
Subject:    Re: [kopete-devel] Proposal: Global display name changing as a plugin
From:       Matt Rogers <mattr () kde ! org>
Date:       2005-05-14 14:41:36
Message-ID: 200505140941.40081.mattr () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Saturday 14 May 2005 10:17 am, Michaël Larouche wrote:
> Last week, I was thinking about a plugin that could me useful for people
> using multiples accounts.
>
> For my part, I have one MSN account and two Jabber and I want my display
> name to be the same for all protocols. But it's require me going to each
> account and change the display name.
>
> The plugin will consist to add a menu entry called "Change Display Name
> Globally". This menu entry will ask for a new display name and change it
> in all protocol that is logical to do so(i.e excluding IRC protocol for
> example).
>
> However, it would require a public method implemented for each derived
> class of Kopete::Account, and only MSN protocol has a method "void
> changeDisplayName()". If all protocols would implement a common public
> method to change display name, the code to change the display name would
> be simple as this:
>
>     QPtrList<Kopete::Account>  accounts =
> Kopete::AccountManager::self()->accounts();
>     for(Kopete::Account *i=accounts.first() ; i; i=accounts.next() )
>     {
>         i->changeDisplayName(newDisplayname);
>     }
>
> Thus the plugin code should be generic and not implement differents
> method for each different protocol.

Don't use a plugin for this. Do it in straight in the app itself.


[Attachment #5 (application/pgp-signature)]

_______________________________________________
kopete-devel mailing list
kopete-devel@kde.org
https://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