internal DateQueryable(IEverythingInternal everything, IQueryGenerator parent, string kind) : base(everything, parent) { this.searchPattern = kind; EverythingWrapper.FileInfoIndex fileInfoIndex; switch (this.searchPattern) { default: this.Flags = RequestFlags.EVERYTHING_REQUEST_DATE_MODIFIED; fileInfoIndex = EverythingWrapper.FileInfoIndex.DateModified; break; case "dc": this.Flags = RequestFlags.EVERYTHING_REQUEST_DATE_CREATED; fileInfoIndex = EverythingWrapper.FileInfoIndex.DateCreated; break; case "dr": this.Flags = RequestFlags.EVERYTHING_REQUEST_DATE_RUN; fileInfoIndex = EverythingWrapper.FileInfoIndex.DateAccessed; break; case "da": this.Flags = RequestFlags.EVERYTHING_REQUEST_DATE_ACCESSED; fileInfoIndex = EverythingWrapper.FileInfoIndex.DateAccessed; break; } this.IsFast = EverythingWrapper.Everything_IsFileInfoIndexed(fileInfoIndex); }
public SizeQueryable(IEverythingInternal everything, IQueryGenerator parent) : base(everything, parent) { this.Flags = RequestFlags.EVERYTHING_REQUEST_SIZE; this.IsFast = EverythingWrapper.Everything_IsFileInfoIndexed(EverythingWrapper.FileInfoIndex.FileSize) && EverythingWrapper.Everything_IsFileInfoIndexed(EverythingWrapper.FileInfoIndex.FolderSize); }