[tuxdroid-svn] r4907 - in software_suite_v3/software/plugin: . plugin-programsTv plugin-programsTv/
Status: Beta
Brought to you by:
ks156
Author: jerome Date: 2009-06-26 12:15:32 +0200 (Fri, 26 Jun 2009) New Revision: 4907 Added: software_suite_v3/software/plugin/plugin-programsTv/ software_suite_v3/software/plugin/plugin-programsTv/branches/ software_suite_v3/software/plugin/plugin-programsTv/tags/ software_suite_v3/software/plugin/plugin-programsTv/trunk/ software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/ software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/pom.xml software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/ software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/en.po software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/en.wiki software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/es.po software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/es.wiki software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/fr.po software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/fr.wiki software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/help.wiki software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/nl.po software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/nl.wiki software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/plugin.png software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/plugin.pot software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/plugin.xml software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/ software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/ software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/ software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/ software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/HTMLUtils.java software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/Program.java software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/ProgramLoadListener.java software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/plugin/ software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/plugin/Configuration.java software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/plugin/PluginBeDu.java software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/plugin/PluginBeFr.java software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/plugin/PluginEs.java software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/plugin/PluginFr.java software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/plugin/PluginGe.java software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/plugin/PluginNl.java software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/plugin/PluginProgramTV.java software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/plugin/PluginStart.java software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/plugin/PluginUk.java software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/programs/ software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/programs/SimplePrograms.java Log: * Added plugin-programsTv. Added: software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/pom.xml =================================================================== --- software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/pom.xml (rev 0) +++ software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/pom.xml 2009-06-26 10:15:32 UTC (rev 4907) @@ -0,0 +1,116 @@ +<project> + <!--General project informations--> + <modelVersion>4.0.0</modelVersion> + <groupId>com.kysoh</groupId> + <artifactId>plugin-programsTv</artifactId> + <packaging>jar</packaging> + <version>2.0</version> + <name>ProgramsTv plugin for Tux Droid</name> + <url>http://www.kysoh.com</url> + + <!--Dependency list--> + <dependencies> + <dependency> + <groupId>com.kysoh</groupId> + <artifactId>tuxdroid-plugin-java-kit</artifactId> + <version>0.0.3</version> + </dependency> + </dependencies> + + <!--Repository list--> + <repositories> + <repository> + <id>kysoh</id> + <name>Kysoh Repository</name> + <layout>default</layout> + <url>http://ftp.kysoh.com/maven2</url> + <snapshots> + <enabled>false</enabled> + </snapshots> + </repository> + </repositories> + + <!--Build process--> + <build> + <sourceDirectory>src</sourceDirectory> + <plugins> + + <!--This section copy the dependencies into ./libraries--> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-dependency-plugin</artifactId> + <executions> + <execution> + <id>copy-dependencies</id> + <phase>package</phase> + <goals> + <goal>copy-dependencies</goal> + </goals> + <configuration> + <outputDirectory>./libraries</outputDirectory> + </configuration> + </execution> + </executions> + </plugin> + + <!--This plugin run small ant scripts to pack and clean the gadget --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-antrun-plugin</artifactId> + <version>1.3</version> + <executions> + + <!--This section create the .tgf file during the package lifecycle--> + <execution> + <phase>package</phase> + <id>package</id> + <configuration> + <tasks> + <mkdir dir="./libraries"/> + <copy file="${project.build.directory}/${project.artifactId}-${project.version}.jar" + todir="./libraries" /> + <zip destfile="./${project.artifactId}.scp"> + <zipfileset dir="." includes="resources/*" /> + <zipfileset dir="." includes="resources/attitunes/*" /> + <zipfileset dir="." includes="libraries/*" > + <exclude name="libraries/tuxdroid-plugin-java-kit*" /> + <exclude name="libraries/karmalab-commons*" /> + <exclude name="libraries/tuxdroid-java-api*" /> + </zipfileset> + <zipfileset dir="." includes="executables/*" /> + </zip> + </tasks> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + + <!--This section clean the ./libraries and the SCP file during the 'clean' lifecycle--> + <execution> + <phase>clean</phase> + <configuration> + <tasks> + <delete dir="./libraries"/> + <delete file="./${project.artifactId}.scp"/> + </tasks> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + </plugin> + + <!--This plugin compile the project--> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.6</source> + <target>1.6</target> + </configuration> + </plugin> + </plugins> + </build> +</project> Added: software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/en.po =================================================================== --- software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/en.po (rev 0) +++ software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/en.po 2009-06-26 10:15:32 UTC (rev 4907) @@ -0,0 +1,103 @@ + +msgid "" +msgstr "Project-Id-Version: PACKAGE VERSION\nReport-Msgid-Bugs-To: \nPOT-Creation-Date: 2009-04-30 09:25+0200\nPO-Revision-Date: 2009-04-30 09:25+0200\nLast-Translator: jerome <jer...@ky...>\nLanguage-Team: LANGUAGE <LL...@li...>\nLanguage: en\nMIME-Version: 1.0\nContent-Type: text/plain; charset=UTF-8\nContent-Transfer-Encoding: 8bit\nPlural-Forms: nplurals=2; plural=(n != 1);\nX-Generator: Pootle 1.2.1\n" + +msgid "Belgian Dutch programs" +msgstr "Belgian Dutch programs" + +msgid "This gadget reads your tv programs in Belgium" +msgstr "This gadget reads your tv programs in Belgium" + +msgid "Belgian French Programs" +msgstr "Belgian French Programs" + +msgid "German programs" +msgstr "German programs" + +msgid "This plugin reads your German tv programs" +msgstr "This plugin reads your German tv programs" + +msgid "Netherland programs" +msgstr "Netherland programs" + +msgid "This plugin reads your tv programs in Netherlands" +msgstr "This plugin reads your tv programs in Netherlands" + +msgid "Spanish programs" +msgstr "Spanish programs" + +msgid "This plugin reads your Spanish tv programs" +msgstr "This plugin reads your Spanish tv programs" + +msgid "United Kingdom programs" +msgstr "United Kingdom programs" + +msgid "This plugin reads your tv programs in United Kingdom" +msgstr "This plugin reads your tv programs in United Kingdom" + +msgid "French programs" +msgstr "French programs" + +msgid "This plugin reads your French tv programs" +msgstr "This plugin reads your French tv programs" + +msgid "Select your channel" +msgstr "Select your channel" + +msgid "Give program description" +msgstr "Give program description" + +msgid "Morning" +msgstr "Morning" + +msgid "Afternoon" +msgstr "Afternoon" + +msgid "Evening" +msgstr "Evening" + +msgid "Give currently playing program" +msgstr "Give currently playing program" + +msgid "Give the tv program" +msgstr "Give the tv program" + +msgid "No TV program for now" +msgstr "No TV program for now" + +msgid "Now playing on {0}. {1}" +msgstr "Now playing on {0}. {1}" + +msgid "Next playing {0} at {1}" +msgstr "Next playing {0} at {1}" + +msgid "On {0}" +msgstr "On {0}" + +msgid "Your morning TV Programs" +msgstr "Your morning TV Programs" + +msgid "{0}, {1}" +msgstr "{0}, {1}" + +msgid "{0}, {1}, {2}" +msgstr "{0}, {1}, {2}" + +msgid "Your afternoon TV Programs" +msgstr "Your afternoon TV Programs" + +msgid "Your evening TV Programs" +msgstr "Your evening TV Programs" + +msgid "Please re-configure your gadget to get a TV program list." +msgstr "Please re-configure your gadget to get a TV program list." + +msgid "I didn't find any TV programs according to your selected time frame." +msgstr "I didn't find any TV programs according to your selected time frame." + +msgid "Select time frame" +msgstr "Select time frame" + +msgid "Error while loading the TV program" +msgstr "Error while loading the TV program" + Added: software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/en.wiki =================================================================== --- software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/en.wiki (rev 0) +++ software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/en.wiki 2009-06-26 10:15:32 UTC (rev 4907) @@ -0,0 +1,2 @@ +== Synopsis == +This plugin lets Tux Droid read the TV programs on your favorite channel. \ No newline at end of file Added: software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/es.po =================================================================== --- software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/es.po (rev 0) +++ software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/es.po 2009-06-26 10:15:32 UTC (rev 4907) @@ -0,0 +1,103 @@ + +msgid "" +msgstr "Project-Id-Version: PACKAGE VERSION\nReport-Msgid-Bugs-To: \nPOT-Creation-Date: 2009-04-30 09:25+0200\nPO-Revision-Date: 2009-04-30 09:27+0200\nLast-Translator: jerome <jer...@ky...>\nLanguage-Team: LANGUAGE <LL...@li...>\nLanguage: es\nMIME-Version: 1.0\nContent-Type: text/plain; charset=UTF-8\nContent-Transfer-Encoding: 8bit\nPlural-Forms: nplurals=2; plural=(n != 1);\nX-Generator: Pootle 1.2.1\n" + +msgid "Belgian Dutch programs" +msgstr "Programas en Belga Aleman" + +msgid "This plugin reads your tv programs in Belgium" +msgstr "Este plugin lee sus programa de TV en Belgica." + +msgid "Belgian French Programs" +msgstr "Programas en Belga Frances" + +msgid "German programs" +msgstr "Programas en Aleman" + +msgid "This plugin reads your German tv programs" +msgstr "Este plugin lee sus programa de TV en Aleman." + +msgid "Netherland programs" +msgstr "Programas en Holandes" + +msgid "This plugin reads your tv programs in Netherlands" +msgstr "Este plugin lee sus programa de TV en Holanda." + +msgid "Spanish programs" +msgstr "Programas en Español" + +msgid "This plugin reads your Spanish tv programs" +msgstr "Este plugin lee sus programa de TV en España." + +msgid "United Kingdom programs" +msgstr "Programas en Reino Unido" + +msgid "This plugin reads your tv programs in United Kingdom" +msgstr "Este plugin lee sus programas de TV en Reino Unido" + +msgid "French programs" +msgstr "Programas en Frances" + +msgid "This plugin reads your French tv programs" +msgstr "Este plugin lee sus programas de TV en Frances." + +msgid "Select your channel" +msgstr "Seleccione su canal" + +msgid "Give program description" +msgstr "Dar una descripción del programa" + +msgid "Morning" +msgstr "Mañana" + +msgid "Afternoon" +msgstr "Tarde" + +msgid "Evening" +msgstr "Noche" + +msgid "Give currently playing program" +msgstr "Dar el programa en curso" + +msgid "Give the tv program" +msgstr "Dar la programación de TV" + +msgid "No TV program for now" +msgstr "No dar la programación de TV por ahora" + +msgid "Now playing on {0}. {1}" +msgstr "Dar programa actual de {0} a {1}" + +msgid "Next playing {0} at {1}" +msgstr "Próximo programa {0} a {1}" + +msgid "On {0}" +msgstr "A las {0}" + +msgid "Your morning TV Programs" +msgstr "Sus programas de TV en la mañana" + +msgid "{0}, {1}" +msgstr "de {0} a {1}" + +msgid "{0}, {1}, {2}" +msgstr "{0},{1},{2}" + +msgid "Your afternoon TV Programs" +msgstr "Sus programas de TV en la tarde" + +msgid "Your evening TV Programs" +msgstr "Sus programas de TV en la noche" + +msgid "Please re-configure your gadget to get a TV program list." +msgstr "Por favor reconfigure su gadget para obtener la programacion de TV." + +msgid "I didn't find any TV programs according to your selected time frame." +msgstr "No se puede encontrar ningún programa dentro de la franja horaria seleccionada." + +msgid "Select time frame" +msgstr "Seleccione una franja horaria" + +msgid "Error while loading the TV program" +msgstr "Error al cargar el programa de TV" + Added: software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/es.wiki =================================================================== --- software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/es.wiki (rev 0) +++ software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/es.wiki 2009-06-26 10:15:32 UTC (rev 4907) @@ -0,0 +1,2 @@ +== Synopsis == +Este gadget hará que Tux Droid lea la programación televisiva de su canal de TV favorito \ No newline at end of file Added: software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/fr.po =================================================================== --- software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/fr.po (rev 0) +++ software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/fr.po 2009-06-26 10:15:32 UTC (rev 4907) @@ -0,0 +1,103 @@ + +msgid "" +msgstr "Project-Id-Version: PACKAGE VERSION\nReport-Msgid-Bugs-To: \nPOT-Creation-Date: 2009-04-30 09:25+0200\nPO-Revision-Date: 2009-04-30 09:26+0200\nLast-Translator: jerome <jer...@ky...>\nLanguage-Team: LANGUAGE <LL...@li...>\nLanguage: fr\nMIME-Version: 1.0\nContent-Type: text/plain; charset=UTF-8\nContent-Transfer-Encoding: 8bit\nPlural-Forms: nplurals=2; plural=(n > 1);\nX-Generator: Pootle 1.2.1\n" + +msgid "Belgian Dutch programs" +msgstr "Programmes Flamands" + +msgid "This plugin reads your tv programs in Belgium" +msgstr "Ce plugin vous donne votre programme de télévision en Belgique" + +msgid "Belgian French Programs" +msgstr "Programmes francophones" + +msgid "German programs" +msgstr "Programmes Allemands" + +msgid "This plugin reads your German tv programs" +msgstr "Ce plugin vous donne votre programme de télévision en Allemagne" + +msgid "Netherland programs" +msgstr "Programmes Néerlandais" + +msgid "This plugin reads your tv programs in Netherlands" +msgstr "Ce plugin vous donne votre programme de télévision aux Pays-Bas" + +msgid "Spanish programs" +msgstr "Programmes Espagnols" + +msgid "This plugin reads your Spanish tv programs" +msgstr "Ce plugin vous donne votre programme de télévision en Espagne" + +msgid "United Kingdom programs" +msgstr "Programmes Anglais" + +msgid "This plugin reads your tv programs in United Kingdom" +msgstr "Ce plugin vous donne votre programme de télévision en Angleterre" + +msgid "French programs" +msgstr "Programmes Français" + +msgid "This plugin reads your French tv programs" +msgstr "Ce plugin vous donne votre programme de télévision en Françe" + +msgid "Select your channel" +msgstr "Choisissez votre chaîne" + +msgid "Give program description" +msgstr "Donner la description" + +msgid "Morning" +msgstr "Matin" + +msgid "Afternoon" +msgstr "Après-midi" + +msgid "Evening" +msgstr "Soirée" + +msgid "Give currently playing program" +msgstr "Donner le programme en cours" + +msgid "Give the tv program" +msgstr "Donner le programme TV" + +msgid "No TV program for now" +msgstr "Aucun programme de télévision trouvé pour le moment" + +msgid "Now playing on {0}. {1}" +msgstr "Actuellement sur {0}. {1}" + +msgid "Next playing {0} at {1}" +msgstr "Ensuite {0} à {1}" + +msgid "On {0}" +msgstr "Sur {0}" + +msgid "Your morning TV Programs" +msgstr "Votre programme télé du matin" + +msgid "{0}, {1}" +msgstr "{0}, {1}" + +msgid "{0}, {1}, {2}" +msgstr "{0}, {1}, {2}" + +msgid "Your afternoon TV Programs" +msgstr "Votre programme télé pour l'après-midi" + +msgid "Your evening TV Programs" +msgstr "Le programme télé pour votre soirée" + +msgid "Please re-configure your gadget to get a TV program list." +msgstr "S'il vous plait, reconfigurez votre gadget pour obtenir une liste de programmes." + +msgid "I didn't find any TV programs according to your selected time frame." +msgstr "Je n'ai pas trouvé de programme télévision pour la tranche horaire sélectionnée." + +msgid "Select time frame" +msgstr "Choisissez une tranche horaire" + +msgid "Error while loading the TV program" +msgstr "Erreur lors du chargement du programme télé" + Added: software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/fr.wiki =================================================================== --- software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/fr.wiki (rev 0) +++ software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/fr.wiki 2009-06-26 10:15:32 UTC (rev 4907) @@ -0,0 +1,2 @@ +== Synopsis == +Ce gadget laisse Tux Droid lire votre programme de télévision pour votre chaîne favorite. \ No newline at end of file Added: software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/help.wiki =================================================================== --- software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/help.wiki (rev 0) +++ software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/help.wiki 2009-06-26 10:15:32 UTC (rev 4907) @@ -0,0 +1,2 @@ +== Synopsis == +This plugin lets Tux Droid read the TV programs on your favorite channel. Added: software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/nl.po =================================================================== --- software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/nl.po (rev 0) +++ software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/nl.po 2009-06-26 10:15:32 UTC (rev 4907) @@ -0,0 +1,103 @@ + +msgid "" +msgstr "Project-Id-Version: PACKAGE VERSION\nReport-Msgid-Bugs-To: \nPOT-Creation-Date: 2009-04-30 09:25+0200\nPO-Revision-Date: 2009-04-30 09:30+0200\nLast-Translator: jerome <jer...@ky...>\nLanguage-Team: LANGUAGE <LL...@li...>\nLanguage: nl\nMIME-Version: 1.0\nContent-Type: text/plain; charset=UTF-8\nContent-Transfer-Encoding: 8bit\nPlural-Forms: nplurals=2; plural=(n != 1);\nX-Generator: Pootle 1.2.1\n" + +msgid "Belgian Dutch programs" +msgstr "Vlaamse TV programma's" + +msgid "This plugin reads your tv programs in Belgium" +msgstr "Deze plugin zal de Belgische TV programma's voorlezen" + +msgid "Belgian French Programs" +msgstr "Waalse TV programma's" + +msgid "German programs" +msgstr "Duitse TV programma's" + +msgid "This plugin reads your German tv programs" +msgstr "Deze plugin zal de Duitse TV programma's voorlezen" + +msgid "Netherland programs" +msgstr "Nederlandse TV programma's" + +msgid "This plugin reads your tv programs in Netherlands" +msgstr "Deze plugin zal de Nederlandse TV programma's voorlezen" + +msgid "Spanish programs" +msgstr "Spaanse TV programma's" + +msgid "This plugin reads your Spanish tv programs" +msgstr "Deze plugin zal de Spaanse TV programma's voorlezen" + +msgid "United Kingdom programs" +msgstr "UK TV programma's" + +msgid "This plugin reads your tv programs in United Kingdom" +msgstr "Deze plugin zal de UK programma's voorlezen" + +msgid "French programs" +msgstr "Franse TV programma's" + +msgid "This plugin reads your French tv programs" +msgstr "Deze plugin zal de Franse TV programma's voorlezen" + +msgid "Select your channel" +msgstr "Selecteer jouw kanaal" + +msgid "Give program description" +msgstr "Geef programma beschrijving" + +msgid "Morning" +msgstr "Voormiddag" + +msgid "Afternoon" +msgstr "Namiddag" + +msgid "Evening" +msgstr "Avond" + +msgid "Give currently playing program" +msgstr "Geef programma dat nu aan het spelen is" + +msgid "Give the tv program" +msgstr "Geef het TV programma" + +msgid "No TV program for now" +msgstr "Op het ogenblik is er geen programma aan het spelen" + +msgid "Now playing on {0}. {1}" +msgstr "Nu aan het spelen op {0}. {1}" + +msgid "Next playing {0} at {1}" +msgstr "Gevolgd door {0} om {1}" + +msgid "On {0}" +msgstr "Op {0}" + +msgid "Your morning TV Programs" +msgstr "Jouw voormiddag TV programma's" + +msgid "{0}, {1}" +msgstr "{0}, {1}" + +msgid "{0}, {1}, {2}" +msgstr "{0}, {1}, {2}" + +msgid "Your afternoon TV Programs" +msgstr "Jouw namiddag TV programma's" + +msgid "Your evening TV Programs" +msgstr "Jouw avond TV programma's" + +msgid "Please re-configure your gadget to get a TV program list." +msgstr "Gelieve de gadget anders te configureren om een TV programma lijst te verkrijgen." + +msgid "I didn't find any TV programs according to your selected time frame." +msgstr "I kan geen TV programma's vinden voor de periode die je ingesteld hebt." + +msgid "Select time frame" +msgstr "Selecteer periode van de dag" + +msgid "Error while loading the TV program" +msgstr "Fout bij het laden van de TV-programma" + Added: software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/nl.wiki =================================================================== --- software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/nl.wiki (rev 0) +++ software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/nl.wiki 2009-06-26 10:15:32 UTC (rev 4907) @@ -0,0 +1,3 @@ +== Synopsis == +Deze gadget zal Tux Droid jouw Tv programma's laten voorlezen van jouw favoriete kanaal. + \ No newline at end of file Added: software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/plugin.png =================================================================== (Binary files differ) Property changes on: software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/plugin.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/plugin.pot =================================================================== --- software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/plugin.pot (rev 0) +++ software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/plugin.pot 2009-06-26 10:15:32 UTC (rev 4907) @@ -0,0 +1,122 @@ +msgid "Belgian Dutch programs" +msgstr "" + +msgid "This plugin reads your tv programs in Belgium" +msgstr "" + +msgid "Select a country" +msgstr"" + +msgid "Select a French channel" +msgstr "" + +msgid "Select your Belgian Dutch channel" +msgstr "" + +msgid "Select your Belgian French channel" +msgstr "" + +msgid "Select your Netherland channel" +msgstr "" + +msgid "Select your Spain channel" +msgstr "" + +msgid "Select a UK channel" +msgstr "" + +msgid "Select a German channel" +msgstr "" + +msgid "Belgian French Programs" +msgstr "" + +msgid "German programs" +msgstr "" + +msgid "This plugin reads your German tv programs" +msgstr "" + +msgid "Netherland programs" +msgstr "" + +msgid "This plugin reads your tv programs in Netherlands" +msgstr "" + +msgid "Spanish programs" +msgstr "" + +msgid "This plugin reads your Spanish tv programs" +msgstr "" + +msgid "United Kingdom programs" +msgstr "" + +msgid "This plugin reads your tv programs in United Kingdom" +msgstr "" + +msgid "French programs" +msgstr "" + +msgid "This plugin reads your French tv programs" +msgstr "" + +msgid "Select your channel" +msgstr "" + +msgid "Give program description" +msgstr "" + +msgid "Morning" +msgstr "" + +msgid "Afternoon" +msgstr "" + +msgid "Evening" +msgstr "" + +msgid "Give currently playing program" +msgstr "" + +msgid "Give the tv program" +msgstr "" + +msgid "No TV program for now" +msgstr "" + +msgid "Now playing on {0}. {1}" +msgstr "" + +msgid "Next playing {0} at {1}" +msgstr "" + +msgid "On {0}" +msgstr "" + +msgid "Your morning TV Programs" +msgstr "" + +msgid "{0}, {1}" +msgstr "" + +msgid "{0}, {1}, {2}" +msgstr "" + +msgid "Your afternoon TV Programs" +msgstr "" + +msgid "Your evening TV Programs" +msgstr "" + +msgid "Please re-configure your gadget to get a TV program list." +msgstr "" + +msgid "I didn't find any TV programs according to your selected time frame." +msgstr "" + +msgid "Select time frame" +msgstr "" + +msgid "Error while loading the TV program" +msgstr "" \ No newline at end of file Added: software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/plugin.xml =================================================================== --- software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/plugin.xml (rev 0) +++ software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/resources/plugin.xml 2009-06-26 10:15:32 UTC (rev 4907) @@ -0,0 +1,103 @@ + +<plugin> + <interpreter + kind="java"> + <executable>com.kysoh.tvPrograms.plugin.PluginStart</executable> + </interpreter> + <description> + <name>Tv programs</name> + <ttsName>Tv programs</ttsName> + <description>This plugin reads your tv programs</description> + <author>Jérôme Conan</author> + <version>2.0</version> + <iconFile>resources/plugin.png</iconFile> + <executionMode>command</executionMode> + <uuid>69a8518b-dab7-44d5-819e-41aaf8ea380b</uuid> + <platform>all</platform> + </description> + <parameters> + <parameter + category="Options" + name="countr" + description="Select a country" + type="enum(France, Flandre, Wallonnie, Espana, Deutschland, Nederland, United Kingdom)" + defaultValue="France" /> + <parameter + category="Options" + name="frenchChannel" + description="Select a French channel" + type="enum(ARTE,Canal + France,EuroNews Fr.,France 2,France 3,La 5,M6,TF1,TV5, + CINE CINEMA CLASSIC,CINE CINEMA EMOTION,CINE CINEMA FAMIZ,CINE CINEMA FRISSON, + AB Channel 1,AB Moteurs,AB4,Action,Animaux,BFM TV,Canal J, + CINE CINEMA PREMIER,CINE CINEMA STAR,Cine Fx,Cine Polar,Direct 8,Disney Channel, + Encyclopedia,Escales,France 4,Gulli,ITV,LCI,Mangas,Mezzo,NRJ 12,NT1,RTL 9, + TF6,TMC,TPS STAR,Virgin 17,Voyage,W9)" + defaultValue="TF1" /> + <parameter + category="Options" + name="flandreChannel" + description="Select your Belgian Dutch channel" + type="enum(Vijf TV, Prime One, Prime Action, Prime Movies, Canvas, Fashion TV Prime Fezztival, + JIM,KANAALTWEE, Ketnet, MTV Netherland, Prime Sport, The Music Factory, Trace TV, Vitaya, VT4, VTM)" + defaultValue="Vijf TV" /> + <parameter + category="Options" + name="wallonnieChannel" + description="Select your Belgian French channel" + type="enum(AB 3, BE CINE 1, BE 1, BE 1 + 1h, BE Serie, BE SPORT 1, BE SPORT 2, Cartoon network, + Club RTL, Eurosport., Plug TV, La Une, La 2., RTL-TVI)" + defaultValue="AB 3" /> + <parameter + category="Options" + name="nederlandChannel" + description="Select your Netherland channel" + type="enum(EuroSport, Film1+1, V8, Nederland 1, Nederland 2, Nederland 3, + Net 5, RTL 5, RTL 7, RTL 4, SBS6, Sport1.1)" + defaultValue="RTL 5" /> + <parameter + category="Options" + name="espanaChannel" + description="Select your Spain channel" + type="enum(Antena 3, Canal 33, Canal 9, Canal Sur, Cuatro, ETB 1, ETB 2, La 2, La sexta, TeleCinco, + Tele Madrid, TV3 Spain, TVE International, TVE 1, TVG)" + defaultValue="Antena 3" /> + <parameter + category="Options" + name="ukChannel" + description="Select a UK channel" + type="enum(BBC Prime, BBC WORLD, BBC1, BBC2, Cartoons, ChatBox, CNN)" + defaultValue="BBC1" /> + <parameter + category="Options" + name="germanChannel" + description="Select a German channel" + type="enum(ARD, SW3, WDR, ZDF)" + defaultValue="ARD" /> + <parameter + category="Options" + name="tHour" + description="Select time frame" + type="enum(Morning, Afternoon, Evening)" + defaultValue="Evening" /> + <parameter + category="Options" + name="giveProgramDescription" + description="Give program description" + type="boolean" + defaultValue="false" /> + <parameter + category="Options" + name="giveNowPlaying" + description="Give currently playing program" + type="boolean" + defaultValue="true" /> + </parameters> + <commands> + <command + name="run" + description="Give the tv program" /> + </commands> + <tasks> + + </tasks> +</plugin> Added: software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/HTMLUtils.java =================================================================== --- software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/HTMLUtils.java (rev 0) +++ software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/HTMLUtils.java 2009-06-26 10:15:32 UTC (rev 4907) @@ -0,0 +1,132 @@ +/* This file is part of "tuxdroid programs tv". + * Copyright 2009, kysoh + * Author : Conan Jerome + * eMail : jerome.conan AT kysoh.com + * + * "tuxdroid programs tv" is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * "tuxdroid programs tv" is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with "tuxdroid programs tv"; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +package com.kysoh.tvPrograms; + +import java.io.BufferedInputStream; +import java.io.DataInputStream; +import java.net.HttpURLConnection; +import java.net.URL; + + +public class HTMLUtils { + + /** + * Remove all html text occurencies. + * @param s : the string to be parsed. + * @return + */ + public static String HtmlToString(String s) + { + + if(s.contains("�")) + { + s = s.replaceAll("�", "è"); + } + + + if(s.contains("?u")) + { + s = s.replaceAll("\\?u", "oeu"); + } + + + if(s.contains("&#")) + { + int i1 = s.indexOf("&#") + 2; + int i2 = s.indexOf(";", i1); + String html = ""; + String result = ""; + try + { + html = s.substring(i1, i2); + } + catch(StringIndexOutOfBoundsException e) + { + return s; + } + if(!html.equals( "146")) + { + try + { + int v = Integer.valueOf(html).intValue(); + result = String.valueOf((char)v); + s = s.replace("&#" + html + ";", result); + } + catch(NumberFormatException impossible) + { + ; + } + } + else + { + s = s.substring(0, i1 -2) + "'" + s.substring(i2 + 1); + } + + if(s.contains("&#")) + { + return HtmlToString(s); + } + } + return s; + } + + + + /** + * Get a page from an url. + * @param url : the web page url. + * @param channel : the channel page. + */ + @SuppressWarnings("deprecation") + public static String getPage(String url, String channel) + { + String inputLine; + DataInputStream dis; + String result = ""; + + try + { + /* create a new URL object */ + URL xml = new URL(String.format(url, channel.replace(" ", "%20"))); + + /* Open the connection */ + HttpURLConnection.setDefaultRequestProperty("User-Agent", "Mozilla/4.0 ( compatible ) "); + HttpURLConnection yc = (HttpURLConnection) xml.openConnection(); + yc.setRequestProperty ("User-Agent", "Mozilla/4.0 ( compatible ) "); + + dis = new DataInputStream(new BufferedInputStream(yc.getInputStream())); + + while((inputLine = dis.readLine()) != null) + { + result += inputLine; + } + + } + catch (Exception e) + { + //Handle connections errors too. + return null; + } + + return result; + } +} Added: software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/Program.java =================================================================== --- software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/Program.java (rev 0) +++ software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/Program.java 2009-06-26 10:15:32 UTC (rev 4907) @@ -0,0 +1,151 @@ +/* This file is part of "tuxdroid programs tv". + * Copyright 2009, kysoh + * Author : Conan Jerome + * eMail : jerome.conan AT kysoh.com + * + * "tuxdroid programs tv" is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * "tuxdroid programs tv" is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with "tuxdroid programs tv"; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +package com.kysoh.tvPrograms; + +public class Program { + + private String startTime; + private String title; + private String description; + private String channel; + + + /** + * Class constructor. + * @param title : The program title. + * @param startTime : The program start time. + * @param endTime : The program end time. + * @param description : The program description. + * @param channel : The program channel. + */ + public Program(String title, String startTime, String description, String channel) throws Exception + { + if((title == null) || (title == "")) + { + throw new Exception("Program title cannot be empty: " + title); + } + + this.title = title; + this.startTime = startTime; + this.description = description; + this.channel = channel; + + //Checking description that is not always referenced by all websites. + if((this.description == null) || this.description.contains(" ") || this.description.equals("") || this.description.equals(" ")) + { + this.description = "UNDEFINED"; + } + + this.description = this.description.replace("&", ""); + } + + + + /** + * Set the prgram title. + * @param aTitile + */ + public void setTitle(String aTitle) + { + this.title = aTitle; + } + + + /** + * Return the program title. + * @return + */ + public String getTitle() + { + return this.title; + } + + + /** + * Set the program description. + * @param aDescription + */ + public void setDescription(String aDescription) + { + this.description = aDescription; + } + + + /** + * Return the description. + * @return + */ + public String getDescription() + { + return this.description; + } + + + /** + * Return true if this program has a description. + * @return + */ + public boolean hasDescription() + { + return this.description != "UNDEFINED"; + } + + + /** + * Set the progam channel. + * @param aChannel + */ + public void setChannel(String aChannel) + { + this.channel = aChannel; + } + + + /** + * Return the program channel. + * @return + */ + public String getChannel() + { + return this.channel; + } + + + /** + * Set the start time. + * @param aStartTime + */ + public void setStartTime(String aStartTime) + { + this.startTime = aStartTime; + } + + + /** + * Return the program start time. + * @return + */ + public String getStartTime() + { + return this.startTime; + } +} Added: software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/ProgramLoadListener.java =================================================================== --- software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/ProgramLoadListener.java (rev 0) +++ software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/ProgramLoadListener.java 2009-06-26 10:15:32 UTC (rev 4907) @@ -0,0 +1,32 @@ +/* This file is part of "tuxdroid programs tv". + * Copyright 2009, kysoh + * Author : Conan Jerome + * eMail : jerome.conan AT kysoh.com + * + * "tuxdroid programs tv" is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * "tuxdroid programs tv" is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with "tuxdroid programs tv"; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +package com.kysoh.tvPrograms; + +import java.util.Vector; + +import com.kysoh.tvPrograms.Program; + +public interface ProgramLoadListener { + + public void loaded(Vector<Program> completeProgram); + public void loadError(String aUrl); +} Added: software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/plugin/Configuration.java =================================================================== --- software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/plugin/Configuration.java (rev 0) +++ software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/plugin/Configuration.java 2009-06-26 10:15:32 UTC (rev 4907) @@ -0,0 +1,353 @@ +/* This file is part of "tuxdroid programs tv". + * Copyright 2009, kysoh + * Author : Conan Jerome + * eMail : jerome.conan AT kysoh.com + * + * "tuxdroid programs tv" is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * "tuxdroid programs tv" is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with "tuxdroid programs tv"; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +package com.kysoh.tvPrograms.plugin; + +import com.kysoh.tuxdroid.plugin.framework.plugin.SimplePluginConfiguration; + +public class Configuration extends SimplePluginConfiguration{ + + private String countr = ""; + private String channel = "Mezzo"; + + private String frenchChannel = ""; + private String flandreChannel = ""; + private String wallonnieChannel = ""; + private String nederlandChannel = ""; + private String espanaChannel = ""; + private String ukChannel = ""; + private String germanChannel = ""; + + private boolean giveProgramDescription = false; + private boolean giveMorning = false; + private boolean giveAfternoon = false; + private boolean giveEvening = false; + private boolean giveNowPlaying = false; + + private String tHour = "Morning"; + + /** + * Sets the channel. + * @param aChannel + */ + public void setGermanChannel(String aChannel) + { + this.germanChannel = aChannel; + } + + + /** + * Return the channel. + * @return + */ + public String getGermanChannel() + { + return this.germanChannel; + } + + /** + * Sets the channel. + * @param aChannel + */ + public void setUkChannel(String aChannel) + { + this.ukChannel = aChannel; + } + + + /** + * Return the channel. + * @return + */ + public String getUkChannel() + { + return this.ukChannel; + } + + + /** + * Sets the channel. + * @param aChannel + */ + public void setSpaniaChannel(String aChannel) + { + this.espanaChannel = aChannel; + } + + + /** + * Return the channel. + * @return + */ + public String getSpaniaChannel() + { + return this.espanaChannel; + } + + /** + * Sets the channel. + * @param aChannel + */ + public void setNederlandChannel(String aChannel) + { + this.nederlandChannel = aChannel; + } + + + /** + * Return the channel. + * @return + */ + public String getNederlandChannel() + { + return this.nederlandChannel; + } + + + /** + * Sets the channel. + * @param aChannel + */ + public void setWallonnieChannel(String aChannel) + { + this.wallonnieChannel = aChannel; + } + + + /** + * Return the channel. + * @return + */ + public String getWallonnieChannel() + { + return this.wallonnieChannel; + } + + + /** + * Sets the channel. + * @param aChannel + */ + public void setFlandreChannel(String aChannel) + { + this.flandreChannel = aChannel; + } + + + /** + * Return the channel. + * @return + */ + public String getFlandreChannel() + { + return this.flandreChannel; + } + + /** + * Sets the channel. + * @param aChannel + */ + public void setFrenchChannel(String aChannel) + { + this.frenchChannel = aChannel; + } + + + /** + * Return the channel. + * @return + */ + public String getFrenchChannel() + { + return this.frenchChannel; + } + + + /** + * Return the country. + * @return + */ + public String getCountr() + { + return this.countr; + } + + + /** + * Sets country parameter value. + * @return + */ + public void setCountr(String aCountry) + { + this.countr = aCountry; + } + + /** + * Return the channel. + * @return + */ + public String getChannel() + { + return this.channel; + } + + + /** + * Sets 'morning' 'evening' or 'afternoon' + * @return + */ + public String getTHour() + { + return this.tHour; + } + + /** + * Sets the parameter value. + * @param aTHour + */ + public void setTHour(String aTHour) + { + this.tHour = aTHour; + + if(this.tHour.equalsIgnoreCase("morning")) + { + this.setGiveMorning(true); + } + else if(this.tHour.equalsIgnoreCase("afternoon")) + { + this.setGiveAfternoon(true); + } + else if(this.tHour.equalsIgnoreCase("evening")) + { + this.setGiveEvening(true); + } + } + + + /** + * Sets the channel. + * @param aChannel + */ + public void setChannel(String aChannel) + { + this.channel = aChannel; + } + + + /** + * Return true if user wants to hear the programs description. + * @return + */ + public boolean getGiveProgramDescription() + { + return this.giveProgramDescription; + } + + + /** + * Sets to give program desciption parameter. + * @param give + */ + public void setGiveProgramDescription(boolean give) + { + this.giveProgramDescription = give; + } + + + /** + * Sets the 'now playing' parameter. + * @param aNowPlaying + */ + public void setNowPlaying(boolean aNowPlaying) + { + this.giveNowPlaying = aNowPlaying; + } + + + /** + * Return true if user wants to hear the current played program. + * @return + */ + public boolean getGiveNowPlaying() + { + return this.giveNowPlaying; + } + + + /** + * Set the 'give morning' parameter. + * @param aGiveMorning + */ + public void setGiveMorning(boolean aGiveMorning) + { + this.giveMorning = aGiveMorning; + } + + + /** + * Return true if user wants to hear the morning program. + * @return + */ + public boolean getGiveMorning() + { + return this.giveMorning; + } + + + /** + * Return true if user wants to hear the afternoon program. + * @return + */ + public boolean getGiveAfternoon() + { + return this.giveAfternoon; + } + + + /** + * Set the afternnon parameter. + * @param aGiveAfternoon + */ + public void setGiveAfternoon(boolean aGiveAfternoon) + { + this.giveAfternoon = aGiveAfternoon; + } + + + /** + * Return true if user wants to hear the evening prgrams. + * @return + */ + public boolean getGiveEvening() + { + return this.giveEvening; + } + + + /** + * Set the 'give evening' parameter. + * @param aGiveEvening + */ + public void setGiveEvening(boolean aGiveEvening) + { + this.giveEvening = aGiveEvening; + } +} Added: software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/plugin/PluginBeDu.java =================================================================== --- software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/plugin/PluginBeDu.java (rev 0) +++ software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/plugin/PluginBeDu.java 2009-06-26 10:15:32 UTC (rev 4907) @@ -0,0 +1,112 @@ +/* This file is part of "tuxdroid programs tv". + * Copyright 2009, kysoh + * Author : Conan Jerome + * eMail : jerome.conan AT kysoh.com + * + * "tuxdroid programs tv" is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * "tuxdroid programs tv" is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with "tuxdroid programs tv"; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +package com.kysoh.tvPrograms.plugin; + +import java.util.Vector; + +import com.kysoh.tuxdroid.plugin.framework.plugin.SimplePlugin; +import com.kysoh.tvPrograms.Program; +import com.kysoh.tvPrograms.ProgramLoadListener; +import com.kysoh.tvPrograms.programs.SimplePrograms; + + +public class PluginBeDu extends SimplePlugin<Configuration> implements ProgramLoadListener{ + + + /** + * Getting programs. + */ + SimplePrograms duPrograms; + + + @Override + protected void start() throws Throwable + { + configuration().setTHour(configuration().getTHour()); + + if(configuration().getGiveAfternoon() || configuration().getGiveEvening() || + configuration().getGiveMorning() || configuration().getGiveNowPlaying()) + { + SimplePrograms.addProgramLoadListener(this); + duPrograms = new SimplePrograms(SimplePrograms.BEDU, this.configuration().getChannel()); + } + else + { + throwMessage("Please re-configure your gadget to get a TV program list."); + PluginProgramTV.quitGadget(); + } + } + + + /** + * Load error event received. + */ + @Override + public void loadError(String url) + { + throwMessage("Error while loading the TV program"); + PluginProgramTV.quitGadget(); + } + + + /** + * Loaded event received. + */ + @Override + public void loaded(Vector<Program> completeProgram) + { + try + { + PluginProgramTV.giveProgram(this.configuration(), completeProgram, this); + } + catch(Exception error) + { + error.printStackTrace(); + this.loadError(null); + } + } + + + /** + * Simple main tests. + * @param args + */ + public void main(String[] args, Configuration config) + { + new PluginBeDu().boot(args, config); + } + + + @Override + protected void onPluginEvent(String arg0, String[] arg1) throws Throwable + { + ; + } + + + @Override + protected void onPluginStop() throws Throwable + { + ; + } + +} Added: software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/plugin/PluginBeFr.java =================================================================== --- software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/plugin/PluginBeFr.java (rev 0) +++ software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/plugin/PluginBeFr.java 2009-06-26 10:15:32 UTC (rev 4907) @@ -0,0 +1,108 @@ +/* This file is part of "tuxdroid programs tv". + * Copyright 2009, kysoh + * Author : Conan Jerome + * eMail : jerome.conan AT kysoh.com + * + * "tuxdroid programs tv" is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * "tuxdroid programs tv" is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with "tuxdroid programs tv"; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +package com.kysoh.tvPrograms.plugin; + +import java.util.Vector; + +import com.kysoh.tuxdroid.plugin.framework.plugin.SimplePlugin; +import com.kysoh.tvPrograms.Program; +import com.kysoh.tvPrograms.ProgramLoadListener; +import com.kysoh.tvPrograms.programs.SimplePrograms; + +public class PluginBeFr extends SimplePlugin<Configuration> implements ProgramLoadListener{ + + SimplePrograms frPrograms; + + /** + * Start the gadget. + */ + @Override + protected void start() throws Throwable + { + configuration().setTHour(configuration().getTHour()); + + if(configuration().getGiveAfternoon() || configuration().getGiveEvening() || + configuration().getGiveMorning() || configuration().getGiveNowPlaying()) + { + SimplePrograms.addProgramLoadListener(this); + frPrograms = new SimplePrograms(SimplePrograms.BEFR, this.configuration().getChannel()); + } + else + { + throwMessage("Please re-configure your gadget to get a TV program list."); + PluginProgramTV.quitGadget(); + } + } + + + /** + * Handle load errors. + */ + @Override + public void loadError(String url) + { + throwMessage("Error while loading the TV program"); + PluginProgramTV.quitGadget(); + } + + + /** + * Handle program loaded. + */ + @Override + public void loaded(Vector<Program> completeProgram) + { + try + { + PluginProgramTV.giveProgram(this.configuration(), completeProgram, this); + } + catch(Exception error) + { + ; + } + } + + + /** + * Simple main tests. + * @param args + */ + public void main(String[] args, Configuration config) + { + new PluginBeFr().boot(args, config); + } + + + @Override + protected void onPluginEvent(String arg0, String[] arg1) throws Throwable + { + ; + } + + + @Override + protected void onPluginStop() throws Throwable + { + ; + } + +} Added: software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/plugin/PluginEs.java =================================================================== --- software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/plugin/PluginEs.java (rev 0) +++ software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/plugin/PluginEs.java 2009-06-26 10:15:32 UTC (rev 4907) @@ -0,0 +1,109 @@ +/* This file is part of "tuxdroid programs tv". + * Copyright 2009, kysoh + * Author : Conan Jerome + * eMail : jerome.conan AT kysoh.com + * + * "tuxdroid programs tv" is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * "tuxdroid programs tv" is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with "tuxdroid programs tv"; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +package com.kysoh.tvPrograms.plugin; + +import java.util.Vector; + +import com.kysoh.tuxdroid.plugin.framework.plugin.SimplePlugin; +import com.kysoh.tvPrograms.Program; +import com.kysoh.tvPrograms.ProgramLoadListener; +import com.kysoh.tvPrograms.programs.SimplePrograms; + +public class PluginEs extends SimplePlugin<Configuration> implements ProgramLoadListener{ + + SimplePrograms spPrograms; + + /** + * Gadget entry point. + */ + @Override + protected void start() throws Throwable + { + configuration().setTHour(configuration().getTHour()); + + if(configuration().getGiveAfternoon() || configuration().getGiveEvening() || + configuration().getGiveMorning() || configuration().getGiveNowPlaying()) + { + SimplePrograms.addProgramLoadListener(this); + spPrograms = new SimplePrograms(SimplePrograms.SP, this.configuration().getChannel()); + } + else + { + throwMessage("Please re-configure your gadget to get a TV program list."); + PluginProgramTV.quitGadget(); + } + } + + + /** + * Handle programs load errors. + */ + @Override + public void loadError(String url) + { + throwMessage("Error while loading the TV program"); + PluginProgramTV.quitGadget(); + } + + + /** + * Handle program loaded event. + */ + @Override + public void loaded(Vector<Program> completeProgram) + { + try + { + PluginProgramTV.giveProgram(this.configuration(), completeProgram, this); + } + catch(Exception errors) + { + this.loadError(null); + } + } + + + /** + * Main point entry. + * @param args + */ + public void main(String[] args, Configuration config) + { + new PluginEs().boot(args, config); + } + + + @Override + protected void onPluginEvent(String arg0, String[] arg1) throws Throwable + { + ; + } + + + @Override + protected void onPluginStop() throws Throwable + { + ; + } + + +} Added: software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/plugin/PluginFr.java =================================================================== --- software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/plugin/PluginFr.java (rev 0) +++ software_suite_v3/software/plugin/plugin-programsTv/trunk/plugin-programsTv/src/com/kysoh/tvPrograms/plugin/PluginFr.java 2009-06-26 10:15:32 UTC (rev 4907) @@ -0,0 +1,107 @@ +/* This file is part of "tuxdroid programs tv". + * Copyright 2009, kysoh + * Author : Conan Jerome + * eMail : jerome.conan AT kysoh.com + * + * "tuxdroid programs tv" is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * "tuxdroid programs tv" is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License alo... [truncated message content] |