Cleanup of unused files in bbb-client Main app
This commit is contained in:
parent
c21370ad95
commit
06b3f3db63
@ -1,15 +0,0 @@
|
||||
package org.bigbluebutton.main.managers
|
||||
{
|
||||
import org.bigbluebutton.main.model.User;
|
||||
|
||||
public class ApplicationManager
|
||||
{
|
||||
public var participant:User;
|
||||
|
||||
public function ApplicationManager()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
@ -1,27 +0,0 @@
|
||||
package org.bigbluebutton.main.managers
|
||||
{
|
||||
import flash.net.SharedObject;
|
||||
|
||||
public class ConnectionManager
|
||||
{
|
||||
public function ConnectionManager()
|
||||
{
|
||||
}
|
||||
|
||||
public function connect(room:String, name:String, role:String, authToken:String):void {
|
||||
|
||||
}
|
||||
|
||||
public function getSharedObject(name:String):SharedObject {
|
||||
return null;
|
||||
}
|
||||
|
||||
public function connectSharedObject(so:SharedObject):void {
|
||||
|
||||
}
|
||||
|
||||
public function call(command:String, responder:Responder, ... arguments):void {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
@ -1,109 +0,0 @@
|
||||
package org.bigbluebutton.main.managers
|
||||
{
|
||||
import flash.events.Event;
|
||||
import flash.events.EventDispatcher;
|
||||
import flash.events.IEventDispatcher;
|
||||
import flash.events.ProgressEvent;
|
||||
|
||||
import mx.modules.ModuleLoader;
|
||||
|
||||
import org.bigbluebutton.common.IBigBlueButtonModule;
|
||||
import org.bigbluebutton.main.events.ModuleEvent;
|
||||
import org.bigbluebutton.common.LogUtil;
|
||||
|
||||
public class LoadModuleManager //extends EventDispatcher
|
||||
{
|
||||
private var _loader:ModuleLoader;
|
||||
private var _moduleDescriptor:ModuleDescriptor;
|
||||
|
||||
/** This property is injected by the application. */
|
||||
public var dispatcher : IEventDispatcher;
|
||||
|
||||
public function LoadModuleManager()
|
||||
{
|
||||
_loader = new ModuleLoader();
|
||||
}
|
||||
|
||||
public function load(module:ModuleDescriptor):void {
|
||||
_moduleDescriptor = module;
|
||||
// loader.addEventListener("urlChanged", resultHandler);
|
||||
// loader.addEventListener("loading", resultHandler);
|
||||
_loader.addEventListener("progress", onLoadProgress);
|
||||
// loader.addEventListener("setup", resultHandler);
|
||||
_loader.addEventListener("ready", onReady);
|
||||
// loader.addEventListener("error", resultHandler);
|
||||
// loader.addEventListener("unload", resultHandler);
|
||||
_loader.url = _moduleDescriptor.getAttribute('url') as String;
|
||||
_loader.loadModule();
|
||||
}
|
||||
|
||||
public function unload():void {
|
||||
_loader.url = "";
|
||||
}
|
||||
|
||||
private function onReady(event:Event):void {
|
||||
LogUtil.debug("Module onReady Event");
|
||||
var modLoader:ModuleLoader = event.target as ModuleLoader;
|
||||
var loadedModule:IBigBlueButtonModule = modLoader.child as IBigBlueButtonModule;
|
||||
var moduleName:String = String(_moduleDescriptor.getAttribute('name'));
|
||||
|
||||
if (loadedModule != null) {
|
||||
// _moduleDescriptor.module = loadedModule;
|
||||
LogUtil.debug("Module " + moduleName + " has been loaded");
|
||||
// _moduleDescriptor.loaded = true;
|
||||
|
||||
var loadEvent:ModuleEvent = new ModuleEvent(ModuleEvent.MODULE_LOADED_EVENT);
|
||||
loadEvent.moduleName = moduleName;
|
||||
dispatcher.dispatchEvent(loadEvent);
|
||||
} else {
|
||||
LogUtil.error("Failed to load module: " + moduleName );
|
||||
|
||||
var loadErrorEvent:ModuleEvent = new ModuleEvent(ModuleEvent.MODULE_LOAD_ERROR_EVENT);
|
||||
loadErrorEvent.moduleName = moduleName;
|
||||
loadErrorEvent.message = "Failed to load " + moduleName;
|
||||
dispatcher.dispatchEvent(loadErrorEvent);
|
||||
}
|
||||
}
|
||||
|
||||
private function onLoadProgress(e:ProgressEvent):void {
|
||||
var loadProgressEvent:ModuleEvent = new ModuleEvent(ModuleEvent.MODULE_LOAD_PROGRESS_EVENT);
|
||||
loadProgressEvent.moduleName = String(_moduleDescriptor.getAttribute('name'));
|
||||
loadProgressEvent.percentLoaded = Math.round((e.bytesLoaded/e.bytesTotal) * 100);
|
||||
dispatcher.dispatchEvent(loadProgressEvent);
|
||||
}
|
||||
|
||||
/*
|
||||
private function onUrlChanged(event:Event):void {
|
||||
LogUtil.debug("Module onUrlChanged Event");
|
||||
callbackHandler(event);
|
||||
}
|
||||
|
||||
private function onLoading(event:Event):void {
|
||||
LogUtil.debug("Module onLoading Event");
|
||||
callbackHandler(event);
|
||||
}
|
||||
|
||||
private function onProgress(event:Event):void {
|
||||
LogUtil.debug("Module onProgress Event");
|
||||
callbackHandler(event);
|
||||
}
|
||||
|
||||
private function onSetup(event:Event):void {
|
||||
LogUtil.debug("Module onSetup Event");
|
||||
callbackHandler(event);
|
||||
}
|
||||
|
||||
|
||||
|
||||
private function onError(event:Event):void {
|
||||
LogUtil.debug("Module onError Event");
|
||||
callbackHandler(event);
|
||||
}
|
||||
|
||||
private function onUnload(event:Event):void {
|
||||
LogUtil.debug("Module onUnload Event");
|
||||
callbackHandler(event);
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
@ -32,7 +32,6 @@
|
||||
<ObjectBuilder generator="{ModulesManager}">
|
||||
<Properties dispatcher="{scope.dispatcher}"/>
|
||||
</ObjectBuilder>
|
||||
<ObjectBuilder generator="{ApplicationModel}"/>
|
||||
<ObjectBuilder generator="{ModulesProxy}" cache="global" />
|
||||
</EventHandlers>
|
||||
|
||||
@ -85,7 +84,6 @@
|
||||
</EventHandlers>
|
||||
|
||||
<EventHandlers type="{ParticipantJoinEvent.PARTICIPANT_JOINED_EVENT}">
|
||||
<MethodInvoker generator="{ApplicationModel}" method="setParticipant" arguments="{[event.participant]}"/>
|
||||
<EventAnnouncer generator="{ConnectedEvent}" type="{ConnectedEvent.CONNECTED_EVENT}">
|
||||
<Properties participant="{event.participant}"/>
|
||||
</EventAnnouncer>
|
||||
@ -124,10 +122,8 @@
|
||||
import org.bigbluebutton.main.events.ModuleLoadEvent;
|
||||
import org.bigbluebutton.main.events.ParticipantJoinEvent;
|
||||
import org.bigbluebutton.main.events.PortTestEvent;
|
||||
import org.bigbluebutton.main.managers.LoadModuleManager;
|
||||
import org.bigbluebutton.main.managers.ModulesManager;
|
||||
import org.bigbluebutton.main.managers.StatusManager;
|
||||
import org.bigbluebutton.main.model.ApplicationModel;
|
||||
import org.bigbluebutton.main.model.ModulesProxy;
|
||||
import org.bigbluebutton.main.model.PortTestProxy;
|
||||
import org.bigbluebutton.main.services.ConfigLoader;
|
||||
|
@ -1,18 +0,0 @@
|
||||
package org.bigbluebutton.main.model
|
||||
{
|
||||
import org.bigbluebutton.common.LogUtil;
|
||||
|
||||
public class ApplicationModel
|
||||
{
|
||||
private var _participant:User;
|
||||
|
||||
public function ApplicationModel()
|
||||
{
|
||||
}
|
||||
|
||||
public function setParticipant(p:User):void {
|
||||
LogUtil.debug("Setting participant");
|
||||
_participant = p;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user