예제 #1
0
 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);
 }
예제 #2
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);
        }
예제 #3
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;
            }
        }
예제 #4
0
 public BookContainer(Evolution.Source source, EvolutionDataServerQueryable queryable, string fingerprint) : base(source, queryable, fingerprint)
 {
 }
예제 #5
0
 public CalContainer(Evolution.Source source, EvolutionDataServerQueryable queryable, string fingerprint, CalSourceType cal_source_type)
     : base(source, queryable, fingerprint)
 {
     this.cal_source_type = cal_source_type;
 }
예제 #6
0
 private void OnSourceRemoved(object o, SourceRemovedArgs args)
 {
     Logger.Debug("Source Removed");
     Evolution.Source source = args.Source;
     //RemoveCategory (source);
 }