Example #1
0
        public SourcesHandler(string gconf_key, Type container_type, EvolutionDataServerQueryable queryable, string fingerprint, params object[] ctor_args)
        {
            this.container_type = container_type;
            this.queryable      = queryable;
            this.fingerprint    = fingerprint;
            this.ctor_args      = ctor_args;

            // This is the first code to hit e-d-s, so we might
            // get a DllNotFoundException exception if things
            // aren't configured correctly.  However, since
            // we're instantiating an object, it might be
            // wrapped in a TypeInitializationException, so
            // catch that and rethrow the inner exception.
            try {
                this.source_list = new SourceList(gconf_key);
            } catch (TypeInitializationException ex) {
                throw ex.InnerException;
            }

            if (this.source_list == null)
            {
                // FIXME: We may want to watch for the creation
                // of the sources GConf key
                Logger.Log.Info("No sources found at {0}", gconf_key);
                return;
            }

            this.source_list.GroupAdded   += OnGroupAdded;
            this.source_list.GroupRemoved += OnGroupRemoved;

            foreach (SourceGroup group in this.source_list.Groups)
            {
                IndexSourceGroup(group, false);
            }
        }
Example #2
0
		public SourcesHandler (string gconf_key, Type container_type, EvolutionDataServerQueryable queryable, string fingerprint, params object[] ctor_args)
		{
			this.container_type = container_type;
			this.queryable = queryable;
			this.fingerprint = fingerprint;
			this.ctor_args = ctor_args;

			// This is the first code to hit e-d-s, so we might
			// get a DllNotFoundException exception if things
			// aren't configured correctly.  However, since
			// we're instantiating an object, it might be
			// wrapped in a TypeInitializationException, so
			// catch that and rethrow the inner exception.
			try {
				this.source_list = new SourceList (gconf_key);
			} catch (TypeInitializationException ex) {
				throw ex.InnerException;
			}

			if (this.source_list == null) {
				// FIXME: We may want to watch for the creation
				// of the sources GConf key
				Logger.Log.Info ("No sources found at {0}", gconf_key);
				return;
			}

			this.source_list.GroupAdded += OnGroupAdded;
			this.source_list.GroupRemoved += OnGroupRemoved;

			foreach (SourceGroup group in this.source_list.Groups)
				IndexSourceGroup (group, false);
		}
Example #3
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;
		}
Example #4
0
 public BookContainer(Evolution.Source source, EvolutionDataServerQueryable queryable, string fingerprint) : base(source, queryable, fingerprint)
 {
 }
Example #5
0
		public BookContainer (Evolution.Source source, EvolutionDataServerQueryable queryable, string fingerprint) : base (source, queryable, fingerprint) { }
Example #6
0
 public Container(Evolution.Source source, EvolutionDataServerQueryable queryable, string fingerprint)
 {
     this.source      = source;
     this.queryable   = queryable;
     this.fingerprint = fingerprint;
 }
Example #7
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;
 }
Example #8
0
		public Container (Evolution.Source source, EvolutionDataServerQueryable queryable, string fingerprint)
		{
			this.source = source;
			this.queryable = queryable;
			this.fingerprint = fingerprint;
		}