com.vodafone360.people.engine.activities
Class TimelineEventWatcher
java.lang.Object
com.vodafone360.people.engine.activities.TimelineEventWatcher
public class TimelineEventWatcher
- extends java.lang.Object
Allow ActivitiesEngine to 'watch' for changes in the Native call and message
logs allowing re-sync of events if required.
Nested Class Summary |
private class |
TimelineEventWatcher.TimelineContentObserver
ContentObserver derived class that allows ActivitiesEngine to receive
notifications of changes in call and message logs - thus prompting a
sync. of these events. |
Method Summary |
(package private) void |
startWatching()
Register ContentObservers to listen for Call, SMS, MMS events. |
(package private) void |
stopWatching()
Un-register ContentObservers. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mEngine
private ActivitiesEngine mEngine
mCr
private ContentResolver mCr
mCallLogObserver
private TimelineEventWatcher.TimelineContentObserver mCallLogObserver
mSmsObserver
private TimelineEventWatcher.TimelineContentObserver mSmsObserver
mMmsObserver
private TimelineEventWatcher.TimelineContentObserver mMmsObserver
TimelineEventWatcher
TimelineEventWatcher(Context context,
ActivitiesEngine engine)
- Constructor. Creates observers to listen for changes in Native call and
message logs.
- Parameters:
context
- Context - use RemoteService's Context.engine
- Handle to ActivitiesEngine.
startWatching
void startWatching()
- Register ContentObservers to listen for Call, SMS, MMS events.
stopWatching
void stopWatching()
- Un-register ContentObservers.
JavaDoc