11 #include "pvr/PVRChannelNumberInputHandler.h" 12 #include "pvr/windows/GUIWindowPVRBase.h" 13 #include "threads/Event.h" 14 #include "threads/Thread.h" 27 class CPVRChannelGroup;
28 class CGUIEPGGridContainer;
29 class CPVRRefreshTimelineItemsThread;
38 void OnDeinitWindow(
int nextWindowID)
override;
40 bool OnAction(
const CAction& action)
override;
41 void GetContextButtons(
int itemNumber,
CContextButtons& buttons)
override;
42 bool OnContextButton(
int itemNumber, CONTEXT_BUTTON button)
override;
44 void SetInvalid()
override;
45 bool Update(
const std::string& strDirectory,
bool updateFilterPath =
true)
override;
47 void NotifyEvent(
const PVREvent& event)
override;
49 bool RefreshTimelineItems();
57 bool GotoCurrentProgramme();
58 bool GotoDate(
int deltaHours);
59 bool OpenDateSelectionDialog();
61 bool Go12HoursForward();
62 bool GotoFirstChannel();
63 bool GotoLastChannel();
64 bool GotoPlayingChannel();
67 void UpdateSelectedItemPath()
override;
68 std::string GetDirectoryPath()
override {
return ""; }
71 CFileItemPtr GetCurrentListItem(
int offset = 0)
override;
73 void ClearData()
override;
77 void InitEpgGridControl();
79 bool OnContextButtonNavigate(CONTEXT_BUTTON button);
81 bool ShouldNavigateToGridContainer(
int iAction);
83 void StartRefreshTimelineItemsThread();
84 void StopRefreshTimelineItemsThread();
86 void RefreshView(
CGUIMessage& message,
bool bInitGridControl);
88 int GetCurrentListItemIndex(
const std::shared_ptr<const CFileItem>& item);
90 std::unique_ptr<CPVRRefreshTimelineItemsThread> m_refreshTimelineItemsThread;
91 std::atomic_bool m_bRefreshTimelineItems{
false};
92 std::atomic_bool m_bSyncRefreshTimelineItems{
false};
94 std::shared_ptr<CPVRChannelGroup> m_cachedChannelGroup;
96 bool m_bChannelSelectionRestored{
false};
103 std::string GetRootPath()
const override;
110 std::string GetRootPath()
const override;
119 void Process()
override;
This is an Event class built from a ConditionVariable.
Definition: Event.h:35
void GetChannelNumbers(std::vector< std::string > &channelNumbers) override
Get the currently available channel numbers.
Definition: GUIWindowPVRGuide.cpp:878
void OnInputDone() override
This method gets called after the channel number input timer has expired.
Definition: GUIWindowPVRGuide.cpp:869
Definition: GUIWindowPVRGuide.h:113
void OnInitWindow() override
Called on window open.
Definition: GUIWindowPVRGuide.cpp:117
Definition: GUIWindowPVRBase.h:54
Definition: ContextMenuManager.h:24
void FormatAndSort(CFileItemList &items) override
Format and sort file items.
Definition: GUIWindowPVRGuide.cpp:268
Represents a list of files.
Definition: FileItem.h:702
bool GetDirectory(const std::string &strDirectory, CFileItemList &items) override
Overwrite to fill fileitems from a source.
Definition: GUIWindowPVRGuide.cpp:242
Definition: GUIEPGGridContainer.h:38
Class encapsulating information regarding a particular user action to be sent to windows and controls...
Definition: Action.h:21
bool DoRefresh()
Refresh window content.
Definition: GUIWindowPVRBase.h:81
Definition: GUIWindowPVRGuide.h:31
void UpdateButtons() override
Updates the states.
Definition: GUIWindowPVRGuide.cpp:208
Definition: GUIMessage.h:365
Definition: GUIDialogContextMenu.h:93
bool Update(const std::string &strDirectory, bool updateFilterPath=true) override
Retrieves the items from the given path and updates the list.
Definition: GUIWindowPVRGuide.cpp:218
Definition: GUIWindowPVRGuide.h:106
Definition: GUIWindowPVRGuide.h:99