forked from bigbluebutton/bigbluebutton
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- start implementing user inactivity timer
- Loading branch information
Showing
21 changed files
with
258 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...src/main/scala/org/bigbluebutton/core/apps/users/UserInactivityAuditResponseMsgHdlr.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,17 @@ | ||
package org.bigbluebutton.core.apps.users | ||
|
||
import org.bigbluebutton.common2.msgs.UserInactivityAuditResponseMsg | ||
import org.bigbluebutton.core.models.Users2x | ||
import org.bigbluebutton.core.running.MeetingActor | ||
|
||
trait UserInactivityAuditResponseMsgHdlr { | ||
this: MeetingActor => | ||
|
||
def handleUserInactivityAuditResponseMsg(msg: UserInactivityAuditResponseMsg):Unit = { | ||
for { | ||
user <- Users2x.findWithIntId(liveMeeting.users2x, msg.body.userId) | ||
} yield { | ||
Users2x.updateInactivityResponse(liveMeeting.users2x, user) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...ts/flash/air-client/src/org/bigbluebutton/air/main/commands/UserInactivityTimerCommand.as
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,21 @@ | ||
package org.bigbluebutton.air.main.commands | ||
{ | ||
import org.bigbluebutton.air.main.models.IUISession; | ||
|
||
import robotlegs.bender.bundles.mvcs.Command; | ||
|
||
public class UserInactivityTimerCommand extends Command | ||
{ | ||
[Inject] | ||
public var uiSession:IUISession | ||
|
||
public function UserInactivityTimerCommand() | ||
{ | ||
super(); | ||
} | ||
|
||
override public function execute():void { | ||
trace("RECEIVED INACTIVITY TIMER MESSAGE"); | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
.../air-client/src/org/bigbluebutton/air/main/commands/UserInactivityTimerResponseCommand.as
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,22 @@ | ||
package org.bigbluebutton.air.main.commands | ||
{ | ||
import org.bigbluebutton.air.user.services.IUsersService; | ||
|
||
import robotlegs.bender.bundles.mvcs.Command; | ||
|
||
public class UserInactivityTimerResponseCommand extends Command | ||
{ | ||
|
||
[Inject] | ||
public var userService:IUsersService; | ||
|
||
public function UserInactivityTimerResponseCommand() | ||
{ | ||
super(); | ||
} | ||
|
||
override public function execute():void { | ||
userService.activityResponse(); | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...h/air-client/src/org/bigbluebutton/air/main/commands/UserInactivityTimerResponseSignal.as
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,12 @@ | ||
package org.bigbluebutton.air.main.commands | ||
{ | ||
import org.osflash.signals.Signal; | ||
|
||
public class UserInactivityTimerResponseSignal extends Signal | ||
{ | ||
public function UserInactivityTimerResponseSignal() | ||
{ | ||
super(); | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...nts/flash/air-client/src/org/bigbluebutton/air/main/commands/UserInactivityTimerSignal.as
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,12 @@ | ||
package org.bigbluebutton.air.main.commands | ||
{ | ||
import org.osflash.signals.Signal; | ||
|
||
public class UserInactivityTimerSignal extends Signal | ||
{ | ||
public function UserInactivityTimerSignal() | ||
{ | ||
super(); | ||
} | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
clients/flash/air-client/src/org/bigbluebutton/air/main/views/UserInactivityView.as
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,41 @@ | ||
package org.bigbluebutton.air.main.views | ||
{ | ||
import spark.components.Button; | ||
import spark.components.Label; | ||
import spark.layouts.VerticalLayout; | ||
|
||
import org.bigbluebutton.air.common.views.NoTabView; | ||
|
||
public class UserInactivityView extends NoTabView | ||
{ | ||
public var okButton:Button; | ||
|
||
public function UserInactivityView() | ||
{ | ||
super(); | ||
|
||
var l:VerticalLayout = new VerticalLayout(); | ||
l.horizontalAlign = "center"; | ||
layout = l; | ||
|
||
var messageText:Label = new Label(); | ||
messageText.percentWidth = 90; | ||
messageText.text = "Inacitivty Timer"; | ||
messageText.setStyle("textAlign", "center"); | ||
messageText.styleName = "disconnectMessage"; | ||
addElement(messageText); | ||
|
||
okButton = new Button(); | ||
okButton.percentWidth = 90; | ||
okButton.label = "Ok"; | ||
addElement(okButton); | ||
} | ||
|
||
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { | ||
super.updateDisplayList(unscaledWidth, unscaledHeight); | ||
|
||
this.layout["gap"] = getStyle("gap"); | ||
this.layout["padding"] = getStyle("padding"); | ||
} | ||
} | ||
} |
Oops, something went wrong.