C# Class GreenQloud.QloudSyncFileSystemWatcher

Datei anzeigen Open project: greenqloud/qloudsync

Public Methods

Method Description
Block ( string path ) : void
QloudSyncFileSystemWatcher ( LocalRepository repo ) : System
QloudSyncFileSystemWatcher ( String path ) : System
Start ( ) : bool
Start ( ) : void
Stop ( ) : bool
Stop ( ) : void
Unblock ( string path ) : void

Private Methods

Method Description
BuildEvent ( EventType type, bool isDirectory, string path, string newPath = null ) : Event
CFArrayCreate ( IntPtr allocator, IntPtr values, int numValues, IntPtr callBacks ) : IntPtr
CFArrayGetValueAtIndex ( IntPtr array, int index ) : IntPtr
CFRelease ( IntPtr cf ) : void
CFRunLoopGetCurrent ( ) : IntPtr
CFRunLoopGetMain ( ) : IntPtr
CFRunLoopRun ( ) : void
CFRunLoopRunInMode ( IntPtr mode, double seconds, int returnAfterSourceHandled ) : int
CFStringCreateWithCString ( IntPtr allocator, string value, int encoding ) : IntPtr
Callback ( IntPtr streamRef, IntPtr clientCallBackInfo, int numEvents, IntPtr eventPaths, IntPtr eventFlags, IntPtr eventIds ) : void
ConvertToDirectoryPathString ( string key ) : string
FSEventStreamCreate ( IntPtr allocator, FSEventStreamCallback callback, IntPtr context, IntPtr pathsToWatch, ulong sinceWhen, double latency, FSEventStreamCreateFlags flags ) : IntPtr
FSEventStreamRelease ( IntPtr streamRef ) : void
FSEventStreamScheduleWithRunLoop ( IntPtr streamRef, IntPtr runLoop, IntPtr runLoopMode ) : void
FSEventStreamStart ( IntPtr streamRef ) : int
FSEventStreamStop ( IntPtr streamRef ) : void
FSEventStreamUnscheduleFromRunLoop ( IntPtr streamRef, IntPtr runLoop, IntPtr runLoopMode ) : void
clearChangeList ( ) : void
clearCreateList ( ) : void
clearDeleteList ( ) : void
clearRenameList ( ) : void
deleteItemFromChangeList ( String path ) : void
deleteItemFromCreateList ( String path ) : void
deleteItemFromDeleteList ( String path ) : void
deleteTMPItemFromCreateList ( String path ) : String
getCreateTMPItem ( String path ) : FSOPCreateVO
getDeleteItem ( String path ) : FSOPDeleteVO
getDeleteItemByName ( String name ) : FSOPDeleteVO
getFirstValidChangeItem ( ) : void
getFirstValidDeleteItem ( ) : FSOPDeleteVO
getFirstValidRenameItem ( ) : FSOPRenameVO
getFirsttmpCreateItem ( ) : FSOPCreateVO
getRenameItem ( String oldPath ) : FSOPRenameVO
handleChangeEvent ( Object sender, FileSystemEventArgs args ) : void
handleCreateEvent ( Object sender, FileSystemEventArgs args ) : void
handleDeleteEvent ( Object sender, FileSystemEventArgs args ) : void
handleFileSystemChange ( Object sender, ElapsedEventArgs args ) : void
handleRenameEvent ( Object sender, RenamedEventArgs args ) : void
processChanges ( ) : void

Method Details

Block() public method

public Block ( string path ) : void
path string
return void

QloudSyncFileSystemWatcher() public method

public QloudSyncFileSystemWatcher ( LocalRepository repo ) : System
repo LocalRepository
return System

QloudSyncFileSystemWatcher() public method

public QloudSyncFileSystemWatcher ( String path ) : System
path String
return System

Start() public method

public Start ( ) : bool
return bool

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : bool
return bool

Stop() public method

public Stop ( ) : void
return void

Unblock() public method

public Unblock ( string path ) : void
path string
return void