C# Class TraktPlugin.TraktPlugin

Inheritance: MediaPortal.GUI.Library.GUIWindow, ISetupForm
Show file Open project: trakt/Trakt-for-Mediaportal Class Usage Examples

Public Methods

Method Description
DeInit ( ) : void

End Point (Clean up)

GetModuleName ( ) : string

will set #currentmodule property on pageload

Init ( ) : bool

Starting Point

Protected Methods

Method Description
OnPageLoad ( ) : void

Private Methods

Method Description
ChangeSyncTimer ( int dueTime, int period ) : void

Changes the period and start time of the Library Sync

GUIWindowManager_OnActivateWindow ( int windowID ) : void
GUIWindowManager_OnDeActivateWindow ( int windowID ) : void
GUIWindowManager_Receivers ( GUIMessage message ) : void
IsValidScrobbleType ( g_Player type ) : bool
LoadPluginHandlers ( ) : void
StartScrobble ( String filename ) : void

Begins searching our supported plugins libraries to scrobble

StartSync ( ) : bool

Starts a manual library and playback sync

StopScrobble ( ) : void

Stops all scrobbling

SyncLibrary ( ) : void

Sets up and starts Syncing of Libraries

SyncPlayback ( ) : void
SystemEvents_PowerModeChanged ( object sender, Microsoft e ) : void
UnLoadPluginHandlers ( ) : void
g_Player_PlayBackChanged ( g_Player type, int stoptime, string filename ) : void
g_Player_PlayBackEnded ( g_Player type, string filename ) : void
g_Player_PlayBackStarted ( g_Player type, string filename ) : void
g_Player_PlayBackStopped ( g_Player type, int stoptime, string filename ) : void
syncLibraryWorker_DoWork ( object sender, DoWorkEventArgs e ) : void

Logic for the Sync background worker

syncLibraryWorker_RunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void

End Point for Syncing of Libraries

Method Details

DeInit() public method

End Point (Clean up)
public DeInit ( ) : void
return void

GetModuleName() public method

will set #currentmodule property on pageload
public GetModuleName ( ) : string
return string

Init() public method

Starting Point
public Init ( ) : bool
return bool

OnPageLoad() protected method

protected OnPageLoad ( ) : void
return void