XbmcConfig.java
Go to the documentation of this file.
00001 
00009 package org.rosmultimedia.player.xbmc;
00010 
00011 import org.ros.node.ConnectedNode;
00012 import org.rosbuilding.common.NodeConfig;
00013 
00019 public class XbmcConfig extends NodeConfig {
00020 
00021     private String host;
00022     private int    port;
00023     private String user;
00024     private String password;
00025 
00026     public XbmcConfig(ConnectedNode connectedNode) {
00027         super(connectedNode, "home/salon/xbmc", "fixed_frame", 1);
00028     }
00029 
00030     @Override
00031     protected void loadParameters() {
00032         super.loadParameters();
00033 
00034         this.host = this.connectedNode.getParameterTree()
00035                 .getString("~ip", "192.168.0.38");
00036         this.port = this.connectedNode.getParameterTree()
00037                 .getInteger("~port", 8080);
00038         this.user = this.connectedNode.getParameterTree()
00039                 .getString("~user", "xbmc");
00040         this.password = this.connectedNode.getParameterTree()
00041                 .getString("~password", "xbmc");
00042 
00043 //        this.logI(
00044 //                String.format("rate : %s\nprefix : %s\nfixedFrame : %s\nip : %s\nmac : %s\nport : %s\nuser : %s\npassword : %s",
00045 //                        this.rate,
00046 //                        this.prefix,
00047 //                        this.fixedFrame,
00048 //                        this.host,
00049 //                        this.mac,
00050 //                        this.port,
00051 //                        this.user,
00052 //                        this.password));
00053     }
00054 
00055     public String getHost() {
00056         return this.host;
00057     }
00058 
00059     public int getPort() {
00060         return this.port;
00061     }
00062 
00063     public String getUser() {
00064         return this.user;
00065     }
00066 
00067     public String getPassword() {
00068         return this.password;
00069     }
00070 }


smarthome_media_kodi_driver
Author(s): Mickael Gaillard , Erwan Le Huitouze
autogenerated on Thu Jun 6 2019 21:03:49