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?). -- Blacklist API sucks https://bugs.launchpad.net/bugs/612344 You received this bug notification because you are a member of Zeitgeist Framework Team, which is subscribed to Zeitgeist Framework. Status in Zeitgeist Framework: New Bug description: Guys, GetBlacklist and SetBlacklist (without any signals) for an asynchrounous-by-nature API? Come on! How about changing it to Get, Add, Remove and a changed signal? That way it'd be actually usable... _______________________________________________ Mailing list: https://launchpad.net/~zeitgeist Post to : zeitgeist@lists.launchpad.net Unsubscribe : https://launchpad.net/~zeitgeist More help : https://help.launchpad.net/ListHelp