[tracker] libtracker-miner: Add properties in VAPI file



commit 7891299bea22065da8aa02dc9e4fc3ad9f71db5e
Author: Adrien Bustany <abustany gnome org>
Date:   Fri Apr 9 10:32:28 2010 -0400

    libtracker-miner: Add properties in VAPI file
    
    This commit add several properties from TrackerMiner and TrackerMinerWeb in the
    VAPI file, allowing the use of the syntax 'property = value' rather than
    'set ("property", value)'. The former syntax adds type safety.

 src/libtracker-miner/tracker-miner.vapi |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner.vapi b/src/libtracker-miner/tracker-miner.vapi
index d198810..712746b 100644
--- a/src/libtracker-miner/tracker-miner.vapi
+++ b/src/libtracker-miner/tracker-miner.vapi
@@ -21,6 +21,12 @@
 namespace Tracker {
 	[CCode (cheader_filename = "libtracker-miner/tracker-miner-object.h")]
 	public class Miner : GLib.Object {
+		[NoAccessorMethod]
+		public string name { get; construct; }
+		[NoAccessorMethod]
+		public string status { get; set; }
+		[NoAccessorMethod]
+		public double progress { get; set; }
 		public async void commit (GLib.Cancellable? cancellable = null) throws GLib.Error;
 		public static GLib.Quark error_quark ();
 		public async void execute_batch_update (string sparql, GLib.Cancellable? cancellable = null) throws GLib.Error;
@@ -76,6 +82,8 @@ namespace Tracker {
 	}
 	[CCode (cheader_filename = "libtracker-miner/tracker-miner-web.h")]
 	public class MinerWeb : Tracker.Miner {
+		[NoAccessorMethod]
+		public bool associated { get; set; }
 		public virtual void associate (GLib.HashTable association_data) throws Tracker.MinerWebError;
 		public virtual void authenticate () throws Tracker.MinerWebError;
 		public virtual void dissociate () throws Tracker.MinerWebError;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]