[Kde-pim] kmail-akonadi: Add/remove account

Volker Krause vkrause at kde.org
Mon Nov 2 14:31:00 GMT 2009


On Monday 02 November 2009 15:03:01 laurent Montel wrote:
> Hi,
> Now that we use akonadi, I want to add/remove account.
> So I see a "agentinstancewidget.cpp" but this widget show all type of agent
> which is configuring in akonadi.
> But in kmail we don't want to see all type.
>
> Do you have an idea how to filter type ?

as usual, the answer is proxy model :-)

There is AgentFilterProxyModel, AgentInstanceWidget has a convenience accessor 
for that already. It can be used both for the instance view as well as the 
type view.

> Or perhaps there is an other widget for it.
>
> An other idea for reimplementing it ?

there is also a ready-to-use KCM available for resource configuration, you 
might be able to just use that one (IIRC that's what Mailody does), if not it 
should at least  contain all the code you need, see kdepim/akonadi/kcm.

regards
Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20091102/e188fbdd/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list