|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Application com.vodafone360.people.MainApplication
public class MainApplication
Application class used to create the connection to the service and cache state between Activities.
Field Summary | |
---|---|
private ApplicationCache |
mApplicationCache
|
private DatabaseHelper |
mDatabaseHelper
|
private IPeopleService |
mServiceInterface
|
private Handler |
mServiceLoadedHandler
|
Constructor Summary | |
---|---|
MainApplication()
|
Method Summary | |
---|---|
ApplicationCache |
getCache()
Return handle to ApplicationCache. |
DatabaseHelper |
getDatabase()
Return handle to DatabaseHelper, currently provides main point of access to People client's database tables. |
PersistSettings.InternetAvail |
getInternetAvail()
Retrieve Internet availability setting from People database. |
IPeopleService |
getServiceInterface()
Return current IPeopleService interface. |
void |
onCreate()
Called when the Application is created. |
private void |
onServiceLoaded()
|
void |
onTerminate()
Called when the Application is exited. |
void |
registerServiceLoadHandler(Handler serviceLoadedHandler)
Register a Handler to receive notification when the People service has loaded. |
void |
removeUserData()
Remove all user data from People client, this includes all account information (downloaded contacts, login credentials etc.) and all cached settings. |
ServiceStatus |
setInternetAvail(PersistSettings.InternetAvail internetAvail)
Set Internet availability - always makes Internet available, only available in home network, allow manual connection only. |
void |
setServiceInterface(IPeopleService serviceInterface)
Set IPeopleService interface - this is the interface by which we interface to People service. |
void |
unRegisterServiceLoadHandler()
Un-register People service loading handler. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private IPeopleService mServiceInterface
private Handler mServiceLoadedHandler
private DatabaseHelper mDatabaseHelper
private final ApplicationCache mApplicationCache
Constructor Detail |
---|
public MainApplication()
Method Detail |
---|
public void onCreate()
public void onTerminate()
public DatabaseHelper getDatabase()
public ApplicationCache getCache()
public void removeUserData()
public void registerServiceLoadHandler(Handler serviceLoadedHandler)
serviceLoadedHandler
- Handler that receives notification of service
being loaded.public void unRegisterServiceLoadHandler()
private void onServiceLoaded()
public void setServiceInterface(IPeopleService serviceInterface)
serviceInterface
- IPeopleService handle.public IPeopleService getServiceInterface()
public ServiceStatus setInternetAvail(PersistSettings.InternetAvail internetAvail)
internetAvail
- Internet availability setting.
public PersistSettings.InternetAvail getInternetAvail()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JavaDoc