merge with master
[framework/osp/locations.git] / src / FLoc_LocationRequestInfo.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_LocationRequestInfo.h
20  * @brief       This is the header file for the %_LocationRequestInfo class.
21  *
22  * This header file contains the declarations of the %_LocationRequestInfo class member variables.
23  */
24
25 #ifndef _FLOC_INTERNAL_LOCATION_REQUEST_INFO_H_
26 #define _FLOC_INTERNAL_LOCATION_REQUEST_INFO_H_
27
28 #include <FBaseObject.h>
29 #include <FLocTypes.h>
30
31 namespace Tizen { namespace Locations
32 {
33
34 class _ILocationManagerListener;
35
36 class _LocationRequestInfo
37         : public Tizen::Base::Object
38 {
39 public:
40         _LocationRequestInfo(LocationAccuracy accuracy, int interval, _ILocationManagerListener* pListener, RequestId reqId)
41                 : Tizen::Base::Object()
42                 , __interval(interval)
43                 , __reqId(reqId)
44                 , __accuracy(accuracy)
45                 , __pListener(pListener)
46         {
47         }
48
49         ~_LocationRequestInfo(void)
50         {
51         }
52
53         _LocationRequestInfo(const _LocationRequestInfo& rhs)
54                 : Tizen::Base::Object()
55                 , __interval(rhs.__interval)
56                 , __reqId(rhs.__reqId)
57                 , __accuracy(rhs.__accuracy)
58                 , __pListener(rhs.__pListener)
59         {
60         }
61
62         LocationAccuracy GetAccuracy(void) const {return __accuracy;}
63
64         int GetInterval(void) const {return __interval;}
65
66         _ILocationManagerListener* GetListener(void) const {return __pListener;}
67
68         RequestId GetRequestId(void) const {return __reqId;}
69
70         void SetInterval(int interval) { __interval = interval;}
71
72 private:
73         _LocationRequestInfo(void);
74
75         _LocationRequestInfo& operator =(const _LocationRequestInfo& rhs);
76
77 private:
78         int __interval;
79         RequestId __reqId;
80         LocationAccuracy __accuracy;
81         _ILocationManagerListener* __pListener;
82 }; //_LocationRequestInfo
83 }} //Tizen::Locations
84
85 #endif // _FLOC_INTERNAL_LOCATION_REQUEST_INFO_H_