public BookmarkIndexableGenerator(KonqBookmarkQueryable queryable, string bookmark_file, Hashtable last_modified_table, bool initial_scan) { this.queryable = queryable; this.bookmark_file = bookmark_file; this.initial_scan = initial_scan; ReadBookmarkHeader(); if (!is_valid_file) { return; } this.serializer = queryable.Serializer; this.last_modified_table = last_modified_table; this.folder_stack = new ArrayList(); lock (last_modified_table) { this.deleted_bookmarks = new Hashtable(last_modified_table.Count); foreach (string bookmark_path in last_modified_table.Keys) { this.deleted_bookmarks [bookmark_path] = true; } } // cache the last write time file_last_write_time = FileSystem.GetLastWriteTimeUtc(bookmark_file); }
public BookmarkIndexableGenerator (KonqBookmarkQueryable queryable, string bookmark_file, Hashtable last_modified_table, bool initial_scan) { this.queryable = queryable; this.bookmark_file = bookmark_file; this.initial_scan = initial_scan; ReadBookmarkHeader (); if (! is_valid_file) return; this.serializer = queryable.Serializer; this.last_modified_table = last_modified_table; this.folder_stack = new ArrayList (); lock (last_modified_table) { this.deleted_bookmarks = new Hashtable (last_modified_table.Count); foreach (string bookmark_path in last_modified_table.Keys) this.deleted_bookmarks [bookmark_path] = true; } // cache the last write time file_last_write_time = FileSystem.GetLastWriteTimeUtc (bookmark_file); }