mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-28 11:54:57 +00:00
Merge remote-tracking branch 'origin/bugfix/ecs-535' into bugfix/ecs-541-1
This commit is contained in:
@@ -261,8 +261,8 @@ namespace PepperDash.Essentials
|
||||
/// </summary>
|
||||
protected override void EndShutdown()
|
||||
{
|
||||
RunRouteAction("roomOff");
|
||||
VideoCodec.EndAllCalls();
|
||||
RunRouteAction("roomOff");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -166,7 +166,7 @@ namespace PepperDash.Essentials
|
||||
{
|
||||
var tsw = Panel as TswFt5ButtonSystem;
|
||||
// Wire up hard keys
|
||||
tsw.Power.UserObject = new Action<bool>(b => { if (!b) avDriver.PowerButtonPressed(); });
|
||||
tsw.Power.UserObject = new Action<bool>(b => { if (!b) avDriver.EndMeetingPress(); });
|
||||
//tsw.Home.UserObject = new Action<bool>(b => { if (!b) HomePressed(); });
|
||||
tsw.Up.UserObject = new Action<bool>(avDriver.VolumeUpPress);
|
||||
tsw.Down.UserObject = new Action<bool>(avDriver.VolumeDownPress);
|
||||
|
||||
@@ -45,6 +45,10 @@ namespace PepperDash.Essentials
|
||||
/// 1005
|
||||
/// </summary>
|
||||
public const uint CallSharedSourceInfoEnable = 1005;
|
||||
/// <summary>
|
||||
/// 1006
|
||||
/// </summary>
|
||||
public const uint CallEndAllConfirmVisible = 1006;
|
||||
|
||||
|
||||
|
||||
@@ -365,7 +369,27 @@ namespace PepperDash.Essentials
|
||||
/// 3891
|
||||
/// </summary>
|
||||
public const uint VolumeDefaultPress = 3891;
|
||||
|
||||
/// <summary>
|
||||
/// 3951
|
||||
/// </summary
|
||||
|
||||
public const uint HeaderIcon1Press = 3951;
|
||||
/// <summary>
|
||||
/// 3952
|
||||
/// </summary>
|
||||
public const uint HeaderIcon2Press = 3952;
|
||||
/// <summary>
|
||||
/// 3953
|
||||
/// </summary>
|
||||
public const uint HeaderIcon3Press = 3953;
|
||||
/// <summary>
|
||||
/// 3954
|
||||
/// </summary>
|
||||
public const uint HeaderIcon4Press = 3954;
|
||||
/// <summary>
|
||||
/// 3955
|
||||
/// </summary>
|
||||
public const uint HeaderIcon5Press = 3955;
|
||||
|
||||
/// <summary>
|
||||
/// 3999
|
||||
@@ -438,6 +462,10 @@ namespace PepperDash.Essentials
|
||||
/// 15018 The Header with dynamic buttons
|
||||
/// </summary>
|
||||
public const uint TopBarHabaneroDynamicVisible = 15018;
|
||||
/// <summary>
|
||||
/// 15019 Shown when system is starting and not ready for use
|
||||
/// </summary>
|
||||
public const uint SystemInitializingVisible = 15019;
|
||||
/// <summary>
|
||||
/// 15020
|
||||
/// </summary>
|
||||
@@ -451,10 +479,6 @@ namespace PepperDash.Essentials
|
||||
/// </summary>
|
||||
public const uint ActivityFooterVisible = 15022;
|
||||
/// <summary>
|
||||
/// 15023
|
||||
/// </summary>
|
||||
public const uint HeaderLightsButtonVisible = 15023;
|
||||
/// <summary>
|
||||
/// 15024
|
||||
/// </summary>
|
||||
public const uint HeaderCallStatusLeftPositionVisible = 15024;
|
||||
@@ -463,17 +487,9 @@ namespace PepperDash.Essentials
|
||||
/// </summary>
|
||||
public const uint HeaderCallStatusRightPositionVisible = 15025;
|
||||
/// <summary>
|
||||
/// 15026
|
||||
/// </summary>
|
||||
public const uint HeaderLightsButtonPress = 15026;
|
||||
/// <summary>[-
|
||||
/// 15027
|
||||
/// </summary>
|
||||
public const uint HeaderCallStatusButtonPress = 15027;
|
||||
/// <summary>
|
||||
/// 15028 The gear button in header
|
||||
/// </summary>
|
||||
public const uint HeaderGearButtonPress = 15028;
|
||||
public const uint FIXFIX_HeaderGearButtonPress_FIXFIX = 15028;
|
||||
/// <summary>
|
||||
/// 15029 the room button in header
|
||||
/// </summary>
|
||||
@@ -553,15 +569,15 @@ namespace PepperDash.Essentials
|
||||
/// <summary>
|
||||
/// 15047 The "Join" button on the next meeting ribbon
|
||||
/// </summary>
|
||||
public const uint NextMeetingRibbonJoinPress = 15047;
|
||||
public const uint NextMeetingJoinPress = 15047;
|
||||
/// <summary>
|
||||
/// 15048 Dismisses the ribbon
|
||||
/// </summary>
|
||||
public const uint NextMeetingRibbonClosePress = 15048;
|
||||
public const uint NextMeetingModalClosePress = 15048;
|
||||
/// <summary>
|
||||
/// 15049
|
||||
/// </summary>
|
||||
public const uint NextMeetingRibbonVisible = 15049;
|
||||
public const uint NextMeetingModalVisible = 15049;
|
||||
/// <summary>
|
||||
/// 15051
|
||||
/// </summary>
|
||||
|
||||
@@ -168,7 +168,10 @@ namespace PepperDash.Essentials
|
||||
/// 3916 The "active call" label
|
||||
/// </summary>
|
||||
public const uint HeaderCallStatusLabel = 3916;
|
||||
|
||||
/// <summary>
|
||||
/// 3919 Mesage on init page
|
||||
/// </summary>
|
||||
public const uint SystemInitializingMessage = 3919;
|
||||
/// <summary>
|
||||
/// 3922
|
||||
/// </summary>
|
||||
@@ -182,6 +185,27 @@ namespace PepperDash.Essentials
|
||||
/// </summary>
|
||||
public const uint HelpPageCallButtonText = 3924;
|
||||
|
||||
/// <summary>
|
||||
/// 3951
|
||||
/// </summary>
|
||||
public const uint HeaderButtonIcon1 = 3951;
|
||||
/// <summary>
|
||||
/// 3952
|
||||
/// </summary>
|
||||
public const uint HeaderButtonIcon2 = 3952;
|
||||
/// <summary>
|
||||
/// 3953
|
||||
/// </summary>
|
||||
public const uint HeaderButtonIcon3 = 3953;
|
||||
/// <summary>
|
||||
/// 3954
|
||||
/// </summary>
|
||||
public const uint HeaderButtonIcon4 = 3954;
|
||||
/// <summary>
|
||||
/// 3955
|
||||
/// </summary>
|
||||
public const uint HeaderButtonIcon5 = 3955;
|
||||
|
||||
/// <summary>
|
||||
/// 3961 Name of source on display 1
|
||||
/// </summary>
|
||||
@@ -202,23 +226,23 @@ namespace PepperDash.Essentials
|
||||
/// <summary>
|
||||
/// 3966
|
||||
/// </summary>
|
||||
public const uint NextMeetingRibbonStartText = 3966;
|
||||
public const uint NextMeetingStartTimeText = 3966;
|
||||
/// <summary>
|
||||
/// 3967
|
||||
/// </summary>
|
||||
public const uint NextMeetingRibbonEndText = 3967;
|
||||
public const uint NextMeetingEndTimeText = 3967;
|
||||
/// <summary>
|
||||
/// 3968
|
||||
/// </summary>
|
||||
public const uint NextMeetingRibbonTitleText = 3968;
|
||||
public const uint NextMeetingTitleText = 3968;
|
||||
/// <summary>
|
||||
/// 3969
|
||||
/// </summary>
|
||||
public const uint NextMettingRibbonNameText = 3969;
|
||||
public const uint NextMeetingNameText = 3969;
|
||||
/// <summary>
|
||||
/// 3970
|
||||
/// </summary>
|
||||
public const uint NextMeetingRibbonButtonLabel = 3970;
|
||||
public const uint NextMeetingButtonLabel = 3970;
|
||||
/// <summary>
|
||||
/// 3971
|
||||
/// </summary>
|
||||
@@ -227,16 +251,19 @@ namespace PepperDash.Essentials
|
||||
/// 3972
|
||||
/// </summary>
|
||||
public const uint NextMeetingFollowingMeetingText = 3972;
|
||||
|
||||
/// <summary>
|
||||
/// 3996
|
||||
/// 3976
|
||||
/// </summary>
|
||||
public const uint MeetingsOrContactMethodListIcon = 3996;
|
||||
public const uint MeetingsOrContactMethodListIcon = 3976;
|
||||
/// <summary>
|
||||
/// 3977
|
||||
/// </summary>
|
||||
public const uint MeetingsOrContactMethodListTitleText = 3977;
|
||||
|
||||
/// <summary>
|
||||
/// 3997
|
||||
/// </summary>
|
||||
public const uint MeetingsOrContactMethodListTitleText = 3997;
|
||||
|
||||
// ------------------------------------
|
||||
//
|
||||
// MODAL JOINS 3991 - 3999
|
||||
//
|
||||
// ------------------------------------
|
||||
}
|
||||
}
|
||||
@@ -1,58 +1,58 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Crestron.SimplSharp;
|
||||
using Crestron.SimplSharpPro;
|
||||
using Crestron.SimplSharpPro.DeviceSupport;
|
||||
//using System;
|
||||
//using System.Collections.Generic;
|
||||
//using System.Linq;
|
||||
//using System.Text;
|
||||
//using Crestron.SimplSharp;
|
||||
//using Crestron.SimplSharpPro;
|
||||
//using Crestron.SimplSharpPro.DeviceSupport;
|
||||
|
||||
using PepperDash.Essentials.Core;
|
||||
using PepperDash.Essentials.Core.SmartObjects;
|
||||
//using PepperDash.Essentials.Core;
|
||||
//using PepperDash.Essentials.Core.SmartObjects;
|
||||
|
||||
namespace PepperDash.Essentials
|
||||
{
|
||||
public class SmartObjectHeaderButtonList : SmartObjectHelperBase
|
||||
{
|
||||
//namespace PepperDash.Essentials
|
||||
//{
|
||||
// public class SmartObjectHeaderButtonList : SmartObjectHelperBase
|
||||
// {
|
||||
|
||||
public SmartObjectHeaderButtonList(SmartObject so)
|
||||
: base(so, true)
|
||||
{
|
||||
// public SmartObjectHeaderButtonList(SmartObject so)
|
||||
// : base(so, true)
|
||||
// {
|
||||
|
||||
}
|
||||
}
|
||||
// }
|
||||
// }
|
||||
|
||||
public class HeaderListButton
|
||||
{
|
||||
public BoolInputSig SelectedSig { get; private set; }
|
||||
public BoolInputSig VisibleSig { get; private set; }
|
||||
public BoolOutputSig OutputSig { get; private set; }
|
||||
StringInputSig IconSig;
|
||||
// public class HeaderListButton
|
||||
// {
|
||||
// public BoolInputSig SelectedSig { get; private set; }
|
||||
// public BoolInputSig VisibleSig { get; private set; }
|
||||
// public BoolOutputSig OutputSig { get; private set; }
|
||||
// StringInputSig IconSig;
|
||||
|
||||
public HeaderListButton(SmartObjectHeaderButtonList list, uint index)
|
||||
{
|
||||
var so = list.SmartObject;
|
||||
OutputSig = so.BooleanOutput["Item " + index + " Pressed"];
|
||||
SelectedSig = so.BooleanInput["Item " + index + " Selected"];
|
||||
VisibleSig = so.BooleanInput["Item " + index + " Visible"];
|
||||
IconSig = so.StringInput["Set Item " + index + " Icon Serial"];
|
||||
}
|
||||
// public HeaderListButton(SmartObjectHeaderButtonList list, uint index)
|
||||
// {
|
||||
// var so = list.SmartObject;
|
||||
// OutputSig = so.BooleanOutput["Item " + index + " Pressed"];
|
||||
// SelectedSig = so.BooleanInput["Item " + index + " Selected"];
|
||||
// VisibleSig = so.BooleanInput["Item " + index + " Visible"];
|
||||
// IconSig = so.StringInput["Set Item " + index + " Icon Serial"];
|
||||
// }
|
||||
|
||||
public void SetIcon(string i)
|
||||
{
|
||||
IconSig.StringValue = i;
|
||||
}
|
||||
// public void SetIcon(string i)
|
||||
// {
|
||||
// IconSig.StringValue = i;
|
||||
// }
|
||||
|
||||
public void ClearIcon()
|
||||
{
|
||||
IconSig.StringValue = "Blank";
|
||||
}
|
||||
// public void ClearIcon()
|
||||
// {
|
||||
// IconSig.StringValue = "Blank";
|
||||
// }
|
||||
|
||||
public static string Calendar = "Calendar";
|
||||
public static string Camera = "Camera";
|
||||
public static string Gear = "Gear";
|
||||
public static string Lights = "Lights";
|
||||
public static string Help = "Help";
|
||||
public static string OnHook = "DND";
|
||||
public static string Phone = "Phone";
|
||||
}
|
||||
}
|
||||
// public static string Calendar = "Calendar";
|
||||
// public static string Camera = "Camera";
|
||||
// public static string Gear = "Gear";
|
||||
// public static string Lights = "Lights";
|
||||
// public static string Help = "Help";
|
||||
// public static string OnHook = "DND";
|
||||
// public static string Phone = "Phone";
|
||||
// }
|
||||
//}
|
||||
@@ -218,7 +218,7 @@ namespace PepperDash.Essentials
|
||||
// ShowInterlockedModal(UIBoolJoin.RoomHeaderPageVisible));
|
||||
|
||||
// Setup button
|
||||
TriList.SetSigHeldAction(UIBoolJoin.HeaderGearButtonPress, 2000,
|
||||
TriList.SetSigHeldAction(UIBoolJoin.FIXFIX_HeaderGearButtonPress_FIXFIX, 2000,
|
||||
() => PopupInterlock.ShowInterlockedWithToggle(UIBoolJoin.TechPanelSetupVisible));// ShowInterlockedModal(UIBoolJoin.TechPanelSetupVisible));
|
||||
TriList.SetSigFalseAction(UIBoolJoin.TechExitButton, () =>
|
||||
PopupInterlock.HideAndClear()); // HideCurrentInterlockedModal());
|
||||
|
||||
@@ -232,7 +232,7 @@ namespace PepperDash.Essentials
|
||||
TriList.SetSigFalseAction(UIBoolJoin.HeaderRoomButtonPress, () =>
|
||||
ShowInterlockedModal(UIBoolJoin.RoomHeaderPageVisible));
|
||||
|
||||
TriList.SetSigFalseAction(UIBoolJoin.HeaderGearButtonPress, () =>
|
||||
TriList.SetSigFalseAction(UIBoolJoin.FIXFIX_HeaderGearButtonPress_FIXFIX, () =>
|
||||
ShowInterlockedModal(UIBoolJoin.VolumesPageVisible));
|
||||
|
||||
// power-related functions
|
||||
|
||||
@@ -63,8 +63,10 @@ namespace PepperDash.Essentials
|
||||
BoolInputSig ShareButtonSig;
|
||||
BoolInputSig EndMeetingButtonSig;
|
||||
|
||||
HeaderListButton HeaderCallButton;
|
||||
HeaderListButton HeaderGearButton;
|
||||
//HeaderListButton HeaderCallButton;
|
||||
//HeaderListButton HeaderGearButton;
|
||||
|
||||
StringInputSig HeaderCallButtonIconSig;
|
||||
|
||||
|
||||
/// <summary>
|
||||
@@ -99,7 +101,7 @@ namespace PepperDash.Essentials
|
||||
/// <summary>
|
||||
/// The list of buttons on the header. Managed with visibility only
|
||||
/// </summary>
|
||||
SmartObjectHeaderButtonList HeaderButtonsList;
|
||||
//SmartObjectHeaderButtonList HeaderButtonsList;
|
||||
|
||||
/// <summary>
|
||||
/// The AV page mangagers that have been used, to keep them alive for later
|
||||
@@ -178,6 +180,16 @@ namespace PepperDash.Essentials
|
||||
|
||||
CTimer NextMeetingTimer;
|
||||
|
||||
/// <summary>
|
||||
/// Tracks whether the user dismissed the meeting popup, while the system was on. Always false when
|
||||
/// system is off.
|
||||
/// </summary>
|
||||
bool NextMeetingWarningWasDismissed;
|
||||
/// <summary>
|
||||
/// Tracks the last meeting that was cancelled
|
||||
/// </summary>
|
||||
Meeting LastMeetingDismissed;
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
@@ -204,7 +216,7 @@ namespace PepperDash.Essentials
|
||||
|
||||
|
||||
// buttons are added in SetCurrentRoom
|
||||
HeaderButtonsList = new SmartObjectHeaderButtonList(TriList.SmartObjects[UISmartObjectJoin.HeaderButtonList]);
|
||||
//HeaderButtonsList = new SmartObjectHeaderButtonList(TriList.SmartObjects[UISmartObjectJoin.HeaderButtonList]);
|
||||
|
||||
SetupActivityFooterWhenRoomOff();
|
||||
|
||||
@@ -271,11 +283,13 @@ namespace PepperDash.Essentials
|
||||
if (CurrentRoom.OnFeedback.BoolValue)
|
||||
{
|
||||
TriList.SetBool(UIBoolJoin.TapToBeginVisible, false);
|
||||
SetupActivityFooterWhenRoomOn();
|
||||
}
|
||||
else
|
||||
{
|
||||
TriList.SetBool(UIBoolJoin.StartPageVisible, true);
|
||||
TriList.SetBool(UIBoolJoin.TapToBeginVisible, true);
|
||||
SetupActivityFooterWhenRoomOff();
|
||||
}
|
||||
ShowCurrentDisplayModeSigsInUse();
|
||||
|
||||
@@ -288,15 +302,15 @@ namespace PepperDash.Essentials
|
||||
TriList.SetSigFalseAction(UIBoolJoin.VolumeDefaultPress, () => CurrentRoom.SetDefaultLevels());
|
||||
TriList.SetString(UIStringJoin.AdvancedVolumeSlider1Text, "Room");
|
||||
|
||||
if (TriList is CrestronApp)
|
||||
TriList.BooleanInput[UIBoolJoin.GearButtonVisible].BoolValue = false;
|
||||
else
|
||||
TriList.BooleanInput[UIBoolJoin.GearButtonVisible].BoolValue = true;
|
||||
//if (TriList is CrestronApp)
|
||||
// TriList.BooleanInput[UIBoolJoin.GearButtonVisible].BoolValue = false;
|
||||
//else
|
||||
// TriList.BooleanInput[UIBoolJoin.GearButtonVisible].BoolValue = true;
|
||||
|
||||
// power-related functions
|
||||
// Note: some of these are not directly-related to the huddle space UI, but are held over
|
||||
// in case
|
||||
TriList.SetSigFalseAction(UIBoolJoin.ShowPowerOffPress, PowerButtonPressed);
|
||||
TriList.SetSigFalseAction(UIBoolJoin.ShowPowerOffPress, EndMeetingPress);
|
||||
|
||||
TriList.SetSigFalseAction(UIBoolJoin.DisplayPowerTogglePress, () =>
|
||||
{
|
||||
@@ -304,7 +318,7 @@ namespace PepperDash.Essentials
|
||||
(CurrentRoom.DefaultDisplay as IPower).PowerToggle();
|
||||
});
|
||||
|
||||
TriList.SetSigFalseAction(UIBoolJoin.HeaderCallStatusButtonPress, ShowActiveCallsList );
|
||||
//TriList.SetSigFalseAction(UIBoolJoin.HeaderCallStatusButtonPress, ShowActiveCallsList );
|
||||
|
||||
SetupNextMeetingTimer();
|
||||
|
||||
@@ -316,6 +330,7 @@ namespace PepperDash.Essentials
|
||||
/// </summary>
|
||||
void ShowActiveCallsList()
|
||||
{
|
||||
TriList.SetBool(UIBoolJoin.CallEndAllConfirmVisible, true);
|
||||
if(PopupInterlock.CurrentJoin == UIBoolJoin.HeaderActiveCallsListVisible)
|
||||
PopupInterlock.ShowInterlockedWithToggle(UIBoolJoin.HeaderActiveCallsListVisible);
|
||||
else
|
||||
@@ -407,54 +422,78 @@ namespace PepperDash.Essentials
|
||||
var ss = CurrentRoom.ScheduleSource;
|
||||
if (ss != null)
|
||||
{
|
||||
NextMeetingTimer = new CTimer(o =>
|
||||
{
|
||||
if (CurrentRoom.OnFeedback.BoolValue)
|
||||
return;
|
||||
// Every 60 seconds, check meetings list for the closest, joinable meeting
|
||||
var meetings = ss.CodecSchedule.Meetings;
|
||||
if (meetings.Count > 0)
|
||||
{
|
||||
var meeting = meetings.Aggregate((m1, m2) => m1.StartTime < m2.StartTime ? m1 : m2);
|
||||
if (meeting != null && meeting.Joinable)
|
||||
{
|
||||
TriList.SetString(UIStringJoin.NextMeetingRibbonStartText, meeting.StartTime.ToShortTimeString());
|
||||
TriList.SetString(UIStringJoin.NextMeetingRibbonEndText, meeting.EndTime.ToShortTimeString());
|
||||
TriList.SetString(UIStringJoin.NextMeetingRibbonTitleText, meeting.Title);
|
||||
TriList.SetString(UIStringJoin.NextMettingRibbonNameText, meeting.Organizer);
|
||||
TriList.SetString(UIStringJoin.NextMeetingRibbonButtonLabel, "Join");
|
||||
TriList.SetSigFalseAction(UIBoolJoin.NextMeetingRibbonJoinPress, () =>
|
||||
{
|
||||
HideNextMeetingPopup();
|
||||
RoomOnAndDialMeeting(meeting);
|
||||
});
|
||||
TriList.SetString(UIStringJoin.NextMeetingSecondaryButtonLabel, "Show Schedule");
|
||||
TriList.SetSigFalseAction(UIBoolJoin.CalendarHeaderButtonPress, () =>
|
||||
{
|
||||
HideNextMeetingPopup();
|
||||
CalendarPress();
|
||||
});
|
||||
if (meetings.Count > 1)
|
||||
{
|
||||
TriList.SetString(UIStringJoin.NextMeetingFollowingMeetingText,
|
||||
meetings[1].StartTime.ToShortTimeString());
|
||||
}
|
||||
|
||||
ShowNextMeetingPopup();
|
||||
|
||||
}
|
||||
}
|
||||
}, null, 0, 60000);
|
||||
NextMeetingTimer = new CTimer(o => ShowNextMeetingCallback(), null, 0, 60000);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
void ShowNextMeetingPopup()
|
||||
void ShowNextMeetingCallback()
|
||||
{
|
||||
TriList.SetSigFalseAction(UIBoolJoin.NextMeetingRibbonClosePress, HideNextMeetingPopup);
|
||||
TriList.SetBool(UIBoolJoin.NextMeetingRibbonVisible, true);
|
||||
// Every 60 seconds, check meetings list for the closest, joinable meeting
|
||||
var ss = CurrentRoom.ScheduleSource;
|
||||
var meetings = ss.CodecSchedule.Meetings;
|
||||
Debug.Console(0, "***** Checking meetings *****");
|
||||
foreach (var m in meetings)
|
||||
Debug.Console(0, "****** {0} {1} ******", m.StartTime.ToShortTimeString(), m.Joinable);
|
||||
|
||||
if (meetings.Count > 0)
|
||||
{
|
||||
var meeting = meetings.FirstOrDefault(m => m.Joinable);
|
||||
|
||||
// If the room is off pester the user
|
||||
// If the room is on, and the meeting is joinable
|
||||
// and the LastMeetingDismissed != this meeting
|
||||
|
||||
if (CurrentRoom.OnFeedback.BoolValue
|
||||
&& LastMeetingDismissed == meeting)
|
||||
//|| (LastMeetingDismissed != null && !LastMeetingDismissed.Joinable)))
|
||||
{
|
||||
Debug.Console(0, "****** Ignoring previously cancelled meeting warning ******");
|
||||
return;
|
||||
}
|
||||
|
||||
LastMeetingDismissed = null;
|
||||
if (meeting != null)
|
||||
{
|
||||
Debug.Console(0, "***** First joinable meeting: {0} {1}", meeting.StartTime.ToShortTimeString(), meeting.Joinable);
|
||||
TriList.SetString(UIStringJoin.MeetingsOrContactMethodListTitleText, "Upcoming meeting");
|
||||
TriList.SetString(UIStringJoin.NextMeetingStartTimeText, meeting.StartTime.ToShortTimeString());
|
||||
TriList.SetString(UIStringJoin.NextMeetingEndTimeText, meeting.EndTime.ToShortTimeString());
|
||||
TriList.SetString(UIStringJoin.NextMeetingTitleText, meeting.Title);
|
||||
TriList.SetString(UIStringJoin.NextMeetingNameText, meeting.Organizer);
|
||||
TriList.SetString(UIStringJoin.NextMeetingButtonLabel, "Join");
|
||||
TriList.SetSigFalseAction(UIBoolJoin.NextMeetingJoinPress, () =>
|
||||
{
|
||||
HideNextMeetingPopup();
|
||||
RoomOnAndDialMeeting(meeting);
|
||||
});
|
||||
TriList.SetString(UIStringJoin.NextMeetingSecondaryButtonLabel, "Show Schedule");
|
||||
TriList.SetSigFalseAction(UIBoolJoin.CalendarHeaderButtonPress, () =>
|
||||
{
|
||||
HideNextMeetingPopup();
|
||||
CalendarPress();
|
||||
});
|
||||
var indexOfNext = meetings.IndexOf(meeting) + 1;
|
||||
|
||||
// indexOf = 3, 4 meetings :
|
||||
if (indexOfNext < meetings.Count)
|
||||
{
|
||||
TriList.SetString(UIStringJoin.NextMeetingFollowingMeetingText,
|
||||
meetings[indexOfNext].StartTime.ToShortTimeString());
|
||||
}
|
||||
TriList.SetSigFalseAction(UIBoolJoin.NextMeetingModalClosePress, () =>
|
||||
{
|
||||
// Mark the meeting to not re-harass the user
|
||||
if(CurrentRoom.OnFeedback.BoolValue)
|
||||
LastMeetingDismissed = meeting;
|
||||
HideNextMeetingPopup();
|
||||
});
|
||||
|
||||
TriList.SetBool(UIBoolJoin.NextMeetingModalVisible, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -462,7 +501,8 @@ namespace PepperDash.Essentials
|
||||
/// </summary>
|
||||
void HideNextMeetingPopup()
|
||||
{
|
||||
TriList.SetBool(UIBoolJoin.NextMeetingRibbonVisible, false);
|
||||
TriList.SetBool(UIBoolJoin.NextMeetingModalVisible, false);
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -541,7 +581,7 @@ namespace PepperDash.Essentials
|
||||
ActivityFooterSrl.AddItem(new SubpageReferenceListActivityItem(2, ActivityFooterSrl, 3,
|
||||
b => { if (!b) ActivityCallButtonPressed(); }));
|
||||
ActivityFooterSrl.AddItem(new SubpageReferenceListActivityItem(3, ActivityFooterSrl, 4,
|
||||
b => { if (!b) PowerButtonPressed(); }));
|
||||
b => { if (!b) EndMeetingPress(); }));
|
||||
ActivityFooterSrl.Count = 3;
|
||||
TriList.SetUshort(UIUshortJoin.PresentationStagingCaretMode, 2); // center
|
||||
TriList.SetUshort(UIUshortJoin.CallStagingCaretMode, 0); // left -2
|
||||
@@ -562,20 +602,18 @@ namespace PepperDash.Essentials
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
void ActivityCallButtonPressed()
|
||||
public void ActivityCallButtonPressed()
|
||||
{
|
||||
if (VCDriver.IsVisible)
|
||||
return;
|
||||
HideLogo();
|
||||
HideNextMeetingPopup();
|
||||
TriList.SetBool(UIBoolJoin.StartPageVisible, false);
|
||||
TriList.SetBool(UIBoolJoin.SourceStagingBarVisible, false);
|
||||
TriList.SetBool(UIBoolJoin.SelectASourceVisible, false);
|
||||
if (CurrentSourcePageManager != null)
|
||||
CurrentSourcePageManager.Hide();
|
||||
if (!CurrentRoom.OnFeedback.BoolValue)
|
||||
{
|
||||
CurrentRoom.RunDefaultCallRoute();
|
||||
}
|
||||
PowerOnFromCall();
|
||||
CurrentMode = UiDisplayMode.Call;
|
||||
SetActivityFooterFeedbacks();
|
||||
VCDriver.Show();
|
||||
@@ -588,6 +626,7 @@ namespace PepperDash.Essentials
|
||||
{
|
||||
if (VCDriver.IsVisible)
|
||||
VCDriver.Hide();
|
||||
HideNextMeetingPopup();
|
||||
TriList.SetBool(UIBoolJoin.StartPageVisible, false);
|
||||
TriList.SetBool(UIBoolJoin.CallStagingBarVisible, false);
|
||||
TriList.SetBool(UIBoolJoin.SourceStagingBarVisible, true);
|
||||
@@ -609,6 +648,17 @@ namespace PepperDash.Essentials
|
||||
SetActivityFooterFeedbacks();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Powers up the system to the codec route, if not already on.
|
||||
/// </summary>
|
||||
void PowerOnFromCall()
|
||||
{
|
||||
if (!CurrentRoom.OnFeedback.BoolValue)
|
||||
{
|
||||
CurrentRoom.RunDefaultCallRoute();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Shows all sigs that are in CurrentDisplayModeSigsInUse
|
||||
/// </summary>
|
||||
@@ -679,7 +729,7 @@ namespace PepperDash.Essentials
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public void PowerButtonPressed()
|
||||
public void EndMeetingPress()
|
||||
{
|
||||
if (!CurrentRoom.OnFeedback.BoolValue
|
||||
|| CurrentRoom.ShutdownPromptTimer.IsRunningFeedback.BoolValue)
|
||||
@@ -688,6 +738,16 @@ namespace PepperDash.Essentials
|
||||
CurrentRoom.StartShutdown(eShutdownType.Manual);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Puts away modals and things that might be up when call comes in
|
||||
/// </summary>
|
||||
public void PrepareForCodecIncomingCall()
|
||||
{
|
||||
if (PowerDownModal != null && PowerDownModal.ModalIsVisible)
|
||||
PowerDownModal.CancelDialog();
|
||||
PopupInterlock.Hide();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
@@ -842,7 +902,8 @@ namespace PepperDash.Essentials
|
||||
var config = ConfigReader.ConfigObject.SourceLists;
|
||||
if (config.ContainsKey(_CurrentRoom.SourceListKey))
|
||||
{
|
||||
var srcList = config[_CurrentRoom.SourceListKey];
|
||||
var srcList = config[_CurrentRoom.SourceListKey].OrderBy(kv => kv.Value.Order);
|
||||
|
||||
// Setup sources list
|
||||
uint i = 1; // counter for UI list
|
||||
foreach (var kvp in srcList)
|
||||
@@ -851,13 +912,6 @@ namespace PepperDash.Essentials
|
||||
if (!srcConfig.IncludeInSourceList) // Skip sources marked this way
|
||||
continue;
|
||||
|
||||
//var actualSource = DeviceManager.GetDeviceForKey(srcConfig.SourceKey) as Device;
|
||||
//if (actualSource == null)
|
||||
//{
|
||||
// Debug.Console(1, "Cannot assign missing source '{0}' to source UI list",
|
||||
// srcConfig.SourceKey);
|
||||
// continue;
|
||||
//}
|
||||
var routeKey = kvp.Key;
|
||||
var item = new SubpageReferenceListSourceItem(i++, SourceStagingSrl, srcConfig,
|
||||
b => { if (!b) UiSelectSource(routeKey); });
|
||||
@@ -903,10 +957,10 @@ namespace PepperDash.Essentials
|
||||
TriList.SetBool(UIBoolJoin.TopBarHabaneroDynamicVisible, true);
|
||||
|
||||
var roomConf = CurrentRoom.Config;
|
||||
//
|
||||
HeaderGearButton = new HeaderListButton(HeaderButtonsList, 5);
|
||||
HeaderGearButton.SetIcon(HeaderListButton.Gear);
|
||||
HeaderGearButton.OutputSig.SetSigHeldAction(2000,
|
||||
|
||||
// Gear
|
||||
TriList.SetString(UIStringJoin.HeaderButtonIcon5, "Gear");
|
||||
TriList.SetSigHeldAction(UIBoolJoin.HeaderIcon5Press, 2000,
|
||||
ShowTech,
|
||||
null,
|
||||
() =>
|
||||
@@ -916,10 +970,23 @@ namespace PepperDash.Essentials
|
||||
else
|
||||
PopupInterlock.ShowInterlockedWithToggle(UIBoolJoin.VolumesPagePowerOffVisible);
|
||||
});
|
||||
|
||||
TriList.SetSigFalseAction(UIBoolJoin.TechExitButton, () =>
|
||||
PopupInterlock.HideAndClear());
|
||||
|
||||
//HeaderGearButton = new HeaderListButton(HeaderButtonsList, 5);
|
||||
//HeaderGearButton.SetIcon(HeaderListButton.Gear);
|
||||
//HeaderGearButton.OutputSig.SetSigHeldAction(2000,
|
||||
// ShowTech,
|
||||
// null,
|
||||
// () =>
|
||||
// {
|
||||
// if (CurrentRoom.OnFeedback.BoolValue)
|
||||
// PopupInterlock.ShowInterlockedWithToggle(UIBoolJoin.VolumesPageVisible);
|
||||
// else
|
||||
// PopupInterlock.ShowInterlockedWithToggle(UIBoolJoin.VolumesPagePowerOffVisible);
|
||||
// });
|
||||
|
||||
|
||||
// Help button and popup
|
||||
if (CurrentRoom.Config.Help != null)
|
||||
{
|
||||
@@ -938,9 +1005,8 @@ namespace PepperDash.Essentials
|
||||
TriList.SetString(UIStringJoin.HelpPageCallButtonText, null);
|
||||
TriList.ClearBoolSigAction(UIBoolJoin.HelpPageShowCallButtonPress);
|
||||
}
|
||||
var helpButton = new HeaderListButton(HeaderButtonsList, 4);
|
||||
helpButton.SetIcon(HeaderListButton.Help);
|
||||
helpButton.OutputSig.SetSigFalseAction(() =>
|
||||
TriList.SetString(UIStringJoin.HeaderButtonIcon4, "Help");
|
||||
TriList.SetSigFalseAction(UIBoolJoin.HeaderIcon4Press, () =>
|
||||
{
|
||||
string message = null;
|
||||
var room = DeviceManager.GetDeviceForKey(Config.DefaultRoomKey)
|
||||
@@ -952,7 +1018,21 @@ namespace PepperDash.Essentials
|
||||
//TriList.StringInput[UIStringJoin.HelpMessage].StringValue = message;
|
||||
PopupInterlock.ShowInterlockedWithToggle(UIBoolJoin.HelpPageVisible);
|
||||
});
|
||||
uint nextIndex = 3;
|
||||
//var helpButton = new HeaderListButton(HeaderButtonsList, 4);
|
||||
//helpButton.SetIcon(HeaderListButton.Help);
|
||||
//helpButton.OutputSig.SetSigFalseAction(() =>
|
||||
//{
|
||||
// string message = null;
|
||||
// var room = DeviceManager.GetDeviceForKey(Config.DefaultRoomKey)
|
||||
// as EssentialsHuddleSpaceRoom;
|
||||
// if (room != null)
|
||||
// message = room.Config.HelpMessage;
|
||||
// else
|
||||
// message = "Sorry, no help message available. No room connected.";
|
||||
// //TriList.StringInput[UIStringJoin.HelpMessage].StringValue = message;
|
||||
// PopupInterlock.ShowInterlockedWithToggle(UIBoolJoin.HelpPageVisible);
|
||||
//});
|
||||
uint nextJoin = 3953;
|
||||
|
||||
// Lights button
|
||||
//if (WHATEVER MAKES LIGHTS WORK)
|
||||
@@ -964,36 +1044,47 @@ namespace PepperDash.Essentials
|
||||
// Calendar button
|
||||
if (_CurrentRoom.ScheduleSource != null) // ******************* Do we need a config option here as well?
|
||||
{
|
||||
var calBut = new HeaderListButton(HeaderButtonsList, nextIndex);
|
||||
calBut.SetIcon(HeaderListButton.Calendar);
|
||||
calBut.OutputSig.SetSigFalseAction(CalendarPress);
|
||||
nextIndex--;
|
||||
//var calBut = new HeaderListButton(HeaderButtonsList, nextIndex);
|
||||
//calBut.SetIcon(HeaderListButton.Calendar);
|
||||
//calBut.OutputSig.SetSigFalseAction(CalendarPress);
|
||||
|
||||
TriList.SetString(nextJoin, "Calendar");
|
||||
TriList.SetSigFalseAction(nextJoin, CalendarPress);
|
||||
|
||||
nextJoin--;
|
||||
}
|
||||
|
||||
// Call button
|
||||
HeaderCallButton = new HeaderListButton(HeaderButtonsList, nextIndex);
|
||||
HeaderCallButton.SetIcon(HeaderListButton.OnHook);
|
||||
HeaderCallButton.OutputSig.SetSigFalseAction(ShowActiveCallsList);
|
||||
|
||||
nextIndex--;
|
||||
//HeaderCallButton = new HeaderListButton(HeaderButtonsList, nextJoin);
|
||||
//HeaderCallButton.SetIcon(HeaderListButton.OnHook);
|
||||
//HeaderCallButton.OutputSig.SetSigFalseAction(ShowActiveCallsList);
|
||||
|
||||
TriList.SetString(nextJoin, "DND");
|
||||
TriList.SetSigFalseAction(nextJoin, ShowActiveCallsList);
|
||||
HeaderCallButtonIconSig = TriList.StringInput[nextJoin];
|
||||
|
||||
nextJoin--;
|
||||
|
||||
// blank any that remain
|
||||
for (var i = nextIndex; i > 0; i--)
|
||||
for (var i = nextJoin; i > 3950; i--)
|
||||
{
|
||||
var blankBut = new HeaderListButton(HeaderButtonsList, i);
|
||||
blankBut.ClearIcon();
|
||||
blankBut.OutputSig.SetSigFalseAction(() => { });
|
||||
//var blankBut = new HeaderListButton(HeaderButtonsList, i);
|
||||
//blankBut.ClearIcon();
|
||||
//blankBut.OutputSig.SetSigFalseAction(() => { });
|
||||
|
||||
TriList.SetString(i, "Blank");
|
||||
TriList.SetSigFalseAction(i, () => { });
|
||||
}
|
||||
|
||||
// Set Call Status Subpage Position
|
||||
|
||||
if (nextIndex == 1)
|
||||
if (nextJoin == 3951)
|
||||
{
|
||||
// Set to right position
|
||||
TriList.SetBool(UIBoolJoin.HeaderCallStatusLeftPositionVisible, false);
|
||||
TriList.SetBool(UIBoolJoin.HeaderCallStatusRightPositionVisible, true);
|
||||
}
|
||||
else if (nextIndex == 0)
|
||||
else if (nextJoin == 3950)
|
||||
{
|
||||
// Set to left position
|
||||
TriList.SetBool(UIBoolJoin.HeaderCallStatusLeftPositionVisible, true);
|
||||
@@ -1010,13 +1101,16 @@ namespace PepperDash.Essentials
|
||||
// Set mode of header button
|
||||
if (!codec.IsInCall)
|
||||
{
|
||||
HeaderCallButton.SetIcon(HeaderListButton.OnHook);
|
||||
HeaderCallButtonIconSig.StringValue = "DND";
|
||||
//HeaderCallButton.SetIcon(HeaderListButton.OnHook);
|
||||
}
|
||||
else if (codec.ActiveCalls.Any(c => c.Type == eCodecCallType.Video))
|
||||
HeaderCallButton.SetIcon(HeaderListButton.Camera);
|
||||
HeaderCallButtonIconSig.StringValue = "Misc-06_Dark";
|
||||
//HeaderCallButton.SetIcon(HeaderListButton.Camera);
|
||||
//TriList.SetUshort(UIUshortJoin.CallHeaderButtonMode, 2);
|
||||
else
|
||||
HeaderCallButton.SetIcon(HeaderListButton.Phone);
|
||||
HeaderCallButtonIconSig.StringValue = "Misc-09_Dark";
|
||||
//HeaderCallButton.SetIcon(HeaderListButton.Phone);
|
||||
//TriList.SetUshort(UIUshortJoin.CallHeaderButtonMode, 1);
|
||||
|
||||
// Set the call status text
|
||||
@@ -1056,6 +1150,7 @@ namespace PepperDash.Essentials
|
||||
MeetingOrContactMethodModalSrl.GetBoolFeedbackSig(i, 1).SetSigFalseAction(() =>
|
||||
{
|
||||
PopupInterlock.Hide();
|
||||
ActivityCallButtonPressed();
|
||||
var d = CurrentRoom.ScheduleSource as VideoCodecBase;
|
||||
if (d != null)
|
||||
RoomOnAndDialMeeting(mm);
|
||||
@@ -1091,12 +1186,12 @@ namespace PepperDash.Essentials
|
||||
var value = _CurrentRoom.OnFeedback.BoolValue;
|
||||
TriList.BooleanInput[UIBoolJoin.RoomIsOn].BoolValue = value;
|
||||
|
||||
TriList.BooleanInput[UIBoolJoin.StartPageVisible].BoolValue = !value;
|
||||
|
||||
if (value) //ON
|
||||
{
|
||||
SetupActivityFooterWhenRoomOn();
|
||||
TriList.BooleanInput[UIBoolJoin.SelectASourceVisible].BoolValue = false;
|
||||
//TriList.BooleanInput[UIBoolJoin.SourceStagingBarVisible].BoolValue = true;
|
||||
TriList.BooleanInput[UIBoolJoin.StartPageVisible].BoolValue = false;
|
||||
TriList.BooleanInput[UIBoolJoin.VolumeDualMute1Visible].BoolValue = true;
|
||||
|
||||
}
|
||||
@@ -1108,9 +1203,10 @@ namespace PepperDash.Essentials
|
||||
SetupActivityFooterWhenRoomOff();
|
||||
ShowLogo();
|
||||
SetActivityFooterFeedbacks();
|
||||
TriList.BooleanInput[UIBoolJoin.StartPageVisible].BoolValue = true;
|
||||
TriList.BooleanInput[UIBoolJoin.VolumeDualMute1Visible].BoolValue = false;
|
||||
TriList.BooleanInput[UIBoolJoin.SourceStagingBarVisible].BoolValue = false;
|
||||
// Clear this so that the pesky meeting warning can resurface every minute when off
|
||||
LastMeetingDismissed = null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1338,5 +1434,13 @@ namespace PepperDash.Essentials
|
||||
void HideNotificationRibbon();
|
||||
void ComputeHeaderCallStatus(VideoCodecBase codec);
|
||||
SubpageReferenceList MeetingOrContactMethodModalSrl { get; }
|
||||
/// <summary>
|
||||
/// Exposes the ability to switch into call mode
|
||||
/// </summary>
|
||||
void ActivityCallButtonPressed();
|
||||
/// <summary>
|
||||
/// Allows the codec to trigger the main UI to clear up if call is coming in.
|
||||
/// </summary>
|
||||
void PrepareForCodecIncomingCall();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace PepperDash.Essentials.UIDrivers.VC
|
||||
/// <summary>
|
||||
/// To drive UI elements outside of this driver that may be dependent on this.
|
||||
/// </summary>
|
||||
BoolFeedback InCall;
|
||||
//BoolFeedback InCall;
|
||||
BoolFeedback LocalPrivacyIsMuted;
|
||||
|
||||
/// <summary>
|
||||
@@ -120,7 +120,7 @@ namespace PepperDash.Essentials.UIDrivers.VC
|
||||
else
|
||||
codec.IsReadyChange += (o, a) => Codec_IsReady();
|
||||
|
||||
InCall = new BoolFeedback(() => false);
|
||||
//InCall = new BoolFeedback(() => false);
|
||||
LocalPrivacyIsMuted = new BoolFeedback(() => false);
|
||||
|
||||
VCControlsInterlock = new JoinedSigInterlock(triList);
|
||||
@@ -160,7 +160,7 @@ namespace PepperDash.Essentials.UIDrivers.VC
|
||||
else
|
||||
{
|
||||
Parent.Keyboard.DisableGoButton();
|
||||
return "Tap For Search Keyboard";
|
||||
return "Tap for keyboard";
|
||||
}
|
||||
});
|
||||
SearchStringFeedback.LinkInputSig(triList.StringInput[UIStringJoin.CodecDirectorySearchEntryText]);
|
||||
@@ -189,10 +189,6 @@ namespace PepperDash.Essentials.UIDrivers.VC
|
||||
CallSharingInfoTextFeedback.LinkInputSig(triList.StringInput[UIStringJoin.CallSharedSourceNameText]);
|
||||
|
||||
TriList.SetSigFalseAction(UIBoolJoin.CallStopSharingPress, Codec.StopSharing);
|
||||
|
||||
|
||||
|
||||
// Address and number
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -260,7 +256,8 @@ namespace PepperDash.Essentials.UIDrivers.VC
|
||||
DialStringTextCheckEnables();
|
||||
Parent.ShowNotificationRibbon("Connected", 2000);
|
||||
StagingButtonsFeedbackInterlock.ShowInterlocked(UIBoolJoin.VCStagingKeypadPress);
|
||||
VCControlsInterlock.ShowInterlocked(UIBoolJoin.VCKeypadVisible);
|
||||
ShowKeypad();
|
||||
//VCControlsInterlock.ShowInterlocked(UIBoolJoin.VCKeypadVisible);
|
||||
break;
|
||||
case eCodecCallStatus.Connecting:
|
||||
// fire at SRL item
|
||||
@@ -273,6 +270,7 @@ namespace PepperDash.Essentials.UIDrivers.VC
|
||||
if (!Codec.IsInCall)
|
||||
{
|
||||
KeypadMode = eKeypadMode.Dial;
|
||||
// show keypad if we're in call UI mode
|
||||
ShowKeypad();
|
||||
DialStringBuilder.Remove(0, DialStringBuilder.Length);
|
||||
DialStringFeedback.FireUpdate();
|
||||
@@ -302,15 +300,21 @@ namespace PepperDash.Essentials.UIDrivers.VC
|
||||
break;
|
||||
}
|
||||
TriList.UShortInput[UIUshortJoin.VCStagingConnectButtonMode].UShortValue = (ushort)(Codec.IsInCall ? 1 : 0);
|
||||
StagingBarsInterlock.ShowInterlocked(Codec.IsInCall ?
|
||||
UIBoolJoin.VCStagingActivePopoverVisible : UIBoolJoin.VCStagingInactivePopoverVisible);
|
||||
|
||||
|
||||
uint stageJoin;
|
||||
if (Codec.IsInCall)
|
||||
stageJoin = UIBoolJoin.VCStagingActivePopoverVisible;
|
||||
else
|
||||
stageJoin = UIBoolJoin.VCStagingInactivePopoverVisible;
|
||||
if (IsVisible)
|
||||
StagingBarsInterlock.ShowInterlocked(stageJoin);
|
||||
else
|
||||
StagingBarsInterlock.SetButDontShow(stageJoin);
|
||||
|
||||
Parent.ComputeHeaderCallStatus(Codec);
|
||||
|
||||
// Update active call list
|
||||
UpdateHeaderActiveCallList();
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -344,6 +348,7 @@ namespace PepperDash.Essentials.UIDrivers.VC
|
||||
/// </summary>
|
||||
void ShowIncomingModal(CodecActiveCallItem call)
|
||||
{
|
||||
Parent.PrepareForCodecIncomingCall();
|
||||
IncomingCallModal = new ModalDialog(TriList);
|
||||
string msg;
|
||||
string icon;
|
||||
@@ -360,14 +365,24 @@ namespace PepperDash.Essentials.UIDrivers.VC
|
||||
IncomingCallModal.PresentModalDialog(2, "Incoming Call", icon, msg,
|
||||
"Ignore", "Accept", false, false, b =>
|
||||
{
|
||||
if (b == 1)
|
||||
Codec.RejectCall(call);
|
||||
else //2
|
||||
Codec.AcceptCall(call);
|
||||
if (b == 1)
|
||||
Codec.RejectCall(call);
|
||||
else //2
|
||||
AcceptIncomingCall(call);
|
||||
IncomingCallModal = null;
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
void AcceptIncomingCall(CodecActiveCallItem call)
|
||||
{
|
||||
Parent.PrepareForCodecIncomingCall();
|
||||
Parent.ActivityCallButtonPressed();
|
||||
Codec.AcceptCall(call);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
@@ -814,7 +829,6 @@ namespace PepperDash.Essentials.UIDrivers.VC
|
||||
else if (e.SpecialKey == KeyboardSpecialKey.GoButton)
|
||||
{
|
||||
ConnectPress();
|
||||
Parent.Keyboard.Hide();
|
||||
}
|
||||
}
|
||||
DialStringFeedback.FireUpdate();
|
||||
@@ -884,14 +898,15 @@ namespace PepperDash.Essentials.UIDrivers.VC
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shows the appropriate keypad depending on mode
|
||||
/// shows the appropriate keypad depending on mode and whether visible
|
||||
/// </summary>
|
||||
void ShowKeypad()
|
||||
{
|
||||
if(CodecHasFavorites)
|
||||
VCControlsInterlock.ShowInterlocked(UIBoolJoin.VCKeypadWithFavoritesVisible);
|
||||
uint join = Codec.IsInCall ? UIBoolJoin.VCKeypadVisible : UIBoolJoin.VCKeypadWithFavoritesVisible;
|
||||
if (IsVisible)
|
||||
VCControlsInterlock.ShowInterlocked(join);
|
||||
else
|
||||
VCControlsInterlock.ShowInterlocked(UIBoolJoin.VCKeypadVisible);
|
||||
VCControlsInterlock.SetButDontShow(join);
|
||||
StagingButtonsFeedbackInterlock.ShowInterlocked(UIBoolJoin.VCStagingKeypadPress);
|
||||
}
|
||||
|
||||
@@ -919,6 +934,8 @@ namespace PepperDash.Essentials.UIDrivers.VC
|
||||
/// </summary>
|
||||
void ConnectPress()
|
||||
{
|
||||
if (Parent.Keyboard != null)
|
||||
Parent.Keyboard.Hide();
|
||||
Codec.Dial(DialStringBuilder.ToString());
|
||||
}
|
||||
|
||||
@@ -941,6 +958,7 @@ namespace PepperDash.Essentials.UIDrivers.VC
|
||||
DialStringFeedback.FireUpdate();
|
||||
// no delete key in this mode!
|
||||
}
|
||||
DialStringTextCheckEnables();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -1096,7 +1114,7 @@ namespace PepperDash.Essentials.UIDrivers.VC
|
||||
{
|
||||
if (DialStringBuilder.Length == 0 && !Codec.IsInCall)
|
||||
{
|
||||
return "Dial or Tap to Show Keyboard";
|
||||
return "Tap for keyboard";
|
||||
}
|
||||
if(Regex.Match(ds, @"^\d{4,7}$").Success) // 456-7890
|
||||
return string.Format("{0}-{1}", ds.Substring(0, 3), ds.Substring(3));
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user