• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2008 Holger Hans Peter Freyther
3  * Copyright (C) 2011 Samsung Electronics
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public License
16  * along with this library; see the file COPYING.LIB.  If not, write to
17  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19  */
20 
21 #include "config.h"
22 #include "GeolocationServiceEfl.h"
23 
24 #if ENABLE(GEOLOCATION)
25 #include "NotImplemented.h"
26 #include "PositionOptions.h"
27 #include <wtf/text/CString.h>
28 
29 namespace WebCore {
30 
31 GeolocationService::FactoryFunction* GeolocationService::s_factoryFunction = &GeolocationServiceEfl::create;
32 
create(GeolocationServiceClient * client)33 GeolocationService* GeolocationServiceEfl::create(GeolocationServiceClient* client)
34 {
35     return new GeolocationServiceEfl(client);
36 }
37 
GeolocationServiceEfl(GeolocationServiceClient * client)38 GeolocationServiceEfl::GeolocationServiceEfl(GeolocationServiceClient* client)
39     : GeolocationService(client)
40 {
41 }
42 
~GeolocationServiceEfl()43 GeolocationServiceEfl::~GeolocationServiceEfl()
44 {
45     notImplemented();
46 }
47 
startUpdating(PositionOptions * options)48 bool GeolocationServiceEfl::startUpdating(PositionOptions* options)
49 {
50     notImplemented();
51     return false;
52 }
53 
stopUpdating()54 void GeolocationServiceEfl::stopUpdating()
55 {
56     notImplemented();
57 }
58 
suspend()59 void GeolocationServiceEfl::suspend()
60 {
61     notImplemented();
62 }
63 
resume()64 void GeolocationServiceEfl::resume()
65 {
66     notImplemented();
67 }
68 
lastPosition() const69 Geoposition* GeolocationServiceEfl::lastPosition() const
70 {
71     return m_lastPosition.get();
72 }
73 
lastError() const74 PositionError* GeolocationServiceEfl::lastError() const
75 {
76     return m_lastError.get();
77 }
78 
79 }
80 #endif // ENABLE(GEOLOCATION)
81