Closed Bug 1156183 Opened 9 years ago Closed 9 years ago

[Stingray][TvDeck] Move TVManager related API to ChannelManager

Categories

(Firefox OS Graveyard :: Gaia::TV, defect)

x86
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: suchiu, Assigned: suchiu)

References

Details

Attachments

(1 file)

It would be better to move (tuner, source, channel) related functions or properties to ChannelManager and leave TVDeck for UI manipulations.
Comment on attachment 8597873 [details] [review]
[gaia] sean2449:Bug_1156183-move-channel > mozilla-b2g:master

1. Move TVManager related API to ChannelManager.
2. Rewrite test case for TVDeck.
3. Add flag isScanning in channelManager since setCurrentSource and setCurrentChannel can not be called when a tuner is scanning. setHash should not be called either.
Attachment #8597873 - Flags: review?(im)
Comment on attachment 8597873 [details] [review]
[gaia] sean2449:Bug_1156183-move-channel > mozilla-b2g:master

Looks good but it has some spaces to improve.
Attachment #8597873 - Flags: review?(im)
Comment on attachment 8597873 [details] [review]
[gaia] sean2449:Bug_1156183-move-channel > mozilla-b2g:master

John, thanks for the suggestions in PR, I have made following changes:
1. Change (playingTunerId, playingSourceType, playingChannelNumber) to playingState with (tunerId, sourceType, channelNumber) properties.
2. Refocus to panel element when buttongroup is hidden.
3. Change playingTuner, playingSource and playingChannel properties to getTuner, getSource and getChannel functions.
Attachment #8597873 - Flags: review?(im)
4. Move UI related pin or unpin card functions from channel manager to tv-deck.
5. Move CardManager related functions to pin_card.js
Comment on attachment 8597873 [details] [review]
[gaia] sean2449:Bug_1156183-move-channel > mozilla-b2g:master

Looks good to me. Please file another bug to add unit tests for your newly created modules.
Attachment #8597873 - Flags: review?(im) → review+
Component: Gaia → Gaia::TV
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: