Move Geolocation to kits/shared and make it private.

This commit is contained in:
Oliver Tappe
2014-10-02 00:32:48 +02:00
parent d02e38fb13
commit 3006031ac2
4 changed files with 14 additions and 3 deletions
+6
View File
@@ -9,6 +9,9 @@
#include <Url.h>
namespace BPrivate {
class BGeolocation {
public:
BGeolocation();
@@ -26,4 +29,7 @@ private:
};
} // namespace BPrivate
#endif
+1 -3
View File
@@ -50,7 +50,7 @@ for architectureObject in [ MultiArchSubDirSetup ] {
NetworkInterface.cpp
NetworkRoster.cpp
RouteSupport.cpp
AbstractSocket.cpp
DatagramSocket.cpp
Socket.cpp
@@ -59,8 +59,6 @@ for architectureObject in [ MultiArchSubDirSetup ] {
# TODO: another add-on for file:// (a much simpler one)
FileRequest.cpp
Geolocation.cpp
# TODO: another add-on for gopher://
GopherRequest.cpp
@@ -16,6 +16,9 @@
#include <UrlRequest.h>
namespace BPrivate {
BGeolocation::BGeolocation()
: fService(kDefaultService)
{
@@ -141,3 +144,6 @@ BGeolocation::LocateSelf(float& latitude, float& longitude)
// FIXME switch to an openly available service that will actually work with the
// "standard" geolocation API. Openbmap has a few variations.
const char* BGeolocation::kDefaultService = "http://openbmap.org/api/json.php5";
} // namespace BPrivate
+1
View File
@@ -30,6 +30,7 @@ for architectureObject in [ MultiArchSubDirSetup ] {
CommandPipe.cpp
DragTrackingFilter.cpp
DriverSettingsMessageAdapter.cpp
Geolocation.cpp
HashString.cpp
IconButton.cpp
IconView.cpp