tracker-uri-source.vala 522 Bytes
Newer Older
1 2 3
// This file is part of GNOME Games. License: GPL-3.0+.

public class Games.TrackerUriSource : Object, UriSource {
4
	private Tracker.Sparql.Connection connection { get; private set; }
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
	private TrackerUriQuery[] queries;

	public TrackerUriSource (Tracker.Sparql.Connection connection) {
		this.connection = connection;
	}

	construct {
		queries = {};
	}

	public void add_query (TrackerUriQuery query) {
		queries += query;
	}

	public UriIterator iterator () {
		return new TrackerUriIterator (connection, queries);
	}
}