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 __MAPS_SERVICE_PLUGIN_DISCOVERY_H__
18 #define __MAPS_SERVICE_PLUGIN_DISCOVERY_H__
20 #include "maps_util.h"
32 static provider_info empty_instance;
35 provider_info(const string &provider, const string &file);
36 provider_info(const provider_info &src);
37 virtual ~provider_info()
41 provider_info & operator=(const provider_info &src);
42 /* operator maps_provider_info_h() const; */
44 void construct(const string &provider, const string &file);
54 vector<provider_info> get_available_list() const;
56 vector<string> get_module_file_list() const;
59 provider_info find_by_names(const string &provider);
60 void split_provider_name(const char *original, char **provider, char **module);
62 void user_consent_cb(bool consented, const char *provider, void *user_data);
63 int request_user_consent(const char *maps_provider, void* callback, void *user_data);
67 #endif /* __MAPS_SERVICE_PLUGIN_DISCOVERY_H__ */