Tag Configuration object draft

Christian Mollekopf mollekopf at kolabsys.com
Tue Feb 25 20:32:32 CET 2014


Hey,

Here's a draft for the Tag configuration object:

configuration = element configuration {
   attribute version { #Kolab XML Version },
   element uid { value-uid },
   element prodid { #Product ID },
   element creation-date { #Creation date },
   element last-modification-date { #Last modification date },
   element type { #String },
   configurationtype-fields
 }

type = "tag"

configurationtype-fields = {
  element name { #String },
  element type { #String } ?,
  element color { #Color } ?,
  element iconName { #Icon } ?,
  element priority { #Integer } ?, 
  element parent { #UID } ?,
  element member {#UID } *
}

Description:
* name: The name of the tag that is typically shown to the user. This string 
could be translated if deemed necessary.
* type: The type of the tag that can be used to filter the tags. Similar to a 
mimetype. No type results in a generic, all purpose tag.
* color/icon: for displaying the tag and for highlighting messages with the 
specified color.
* priority: "importance" of the tag, a value from 1 to 100. Primary purpose is 
sorting in the UI.
* parent: For future tag hierarchies (I could exclude this from the initial 
implementation).
* member: A UID of a member of the tag.

Kontact internally uses all of those, plus:
* font/textcolor/backgroundcolor: for display purposes (messages with a tag or 
shown with the according font/textcolor/backgroundcolor). text/backgroundcolor  
replaces the single color above.
* shortcut: A shortcut to set the tags (syncing those could result in conflicts 
though and is not necessarily relevant for all clients)
* inToolbar: Boolean. If true an icon to set the tag is shown in the toolbar.

IMO this feature set covers the initial usecase.
Matching to existing categories would happen based on name.

Cheers,
Christian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.kolab.org/pipermail/format/attachments/20140225/8ff7ac5d/attachment.sig>


More information about the format mailing list