Ubuntu Platform API  1.2.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 
26 
27 #ifdef __cplusplus
28 extern "C"
29 {
30 #endif
31 
56  typedef enum
57  {
62 
64 
69  typedef unsigned int UALocationServiceRequirementsFlags;
70 
81  UALocationServiceRequirementsFlags flags);
82 
93  UALocationServiceRequirementsFlags flags);
94 
103 
104 #ifdef __cplusplus
105 }
106 #endif
107 
108 #endif // UBUNTU_APPLICATION_LOCATION_SERVICE_H_
UBUNTU_DLL_PUBLIC UALocationServiceSession * ua_location_service_create_session_for_high_accuracy(UALocationServiceRequirementsFlags flags)
Creates a new session with the location service for high positional accuracy requirements.
UbuntuApplicationLocationServiceRequirement UALocationServiceRequirement
Definition: service.h:63
UBUNTU_DLL_PUBLIC UALocationServiceSession * ua_location_service_create_session_for_low_accuracy(UALocationServiceRequirementsFlags flags)
Creates a new session with the location service for low positional accuracy requirements.
struct UbuntuApplicationLocationServiceSession UALocationServiceSession
Opaque type encapsulating a session with the location service.
Definition: session.h:38
UbuntuApplicationLocationServiceRequirement
Application-specific requirements.
Definition: service.h:56
#define UBUNTU_DLL_PUBLIC
Definition: visibility.h:25
UBUNTU_DLL_PUBLIC UALocationServiceController * ua_location_service_create_controller()
Creates a new controller for the location service.
unsigned int UALocationServiceRequirementsFlags
Bitfield type for summarizing an application's requirements.
Definition: service.h:69
struct UbuntuApplicationLocationServiceController UALocationServiceController
Opaque type encapsulating a controller the location service.
Definition: controller.h:58