pax_global_header 0000666 0000000 0000000 00000000064 12726300214 0014507 g ustar 00root root 0000000 0000000 52 comment=3547e8f0dd9eb56afa5bae665134977a82ed8f94
ufr-examples-windows-iot-cpp-3547e8f0dd9eb56afa5bae665134977a82ed8f94/ 0000775 0000000 0000000 00000000000 12726300214 0024276 5 ustar 00root root 0000000 0000000 ufr-examples-windows-iot-cpp-3547e8f0dd9eb56afa5bae665134977a82ed8f94/.gitattributes 0000664 0000000 0000000 00000004726 12726300214 0027202 0 ustar 00root root 0000000 0000000 ###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto
###############################################################################
# Set default behavior for command prompt diff.
#
# This is need for earlier builds of msysgit that does not have it on by
# default for csharp files.
# Note: This is only used by command line
###############################################################################
#*.cs diff=csharp
###############################################################################
# Set the merge driver for project and solution files
#
# Merging from the command prompt will add diff markers to the files if there
# are conflicts (Merging from VS is not affected by the settings below, in VS
# the diff markers are never inserted). Diff markers may cause the following
# file extensions to fail to load in VS. An alternative would be to treat
# these files as binary and thus will always conflict and require user
# intervention with every merge. To do so, just uncomment the entries below
###############################################################################
#*.sln merge=binary
#*.csproj merge=binary
#*.vbproj merge=binary
#*.vcxproj merge=binary
#*.vcproj merge=binary
#*.dbproj merge=binary
#*.fsproj merge=binary
#*.lsproj merge=binary
#*.wixproj merge=binary
#*.modelproj merge=binary
#*.sqlproj merge=binary
#*.wwaproj merge=binary
###############################################################################
# behavior for image files
#
# image files are treated as binary by default.
###############################################################################
#*.jpg binary
#*.png binary
#*.gif binary
###############################################################################
# diff behavior for common document formats
#
# Convert binary document formats to text before diffing them. This feature
# is only available from the command line. Turn it on by uncommenting the
# entries below.
###############################################################################
#*.doc diff=astextplain
#*.DOC diff=astextplain
#*.docx diff=astextplain
#*.DOCX diff=astextplain
#*.dot diff=astextplain
#*.DOT diff=astextplain
#*.pdf diff=astextplain
#*.PDF diff=astextplain
#*.rtf diff=astextplain
#*.RTF diff=astextplain
ufr-examples-windows-iot-cpp-3547e8f0dd9eb56afa5bae665134977a82ed8f94/.gitmodules 0000664 0000000 0000000 00000000131 12726300214 0026446 0 ustar 00root root 0000000 0000000 [submodule "lib"]
path = lib
url = git@git.d-logic.net:nfc-rfid-reader-sdk/ufr-lib.git
ufr-examples-windows-iot-cpp-3547e8f0dd9eb56afa5bae665134977a82ed8f94/App.xaml 0000664 0000000 0000000 00000000403 12726300214 0025676 0 ustar 00root root 0000000 0000000
ufr-examples-windows-iot-cpp-3547e8f0dd9eb56afa5bae665134977a82ed8f94/App.xaml.cpp 0000664 0000000 0000000 00000010720 12726300214 0026462 0 ustar 00root root 0000000 0000000 //
// App.xaml.cpp
// Implementation of the App class.
//
#include "pch.h"
#include "MainPage.xaml.h"
using namespace AppTestUFRlib;
using namespace Platform;
using namespace Windows::ApplicationModel;
using namespace Windows::ApplicationModel::Activation;
using namespace Windows::Foundation;
using namespace Windows::Foundation::Collections;
using namespace Windows::UI::Xaml;
using namespace Windows::UI::Xaml::Controls;
using namespace Windows::UI::Xaml::Controls::Primitives;
using namespace Windows::UI::Xaml::Data;
using namespace Windows::UI::Xaml::Input;
using namespace Windows::UI::Xaml::Interop;
using namespace Windows::UI::Xaml::Media;
using namespace Windows::UI::Xaml::Navigation;
///
/// Initializes the singleton application object. This is the first line of authored code
/// executed, and as such is the logical equivalent of main() or WinMain().
///
App::App()
{
InitializeComponent();
Suspending += ref new SuspendingEventHandler(this, &App::OnSuspending);
}
///
/// Invoked when the application is launched normally by the end user. Other entry points
/// will be used such as when the application is launched to open a specific file.
///
/// Details about the launch request and process.
void App::OnLaunched(Windows::ApplicationModel::Activation::LaunchActivatedEventArgs^ e)
{
#if _DEBUG
// Show graphics profiling information while debugging.
if (IsDebuggerPresent())
{
// Display the current frame rate counters
DebugSettings->EnableFrameRateCounter = true;
}
#endif
auto rootFrame = dynamic_cast(Window::Current->Content);
// Do not repeat app initialization when the Window already has content,
// just ensure that the window is active
if (rootFrame == nullptr)
{
// Create a Frame to act as the navigation context and associate it with
// a SuspensionManager key
rootFrame = ref new Frame();
rootFrame->NavigationFailed += ref new Windows::UI::Xaml::Navigation::NavigationFailedEventHandler(this, &App::OnNavigationFailed);
if (e->PreviousExecutionState == ApplicationExecutionState::Terminated)
{
// TODO: Restore the saved session state only when appropriate, scheduling the
// final launch steps after the restore is complete
}
if (e->PrelaunchActivated == false)
{
if (rootFrame->Content == nullptr)
{
// When the navigation stack isn't restored navigate to the first page,
// configuring the new page by passing required information as a navigation
// parameter
rootFrame->Navigate(TypeName(MainPage::typeid), e->Arguments);
}
// Place the frame in the current Window
Window::Current->Content = rootFrame;
// Ensure the current window is active
Window::Current->Activate();
}
}
else
{
if (e->PrelaunchActivated == false)
{
if (rootFrame->Content == nullptr)
{
// When the navigation stack isn't restored navigate to the first page,
// configuring the new page by passing required information as a navigation
// parameter
rootFrame->Navigate(TypeName(MainPage::typeid), e->Arguments);
}
// Ensure the current window is active
Window::Current->Activate();
}
}
}
///
/// Invoked when application execution is being suspended. Application state is saved
/// without knowing whether the application will be terminated or resumed with the contents
/// of memory still intact.
///
/// The source of the suspend request.
/// Details about the suspend request.
void App::OnSuspending(Object^ sender, SuspendingEventArgs^ e)
{
(void) sender; // Unused parameter
(void) e; // Unused parameter
//TODO: Save application state and stop any background activity
}
///
/// Invoked when Navigation to a certain page fails
///
/// The Frame which failed navigation
/// Details about the navigation failure
void App::OnNavigationFailed(Platform::Object ^sender, Windows::UI::Xaml::Navigation::NavigationFailedEventArgs ^e)
{
throw ref new FailureException("Failed to load Page " + e->SourcePageType.Name);
} ufr-examples-windows-iot-cpp-3547e8f0dd9eb56afa5bae665134977a82ed8f94/App.xaml.h 0000664 0000000 0000000 00000001164 12726300214 0026131 0 ustar 00root root 0000000 0000000 //
// App.xaml.h
// Declaration of the App class.
//
#pragma once
#include "App.g.h"
namespace AppTestUFRlib
{
///
/// Provides application-specific behavior to supplement the default Application class.
///
ref class App sealed
{
protected:
virtual void OnLaunched(Windows::ApplicationModel::Activation::LaunchActivatedEventArgs^ e) override;
internal:
App();
private:
void OnSuspending(Platform::Object^ sender, Windows::ApplicationModel::SuspendingEventArgs^ e);
void OnNavigationFailed(Platform::Object ^sender, Windows::UI::Xaml::Navigation::NavigationFailedEventArgs ^e);
};
}
ufr-examples-windows-iot-cpp-3547e8f0dd9eb56afa5bae665134977a82ed8f94/AppTestUFRlib.sln 0000664 0000000 0000000 00000004033 12726300214 0027440 0 ustar 00root root 0000000 0000000
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25123.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AppTestUFRlib", "AppTestUFRlib.vcxproj", "{FE17BC57-13E6-4DFD-A90E-B18170B7B3E3}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|ARM = Debug|ARM
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|ARM = Release|ARM
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{FE17BC57-13E6-4DFD-A90E-B18170B7B3E3}.Debug|ARM.ActiveCfg = Debug|ARM
{FE17BC57-13E6-4DFD-A90E-B18170B7B3E3}.Debug|ARM.Build.0 = Debug|ARM
{FE17BC57-13E6-4DFD-A90E-B18170B7B3E3}.Debug|ARM.Deploy.0 = Debug|ARM
{FE17BC57-13E6-4DFD-A90E-B18170B7B3E3}.Debug|x64.ActiveCfg = Debug|x64
{FE17BC57-13E6-4DFD-A90E-B18170B7B3E3}.Debug|x64.Build.0 = Debug|x64
{FE17BC57-13E6-4DFD-A90E-B18170B7B3E3}.Debug|x64.Deploy.0 = Debug|x64
{FE17BC57-13E6-4DFD-A90E-B18170B7B3E3}.Debug|x86.ActiveCfg = Debug|Win32
{FE17BC57-13E6-4DFD-A90E-B18170B7B3E3}.Debug|x86.Build.0 = Debug|Win32
{FE17BC57-13E6-4DFD-A90E-B18170B7B3E3}.Debug|x86.Deploy.0 = Debug|Win32
{FE17BC57-13E6-4DFD-A90E-B18170B7B3E3}.Release|ARM.ActiveCfg = Release|ARM
{FE17BC57-13E6-4DFD-A90E-B18170B7B3E3}.Release|ARM.Build.0 = Release|ARM
{FE17BC57-13E6-4DFD-A90E-B18170B7B3E3}.Release|ARM.Deploy.0 = Release|ARM
{FE17BC57-13E6-4DFD-A90E-B18170B7B3E3}.Release|x64.ActiveCfg = Release|x64
{FE17BC57-13E6-4DFD-A90E-B18170B7B3E3}.Release|x64.Build.0 = Release|x64
{FE17BC57-13E6-4DFD-A90E-B18170B7B3E3}.Release|x64.Deploy.0 = Release|x64
{FE17BC57-13E6-4DFD-A90E-B18170B7B3E3}.Release|x86.ActiveCfg = Release|Win32
{FE17BC57-13E6-4DFD-A90E-B18170B7B3E3}.Release|x86.Build.0 = Release|Win32
{FE17BC57-13E6-4DFD-A90E-B18170B7B3E3}.Release|x86.Deploy.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
ufr-examples-windows-iot-cpp-3547e8f0dd9eb56afa5bae665134977a82ed8f94/AppTestUFRlib.vcxproj 0000664 0000000 0000000 00000026254 12726300214 0030350 0 ustar 00root root 0000000 0000000
{fe17bc57-13e6-4dfd-a90e-b18170b7b3e3}AppTestUFRliben-US14.0trueWindows Store10.0.10586.010.0.10240.010.0DebugARMDebugWin32Debugx64ReleaseARMReleaseWin32Releasex64Applicationtruev140Applicationtruev140Applicationtruev140Applicationfalsetruev140trueApplicationfalsetruev140trueApplicationfalsetruev140trueAppTestUFRlib_TemporaryKey.pfxlib\include;$(VC_IncludePath);$(WindowsSDK_IncludePath);lib\include;$(VC_IncludePath);$(WindowsSDK_IncludePath);/bigobj %(AdditionalOptions)4453;28204falsefalse/bigobj %(AdditionalOptions)4453;28204/bigobj %(AdditionalOptions)4453;28204/bigobj %(AdditionalOptions)4453;28204/bigobj %(AdditionalOptions)4453;28204/bigobj %(AdditionalOptions)4453;28204App.xamlMainPage.xamlDesignerDesignerDesignertruetrueApp.xamlMainPage.xamlCreateCreateCreateCreateCreateCreate