2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 // Licensed under the Apache License, Version 2.0 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
8 // http://www.apache.org/licenses/LICENSE-2.0
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
18 * @file FApp_MapDataControlImpl.h
19 * @brief This is the header file for the %_MapDataControlImpl class.
22 #ifndef _FAPP_INTERNAL_MAP_DATA_CONTROL_IMPL_H_
23 #define _FAPP_INTERNAL_MAP_DATA_CONTROL_IMPL_H_
25 #include <app_service.h>
27 #include <FOspConfig.h>
28 #include <FBaseDataType.h>
29 #include <FBaseObject.h>
30 #include <FBaseString.h>
31 #include <FBaseRtEvent.h>
33 #include "FApp_AppManagerImpl.h"
35 namespace Tizen { namespace Base
44 namespace Tizen { namespace App {
46 class IMapDataControlResponseListener;
49 class _MapDataControlImpl
50 : public Tizen::Base::Object
54 virtual ~_MapDataControlImpl(void);
56 static _MapDataControlImpl* GetInstance(MapDataControl& dc);
58 static const _MapDataControlImpl* GetInstance(const MapDataControl& dc);
60 result AddValue(const Tizen::Base::String& dataId, const Tizen::Base::String& key,
61 const Tizen::Base::String& value, RequestId& reqId);
63 result GetValue(const Tizen::Base::String& dataId, const Tizen::Base::String& key,
64 RequestId& reqId, int pageNo = 1, int countPerPage = 20);
66 result SetValue(const Tizen::Base::String& dataId, const Tizen::Base::String& key,
67 const Tizen::Base::String& oldValue, const Tizen::Base::String& newValue, RequestId& reqId);
69 result RemoveValue(const Tizen::Base::String& dataId, const Tizen::Base::String& key,
70 const Tizen::Base::String& value, RequestId& reqId);
72 result SetMapDataControlResponseListener(IMapDataControlResponseListener* pListener);
74 static result MapDataControlCallback(void* data, _AppArg* pArg, _AppArg* pResArg, service_result_e res, int prop, int option);
77 _MapDataControlImpl(void);
79 static MapDataControl* CreateMapDataControl(const AppId& appId, const Tizen::Base::String& providerId,
80 const Tizen::Base::String& access);
82 result StartMapDataControl(int type, const Tizen::Base::Collection::IList* pDataList, int* pReq);
84 Tizen::Base::String __appId;
85 Tizen::Base::String __providerId;
87 IMapDataControlResponseListener* __pPreviousListener;
88 Tizen::Base::Runtime::Event* __pMapDataControlEvent;
89 Tizen::Base::Collection::LinkedList* __pRequestList;
91 friend class MapDataControl;
92 friend class _AppManagerImpl;
95 }; // _MapDataControlImpl
99 #endif // _FAPP_INTERNAL_MAP_DATA_CONTROL_IMPL_H_