kmail-akonadi: Add/remove account

View: New views
4 Messages — Rating Filter:   Alert me  

kmail-akonadi: Add/remove account

by laurent Montel-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 ?

Or perhaps there is an other widget for it.

An other idea for reimplementing it ?

Thanks for comment.
Regards

--
Laurent Montel | laurent@... | KDE/Qt Senior Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions
_______________________________________________
KDE PIM mailing list kde-pim@...
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/

Re: kmail-akonadi: Add/remove account

by Bugzilla from vkrause@kde.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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


_______________________________________________
KDE PIM mailing list kde-pim@...
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/

signature.asc (196 bytes) Download Attachment

Re: kmail-akonadi: Add/remove account

by laurent Montel-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Le lundi 2 novembre 2009 15:03:01, laurent Montel a écrit :

Ok I found agentfilterproxymodel.h
It will use it to filter type.
Regards

> 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 ?
>
> Or perhaps there is an other widget for it.
>
> An other idea for reimplementing it ?
>
> Thanks for comment.
> Regards
>

--
Laurent Montel | laurent@... | KDE/Qt Senior Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions
_______________________________________________
KDE PIM mailing list kde-pim@...
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/

Re: kmail-akonadi: Add/remove account

by Tom Albers :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 )


_______________________________________________
KDE PIM mailing list kde-pim@...
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/