[Kde-pim] Setting Akonadi agents' mime types

David Jarvie djarvie at kde.org
Fri Sep 11 11:13:14 BST 2009


On Fri, September 11, 2009 9:43 am, Volker Krause wrote:
> On Friday 11 September 2009 10:24:24 David Jarvie wrote:
>> On Fri, September 11, 2009 8:09 am, Volker Krause wrote:
>> > On Friday 11 September 2009 01:38:40 David Jarvie wrote:
>> >> Why doesn't the Collection show just a single mime type in
>> >> AkonadiConsole?
>> >> - is it necessary to do something else to save the new setting?
>> >
>> > I'm wondering why you try to modify the content mimetype from within
>> the
>> > application at all. Usually it's something only the resource should
>> do,
>> > as it
>> > is the only thing that knows what types it can handle. If possible any
>> > resource-specific knowledge should be avoided in the application, it
>> will
>> > fail once you exchange the resources at some point.
>>
>> It's only when creating a new collection that I want to specify a
>> particular mime type. After any alarms have been added, the resource
>> knows
>> what mime type it is from the alarm type. Or do you think that it would
>> be
>> better to define separate resource types?
>
> What are those different types anyway? That might help understanding the
> scenario here :)

They are for active alarms, archived (i.e. expired) alarms, and alarm
templates. There is no absolute necessity to keep these types in separate
files, and Akonadi's filtering facilities would help here, but it is more
satisfactory from the user's point of view for the purposes of backing up,
etc., and it's also easier when requesting information for debugging
purposes.

> There are ways to define separate resource types for the same resource
> executable btw, using separate desktop files with different resource
> identifiers but pointing to the same executable. The resource itself can
> then
> check its identfier to figure out which one it is supposed to be. Not
> really nice, but still better than writing for different resources.

-- 
David Jarvie.
KDE developer.
KAlarm author & maintainer.
http://www.astrojar.org.uk/kalarm

_______________________________________________
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