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

List:       kopete-devel
Subject:    [kopete-devel] Proposal: Global display name changing as a plugin
From:       Michaël_Larouche <kuramadoushi.shock () globetrotter ! net>
Date:       2005-05-14 14:17:43
Message-ID: 4286168B.9020708 () globetrotter ! net
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


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.





["signature.asc" (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