63 lines
2.2 KiB
XML
63 lines
2.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
|
|
BigBlueButton open source conferencing system - http://www.bigbluebutton.org/
|
|
|
|
Copyright (c) 2012 BigBlueButton Inc. and by respective authors (see below).
|
|
|
|
This program is free software; you can redistribute it and/or modify it under the
|
|
terms of the GNU Lesser General Public License as published by the Free Software
|
|
Foundation; either version 3.0 of the License, or (at your option) any later
|
|
version.
|
|
|
|
BigBlueButton is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
|
PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Lesser General Public License along
|
|
with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
|
|
|
-->
|
|
<mx:Module xmlns:mx="http://www.adobe.com/2006/mxml"
|
|
xmlns:maps="org.bigbluebutton.modules.layout.maps.*"
|
|
implements="org.bigbluebutton.common.IBigBlueButtonModule">
|
|
|
|
<maps:LayoutEventMap id="layoutEventMap" />
|
|
|
|
<mx:Script>
|
|
<![CDATA[
|
|
import com.asfusion.mate.events.Dispatcher;
|
|
|
|
import org.as3commons.logging.api.ILogger;
|
|
import org.as3commons.logging.api.getClassLogger;
|
|
import org.bigbluebutton.common.IBigBlueButtonModule;
|
|
import org.bigbluebutton.modules.layout.events.LayoutEvent;
|
|
import org.bigbluebutton.modules.layout.events.StartLayoutModuleEvent;
|
|
|
|
private static const LOGGER:ILogger = getClassLogger(LayoutModule);
|
|
|
|
private var _moduleName:String = "Layout Module";
|
|
private var _globalDispatcher:Dispatcher = new Dispatcher();
|
|
|
|
private function onCreationComplete():void {
|
|
LOGGER.debug("{0} initialized", [_moduleName]);
|
|
}
|
|
|
|
public function get moduleName():String {
|
|
return _moduleName;
|
|
}
|
|
|
|
public function start(attributes:Object):void {
|
|
var event:StartLayoutModuleEvent = new StartLayoutModuleEvent();
|
|
event.attributes = attributes;
|
|
_globalDispatcher.dispatchEvent(event);
|
|
}
|
|
|
|
public function stop():void {
|
|
var event:LayoutEvent = new LayoutEvent(LayoutEvent.STOP_LAYOUT_MODULE_EVENT);
|
|
_globalDispatcher.dispatchEvent(event);
|
|
}
|
|
|
|
]]>
|
|
</mx:Script>
|
|
</mx:Module> |