Move Geolocation to kits/shared and make it private.
This commit is contained in:
@@ -9,6 +9,9 @@
|
|||||||
#include <Url.h>
|
#include <Url.h>
|
||||||
|
|
||||||
|
|
||||||
|
namespace BPrivate {
|
||||||
|
|
||||||
|
|
||||||
class BGeolocation {
|
class BGeolocation {
|
||||||
public:
|
public:
|
||||||
BGeolocation();
|
BGeolocation();
|
||||||
@@ -26,4 +29,7 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
} // namespace BPrivate
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -59,8 +59,6 @@ for architectureObject in [ MultiArchSubDirSetup ] {
|
|||||||
# TODO: another add-on for file:// (a much simpler one)
|
# TODO: another add-on for file:// (a much simpler one)
|
||||||
FileRequest.cpp
|
FileRequest.cpp
|
||||||
|
|
||||||
Geolocation.cpp
|
|
||||||
|
|
||||||
# TODO: another add-on for gopher://
|
# TODO: another add-on for gopher://
|
||||||
GopherRequest.cpp
|
GopherRequest.cpp
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,9 @@
|
|||||||
#include <UrlRequest.h>
|
#include <UrlRequest.h>
|
||||||
|
|
||||||
|
|
||||||
|
namespace BPrivate {
|
||||||
|
|
||||||
|
|
||||||
BGeolocation::BGeolocation()
|
BGeolocation::BGeolocation()
|
||||||
: fService(kDefaultService)
|
: 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
|
// FIXME switch to an openly available service that will actually work with the
|
||||||
// "standard" geolocation API. Openbmap has a few variations.
|
// "standard" geolocation API. Openbmap has a few variations.
|
||||||
const char* BGeolocation::kDefaultService = "http://openbmap.org/api/json.php5";
|
const char* BGeolocation::kDefaultService = "http://openbmap.org/api/json.php5";
|
||||||
|
|
||||||
|
|
||||||
|
} // namespace BPrivate
|
||||||
@@ -30,6 +30,7 @@ for architectureObject in [ MultiArchSubDirSetup ] {
|
|||||||
CommandPipe.cpp
|
CommandPipe.cpp
|
||||||
DragTrackingFilter.cpp
|
DragTrackingFilter.cpp
|
||||||
DriverSettingsMessageAdapter.cpp
|
DriverSettingsMessageAdapter.cpp
|
||||||
|
Geolocation.cpp
|
||||||
HashString.cpp
|
HashString.cpp
|
||||||
IconButton.cpp
|
IconButton.cpp
|
||||||
IconView.cpp
|
IconView.cpp
|
||||||
|
|||||||
Reference in New Issue
Block a user