[tracker/miner-flickr: 9/24] tracker-miner-flickr: Adapt to new MinerWeb API



commit a074f4f4eebe9ce68df6550557560edba5e901dd
Author: Adrien Bustany <abustany gnome org>
Date:   Thu Mar 18 12:04:11 2010 -0300

    tracker-miner-flickr: Adapt to new MinerWeb API
    
    In the version merged in master, the "association-status" API was renamed to
    "association", and MinerWebAssociationStatus to MinerWebAssociationType.

 src/miners/flickr/tracker-miner-flickr.vala |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/src/miners/flickr/tracker-miner-flickr.vala b/src/miners/flickr/tracker-miner-flickr.vala
index e303ff2..b0541d6 100644
--- a/src/miners/flickr/tracker-miner-flickr.vala
+++ b/src/miners/flickr/tracker-miner-flickr.vala
@@ -77,26 +77,26 @@ public class MinerFlickr : Tracker.MinerWeb {
 
 	construct {
 		set ("name", MINER_NAME);
-		set ("association-status", MinerWebAssociationStatus.UNASSOCIATED);
+		set ("association", MinerWebAssociationType.UNASSOCIATED);
 
 		rest = new Rest.Proxy (FLICKR_REST_URL, false);
 
 		query_queue = new QueryQueue (this);
 
-		this.notify["association-status"].connect (association_status_changed);
+		this.notify["association"].connect (association_status_changed);
 	}
 
 	public void shutdown () {
-		set ("association-status", MinerWebAssociationStatus.UNASSOCIATED);
+		set ("association", MinerWebAssociationType.UNASSOCIATED);
 	}
 
 	private void association_status_changed (Object source, ParamSpec pspec) {
-		MinerWebAssociationStatus status;
+		MinerWebAssociationType status;
 
-		get ("association-status", out status);
+		get ("association", out status);
 
 		switch (status) {
-			case MinerWebAssociationStatus.ASSOCIATED:
+			case MinerWebAssociationType.ASSOCIATED:
 				if (pull_timeout_handle != 0)
 					return;
 
@@ -104,7 +104,7 @@ public class MinerFlickr : Tracker.MinerWeb {
 				pull_timeout_handle = Timeout.add_seconds (PULL_INTERVAL, pull_timeout_cb);
 				Idle.add ( () => { pull_timeout_cb (); return false; });
 				break;
-			case MinerWebAssociationStatus.UNASSOCIATED:
+			case MinerWebAssociationType.UNASSOCIATED:
 				if (pull_timeout_handle == 0)
 					return;
 
@@ -500,7 +500,7 @@ public class MinerFlickr : Tracker.MinerWeb {
 
 		password_provider = PasswordProvider.get ();
 
-		set ("association-status", MinerWebAssociationStatus.UNASSOCIATED);
+		set ("association", MinerWebAssociationType.UNASSOCIATED);
 
 		try {
 			auth_token = password_provider.get_password (MINER_NAME, null);
@@ -528,7 +528,7 @@ public class MinerFlickr : Tracker.MinerWeb {
 		user_id = user_node.get_attr ("nsid");
 
 		message ("Authentication successful");
-		set ("association-status", MinerWebAssociationStatus.ASSOCIATED);
+		set ("association", MinerWebAssociationType.ASSOCIATED);
 	}
 
 	public override void dissociate () throws MinerWebError {
@@ -545,7 +545,7 @@ public class MinerFlickr : Tracker.MinerWeb {
 			return;
 		}
 
-		set ("association-status", MinerWebAssociationStatus.UNASSOCIATED);
+		set ("association", MinerWebAssociationType.UNASSOCIATED);
 	}
 
 	private static bool in_loop = false;



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