scripts
This commit is contained in:
@@ -0,0 +1,115 @@
|
||||
using System;
|
||||
using ICSharpCode.SharpZipLib.Core;
|
||||
|
||||
namespace ICSharpCode.SharpZipLib.Zip
|
||||
{
|
||||
// Token: 0x0200004A RID: 74
|
||||
public class FastZipEvents
|
||||
{
|
||||
// Token: 0x060002E8 RID: 744 RVA: 0x00010820 File Offset: 0x0000F820
|
||||
public bool OnDirectoryFailure(string directory, Exception e)
|
||||
{
|
||||
bool flag = false;
|
||||
DirectoryFailureHandler directoryFailure = this.DirectoryFailure;
|
||||
if (directoryFailure != null)
|
||||
{
|
||||
ScanFailureEventArgs scanFailureEventArgs = new ScanFailureEventArgs(directory, e);
|
||||
directoryFailure(this, scanFailureEventArgs);
|
||||
flag = scanFailureEventArgs.ContinueRunning;
|
||||
}
|
||||
return flag;
|
||||
}
|
||||
|
||||
// Token: 0x060002E9 RID: 745 RVA: 0x00010854 File Offset: 0x0000F854
|
||||
public bool OnFileFailure(string file, Exception e)
|
||||
{
|
||||
FileFailureHandler fileFailure = this.FileFailure;
|
||||
bool flag = fileFailure != null;
|
||||
if (flag)
|
||||
{
|
||||
ScanFailureEventArgs scanFailureEventArgs = new ScanFailureEventArgs(file, e);
|
||||
fileFailure(this, scanFailureEventArgs);
|
||||
flag = scanFailureEventArgs.ContinueRunning;
|
||||
}
|
||||
return flag;
|
||||
}
|
||||
|
||||
// Token: 0x060002EA RID: 746 RVA: 0x0001088C File Offset: 0x0000F88C
|
||||
public bool OnProcessFile(string file)
|
||||
{
|
||||
bool flag = true;
|
||||
ProcessFileHandler processFile = this.ProcessFile;
|
||||
if (processFile != null)
|
||||
{
|
||||
ScanEventArgs scanEventArgs = new ScanEventArgs(file);
|
||||
processFile(this, scanEventArgs);
|
||||
flag = scanEventArgs.ContinueRunning;
|
||||
}
|
||||
return flag;
|
||||
}
|
||||
|
||||
// Token: 0x060002EB RID: 747 RVA: 0x000108BC File Offset: 0x0000F8BC
|
||||
public bool OnCompletedFile(string file)
|
||||
{
|
||||
bool flag = true;
|
||||
CompletedFileHandler completedFile = this.CompletedFile;
|
||||
if (completedFile != null)
|
||||
{
|
||||
ScanEventArgs scanEventArgs = new ScanEventArgs(file);
|
||||
completedFile(this, scanEventArgs);
|
||||
flag = scanEventArgs.ContinueRunning;
|
||||
}
|
||||
return flag;
|
||||
}
|
||||
|
||||
// Token: 0x060002EC RID: 748 RVA: 0x000108EC File Offset: 0x0000F8EC
|
||||
public bool OnProcessDirectory(string directory, bool hasMatchingFiles)
|
||||
{
|
||||
bool flag = true;
|
||||
ProcessDirectoryHandler processDirectory = this.ProcessDirectory;
|
||||
if (processDirectory != null)
|
||||
{
|
||||
DirectoryEventArgs directoryEventArgs = new DirectoryEventArgs(directory, hasMatchingFiles);
|
||||
processDirectory(this, directoryEventArgs);
|
||||
flag = directoryEventArgs.ContinueRunning;
|
||||
}
|
||||
return flag;
|
||||
}
|
||||
|
||||
// Token: 0x1700009D RID: 157
|
||||
// (get) Token: 0x060002ED RID: 749 RVA: 0x0001091D File Offset: 0x0000F91D
|
||||
// (set) Token: 0x060002EE RID: 750 RVA: 0x00010925 File Offset: 0x0000F925
|
||||
public TimeSpan ProgressInterval
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.progressInterval_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.progressInterval_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000202 RID: 514
|
||||
public ProcessDirectoryHandler ProcessDirectory;
|
||||
|
||||
// Token: 0x04000203 RID: 515
|
||||
public ProcessFileHandler ProcessFile;
|
||||
|
||||
// Token: 0x04000204 RID: 516
|
||||
public ProgressHandler Progress;
|
||||
|
||||
// Token: 0x04000205 RID: 517
|
||||
public CompletedFileHandler CompletedFile;
|
||||
|
||||
// Token: 0x04000206 RID: 518
|
||||
public DirectoryFailureHandler DirectoryFailure;
|
||||
|
||||
// Token: 0x04000207 RID: 519
|
||||
public FileFailureHandler FileFailure;
|
||||
|
||||
// Token: 0x04000208 RID: 520
|
||||
private TimeSpan progressInterval_ = TimeSpan.FromSeconds(3.0);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user