File: main.cpp

package info (click to toggle)
qt6-positioning 6.10.2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 6,064 kB
  • sloc: cpp: 35,740; java: 513; xml: 58; makefile: 23
file content (22 lines) | stat: -rw-r--r-- 696 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: BSD-3-Clause

#include <functional>
#include <windows.system.h>
#include <windows.devices.geolocation.h>
#include <windows.foundation.h>
#include <wrl.h>

using namespace Microsoft::WRL::Wrappers;
using namespace ABI::Windows::Devices::Geolocation;
using namespace ABI::Windows::Foundation;

typedef IAsyncOperationCompletedHandler<GeolocationAccessStatus> AccessHandler;

int main(int, char**)
{
    IGeolocator *locator;
    RoActivateInstance(HString::MakeReference(RuntimeClass_Windows_Devices_Geolocation_Geolocator).Get(),
                                    reinterpret_cast<IInspectable**>(&locator));
    return 0;
}