~mterry/zeitgeist-datahub/nodisplay-autostart

« back to all changes in this revision

Viewing changes to src/data-provider.vala

  • Committer: Siegfried-Angel Gevatter Pujals
  • Date: 2011-03-07 10:12:24 UTC
  • Revision ID: rainct@ubuntu.com-20110307101224-kspda745emo6lie4
Update upstream source to 0.7.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 
36
36
  public virtual void start ()
37
37
  {
38
 
    items_available ();
39
38
  }
40
39
 
41
40
  public virtual void stop ()
42
41
  {
43
42
  }
44
 
  
45
 
  protected abstract List<Event> _get_items ();
46
 
  // DataHub will call get_items when items_available is emitted
47
 
  public List<Event> get_items ()
48
 
  {
49
 
    if (enabled) return _get_items ();
50
 
    return new List<Event> ();
51
 
  }
52
43
 
53
 
  public signal void items_available ();
 
44
  public signal void items_available (GenericArray<Event> events);
54
45
}
55
46