2020-01-24 16:23:31 +01:00
|
|
|
package com.darkweb.genesissearchengine.appManager;
|
|
|
|
|
|
|
|
import com.darkweb.genesissearchengine.appManager.bookmarkManager.bookmarkController;
|
|
|
|
import com.darkweb.genesissearchengine.appManager.historyManager.historyController;
|
|
|
|
import com.darkweb.genesissearchengine.appManager.homeManager.homeController;
|
2020-11-11 13:11:13 +01:00
|
|
|
import com.darkweb.genesissearchengine.appManager.orbotLogManager.orbotLogController;
|
|
|
|
import com.darkweb.genesissearchengine.appManager.settingManager.settingHomePage.settingController;
|
2020-01-24 16:23:31 +01:00
|
|
|
import com.darkweb.genesissearchengine.appManager.tabManager.tabController;
|
|
|
|
|
|
|
|
public class activityContextManager
|
|
|
|
{
|
|
|
|
/*Private Variables*/
|
|
|
|
|
|
|
|
private static final activityContextManager ourInstance = new activityContextManager();
|
|
|
|
public static activityContextManager getInstance()
|
|
|
|
{
|
|
|
|
return ourInstance;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*Private Contexts*/
|
2020-11-11 13:11:13 +01:00
|
|
|
private historyController pHistoryController;
|
|
|
|
private bookmarkController pBookmarkController;
|
|
|
|
private homeController pHomeController;
|
|
|
|
private tabController pTabController;
|
|
|
|
private android.app.Activity pCurrentActivity = null;
|
|
|
|
private settingController pSettingController;
|
|
|
|
private orbotLogController pOrbotLogController;
|
2020-01-24 16:23:31 +01:00
|
|
|
|
|
|
|
/*Initialization*/
|
|
|
|
|
|
|
|
private activityContextManager()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/*List ContextGetterSetters*/
|
|
|
|
public historyController getHistoryController(){
|
2020-11-11 13:11:13 +01:00
|
|
|
return pHistoryController;
|
2020-01-24 16:23:31 +01:00
|
|
|
}
|
|
|
|
public void setHistoryController(historyController history_controller){
|
2020-11-11 13:11:13 +01:00
|
|
|
this.pHistoryController = history_controller;
|
2020-01-24 16:23:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public bookmarkController getBookmarkController(){
|
2020-11-11 13:11:13 +01:00
|
|
|
return pBookmarkController;
|
2020-01-24 16:23:31 +01:00
|
|
|
}
|
|
|
|
public void setBookmarkController(bookmarkController bookmark_controller){
|
2020-11-11 13:11:13 +01:00
|
|
|
this.pBookmarkController = bookmark_controller;
|
2020-01-24 16:23:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public homeController getHomeController(){
|
2020-11-11 13:11:13 +01:00
|
|
|
return pHomeController;
|
2020-01-24 16:23:31 +01:00
|
|
|
}
|
|
|
|
public void setHomeController(homeController home_controller){
|
2020-11-11 13:11:13 +01:00
|
|
|
this.pHomeController = home_controller;
|
2020-01-24 16:23:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public tabController getTabController(){
|
2020-11-11 13:11:13 +01:00
|
|
|
return pTabController;
|
2020-01-24 16:23:31 +01:00
|
|
|
}
|
|
|
|
public void setTabController(tabController tab_controller){
|
2020-11-11 13:11:13 +01:00
|
|
|
this.pTabController = tab_controller;
|
2020-01-24 16:23:31 +01:00
|
|
|
}
|
|
|
|
|
2020-11-11 13:11:13 +01:00
|
|
|
public orbotLogController getOrbotLogController(){
|
|
|
|
return pOrbotLogController;
|
|
|
|
}
|
|
|
|
public void setOrbotLogController(orbotLogController pOrbotLogController){
|
|
|
|
this.pOrbotLogController = pOrbotLogController;
|
|
|
|
}
|
|
|
|
|
|
|
|
public settingController getSettingController(){
|
|
|
|
return pSettingController;
|
|
|
|
}
|
|
|
|
public void setSettingController(settingController pSettingController){
|
|
|
|
this.pSettingController = pSettingController;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setCurrentActivity(android.app.Activity pCurrentActivity){
|
|
|
|
this.pCurrentActivity = pCurrentActivity;
|
2020-01-24 16:23:31 +01:00
|
|
|
}
|
|
|
|
public android.app.Activity setCurrentActivity(){
|
2020-11-11 13:11:13 +01:00
|
|
|
return pCurrentActivity;
|
2020-01-24 16:23:31 +01:00
|
|
|
}
|
|
|
|
}
|