예제 #1
0
        // We need to scan the addresses nitially to fill up last_modified_table
        // Otherwise, we might miss deletions that occur before any addition
        private void ScanAddrInitial()
        {
            AddressIndexableGenerator generator = new AddressIndexableGenerator(this, kabc_file, last_modified_table, true);

            // just a dummy scan
            while (generator.HasNextIndexable())
            {
                generator.GetNextIndexable();
            }
        }
예제 #2
0
        /////////////////////////////////////////////////

        private void Index()
        {
            if (ThisScheduler.ContainsByTag("KAddressBook"))
            {
                Logger.Log.Debug("Not adding task for already running Kabc task");
                return;
            }

            AddressIndexableGenerator generator = new AddressIndexableGenerator(this, kabc_file, last_modified_table, false);

            Scheduler.Task task;
            task             = NewAddTask(generator);
            task.Tag         = "KAddressBook";
            task.Priority    = Scheduler.Priority.Delayed;
            task.SubPriority = 0;
            ThisScheduler.Add(task);
        }
예제 #3
0
		/////////////////////////////////////////////////

		private void Index ()
		{
			if (ThisScheduler.ContainsByTag ("KAddressBook")) {
				Logger.Log.Debug ("Not adding task for already running Kabc task");
				return;
			}

			AddressIndexableGenerator generator = new AddressIndexableGenerator (this, kabc_file, last_modified_table, false);
			Scheduler.Task task;
			task = NewAddTask (generator);
			task.Tag = "KAddressBook";
			task.Priority = Scheduler.Priority.Delayed;
			task.SubPriority = 0;
			ThisScheduler.Add (task);
		}
예제 #4
0
		// We need to scan the addresses nitially to fill up last_modified_table
		// Otherwise, we might miss deletions that occur before any addition
		private void ScanAddrInitial ()
		{
			AddressIndexableGenerator generator = new AddressIndexableGenerator (this, kabc_file, last_modified_table, true);

			// just a dummy scan
			while (generator.HasNextIndexable ())
				generator.GetNextIndexable ();
		}