C# Class Sparkles.BaseRepository

Show file Open project: hbons/SparkleShare Class Usage Examples

Public Properties

Property Type Description
LocalPath string
Name string
RemoteUrl System.Uri
UseCustomWatcher bool

Protected Properties

Property Type Description
StorageType StorageType
local_config Configuration
status_message string

Private Properties

Property Type Description
CalculateSize long
CreateListener void
ListenerAnnouncementReceivedDelegate void
ListenerConnectedDelegate void
ListenerDisconnectedDelegate void
RemoteTimerElapsedDelegate void
SyncDownBase void
SyncUpBase void

Public Methods

Method Description
BaseRepository ( string path, Configuration config ) : System
Dispose ( ) : void
ForceRetry ( ) : void
GetChangeSets ( ) : List
GetChangeSets ( string path ) : List
Initialize ( ) : void
OnFileActivity ( FileSystemEventArgs args ) : void
Pause ( ) : void
RestoreFile ( string path, string revision, string target_file_path ) : void
Resume ( string message ) : void
SyncDown ( ) : bool
SyncUp ( ) : bool

Protected Methods

Method Description
OnConflictResolved ( ) : void
OnProgressChanged ( double percentage, double speed, string information ) : void

Private Methods

Method Description
CalculateSize ( DirectoryInfo parent ) : long
CreateListener ( ) : void
ListenerAnnouncementReceivedDelegate ( Announcement announcement ) : void
ListenerConnectedDelegate ( ) : void
ListenerDisconnectedDelegate ( DisconnectReason reason ) : void
RemoteTimerElapsedDelegate ( object sender, EventArgs args ) : void
SyncDownBase ( ) : void
SyncUpBase ( ) : void

Method Details

BaseRepository() public method

public BaseRepository ( string path, Configuration config ) : System
path string
config Configuration
return System

Dispose() public method

public Dispose ( ) : void
return void

ForceRetry() public method

public ForceRetry ( ) : void
return void

GetChangeSets() public abstract method

public abstract GetChangeSets ( ) : List
return List

GetChangeSets() public abstract method

public abstract GetChangeSets ( string path ) : List
path string
return List

Initialize() public method

public Initialize ( ) : void
return void

OnConflictResolved() protected method

protected OnConflictResolved ( ) : void
return void

OnFileActivity() public method

public OnFileActivity ( FileSystemEventArgs args ) : void
args System.IO.FileSystemEventArgs
return void

OnProgressChanged() protected method

protected OnProgressChanged ( double percentage, double speed, string information ) : void
percentage double
speed double
information string
return void

Pause() public method

public Pause ( ) : void
return void

RestoreFile() public abstract method

public abstract RestoreFile ( string path, string revision, string target_file_path ) : void
path string
revision string
target_file_path string
return void

Resume() public method

public Resume ( string message ) : void
message string
return void

SyncDown() public abstract method

public abstract SyncDown ( ) : bool
return bool

SyncUp() public abstract method

public abstract SyncUp ( ) : bool
return bool

Property Details

LocalPath public property

public string LocalPath
return string

Name public property

public string Name
return string

RemoteUrl public property

public Uri,System RemoteUrl
return System.Uri

StorageType protected property

protected StorageType StorageType
return StorageType

UseCustomWatcher public static property

public static bool UseCustomWatcher
return bool

local_config protected property

protected Configuration,Sparkles local_config
return Configuration

status_message protected property

protected string status_message
return string