Merge lp:~charlesk/indicator-location/use-ubuntu-location-api into lp:indicator-location/13.10

Proposed by Charles Kerr
Status: Merged
Approved by: Ted Gould
Approved revision: 44
Merged at revision: 42
Proposed branch: lp:~charlesk/indicator-location/use-ubuntu-location-api
Merge into: lp:indicator-location/13.10
Diff against target: 85 lines (+7/-7)
5 files modified
CMakeLists.txt (+1/-1)
debian/control (+1/-0)
src/CMakeLists.txt (+1/-1)
src/controller-ualc.cc (+2/-2)
src/main.cc (+2/-3)
To merge this branch: bzr merge lp:~charlesk/indicator-location/use-ubuntu-location-api
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Ted Gould (community) Approve
Review via email: mp+182973@code.launchpad.net

Description of the change

ubuntu's location API's got the FTBFS resolved, so let's use it as the backend.

This commit changes which controller instance we pass to the service. Before it was a MockController; now it's an UbuntuAppLocController

To post a comment you must log in.
Revision history for this message
Ted Gould (ted) wrote :

Glad that we can switch over. Already reviewed that code with the original merge.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'CMakeLists.txt'
2--- CMakeLists.txt 2013-08-26 21:38:43 +0000
3+++ CMakeLists.txt 2013-08-29 17:55:15 +0000
4@@ -29,10 +29,10 @@
5
6 include (FindPkgConfig)
7 pkg_check_modules (SERVICE REQUIRED
8+ ubuntu-platform-api>=1.0.0
9 url-dispatcher-1
10 gio-unix-2.0>=2.36
11 glib-2.0>=2.36)
12- #ubuntu-platform-api>=1.0.0
13
14 ##
15 ##
16
17=== modified file 'debian/control'
18--- debian/control 2013-08-26 21:38:43 +0000
19+++ debian/control 2013-08-29 17:55:15 +0000
20@@ -10,6 +10,7 @@
21 libglib2.0-dev (>= 2.36),
22 libgtest-dev,
23 liburl-dispatcher1-dev,
24+ libplatform-api1-dev,
25 python,
26 Standards-Version: 3.9.4
27 Homepage: http://launchpad.net/indicator-location/
28
29=== modified file 'src/CMakeLists.txt'
30--- src/CMakeLists.txt 2013-08-25 20:31:26 +0000
31+++ src/CMakeLists.txt 2013-08-29 17:55:15 +0000
32@@ -26,7 +26,7 @@
33
34 set (INDICATOR_EXEC "indicator-location-service")
35
36-add_executable (${INDICATOR_EXEC} main.cc)
37+add_executable (${INDICATOR_EXEC} main.cc controller-ualc.cc)
38
39 set_property (SOURCE main.cc
40 APPEND PROPERTY COMPILE_DEFINITIONS
41
42=== modified file 'src/controller-ualc.cc'
43--- src/controller-ualc.cc 2013-08-25 21:44:50 +0000
44+++ src/controller-ualc.cc 2013-08-29 17:55:15 +0000
45@@ -25,7 +25,7 @@
46 UbuntuAppLocController :: UbuntuAppLocController ():
47 ualc (ua_location_service_create_controller ())
48 {
49- if (ualc)
50+ if (ualc != nullptr)
51 {
52 ua_location_service_controller_set_status_changed_handler (
53 ualc,
54@@ -36,7 +36,7 @@
55
56 UbuntuAppLocController :: ~UbuntuAppLocController ()
57 {
58- if (ualc)
59+ if (ualc != nullptr)
60 ua_location_service_controller_unref (ualc);
61 }
62
63
64=== modified file 'src/main.cc'
65--- src/main.cc 2013-08-25 21:44:50 +0000
66+++ src/main.cc 2013-08-29 17:55:15 +0000
67@@ -21,8 +21,7 @@
68 #include <glib/gi18n.h>
69 #include <glib.h>
70
71-//#include "controller-ualc.h"
72-#include "controller-mock.h"
73+#include "controller-ualc.h"
74 #include "service.h"
75
76 static void
77@@ -43,7 +42,7 @@
78
79 /* set up the service */
80 loop = g_main_loop_new (nullptr, false);
81- std::shared_ptr<Controller> controller (new MockController());//UbuntuAppLocController ());
82+ std::shared_ptr<Controller> controller (new UbuntuAppLocController ());
83 Service service (controller);
84 service.set_name_lost_callback (on_name_lost, loop);
85 g_main_loop_run (loop);

Subscribers

People subscribed via source and target branches