[Kde-pim] RR: Add additional parameter to EntityTreeModel::entityData()

Tobias Koenig tokoe at kde.org
Mon Dec 21 15:30:59 GMT 2009


On Sun, Dec 20, 2009 at 07:22:03PM +0000, David Jarvie wrote:
> On Sunday 20 Dec 2009 13:34:32 Stephen Kelly wrote:
Hej David,

> > Can you tell me how you change the background colour of items if not by 
> > using the EntityDisplayAttribute? Is the background colour built into the 
> > alarm payload itself?
> 
> I'm initially basing the Akonadi-based code on how I did it in pre-Akonadi code,
> and then I'll see how it goes.
While this is a good starting point, feel free to ask us whether some usecases could be done
in a different way with Akonadi... During the port of KAddressBook I had the chance to drop
a lot of old code for stuff that can be implemented in a much nicer way with Akonadi now.

> The background colour in KAlarm's alarm list for each alarm is user-defined per Collection
> - it allows the user to differentiate different calendars by colour.
> I haven't introduced any Attributes for this since it is a per-user setting, so I'm intending
> storing it in KAlarm's config file on the assumption that Attributes apply to all users.
Akonadi is a user thingy... every user has its own Akonadi instance running with its own cache,
so all attributes you put on your items/collections are on a per user basis.
Putting as much meta information as possible into attributes removes the burden from you to keep
track of synchronization of the config files with the data... yet another helpfull hand from Akonadi ;)

Ciao,
Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20091221/ede3bf80/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