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

Tom Albers toma at kde.org
Mon Nov 2 15:53:28 GMT 2009


Op Monday 2 November 2009 15:31 schreef u:
> 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

QStringList list;
list << "message/rfc822";
and then retrieve the widget* with KCModuleLoader::loadModule( "kcm_akonadi_resources", KCModuleLoader::Inline, this, list )

-------------- 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