public class TomsRemoteControllerActivity extends Activity implements tkj.android.homecontrol.mythmote.MythCom.StatusChangedEventListener
Modifier and Type | Field and Description |
---|---|
private static String |
activatedMythCommand_
Helper Class var for passing the MythTV related message associated with the button that just gor pressed.
|
private static int |
activatedOnkyoCommand_
Helper Class var for passing the Onkyo eISCP related message associated with the button that just gor pressed.
|
private static String |
activatedShawDirectCommand_
Helper Class var for passing the Shawdirect related message associated with the button that just gor pressed.
|
private static String |
CLASSNAME
A holder This classes name (used when logging).
|
static boolean |
debugOut_
flags the control of debugging output messages.
|
private static String |
DEFAULT_LIRC_IP
DEFAULT IP address for the Lirc server to usefor Shaw Direct commands.
|
private static String |
DEFAULT_MYTHTV_IP
DEFAULT IP address for the MythTV frontend.
|
private static String |
DEFAULT_ONKYO_IP
DEFAULT IP address for the Onkyo AVR.
|
private Eiscp |
eiscp_
Helper class instance for communicating to the oNKYO.
|
private IscpCommands |
iscpCommands_
Helper class instance that wraps all the available eISCP commands.
|
static boolean |
isInit_
class flag that gets set when the onCreate method has been called and the buttons are up on the screen.
|
private ISYRestRequester |
isyRest
Helper class instance for communicating REST requests to the ISY.
|
private int |
lircPort_
IP port for the ShawDirect IR blaster Lirc server.
|
private String |
lircServerIP_
IP address for the ShawDirect IR blaster Lirc server.
|
static String |
LOG_TAG
The string that gets tagged at the front of all debugging output messages.
|
private tkj.android.homecontrol.mythmote.MythCom |
myth_ |
private String |
mythAddress_
IP address for the MythTV server.
|
private tkj.android.homecontrol.mythmote.FrontendLocation |
mythFrontend_ |
private String |
mythName_ |
private int[] |
mythNumPadresourceName |
private boolean |
mythPadLayout_
Flag marking if the current numPad is laied out for mythTV (or the ShawDirect when false) control.
|
private int[] |
numPadIdsToswap |
private String |
onkyoAddress_
Class Instance IP address for the Onkyo AVR.
|
private int[] |
sdNumPadResourceName |
private TCPSocketClient |
shawDirectLircClient_
Helper class instance for communicating ShawDirect remote control commands blasted from the Lirc server this instance is connected to.
|
Constructor and Description |
---|
TomsRemoteControllerActivity() |
Modifier and Type | Method and Description |
---|---|
void |
buttonPressed11(View view)
All buttonPressedXY methods are directly called by the related button X is row Y is column.
|
void |
buttonPressed12(View view) |
void |
buttonPressed13(View view) |
void |
buttonPressed14(View view) |
void |
buttonPressed15(View view) |
void |
buttonPressed21(View view) |
void |
buttonPressed22(View view) |
void |
buttonPressed23(View view) |
void |
buttonPressed24(View view) |
void |
buttonPressed25(View view) |
void |
buttonPressed31(View view) |
void |
buttonPressed32(View view) |
void |
buttonPressed33(View view) |
void |
buttonPressed34(View view) |
void |
buttonPressed35(View view) |
void |
buttonPressed41(View view) |
void |
buttonPressed42(View view) |
void |
buttonPressed43(View view) |
void |
buttonPressed44(View view) |
void |
buttonPressed45(View view) |
void |
buttonPressed51(View view) |
void |
buttonPressed52(View view) |
void |
buttonPressed53(View view) |
void |
buttonPressed54(View view) |
void |
buttonPressed55(View view) |
void |
buttonPressed61(View view) |
void |
buttonPressed62(View view) |
void |
buttonPressed63(View view) |
void |
buttonPressed64(View view) |
void |
buttonPressed65(View view) |
void |
buttonPressed71(View view) |
void |
buttonPressed72(View view) |
void |
buttonPressed73(View view) |
void |
buttonPressed74(View view) |
void |
buttonPressed75(View view) |
boolean |
dispatchKeyEvent(KeyEvent event) |
private void |
logExit(String m)
Helper method that logs a methodExit log message.
|
private void |
logStart(String m)
Helper method that logs a methodstart log message.
|
void |
onCreate(Bundle savedInstanceState)
Called when the activity is first created.
|
void |
onDestroy()
Called when the activity is being destroyed
|
void |
onPause()
Called when the activity is being paused.
|
protected void |
onRestart()
Called soon after reStarting.
|
protected void |
onResume()
Called when the activity is started or resumed from pause.
|
protected void |
onStart()
Called soon after created.
|
private String |
queryEiscpCommand()
Called to send an eISCP message when the user selects an Onkyo command button.
|
private void |
sendEiscpCommand()
Called when the user selects an Onkyo command button.
|
private void |
sendMythTVCommand(View view)
Called o send an command to the MythTV server when the user selects an MythTV command button.
|
private void |
sendShawDirectCommand(View view)
Called to send an Lirc message to the Shawdirect Lirc server when the user selects an ShawDirect command button.
|
private void |
setNumPadToMyth()
switches the numPad buttons to the MythTV number pad using the class vars numPadIdsToswap and mythNumPadresourceName.
|
private void |
setNumPadToShawDirect()
switches the numPad buttons to the ShawDirect number pad using the class vars numPadIdsToswap and sdNumPadresourceName.
|
void |
StatusChanged(String StatusMsg,
int statusCode)
Called when MythCom status changes
|
private void |
toggleNumPad()
Toggles the numPad between the myth layout and the ShawDirect Layout based on the mythPadLayout_ var.
|
public static final String LOG_TAG
public static boolean debugOut_
public static boolean isInit_
private static int activatedOnkyoCommand_
private static String activatedMythCommand_
private static String activatedShawDirectCommand_
private static final String DEFAULT_ONKYO_IP
private static final String DEFAULT_MYTHTV_IP
private static final String DEFAULT_LIRC_IP
private String onkyoAddress_
private IscpCommands iscpCommands_
private tkj.android.homecontrol.mythmote.MythCom myth_
private tkj.android.homecontrol.mythmote.FrontendLocation mythFrontend_
private String mythAddress_
private String lircServerIP_
private int lircPort_
private TCPSocketClient shawDirectLircClient_
private ISYRestRequester isyRest
private boolean mythPadLayout_
private int[] numPadIdsToswap
private int[] sdNumPadResourceName
private int[] mythNumPadresourceName
public TomsRemoteControllerActivity()
public void onCreate(Bundle savedInstanceState)
public boolean dispatchKeyEvent(KeyEvent event)
public void buttonPressed11(View view)
public void buttonPressed12(View view)
public void buttonPressed13(View view)
public void buttonPressed14(View view)
public void buttonPressed15(View view)
public void buttonPressed21(View view)
public void buttonPressed22(View view)
public void buttonPressed23(View view)
public void buttonPressed24(View view)
public void buttonPressed25(View view)
public void buttonPressed31(View view)
public void buttonPressed32(View view)
public void buttonPressed33(View view)
public void buttonPressed34(View view)
public void buttonPressed35(View view)
public void buttonPressed41(View view)
public void buttonPressed42(View view)
public void buttonPressed43(View view)
public void buttonPressed44(View view)
public void buttonPressed45(View view)
public void buttonPressed51(View view)
public void buttonPressed52(View view)
public void buttonPressed53(View view)
public void buttonPressed54(View view)
public void buttonPressed55(View view)
public void buttonPressed61(View view)
public void buttonPressed62(View view)
public void buttonPressed63(View view)
public void buttonPressed64(View view)
public void buttonPressed65(View view)
public void buttonPressed71(View view)
public void buttonPressed72(View view)
public void buttonPressed73(View view)
public void buttonPressed74(View view)
public void buttonPressed75(View view)
private void setNumPadToShawDirect()
private void setNumPadToMyth()
private void toggleNumPad()
private void sendEiscpCommand()
private String queryEiscpCommand()
private void sendShawDirectCommand(View view)
private void sendMythTVCommand(View view)
protected void onStart()
protected void onRestart()
public void onPause()
protected void onResume()
public void onDestroy()
public void StatusChanged(String StatusMsg, int statusCode)
StatusChanged
in interface tkj.android.homecontrol.mythmote.MythCom.StatusChangedEventListener
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses