Tizen 2.0 Release
[framework/osp/locations.git] / src / FLoc_RegionInfo.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
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
8 //
9 //     http://www.apache.org/licenses/LICENSE-2.0
10 //
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.
16 //
17
18 /**
19  * @file        FLoc_RegionInfo.h
20  * @brief       This is the header file for the %_RegionInfo class.
21  *
22  * This header file contains the declarations of the %_RegionInfo class member variables.
23  */
24
25 #ifndef _FLOC_INTERNAL_REGION_INFO_H_
26 #define _FLOC_INTERNAL_REGION_INFO_H_
27
28 #include <FBaseObject.h>
29 #include <FLocCoordinates.h>
30 #include <FLocTypes.h>
31 #include "FLoc_Types.h"
32
33 namespace Tizen { namespace Locations
34 {
35
36 class _RegionInfo
37         : public Tizen::Base::Object
38 {
39 public:
40         _RegionInfo(Coordinates coordinate, double radius, RegionId regionId)
41                 : Tizen::Base::Object()
42                 , __coordinate(coordinate)
43                 , __radius(radius)
44                 , __regionId(regionId)
45                 , __state(REGION_STATE_UNKNOWN)
46                 , __preValidState(REGION_STATE_UNKNOWN)
47                 , __requestedAccuracy(LOC_ACCURACY_INVALID)
48                 , __timerValue(0)
49         {
50         }
51
52         ~_RegionInfo()
53         {
54         }
55
56         Coordinates GetCoordinate(void) const {return __coordinate;}
57
58         double GetRadius(void) const {return __radius;}
59
60         RegionId GetRegionId(void) const {return __regionId;}
61
62         _RegionState GetRegionState(void) const {return __state;}
63
64         void SetRegionState(_RegionState state) {__state = state;}
65
66         _RegionState GetPreviousValidState(void) const {return __preValidState;}
67
68         void SetValidPreviousState(_RegionState prevState) {__preValidState = prevState;}
69
70 private:
71         _RegionInfo(const _RegionInfo& rhs);
72
73         _RegionInfo& operator =(const _RegionInfo& rhs);
74
75 private:
76         Coordinates __coordinate;
77         double __radius;
78         RegionId __regionId;
79         _RegionState __state;
80         _RegionState __preValidState;
81         LocationAccuracy __requestedAccuracy;
82         int __timerValue;
83 }; //_RegionInfo
84 }} //Tizen::Locations
85
86 #endif // _FLOC_INTERNAL_REGION_INFO_H_