2 * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
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.
17 #ifndef _LOCATION_HERE_MANAGER_H_
18 #define _LOCATION_HERE_MANAGER_H_
29 #include <net_connection.h>
30 #include <app_manager.h>
33 #include "here_base.h"
35 #include "here_types.h"
36 #include "here_utils.h"
39 #include <common/ApplicationContext.h>
40 #include <common/HereConfig.h>
42 HERE_PLUGIN_BEGIN_NAMESPACE
46 typedef std::vector<HereBase*> HereSvcList;
52 *This is the default constructor for Geocoder.
58 *This is the default destructor for Geocoder.
61 virtual ~HereManager();
70 void* CreateInstance(HereSvcType nHereSvc, void* pCbFunc, void* pUserData, int *nReqId);
71 here_error_e CloseInstance(int nReqId);
72 here_error_e CancelInstance(int nReqId);
73 here_error_e SetCredentials(const char* provider_key);
74 here_error_e GetCredentials(char** provider_key);
75 void TerminateAllServices(void);
77 here_error_e SetProxyAddress();
78 here_error_e SetPreference(maps_preference_h hPref);
79 here_error_e GetPreference(maps_preference_h *hPref);
80 maps_preference_h GetPreference();
83 static HereManager* GetHandler();
87 here_error_e SetCredentials();
88 static bool AppInfoMetadataCb(const char *metadata_key, const char *metadata_value, void *user_data);
89 static void NetworkStateChangedIndCb(connection_type_e type, void *user_data);
90 static here_error_e ConvertNetworkErrorCode(const int nErrorCode);
91 connection_h m_hConnection;
93 static HereManager *m_pHereManager;
96 HereSvcList m_HereList;
98 maps_preference_h m_hPref;
101 HERE_PLUGIN_END_NAMESPACE
103 #endif //_LOCATION_HERE_MANAGER_H_