Conrad Hoffmann wrote:
>currently all i do is this:
>       DCOPClient *client = dcopClient();
>       client->attach();
>
>since this is a plugin, there is no QApplication object, and thus it
> will register as "anonymous".
>
>problem is that when the plugin is used (and only then), the kwallet
> handling is suddenly done by "anonymous".
>The quick fix would of course be to register my dcop client as "kopete"
> but it doesn't seem right to me (because it's not really kopete). are
> there any other ways around this, could i for example use the existing
> kopete dcop client?

By definition, a Kopete plugin is running inside Kopete. So you can access 
kapp->dcopClient().

-- 
Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
  thiago.macieira (AT) trolltech.com     Trolltech AS
    GPG: 0x6EF45358                   |  Sandakerveien 116,
    E067 918B B660 DBD1 105C          |  NO-0402
    966C 33F5 F005 6EF4 5358          |  Oslo, Norway

Attachment: pgp9pxkWFAkyZ.pgp
Description: PGP signature

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

Reply via email to