[tracker/direct-access: 18/38] libtracker-bus: Added for dbus implementation
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/direct-access: 18/38] libtracker-bus: Added for dbus implementation
- Date: Mon, 16 Aug 2010 12:17:13 +0000 (UTC)
commit 77ce4c32875bb4c9dd6fb4f65a3ba8a4642ba466
Author: Martyn Russell <martyn lanedo com>
Date: Wed Jul 14 11:11:05 2010 +0100
libtracker-bus: Added for dbus implementation
Also updated query method in abstract class to return optional Cursor
src/libtracker-direct/tracker-connection.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-direct/tracker-connection.vala b/src/libtracker-direct/tracker-connection.vala
index e3e0dea..2044902 100644
--- a/src/libtracker-direct/tracker-connection.vala
+++ b/src/libtracker-direct/tracker-connection.vala
@@ -33,14 +33,14 @@ public class Tracker.Direct.Connection : Tracker.Sparql.Connection {
initialized = false;
}
- public override Sparql.Cursor query (string sparql, Cancellable? cancellable) throws GLib.Error {
+ public override Sparql.Cursor? query (string sparql, Cancellable? cancellable) throws GLib.Error {
var query_object = new Sparql.Query (sparql);
var cursor = query_object.execute_cursor ();
cursor.connection = this;
return cursor;
}
- public async override Sparql.Cursor query_async (string sparql, Cancellable? cancellable = null) throws GLib.Error {
+ public async override Sparql.Cursor? query_async (string sparql, Cancellable? cancellable = null) throws GLib.Error {
// just creating the cursor won't block
return query (sparql, cancellable);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]