ecasa: add download functionality and basic slideshow.
[enigma2-plugins.git] / ecasa / src / __init__.py
1 #pragma mark - Config
2 from Components.config import config, ConfigSubsection, ConfigText, \
3                 ConfigPassword, ConfigLocations, ConfigSet, ConfigNumber
4
5 from Tools.Directories import resolveFilename, SCOPE_HDD
6
7 config.plugins.ecasa = ConfigSubsection()
8 config.plugins.ecasa.google_username = ConfigText(default="", fixed_size=False)
9 config.plugins.ecasa.google_password = ConfigPassword(default="")
10 config.plugins.ecasa.cachedirs = ConfigLocations(default=[resolveFilename(SCOPE_HDD, "ecasa")])
11 config.plugins.ecasa.cache = ConfigText(default="/media/hdd/ecasa")
12 config.plugins.ecasa.user = ConfigText(default='default')
13 config.plugins.ecasa.searchhistory = ConfigSet(choices = [])
14 config.plugins.ecasa.userhistory = ConfigSet(choices = [])
15 config.plugins.ecasa.searchlimit = ConfigNumber(default=15)
16 config.plugins.ecasa.cachesize = ConfigNumber(default=15)
17 config.plugins.ecasa.slideshow_interval = ConfigNumber(default=30)