/*
- * bluetooth-agent
+ * Bluetooth-agent
*
- * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact: Hocheol Seo <hocheol.seo@samsung.com>
+ * Girishashok Joshi <girish.joshi@samsung.com>
+ * Chanyeol Park <chanyeol.park@samsung.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
#ifndef __DEF_BT_PB_VCARD_H_
#define __DEF_BT_PB_VCARD_H_
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <glib.h>
+#define SIM_ADDRESSBOOK_PREFIX "http://tizen.org/addressbook/sim"
+
+typedef enum {
+ PBAP_ADDRESSBOOK_PHONE,
+ PBAP_ADDRESSBOOK_SIM,
+} bt_pbap_addressbook_e;
+
+#define VCARD_FORMAT_2_1 0x0
+#define VCARD_FORMAT_3_0 0x1
+
+#define VCARD_VERSION (0x1)
+#define VCARD_FN (0x1 << 1)
+#define VCARD_N (0x1 << 2)
+#define VCARD_PHOTO (0x1 << 3)
+#define VCARD_BDAY (0x1 << 4)
+#define VCARD_ADR (0x1 << 5)
+#define VCARD_LABEL (0x1 << 6) /* not supported */
+#define VCARD_TEL (0x1 << 7)
+#define VCARD_EMAIL (0x1 << 8)
+#define VCARD_MAILER (0x1 << 9) /* not supported */
+#define VCARD_TZ (0x1 << 10) /* not supported */
+#define VCARD_GEO (0x1 << 11) /* not supported */
+#define VCARD_TITLE (0x1 << 12)
+#define VCARD_ROLE (0x1 << 13)
+#define VCARD_LOGO (0x1 << 14) /* not supported */
+#define VCARD_AGENT (0x1 << 15) /* not supported */
+#define VCARD_ORG (0x1 << 16)
+#define VCARD_NOTE (0x1 << 17)
+#define VCARD_REV (0x1 << 18)
+#define VCARD_SOUND (0x1 << 19) /* not supported */
+#define VCARD_URL (0x1 << 20)
+#define VCARD_UID (0x1 << 21)
+#define VCARD_KEY (0x1 << 22) /* not supported */
+#define VCARD_NICKNAME (0x1 << 23)
+#define VCARD_CATEGORIES (0x1 << 24) /* not supported */
+#define VCARD_PROID (0x1 << 25) /* not supported */
+#define VCARD_CLASS (0x1 << 26) /* not supported */
+#define VCARD_SORT_STRING (0x1 << 27) /* not supported */
+#define VCARD_X_IRMC_CALL_DATETIME (0x1 << 28)
+
/* vcard */
+int _bluetooth_get_contact_addressbook(gint person_id);
+
gchar *_bluetooth_pb_vcard_contact(gint person_id,
guint64 filter,
guint8 format);
gchar *_bluetooth_pb_owner_name(void);
+bool _bt_is_sim_addressbook(const char *addressbook);
+
+#ifdef __cplusplus
+}
+#endif
+
#endif