-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathHostSelectorPage.xaml.h
More file actions
53 lines (49 loc) · 2.18 KB
/
Copy pathHostSelectorPage.xaml.h
File metadata and controls
53 lines (49 loc) · 2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//
// HostSelectorPage.xaml.h
// Declaration of the HostSelectorPage class
//
#pragma once
#include "Pages\HostSelectorPage.g.h"
#include "State\ApplicationState.h"
#include <atomic>
using namespace Windows::UI::Core;
namespace moonlight_xbox_dx
{
/// <summary>
/// An empty page that can be used on its own or navigated to within a Frame.
/// </summary>
[Windows::Foundation::Metadata::WebHostHidden]
public ref class HostSelectorPage sealed
{
public:
HostSelectorPage();
property ApplicationState^ State {
ApplicationState^ get() {
return this->state;
}
}
void OnStateLoaded();
void Connect(MoonlightHost^ host);
protected:
virtual void OnNavigatedTo(Windows::UI::Xaml::Navigation::NavigationEventArgs^ e) override;
private:
ApplicationState ^state;
void NewHostButton_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
void OnNewHostDialogPrimaryClick(Windows::UI::Xaml::Controls::ContentDialog^ sender, Windows::UI::Xaml::Controls::ContentDialogButtonClickEventArgs^ args);
Windows::UI::Xaml::Controls::TextBox ^dialogHostnameTextBox;
void GridView_ItemClick(Platform::Object^ sender, Windows::UI::Xaml::Controls::ItemClickEventArgs^ e);
void StartPairing(MoonlightHost^ host);
void removeHostButton_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
void HostsGrid_RightTapped(Platform::Object^ sender, Windows::UI::Xaml::Input::RightTappedRoutedEventArgs^ e);
MoonlightHost^ currentHost;
void hostSettingsButton_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
void hostDetailsButton_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
void SettingsButton_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
std::atomic<bool> continueFetch;
void OnKeyDown(Platform::Object^ sender, Windows::UI::Xaml::Input::KeyRoutedEventArgs^ e);
void HandleProtocolHostSelect();
void wakeHostButton_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
void testConnectionButton_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
void ShowHostActions(Windows::UI::Xaml::FrameworkElement^ anchor, MoonlightHost^ host);
};
}