C# Class Tomboy.Sync.SyncManager

Exibir arquivo Open project: oluc/tomboy Class Usage Examples

Private Properties

Property Type Description
BackgroundSyncChecker void
CreateNoteInMainThread void
FindNoteByUUID Note
GetConfiguredSyncService Tomboy.Sync.SyncServiceAddin
GetSyncServiceAddin Tomboy.Sync.SyncServiceAddin
GetSynchronizedXmlBits void
HandleNoteBufferChanged void
HandleNoteSavedOrDeleted void
Preferences_SettingChanged void
RecreateNoteInMainThread void
SetState void
SyncManager System
UpdateLocalNote void
UpdateNoteInMainThread void
UpdateSyncAction void

Public Methods

Method Description
Initialize ( ) : void
PerformSynchronization ( ISyncUI syncUI ) : void
ResetClient ( ) : void
ResolveConflict ( SyncTitleConflictResolution resolution ) : void

The GUI should call this after having the user resolve a conflict so the synchronization thread can continue.

SynchronizationThread ( ) : void

The function that does all of the work TODO: Factor some nice methods out of here; this is just garbage to read right now

SynchronizedNoteXmlMatches ( string noteXml1, string noteXml2 ) : bool

Private Methods

Method Description
BackgroundSyncChecker ( ) : void
CreateNoteInMainThread ( NoteUpdate noteUpdate ) : void
FindNoteByUUID ( string uuid ) : Note
GetConfiguredSyncService ( ) : Tomboy.Sync.SyncServiceAddin

Read the preferences and load the specified SyncServiceAddin to perform synchronization.

GetSyncServiceAddin ( string syncServiceId ) : Tomboy.Sync.SyncServiceAddin

Return the specified SyncServiceAddin

GetSynchronizedXmlBits ( string noteXml, string &title, string &tags, string &content ) : void
HandleNoteBufferChanged ( Note note ) : void
HandleNoteSavedOrDeleted ( ) : void
Preferences_SettingChanged ( object sender, EventArgs args ) : void
RecreateNoteInMainThread ( Note existingNote, NoteUpdate noteUpdate ) : void
SetState ( SyncState newState ) : void
SyncManager ( ) : System

/// Emitted when the state of the synchronization changes ///

/// Emmitted when a file is uploaded, downloaded, or deleted. ///

/// ///

UpdateLocalNote ( Note localNote, NoteUpdate serverNote, NoteSyncType syncType ) : void
UpdateNoteInMainThread ( Note existingNote, NoteUpdate noteUpdate ) : void
UpdateSyncAction ( ) : void

Method Details

Initialize() public static method

public static Initialize ( ) : void
return void

PerformSynchronization() public static method

public static PerformSynchronization ( ISyncUI syncUI ) : void
syncUI ISyncUI
return void

ResetClient() public static method

public static ResetClient ( ) : void
return void

ResolveConflict() public static method

The GUI should call this after having the user resolve a conflict so the synchronization thread can continue.
public static ResolveConflict ( SyncTitleConflictResolution resolution ) : void
resolution SyncTitleConflictResolution
return void

SynchronizationThread() public static method

The function that does all of the work TODO: Factor some nice methods out of here; this is just garbage to read right now
public static SynchronizationThread ( ) : void
return void

SynchronizedNoteXmlMatches() public static method

public static SynchronizedNoteXmlMatches ( string noteXml1, string noteXml2 ) : bool
noteXml1 string
noteXml2 string
return bool