Exemplo n.º 1
0
        public EntriesIndexableGenerator(KOrganizerQueryable queryable,
                                         string korganizer_file,
                                         Hashtable last_modified_table,
                                         bool initial_scan)
        {
            this.queryable       = queryable;
            this.korganizer_file = korganizer_file;
            this.initial_scan    = initial_scan;

            CheckEntryHeader();
            if (is_valid_file)
            {
                string_builder = new StringBuilder();
            }

            this.last_modified_table = last_modified_table;
            lock (last_modified_table) {
                this.deleted_entries = new Hashtable(last_modified_table.Count);
                foreach (string uid in last_modified_table.Keys)
                {
                    this.deleted_entries [uid] = true;
                }
            }
        }
Exemplo n.º 2
0
		public EntriesIndexableGenerator (KOrganizerQueryable queryable,
						string korganizer_file,
						Hashtable last_modified_table,
						bool initial_scan)
		{
			this.queryable = queryable;
			this.korganizer_file = korganizer_file;
			this.initial_scan = initial_scan;

			CheckEntryHeader ();
			if (is_valid_file)
				string_builder = new StringBuilder ();

			this.last_modified_table = last_modified_table;
			lock (last_modified_table) {
				this.deleted_entries = new Hashtable (last_modified_table.Count);
				foreach (string uid in last_modified_table.Keys)
					this.deleted_entries [uid] = true;
			}
		}