C# Class TraktPlugin.GUI.GUICalendar

Inheritance: MediaPortal.GUI.Library.GUIWindow
Mostrar archivo Open project: trakt/Trakt-for-Mediaportal Class Usage Examples

Private Properties

Property Type Description
CheckAndPlayEpisode void
ClearProperties void
ConvertDaysInCalendarToLocalisedDays List>.Dictionary
GetCalendar IEnumerable>.Dictionary
GetCalendarTypeName string
GetDayHeader string
GetDaysForward string
GetStartDate System.DateTime
GetStartDateName string
InitProperties void
LoadCalendar void
OnCalendarDateSelected void
OnEpisodeSelected void
OnNextWeekSelected void
PublishCalendarSkinProperties void
SendCalendarToFacade void
SetCurrentStartDate void
SetCurrentView void
SetHideWatchlisted void
ShowStartDateMenu void
ShowViewMenu void

Public Methods

Method Description
ClearCache ( ) : void
GUICalendar ( ) : System
Init ( ) : bool
OnAction ( MediaPortal.GUI.Library.Action action ) : void

Protected Methods

Method Description
OnClicked ( int controlId, GUIControl control, MediaPortal.GUI.Library.Action actionType ) : void
OnPageDestroy ( int new_windowId ) : void
OnPageLoad ( ) : void
OnShowContextMenu ( ) : void

Private Methods

Method Description
CheckAndPlayEpisode ( ) : void
ClearProperties ( ) : void
ConvertDaysInCalendarToLocalisedDays ( Dictionary calendar ) : List>.Dictionary

Converts each day in the calendar dictionary key to a localised day Some underlying episodes could be from multiple days as they span a UTC day not a local day

GetCalendar ( ) : IEnumerable>.Dictionary
GetCalendarTypeName ( CalendarType type ) : string
GetDayHeader ( System.DateTime dateTime ) : string
GetDaysForward ( ) : string

Get number of days forward to request in calendar, takes into consideration the current anchor point

GetStartDate ( ) : System.DateTime

Get Date Time for Calendar Anchor Point

GetStartDateName ( StartDates date ) : string
InitProperties ( ) : void
LoadCalendar ( ) : void
OnCalendarDateSelected ( GUIListItem item, GUIControl parent ) : void
OnEpisodeSelected ( GUIListItem item, GUIControl parent ) : void
OnNextWeekSelected ( GUIListItem item, GUIControl parent ) : void
PublishCalendarSkinProperties ( TraktCalendar calendarItem ) : void
SendCalendarToFacade ( Dictionary calendar ) : void
SetCurrentStartDate ( ) : void
SetCurrentView ( ) : void
SetHideWatchlisted ( ) : void
ShowStartDateMenu ( ) : void
ShowViewMenu ( ) : void

Method Details

ClearCache() public static method

public static ClearCache ( ) : void
return void

GUICalendar() public method

public GUICalendar ( ) : System
return System

Init() public method

public Init ( ) : bool
return bool

OnAction() public method

public OnAction ( MediaPortal.GUI.Library.Action action ) : void
action MediaPortal.GUI.Library.Action
return void

OnClicked() protected method

protected OnClicked ( int controlId, GUIControl control, MediaPortal.GUI.Library.Action actionType ) : void
controlId int
control MediaPortal.GUI.Library.GUIControl
actionType MediaPortal.GUI.Library.Action
return void

OnPageDestroy() protected method

protected OnPageDestroy ( int new_windowId ) : void
new_windowId int
return void

OnPageLoad() protected method

protected OnPageLoad ( ) : void
return void

OnShowContextMenu() protected method

protected OnShowContextMenu ( ) : void
return void