public HmTask(Hiveminder.Task task, HmBackend hmBackend) { this.task = task; this.backend = hmBackend; //Add Description as note. this.notes = new List<TaskNote>(); if (!string.IsNullOrEmpty (this.task.Description)) notes.Add (new HmNote (this.task)); }
public void Initialize() { Gtk.TreeIter iter; try { string username, password; LoadCredentials(out username, out password); this.hm = new Hiveminder.Hiveminder(username, password); configured = true; } catch (HiveminderAuthException e) { Logger.Debug(e.ToString()); Logger.Error("Hiveminder authentication failed."); } catch (Exception e) { Logger.Debug(e.ToString()); Logger.Error("Unable to connect to Hiveminder"); } // // Add in the "All" Category // AllCategory allCategory = new Tasque.AllCategory(); iter = categoryListStore.Append(); categoryListStore.SetValue(iter, 0, allCategory); runningRefreshThread = true; if (refreshThread == null || refreshThread.ThreadState == ThreadState.Running) { Logger.Debug("RtmBackend refreshThread already running"); } else { if (!refreshThread.IsAlive) { refreshThread = new Thread(RefreshThreadLoop); } refreshThread.Start(); } runRefreshEvent.Set(); }
public void Initialize() { Gtk.TreeIter iter; try { string username, password; LoadCredentials (out username,out password); this.hm = new Hiveminder.Hiveminder(username, password); configured = true; } catch (HiveminderAuthException e) { Logger.Debug (e.ToString()); Logger.Error ("Hiveminder authentication failed."); } catch (Exception e) { Logger.Debug (e.ToString()); Logger.Error ("Unable to connect to Hiveminder"); } // // Add in the "All" Category // AllCategory allCategory = new Tasque.AllCategory (); iter = categoryListStore.Append (); categoryListStore.SetValue (iter, 0, allCategory); runningRefreshThread = true; if (refreshThread == null || refreshThread.ThreadState == ThreadState.Running) { Logger.Debug ("RtmBackend refreshThread already running"); } else { if (!refreshThread.IsAlive) { refreshThread = new Thread(RefreshThreadLoop); } refreshThread.Start(); } runRefreshEvent.Set(); }