2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 * @file FLoc_RegionInfo.h
20 * @brief This is the header file for the %_RegionInfo class.
22 * This header file contains the declarations of the %_RegionInfo class member variables.
25 #ifndef _FLOC_INTERNAL_REGION_INFO_H_
26 #define _FLOC_INTERNAL_REGION_INFO_H_
28 #include <FBaseObject.h>
29 #include <FLocCoordinates.h>
30 #include <FLocTypes.h>
31 #include "FLoc_Types.h"
33 namespace Tizen { namespace Locations
37 : public Tizen::Base::Object
40 _RegionInfo(Coordinates coordinate, double radius, RegionId regionId)
41 : Tizen::Base::Object()
42 , __coordinate(coordinate)
44 , __regionId(regionId)
45 , __state(REGION_STATE_UNKNOWN)
46 , __preValidState(REGION_STATE_UNKNOWN)
47 , __requestedAccuracy(LOC_ACCURACY_INVALID)
56 Coordinates GetCoordinate(void) const {return __coordinate;}
58 double GetRadius(void) const {return __radius;}
60 RegionId GetRegionId(void) const {return __regionId;}
62 _RegionState GetRegionState(void) const {return __state;}
64 void SetRegionState(_RegionState state) {__state = state;}
66 _RegionState GetPreviousValidState(void) const {return __preValidState;}
68 void SetValidPreviousState(_RegionState prevState) {__preValidState = prevState;}
71 _RegionInfo(const _RegionInfo& rhs);
73 _RegionInfo& operator =(const _RegionInfo& rhs);
76 Coordinates __coordinate;
80 _RegionState __preValidState;
81 LocationAccuracy __requestedAccuracy;
86 #endif // _FLOC_INTERNAL_REGION_INFO_H_