kodi
Win10App.h
1 /*
2  * Copyright (C) 2005-2018 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #include "rendering/dx/DeviceResources.h"
12 #include "utils/CharsetConverter.h" // Required to initialize converters before usage
13 
14 struct XBMC_keysym;
15 
16 namespace KODI
17 {
18  namespace PLATFORM
19  {
20  namespace WINDOWS10
21  {
22 // Main entry point for our app. Connects the app with the Windows shell and handles application lifecycle events.
23 struct App : winrt::implements<App, winrt::Windows::ApplicationModel::Core::IFrameworkViewSource, winrt::Windows::ApplicationModel::Core::IFrameworkView>
24 {
25  App();
26  winrt::Windows::ApplicationModel::Core::IFrameworkView CreateView()
27  {
28  return *this;
29  }
30  // IFrameworkView implementation.
31  void Initialize(const winrt::Windows::ApplicationModel::Core::CoreApplicationView&);
32  void SetWindow(const winrt::Windows::UI::Core::CoreWindow&);
33  void Load(const winrt::hstring& entryPoint);
34  void Run();
35  void Uninitialize();
36 
37 protected:
38  // Application lifecycle event handlers.
39  void OnActivated(const winrt::Windows::ApplicationModel::Core::CoreApplicationView&, const winrt::Windows::ApplicationModel::Activation::IActivatedEventArgs&);
40  void OnSuspending(const winrt::Windows::Foundation::IInspectable&, const winrt::Windows::ApplicationModel::SuspendingEventArgs&);
41  void OnResuming(const winrt::Windows::Foundation::IInspectable&, const winrt::Windows::Foundation::IInspectable&);
42 
43 private:
44  std::vector<char*> m_argv;
45 };
46  } // namespace WINDOWS10
47  } // namespace PLATFORM
48 } // namespace KODI
49 
App()
Initializes the singleton application object.
Definition: App.xaml.cpp:31
Definition: Win10App.h:23
void OnSuspending(const winrt::Windows::Foundation::IInspectable &, const winrt::Windows::ApplicationModel::SuspendingEventArgs &)
Invoked when application execution is being suspended.
Definition: App.xaml.cpp:77
Definition: XBMC_keyboard.h:39
Definition: AudioDecoder.h:18