diff options
Diffstat (limited to 'mobile_src/Tizen/SimpleCoordinates.cpp')
-rw-r--r-- | mobile_src/Tizen/SimpleCoordinates.cpp | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/mobile_src/Tizen/SimpleCoordinates.cpp b/mobile_src/Tizen/SimpleCoordinates.cpp new file mode 100644 index 0000000..edde2c7 --- /dev/null +++ b/mobile_src/Tizen/SimpleCoordinates.cpp @@ -0,0 +1,62 @@ +// +// Tizen Web Device API +// Copyright (c) 2012 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +/** + * @file SimpleCoordinates.cpp + * @version 0.1 + * @brief + */ + +#include "SimpleCoordinates.h" + +namespace DeviceAPI {
namespace Tizen { + +using namespace std; + +SimpleCoordinates::SimpleCoordinates(const double latitude, + const double longitude) : + m_latitude(latitude), + m_longitude(longitude) +{ +} + +SimpleCoordinates::~SimpleCoordinates() +{ +} + +double SimpleCoordinates::getLatitude() const +{ + return m_latitude; +} + +void SimpleCoordinates::setLatitude(const double value) +{ + m_latitude = value; +} + +double SimpleCoordinates::getLongitude() const +{ + return m_longitude; +} + +void SimpleCoordinates::setLongitude(const double value) +{ + m_longitude = value; +} + +} // Tizen +} // DeviceAPI |