Tizen 2.0 Release
[platform/core/messaging/email-service.git] / email-ipc / email-activation / include / email-dbus-activation.h
1 /*\r
2 *  email-service\r
3 *\r
4 * Copyright (c) 2012 - 2013 Samsung Electronics Co., Ltd. All rights reserved.\r
5 *\r
6 * Contact: Kyuho Jo <kyuho.jo@samsung.com>, Sunghyun Kwon <sh0701.kwon@samsung.com>\r
7 *\r
8 * Licensed under the Apache License, Version 2.0 (the "License");\r
9 * you may not use this file except in compliance with the License.\r
10 * You may obtain a copy of the License at\r
11 *\r
12 * http://www.apache.org/licenses/LICENSE-2.0\r
13 *\r
14 * Unless required by applicable law or agreed to in writing, software\r
15 * distributed under the License is distributed on an "AS IS" BASIS,\r
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
17 * See the License for the specific language governing permissions and\r
18 * limitations under the License.\r
19 *\r
20 */\r
21 \r
22 \r
23 #ifndef __EMAIL_DBUS_ACTIVATION_H__\r
24 #define __EMAIL_DBUS_ACTIVATION_H__\r
25 \r
26 /* standard library header */\r
27 #include <glib-object.h>\r
28 \r
29 typedef struct _email_service_t EmailService;\r
30 typedef struct _email_service_class_t EmailServiceClass;\r
31 \r
32 \r
33 #define EMAIL_SERVICE_NAME "org.tizen.email_service"\r
34 #define EMAIL_SERVICE_PATH "/org/tizen/email_service"\r
35 \r
36 GType email_service_get_type(void);\r
37 \r
38 struct _email_service_t\r
39 {\r
40         GObject parent;\r
41         int status;\r
42 };\r
43 \r
44 struct _email_service_class_t\r
45 {\r
46         GObjectClass parent;\r
47 };\r
48 \r
49 #define EMAIL_SERVICE_TYPE              (email_service_get_type())\r
50 #define EMAIL_SERVICE(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), EMAIL_SERVICE_TYPE, EmailService))\r
51 #define EMAIL_SERVICE_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), EMAIL_SERVICE_TYPE, EmailServiceClass))\r
52 #define IS_EMAIL_SERVICE(object)        (G_TYPE_CHECK_INSTANCE_TYPE ((object), EMAIL_SERVICE_TYPE))\r
53 #define IS_EMAIL_SERVICE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), EMAIL_SERVICE_TYPE))\r
54 #define EMAIL_SERVICE_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), EMAIL_SERVICE_TYPE, EmailServiceClass))\r
55 \r
56 typedef enum\r
57 {\r
58         NFC_SERVICE_ERROR_INVALID_PRAM\r
59 } email_servcie_error;\r
60 \r
61 GQuark email_service_error_quark(void);\r
62 #define EMAIL_SERVICE_ERROR email_service_error_quark()\r
63 \r
64 /**\r
65  *     launch the email-service\r
66  */\r
67 gboolean email_service_launch(EmailService *email_service, guint *result_val, GError **error);\r
68 \r
69 EXPORT_API int emipc_init_dbus_connection();\r
70 EXPORT_API int emipc_launch_email_service();\r
71 \r
72 #endif /* __EMAIL_DBUS_ACTIVATION_H__ */\r