Ubuntu Platform API
1.0.0
A library helping with tight integration into the Ubuntu platform
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
service.h
Go to the documentation of this file.
1
/*
2
* Copyright © 2013 Canonical Ltd.
3
*
4
* This program is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU Lesser General Public License version 3 as
6
* published by the Free Software Foundation.
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU Lesser General Public License for more details.
12
*
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15
*
16
* Authored by: Thomas Voß <thomas.voss@canonical.com>
17
*/
18
19
#ifndef UBUNTU_APPLICATION_LOCATION_SERVICE_H_
20
#define UBUNTU_APPLICATION_LOCATION_SERVICE_H_
21
22
#include <
ubuntu/visibility.h
>
23
24
#include <
ubuntu/application/location/controller.h
>
25
#include <
ubuntu/application/location/session.h
>
26
27
#ifdef __cplusplus
28
extern
"C"
29
{
30
#endif
31
56
typedef
enum
57
{
58
UA_LOCATION_SERVICE_REQUIRE_ALTITUDE
= 1 << 0,
59
UA_LOCATION_SERVICE_REQUIRE_HEADING
= 1 << 1,
60
UA_LOCATION_SERVICE_REQUIRE_VELOCITY
= 1 << 2
61
}
UbuntuApplicationLocationServiceRequirement
;
62
63
typedef
UbuntuApplicationLocationServiceRequirement
UALocationServiceRequirement
;
64
69
typedef
unsigned
int
UALocationServiceRequirementsFlags
;
70
79
UBUNTU_DLL_PUBLIC
UALocationServiceSession
*
80
ua_location_service_create_session_for_low_accuracy
(
81
UALocationServiceRequirementsFlags flags);
82
91
UBUNTU_DLL_PUBLIC
UALocationServiceSession
*
92
ua_location_service_create_session_for_high_accuracy
(
93
UALocationServiceRequirementsFlags flags);
94
101
UBUNTU_DLL_PUBLIC
UALocationServiceController
*
102
ua_location_service_create_controller
();
103
104
#ifdef __cplusplus
105
}
106
#endif
107
108
#endif // UBUNTU_APPLICATION_LOCATION_SERVICE_H_
include
ubuntu
application
location
service.h
Generated on Tue Oct 15 2013 02:50:25 for Ubuntu Platform API by
1.8.4