public EDSCategory(Evolution.Source source) { this.name = source.Name; this.uid = source.Uid; this.taskList = new Cal(source, CalSourceType.Todo); this.isSystem = (string.Compare(source.RelativeUri, "system") == 0); }
public EDSCategory(Evolution.Source source, Evolution.Cal taskList) { this.name = source.Name; this.uid = source.Uid; this.taskList = taskList; //Based on evolution/calendar/gui/e-cal-popup.c : //e_cal_popup_target_new_source this.isSystem = (string.Compare(source.RelativeUri, "system") == 0); }
private void AddCategory(Evolution.Source source) { Logger.Debug("AddCategory"); EDSCategory edsCategory; Gtk.TreeIter iter; if (source.IsLocal()) { Cal taskList = new Cal(source, CalSourceType.Todo); edsCategory = new EDSCategory(source, taskList); iter = categoryListStore.Append(); categoryListStore.SetValue(iter, 0, edsCategory); //Assumption : EDS Creates atleast one System category. if (edsCategory.IsSystem) { this.defaultCategory = edsCategory; } if (!taskList.Open(true)) { Logger.Debug("laskList Open failed"); return; } CalView query = taskList.GetCalView("#t"); if (query == null) { Logger.Debug("Query object creation failed"); return; } else { query.Start(); } query.ObjectsModified += TasksModified; query.ObjectsAdded += TasksAdded; query.ObjectsRemoved += TasksRemoved; } }
public BookContainer(Evolution.Source source, EvolutionDataServerQueryable queryable, string fingerprint) : base(source, queryable, fingerprint) { }
public CalContainer(Evolution.Source source, EvolutionDataServerQueryable queryable, string fingerprint, CalSourceType cal_source_type) : base(source, queryable, fingerprint) { this.cal_source_type = cal_source_type; }
private void OnSourceRemoved(object o, SourceRemovedArgs args) { Logger.Debug("Source Removed"); Evolution.Source source = args.Source; //RemoveCategory (source); }