tizen 2.3 release
[apps/home/ug-nfc-efl.git] / ug-nfc-setting-efl / include / ug-nfc-setting-db.h
1 /*
2   * Copyright (c) 2012, 2013 Samsung Electronics Co., Ltd.
3   *
4   * Licensed under the Flora License, Version 1.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
7
8   *     http://floralicense.org/license/
9   *
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.
15   */
16
17
18 #ifndef __UG_NFC_SETTING_DB_H__
19 #define __UG_NFC_SETTING_DB_H__
20
21 #ifdef __cplusplus
22 extern "C" {
23 #endif /* __cplusplus */
24
25 #include <sqlite3.h>
26
27 /************************** API **************************/
28 int _ug_nfc_setting_db_open(void);
29 int _ug_nfc_setting_db_close(void);
30 int _ug_nfc_setting_db_open_table(int *table_handle);
31 int _ug_nfc_setting_db_get_count(int *count);
32 int _ug_nfc_setting_db_get_next_record(int table_handle,
33                                         char **app_id, char **pkgName,
34                                         char **iconPath, char **msgDes);
35 int _ug_nfc_setting_db_get_pkgName(char *app_id, char **pkgName);
36 int _ug_nfc_setting_db_close_table(int table_handle);
37
38
39 #ifdef __cplusplus
40 }
41 #endif
42
43 #endif /*__UG_NFC_SETTING_DB_H__*/
44