[tasque/transition: 184/213] [RTM] Backend: Adjust to new model.



commit 79520ad47a7f9a599da7d6fcd5b27a02737a3ae1
Author: Antonius Riha <antoniusriha gmail com>
Date:   Sun Aug 19 00:41:29 2012 +0200

    [RTM] Backend: Adjust to new model.

 src/Addins/RtmBackend/RtmBackend.cs |   55 +---------------------------------
 1 files changed, 2 insertions(+), 53 deletions(-)
---
diff --git a/src/Addins/RtmBackend/RtmBackend.cs b/src/Addins/RtmBackend/RtmBackend.cs
index 0422377..ff644f2 100644
--- a/src/Addins/RtmBackend/RtmBackend.cs
+++ b/src/Addins/RtmBackend/RtmBackend.cs
@@ -33,18 +33,9 @@ namespace Tasque.Backends.RtmBackend
 
 		private Dictionary<string, RtmCategory> categories;
 		private object catLock;
-		private bool initialized;
-		private bool configured;
-
-		public event BackendInitializedHandler BackendInitialized;
-		public event BackendSyncStartedHandler BackendSyncStarted;
-		public event BackendSyncFinishedHandler BackendSyncFinished;
 		
-		public RtmBackend ()
+		public RtmBackend () : base ("Remember the Milk")
 		{
-			initialized = false;
-			configured = false;
-
 			taskLock = new Object();
 			
 			categories = new Dictionary<string, RtmCategory> ();
@@ -59,31 +50,7 @@ namespace Tasque.Backends.RtmBackend
 			runningRefreshThread = false;
 			refreshThread  = new Thread(RefreshThreadLoop);
 		}
-
-		#region Public Properties
-		public string Name
-		{
-			get { return "Remember the Milk"; }
-		}
 		
-		/// <value>
-		/// All the tasks including ITaskDivider items.
-		/// </value>
-		public IEnumerable<Task> Tasks
-		{
-			get { return Tasks.OrderBy (t => t, Comparer<Task>.Default); }
-		}
-
-		public ObservableCollection<Task> Tasks { get; private set; }
-
-		/// <value>
-		/// This returns all the task lists (categories) that exist.
-		/// </value>
-		public Gtk.TreeModel Categories2
-		{
-			get { return sortedCategoriesModel; }
-		}
-
 		public string RtmUserName
 		{
 			get {
@@ -93,26 +60,8 @@ namespace Tasque.Backends.RtmBackend
 					return null;
 			}
 		}
-		
-		/// <value>
-		/// Indication that the rtm backend is configured
-		/// </value>
-		public bool Configured
-		{
-			get { return configured; }
-		}
-		
-		/// <value>
-		/// Inidication that the backend is initialized
-		/// </value>
-		public bool Initialized
-		{
-			get { return initialized; }
-		}
-		
-#endregion // Public Properties
 
-#region Public Methods
+		#region Public Methods
 		public Task CreateTask (string taskName, Category category)
 		{
 			string categoryID;



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