Comment 3 for bug 612344

Revision history for this message
Michal Hruby (mhr3) wrote :

Ok, as mentioned in the first post I'd suggest this:

[org.gnome.zeitgeist.Blacklist] inteface:
Methods:
 - GetTemplates() -> (Array of Events)
 - AddTemplate(Event)
 - RemoveTemplate(Event)
Signals:
 - Changed()

A few notes: templates must be unique, adding the same template twice will result in the second call being ignored (and will not emit Changed signal). Otherwise after every change Changed() signal is emitted and since it doesn't have any parameters the client is expected to call GetTemplates afterwards if it cares (maybe this should be changed?).