New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[pvr] refactoring - review fixup after merge of 16677 #16680
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ | |
|
||
#pragma once | ||
|
||
|
||
#include <memory> | ||
|
||
class CFileItem; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -556,27 +556,27 @@ namespace PVR | |
|
||
/** @name containers */ | ||
//@{ | ||
std::shared_ptr<CPVRChannelGroupsContainer> m_channelGroups; /*!< pointer to the channel groups container */ | ||
std::shared_ptr<CPVRRecordings> m_recordings; /*!< pointer to the recordings container */ | ||
std::shared_ptr<CPVRTimers> m_timers; /*!< pointer to the timers container */ | ||
std::shared_ptr<CPVRClients> m_addons; /*!< pointer to the pvr addon container */ | ||
std::unique_ptr<CPVRGUIInfo> m_guiInfo; /*!< pointer to the guiinfo data */ | ||
std::shared_ptr<CPVRGUIActions> m_guiActions; /*!< pointer to the pvr gui actions */ | ||
CPVREpgContainer m_epgContainer; /*!< the epg container */ | ||
std::shared_ptr<CPVRChannelGroupsContainer> m_channelGroups; /*!< pointer to the channel groups container */ | ||
std::shared_ptr<CPVRRecordings> m_recordings; /*!< pointer to the recordings container */ | ||
std::shared_ptr<CPVRTimers> m_timers; /*!< pointer to the timers container */ | ||
std::shared_ptr<CPVRClients> m_addons; /*!< pointer to the pvr addon container */ | ||
std::unique_ptr<CPVRGUIInfo> m_guiInfo; /*!< pointer to the guiinfo data */ | ||
std::shared_ptr<CPVRGUIActions> m_guiActions; /*!< pointer to the pvr gui actions */ | ||
CPVREpgContainer m_epgContainer; /*!< the epg container */ | ||
//@} | ||
|
||
CPVRManagerJobQueue m_pendingUpdates; /*!< vector of pending pvr updates */ | ||
CPVRManagerJobQueue m_pendingUpdates; /*!< vector of pending pvr updates */ | ||
|
||
std::shared_ptr<CPVRDatabase> m_database; /*!< the database for all PVR related data */ | ||
mutable CCriticalSection m_critSection; /*!< critical section for all changes to this class, except for changes to triggers */ | ||
bool m_bFirstStart = true; /*!< true when the PVR manager was started first, false otherwise */ | ||
bool m_bEpgsCreated = false; /*!< true if epg data for channels has been created */ | ||
std::shared_ptr<CPVRDatabase> m_database; /*!< the database for all PVR related data */ | ||
mutable CCriticalSection m_critSection; /*!< critical section for all changes to this class, except for changes to triggers */ | ||
bool m_bFirstStart = true; /*!< true when the PVR manager was started first, false otherwise */ | ||
bool m_bEpgsCreated = false; /*!< true if epg data for channels has been created */ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. comments are still vertical aligned |
||
|
||
mutable CCriticalSection m_managerStateMutex; | ||
ManagerState m_managerState = ManagerStateStopped; | ||
std::unique_ptr<CStopWatch> m_parentalTimer; | ||
mutable CCriticalSection m_managerStateMutex; | ||
ManagerState m_managerState = ManagerStateStopped; | ||
std::unique_ptr<CStopWatch> m_parentalTimer; | ||
|
||
CCriticalSection m_startStopMutex; // mutex for protecting pvr manager's start/restart/stop sequence */ | ||
CCriticalSection m_startStopMutex; // mutex for protecting pvr manager's start/restart/stop sequence */ | ||
|
||
CEventSource<PVREvent> m_events; | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -211,9 +211,9 @@ namespace PVR | |
*/ | ||
void RemoveFromAllGroups(const std::shared_ptr<CPVRChannel>& channel); | ||
|
||
bool m_bRadio; /*!< true if this is a container for radio channels, false if it is for tv channels */ | ||
std::shared_ptr<CPVRChannelGroup> m_selectedGroup; /*!< the group that's currently selected in the UI */ | ||
std::vector<std::shared_ptr<CPVRChannelGroup>> m_groups; /*!< the groups in this container */ | ||
bool m_bRadio; /*!< true if this is a container for radio channels, false if it is for tv channels */ | ||
std::shared_ptr<CPVRChannelGroup> m_selectedGroup; /*!< the group that's currently selected in the UI */ | ||
std::vector<std::shared_ptr<CPVRChannelGroup>> m_groups; /*!< the groups in this container */ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. comments are still vertical aligned |
||
mutable CCriticalSection m_critSection; | ||
std::vector<int> m_failedClientsForChannelGroups; | ||
}; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -303,19 +303,19 @@ namespace PVR | |
void Cleanup(int iPastDays); | ||
|
||
std::map<CDateTime, std::shared_ptr<CPVREpgInfoTag>> m_tags; | ||
std::map<int, std::shared_ptr<CPVREpgInfoTag>> m_changedTags; | ||
std::map<int, std::shared_ptr<CPVREpgInfoTag>> m_deletedTags; | ||
bool m_bChanged = false; /*!< true if anything changed that needs to be persisted, false otherwise */ | ||
bool m_bTagsChanged = false; /*!< true when any tags are changed and not persisted, false otherwise */ | ||
bool m_bLoaded = false; /*!< true when the initial entries have been loaded */ | ||
bool m_bUpdatePending = false; /*!< true if manual update is pending */ | ||
int m_iEpgID = 0; /*!< the database ID of this table */ | ||
std::string m_strName; /*!< the name of this table */ | ||
std::string m_strScraperName; /*!< the name of the scraper to use */ | ||
mutable CDateTime m_nowActiveStart; /*!< the start time of the tag that is currently active */ | ||
CDateTime m_lastScanTime; /*!< the last time the EPG has been updated */ | ||
mutable CCriticalSection m_critSection; /*!< critical section for changes in this table */ | ||
bool m_bUpdateLastScanTime = false; | ||
std::map<int, std::shared_ptr<CPVREpgInfoTag>> m_changedTags; | ||
std::map<int, std::shared_ptr<CPVREpgInfoTag>> m_deletedTags; | ||
bool m_bChanged = false; /*!< true if anything changed that needs to be persisted, false otherwise */ | ||
bool m_bTagsChanged = false; /*!< true when any tags are changed and not persisted, false otherwise */ | ||
bool m_bLoaded = false; /*!< true when the initial entries have been loaded */ | ||
bool m_bUpdatePending = false; /*!< true if manual update is pending */ | ||
int m_iEpgID = 0; /*!< the database ID of this table */ | ||
std::string m_strName; /*!< the name of this table */ | ||
std::string m_strScraperName; /*!< the name of the scraper to use */ | ||
mutable CDateTime m_nowActiveStart; /*!< the start time of the tag that is currently active */ | ||
CDateTime m_lastScanTime; /*!< the last time the EPG has been updated */ | ||
mutable CCriticalSection m_critSection; /*!< critical section for changes in this table */ | ||
bool m_bUpdateLastScanTime = false; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. comments are still vertical aligned |
||
|
||
std::shared_ptr<CPVREpgChannelData> m_channelData; | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -365,10 +365,10 @@ namespace PVR | |
static std::shared_ptr<CPVRTimerInfoTag> CreateFromDate(const std::shared_ptr<CPVRChannel>& channel, const CDateTime& start, int iDuration, bool bCreateReminder, bool bReadOnly); | ||
|
||
mutable CCriticalSection m_critSection; | ||
CDateTime m_StartTime; /*!< start time */ | ||
CDateTime m_StopTime; /*!< stop time */ | ||
CDateTime m_FirstDay; /*!< if it is a manual timer rule the first date it starts */ | ||
std::shared_ptr<CPVRTimerType> m_timerType; /*!< the type of this timer */ | ||
CDateTime m_StartTime; /*!< start time */ | ||
CDateTime m_StopTime; /*!< stop time */ | ||
CDateTime m_FirstDay; /*!< if it is a manual timer rule the first date it starts */ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. comments are still vertical aligned |
||
std::shared_ptr<CPVRTimerType> m_timerType; /*!< the type of this timer */ | ||
|
||
unsigned int m_iTVChildTimersActive = 0; | ||
unsigned int m_iTVChildTimersConflictNOK = 0; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comments are still vertical aligned