de.unikassel.android.sdcframework.util
Class TimeErrorEvent

Package class diagram package TimeErrorEvent
java.lang.Object
  extended by de.unikassel.android.sdcframework.util.AbstractTimeProviderEvent
      extended by de.unikassel.android.sdcframework.util.TimeErrorEvent
All Implemented Interfaces:
BroadcastableEvent, ObservableEvent, TimeProviderEvent

public class TimeErrorEvent
extends AbstractTimeProviderEvent

The time error event is used to signal time provider errors.


Field Summary
static String ACTION
          Out custom intent action.
private  EventErrorTypes error
          The error
protected static String ERROR
          The intent identifier for the error field.
 
Fields inherited from class de.unikassel.android.sdcframework.util.AbstractTimeProviderEvent
ts, TS
 
Constructor Summary
TimeErrorEvent(Intent intent)
          Constructor
TimeErrorEvent(long ts, EventErrorTypes error)
          Constructor
 
Method Summary
protected  String getAction()
          Getter for the intent action.
 EventErrorTypes getError()
          Getter for the error
 boolean isSynced()
          Getter for the synchronization state.
protected  void putAdditionalExtras(Intent intent)
          Method to add extra information for intent creation.
 
Methods inherited from class de.unikassel.android.sdcframework.util.AbstractTimeProviderEvent
getIntent, getTimeStamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTION

public static final String ACTION
Out custom intent action.

See Also:
Constant Field Values

ERROR

protected static final String ERROR
The intent identifier for the error field.

See Also:
Constant Field Values

error

private final EventErrorTypes error
The error

Constructor Detail

TimeErrorEvent

public TimeErrorEvent(long ts,
                      EventErrorTypes error)
Constructor

Parameters:
error - the error
ts - the time stamp.

TimeErrorEvent

public TimeErrorEvent(Intent intent)
Constructor

Parameters:
intent - the intent to create from
Method Detail

getError

public EventErrorTypes getError()
Getter for the error

Returns:
the error

isSynced

public boolean isSynced()
Description copied from interface: TimeProviderEvent
Getter for the synchronization state.

Returns:
true if synchronized by NTP provider

putAdditionalExtras

protected void putAdditionalExtras(Intent intent)
Description copied from class: AbstractTimeProviderEvent
Method to add extra information for intent creation.

Specified by:
putAdditionalExtras in class AbstractTimeProviderEvent
Parameters:
intent - the intent to add extras to

getAction

protected String getAction()
Description copied from class: AbstractTimeProviderEvent
Getter for the intent action.

Specified by:
getAction in class AbstractTimeProviderEvent
Returns:
the intent action.