C# Class OnlineVideos.MediaPortal2.SiteManagementWorkflowModel

Inheritance: IWorkflowModel
Show file Open project: offbyoneBB/mp-onlinevideos2

Protected Properties

Property Type Description
_dialogCloseWatcher MediaPortal.UI.Presentation.Screens.DialogCloseWatcher
_filterLanguageProperty MediaPortal.Common.General.AbstractProperty
_filterOwnerProperty MediaPortal.Common.General.AbstractProperty
_filterStateProperty MediaPortal.Common.General.AbstractProperty
_messageQueue MediaPortal.Common.Messaging.AsynchronousMessageQueue
_settingsWatcher SettingsChangeWatcher
_sortProperty MediaPortal.Common.General.AbstractProperty
newDataSaved bool
newDllsDownloaded bool

Public Methods

Method Description
CanEnterState ( MediaPortal.UI.Presentation.Workflow.NavigationContext oldContext, MediaPortal.UI.Presentation.Workflow.NavigationContext newContext ) : bool
ChangeModelContext ( MediaPortal.UI.Presentation.Workflow.NavigationContext oldContext, MediaPortal.UI.Presentation.Workflow.NavigationContext newContext, bool push ) : void
CreateMenuActions ( MediaPortal.UI.Presentation.Workflow.NavigationContext context, WorkflowAction>.IDictionary actions ) : void
Deactivate ( MediaPortal.UI.Presentation.Workflow.NavigationContext oldContext, MediaPortal.UI.Presentation.Workflow.NavigationContext newContext ) : void
EnterModelContext ( MediaPortal.UI.Presentation.Workflow.NavigationContext oldContext, MediaPortal.UI.Presentation.Workflow.NavigationContext newContext ) : void
ExecuteSiteOption ( MediaPortal.UI.Presentation.DataObjects.ListItem option ) : void
ExitModelContext ( MediaPortal.UI.Presentation.Workflow.NavigationContext oldContext, MediaPortal.UI.Presentation.Workflow.NavigationContext newContext ) : void
GetFilteredAndSortedSites ( ) : void
OnlineVideosMessageReceived ( MediaPortal.Common.Messaging.AsynchronousMessageQueue queue, MediaPortal.Common.Messaging.SystemMessage message ) : void
OnlineVideosSettingsChanged ( object sender, EventArgs e ) : void
Reactivate ( MediaPortal.UI.Presentation.Workflow.NavigationContext oldContext, MediaPortal.UI.Presentation.Workflow.NavigationContext newContext ) : void
RemoveAllSites ( ) : void
ReportSite ( string userReason, OnlineVideosWebservice site ) : void
ShowSiteOptions ( OnlineSiteViewModel item ) : void
SiteManagementWorkflowModel ( ) : MediaPortal.Common
UpdateMenuActions ( MediaPortal.UI.Presentation.Workflow.NavigationContext context, WorkflowAction>.IDictionary actions ) : void
UpdateScreen ( MediaPortal.UI.Presentation.Workflow.NavigationContext context, string &screen ) : ScreenUpdateMode

Private Methods

Method Description
CompareSiteForSort ( OnlineVideosWebservice site1, OnlineVideosWebservice site2 ) : int
CreateLanguagesList ( ) : ItemsList
CreateOwnersList ( ) : ItemsList
CreateSortOptionsList ( ) : ItemsList
CreateStatesList ( ) : ItemsList
GetSiteOptions ( OnlineSiteViewModel item ) : ItemsList
GetUserReports ( OnlineSiteViewModel item ) : ItemsList
SitePassesFilter ( OnlineVideosWebservice site ) : bool

Method Details

CanEnterState() public method

public CanEnterState ( MediaPortal.UI.Presentation.Workflow.NavigationContext oldContext, MediaPortal.UI.Presentation.Workflow.NavigationContext newContext ) : bool
oldContext MediaPortal.UI.Presentation.Workflow.NavigationContext
newContext MediaPortal.UI.Presentation.Workflow.NavigationContext
return bool

ChangeModelContext() public method

public ChangeModelContext ( MediaPortal.UI.Presentation.Workflow.NavigationContext oldContext, MediaPortal.UI.Presentation.Workflow.NavigationContext newContext, bool push ) : void
oldContext MediaPortal.UI.Presentation.Workflow.NavigationContext
newContext MediaPortal.UI.Presentation.Workflow.NavigationContext
push bool
return void

CreateMenuActions() public method

public CreateMenuActions ( MediaPortal.UI.Presentation.Workflow.NavigationContext context, WorkflowAction>.IDictionary actions ) : void
context MediaPortal.UI.Presentation.Workflow.NavigationContext
actions WorkflowAction>.IDictionary
return void

Deactivate() public method

public Deactivate ( MediaPortal.UI.Presentation.Workflow.NavigationContext oldContext, MediaPortal.UI.Presentation.Workflow.NavigationContext newContext ) : void
oldContext MediaPortal.UI.Presentation.Workflow.NavigationContext
newContext MediaPortal.UI.Presentation.Workflow.NavigationContext
return void

EnterModelContext() public method

public EnterModelContext ( MediaPortal.UI.Presentation.Workflow.NavigationContext oldContext, MediaPortal.UI.Presentation.Workflow.NavigationContext newContext ) : void
oldContext MediaPortal.UI.Presentation.Workflow.NavigationContext
newContext MediaPortal.UI.Presentation.Workflow.NavigationContext
return void

ExecuteSiteOption() public method

public ExecuteSiteOption ( MediaPortal.UI.Presentation.DataObjects.ListItem option ) : void
option MediaPortal.UI.Presentation.DataObjects.ListItem
return void

ExitModelContext() public method

public ExitModelContext ( MediaPortal.UI.Presentation.Workflow.NavigationContext oldContext, MediaPortal.UI.Presentation.Workflow.NavigationContext newContext ) : void
oldContext MediaPortal.UI.Presentation.Workflow.NavigationContext
newContext MediaPortal.UI.Presentation.Workflow.NavigationContext
return void

GetFilteredAndSortedSites() public method

public GetFilteredAndSortedSites ( ) : void
return void

OnlineVideosMessageReceived() public method

public OnlineVideosMessageReceived ( MediaPortal.Common.Messaging.AsynchronousMessageQueue queue, MediaPortal.Common.Messaging.SystemMessage message ) : void
queue MediaPortal.Common.Messaging.AsynchronousMessageQueue
message MediaPortal.Common.Messaging.SystemMessage
return void

OnlineVideosSettingsChanged() public method

public OnlineVideosSettingsChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Reactivate() public method

public Reactivate ( MediaPortal.UI.Presentation.Workflow.NavigationContext oldContext, MediaPortal.UI.Presentation.Workflow.NavigationContext newContext ) : void
oldContext MediaPortal.UI.Presentation.Workflow.NavigationContext
newContext MediaPortal.UI.Presentation.Workflow.NavigationContext
return void

RemoveAllSites() public method

public RemoveAllSites ( ) : void
return void

ReportSite() public method

public ReportSite ( string userReason, OnlineVideosWebservice site ) : void
userReason string
site OnlineVideosWebservice
return void

ShowSiteOptions() public method

public ShowSiteOptions ( OnlineSiteViewModel item ) : void
item OnlineSiteViewModel
return void

SiteManagementWorkflowModel() public method

public SiteManagementWorkflowModel ( ) : MediaPortal.Common
return MediaPortal.Common

UpdateMenuActions() public method

public UpdateMenuActions ( MediaPortal.UI.Presentation.Workflow.NavigationContext context, WorkflowAction>.IDictionary actions ) : void
context MediaPortal.UI.Presentation.Workflow.NavigationContext
actions WorkflowAction>.IDictionary
return void

UpdateScreen() public method

public UpdateScreen ( MediaPortal.UI.Presentation.Workflow.NavigationContext context, string &screen ) : ScreenUpdateMode
context MediaPortal.UI.Presentation.Workflow.NavigationContext
screen string
return ScreenUpdateMode

Property Details

_dialogCloseWatcher protected property

protected DialogCloseWatcher,MediaPortal.UI.Presentation.Screens _dialogCloseWatcher
return MediaPortal.UI.Presentation.Screens.DialogCloseWatcher

_filterLanguageProperty protected property

protected AbstractProperty,MediaPortal.Common.General _filterLanguageProperty
return MediaPortal.Common.General.AbstractProperty

_filterOwnerProperty protected property

protected AbstractProperty,MediaPortal.Common.General _filterOwnerProperty
return MediaPortal.Common.General.AbstractProperty

_filterStateProperty protected property

protected AbstractProperty,MediaPortal.Common.General _filterStateProperty
return MediaPortal.Common.General.AbstractProperty

_messageQueue protected property

protected AsynchronousMessageQueue,MediaPortal.Common.Messaging _messageQueue
return MediaPortal.Common.Messaging.AsynchronousMessageQueue

_settingsWatcher protected property

protected SettingsChangeWatcher _settingsWatcher
return SettingsChangeWatcher

_sortProperty protected property

protected AbstractProperty,MediaPortal.Common.General _sortProperty
return MediaPortal.Common.General.AbstractProperty

newDataSaved protected property

protected bool newDataSaved
return bool

newDllsDownloaded protected property

protected bool newDllsDownloaded
return bool