[Kwintv] [PATCH] Per-channel picture settings

Andras Mantia amantia at kde.org
Thu Jun 10 23:32:28 CEST 2004


Hi,

  The subject says it: implement a TODO, listed as a requirement for 1.0 
(and one that I've been missing badly). I don't commit directly because 
it's not the best way of doing (or better said, this is only half made, 
as I don't really have time to figure out kdetv's internals). What 
should be done:
- use the newly introduced channel id for identifying the channel as the 
name can change, number can change, even frequency can change (fine 
tuning). The id should be unique per device/channel file. The idea is 
to create the id with KApplication::randomString(10) for new channels 
and read/write to the channel xml file (this is what is missing from 
the patch).
- second solution would be to store the picture setting in the xml file, 
but this might be not so well, as the same xml file can be used for two 
devices, while picture settings are/can be device dependent.
- implement a DCOP method to read the defaults from the config file 
(heh, to be able to reset it from the remote control).

Well, only the id stuff is important. But it works even now, just that 
you lose the customizations when you rename the channel and the config 
file will be polluted (of course, this means that the settings should 
be removed when the channel is removed).

Andras

-- 
Quanta Plus developer - http://quanta.sourceforge.net
K Desktop Environment - http://www.kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdetv.diff
Type: text/x-diff
Size: 4739 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kwintv/attachments/20040611/109e215e/kdetv.bin


More information about the kwintv mailing list