org.hdtourist.model.services
Class HdTouristService

java.lang.Object
  extended by org.hdtourist.model.services.HdTouristService

public class HdTouristService
extends java.lang.Object

Servicio que proporciona funciones relacionadas con los ficheros HDT.


Field Summary
private static android.content.Context contexto
          El contexto.
private static HdTouristService INSTANCE
          The instance.
private  java.util.List<java.lang.Runnable> listaProcesos
          The lista procesos.
 
Constructor Summary
private HdTouristService()
          Instantiates a new hd tourist service.
 
Method Summary
 void addProceso(java.lang.Runnable proceso)
          Aņade el proceso.
private static void createInstance(android.content.Context contexto)
          Crea el instance.
 android.content.Context getContexto()
          Gets the contexto.
static HdTouristService getInstance()
          Gets the single instance of HdTouristService.
static HdTouristService getInstance(android.app.Activity activity)
          Gets the single instance of HdTouristService.
 boolean isNetworkAvailable()
          Checks if is network available.
 void removeProceso(java.lang.Runnable proceso)
          Elimina el proceso.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contexto

private static android.content.Context contexto
El contexto.


INSTANCE

private static HdTouristService INSTANCE
The instance.


listaProcesos

private java.util.List<java.lang.Runnable> listaProcesos
The lista procesos.

Constructor Detail

HdTouristService

private HdTouristService()
Instantiates a new hd tourist service.

Method Detail

getInstance

public static HdTouristService getInstance()
Gets the single instance of HdTouristService.

Returns:
single instance of HdTouristService

getInstance

public static HdTouristService getInstance(android.app.Activity activity)
Gets the single instance of HdTouristService.

Parameters:
activity - the activity
Returns:
single instance of HdTouristService

createInstance

private static void createInstance(android.content.Context contexto)
Crea el instance.

Parameters:
contexto - the contexto

addProceso

public void addProceso(java.lang.Runnable proceso)
Aņade el proceso.

Parameters:
proceso - the proceso

getContexto

public android.content.Context getContexto()
Gets the contexto.

Returns:
the contexto

isNetworkAvailable

public boolean isNetworkAvailable()
Checks if is network available.

Returns:
true, if is network available

removeProceso

public void removeProceso(java.lang.Runnable proceso)
Elimina el proceso.

Parameters:
proceso - the proceso