103 lines
3.5 KiB
XML
Executable File
103 lines
3.5 KiB
XML
Executable File
<!--
|
|
|
|
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="library://ns.adobe.com/flex/mx"
|
|
xmlns:fx="http://ns.adobe.com/mxml/2009"
|
|
layout="absolute"
|
|
implements="org.bigbluebutton.common.IBigBlueButtonModule"
|
|
creationComplete="onCreationComplete()"
|
|
xmlns:maps="org.bigbluebutton.modules.sharednotes.maps.*"
|
|
xmlns:mate="http://mate.asfusion.com/" >
|
|
|
|
<fx:Declarations>
|
|
<maps:SharedNotesEventMap id="sharedNotesEventMap"/>
|
|
</fx:Declarations>
|
|
|
|
<fx:Script>
|
|
<![CDATA[
|
|
import com.asfusion.mate.events.Dispatcher;
|
|
|
|
import org.as3commons.logging.api.ILogger;
|
|
import org.as3commons.logging.api.getClassLogger;
|
|
import org.bigbluebutton.common.IBbbModuleWindow;
|
|
import org.bigbluebutton.common.events.CloseWindowEvent;
|
|
import org.bigbluebutton.common.events.OpenWindowEvent;
|
|
import org.bigbluebutton.common.events.ToolbarButtonEvent;
|
|
import org.bigbluebutton.modules.sharednotes.events.StartSharedNotesModuleEvent;
|
|
import org.bigbluebutton.modules.sharednotes.events.StopSharedNotesModuleEvent;
|
|
|
|
private static const LOGGER:ILogger = getClassLogger(SharedNotesModule);
|
|
|
|
private var _moduleName:String = "Notes Module";
|
|
private var _attributes:Object;
|
|
|
|
private var _globalDispatcher:Dispatcher = new Dispatcher();
|
|
|
|
private function onCreationComplete():void {
|
|
LOGGER.debug("NotesModule Initialized");
|
|
_globalDispatcher = new Dispatcher();
|
|
}
|
|
|
|
public function get moduleName():String {
|
|
return _moduleName;
|
|
}
|
|
|
|
public function get uri():String {
|
|
if (_attributes.mode == "PLAYBACK") {
|
|
return _attributes.uri + "/" + _attributes.playbackRoom;
|
|
}
|
|
|
|
return _attributes.uri + "/" + _attributes.room;
|
|
}
|
|
|
|
public function get username():String {
|
|
return _attributes.username;
|
|
}
|
|
|
|
public function get mode():String {
|
|
if (_attributes.mode == null) {
|
|
_attributes.mode = "LIVE"
|
|
LOGGER.debug('Setting NotesModule mode: ' + _attributes.mode);
|
|
}
|
|
LOGGER.debug('NotesModule mode: ' + _attributes.mode);
|
|
return _attributes.mode;
|
|
}
|
|
|
|
public function get userid():Number {
|
|
return _attributes.userid;
|
|
}
|
|
|
|
public function get role():String {
|
|
return _attributes.userrole as String;
|
|
}
|
|
|
|
public function start(attributes:Object):void {
|
|
var event:StartSharedNotesModuleEvent = new StartSharedNotesModuleEvent();
|
|
event.attributes = attributes;
|
|
_globalDispatcher.dispatchEvent(event);
|
|
}
|
|
|
|
public function stop():void {
|
|
var event:StopSharedNotesModuleEvent = new StopSharedNotesModuleEvent(StopSharedNotesModuleEvent.STOP_SHAREDNOTES_MODULE_EVENT);
|
|
_globalDispatcher.dispatchEvent(event);
|
|
}
|
|
]]>
|
|
</fx:Script>
|
|
</mx:Module>
|