-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Interfaces for "Enhanced UX Notification for Video and Audio Call Fea…
…ture" (#4783)
- Loading branch information
Showing
26 changed files
with
537 additions
and
24 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
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
50 changes: 50 additions & 0 deletions
50
dev/AppNotifications/AppNotificationConferencingConfig.cpp
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,50 @@ | ||
// Copyright (c) Microsoft Corporation and Contributors. | ||
// Licensed under the MIT License. | ||
|
||
#include "pch.h" | ||
#include "AppNotificationConferencingConfig.h" | ||
#include "Microsoft.Windows.AppNotifications.AppNotificationConferencingConfig.g.cpp" | ||
#include <IsWindowsVersion.h> | ||
|
||
namespace winrt::Microsoft::Windows::AppNotifications::implementation | ||
{ | ||
hstring AppNotificationConferencingConfig::VideoDeviceId() | ||
{ | ||
return m_videoDeviceId; | ||
} | ||
|
||
void AppNotificationConferencingConfig::VideoDeviceId(hstring const& value) | ||
{ | ||
THROW_HR_IF(E_NOTIMPL, !IsCallingPreviewSupported()); | ||
m_videoDeviceId = value; | ||
} | ||
|
||
hstring AppNotificationConferencingConfig::AudioInputDeviceId() | ||
{ | ||
return m_audioInputDeviceId; | ||
} | ||
|
||
void AppNotificationConferencingConfig::AudioInputDeviceId(hstring const& value) | ||
{ | ||
THROW_HR_IF(E_NOTIMPL, !IsCallingPreviewSupported()); | ||
m_audioInputDeviceId = value; | ||
} | ||
|
||
hstring AppNotificationConferencingConfig::AudioOutputDeviceId() | ||
{ | ||
return m_audioOutputDeviceId; | ||
} | ||
|
||
void AppNotificationConferencingConfig::AudioOutputDeviceId(hstring const& value) | ||
{ | ||
THROW_HR_IF(E_NOTIMPL, !IsCallingPreviewSupported()); | ||
m_audioOutputDeviceId = value; | ||
} | ||
|
||
///Checks if the calling preview feature is supported on the current OS version | ||
///TO DO - This method needs implementation on framework UDK, for now it always returns false | ||
bool AppNotificationConferencingConfig::IsCallingPreviewSupported() | ||
{ | ||
return false; | ||
} | ||
} |
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,37 @@ | ||
// Copyright (c) Microsoft Corporation and Contributors. | ||
// Licensed under the MIT License. | ||
|
||
#pragma once | ||
#include "Microsoft.Windows.AppNotifications.AppNotificationConferencingConfig.g.h" | ||
|
||
namespace winrt::Microsoft::Windows::AppNotifications::implementation | ||
{ | ||
struct AppNotificationConferencingConfig : AppNotificationConferencingConfigT<AppNotificationConferencingConfig> | ||
{ | ||
AppNotificationConferencingConfig() = default; | ||
|
||
// Getters | ||
hstring VideoDeviceId(); | ||
hstring AudioInputDeviceId(); | ||
hstring AudioOutputDeviceId(); | ||
|
||
// Setters | ||
void VideoDeviceId(hstring const& value); | ||
void AudioInputDeviceId(hstring const& value); | ||
void AudioOutputDeviceId(hstring const& value); | ||
|
||
static bool IsCallingPreviewSupported(); | ||
|
||
private: | ||
|
||
hstring m_videoDeviceId{}; | ||
hstring m_audioInputDeviceId{}; | ||
hstring m_audioOutputDeviceId{}; | ||
}; | ||
} | ||
namespace winrt::Microsoft::Windows::AppNotifications::factory_implementation | ||
{ | ||
struct AppNotificationConferencingConfig : AppNotificationConferencingConfigT<AppNotificationConferencingConfig, implementation::AppNotificationConferencingConfig> | ||
{ | ||
}; | ||
} |
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
Oops, something went wrong.