Move Geolocation to kits/shared and make it private.

This commit is contained in:
Oliver Tappe 2014-10-01 23:13:12 +02:00
parent d02e38fb13
commit 3006031ac2
4 changed files with 14 additions and 3 deletions

View File

@ -9,6 +9,9 @@
#include <Url.h>
namespace BPrivate {
class BGeolocation {
public:
BGeolocation();
@ -26,4 +29,7 @@ private:
};
} // namespace BPrivate
#endif

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

View File

@ -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

View File

@ -30,6 +30,7 @@ for architectureObject in [ MultiArchSubDirSetup ] {
CommandPipe.cpp
DragTrackingFilter.cpp
DriverSettingsMessageAdapter.cpp
Geolocation.cpp
HashString.cpp
IconButton.cpp
IconView.cpp