[tracker/direct-access: 35/60] libtracker-bus: Added for dbus implementation



commit 2b5c8422091dd80906141b3cf998bb2a11f1aa1b
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]