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> #include <Url.h>
namespace BPrivate {
class BGeolocation { class BGeolocation {
public: public:
BGeolocation(); BGeolocation();
@@ -26,4 +29,7 @@ private:
}; };
} // namespace BPrivate
#endif #endif
-2
View File
@@ -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
+1
View File
@@ -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