4 * Copyright (c) 2012 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
\r
6 * Contact: Kyuho Jo <kyuho.jo@samsung.com>, Sunghyun Kwon <sh0701.kwon@samsung.com>
\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
12 * http://www.apache.org/licenses/LICENSE-2.0
\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
23 #ifndef __EMAIL_DBUS_ACTIVATION_H__
\r
24 #define __EMAIL_DBUS_ACTIVATION_H__
\r
26 /* standard library header */
\r
27 #include <glib-object.h>
\r
29 typedef struct _email_service_t EmailService;
\r
30 typedef struct _email_service_class_t EmailServiceClass;
\r
33 #define EMAIL_SERVICE_NAME "org.tizen.email_service"
\r
34 #define EMAIL_SERVICE_PATH "/org/tizen/email_service"
\r
36 GType email_service_get_type(void);
\r
38 struct _email_service_t
\r
44 struct _email_service_class_t
\r
46 GObjectClass parent;
\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
58 NFC_SERVICE_ERROR_INVALID_PRAM
\r
59 } email_servcie_error;
\r
61 GQuark email_service_error_quark(void);
\r
62 #define EMAIL_SERVICE_ERROR email_service_error_quark()
\r
65 * launch the email-service
\r
67 gboolean email_service_launch(EmailService *email_service, guint *result_val, GError **error);
\r
69 EXPORT_API int emipc_init_dbus_connection();
\r
70 EXPORT_API int emipc_launch_email_service();
\r
72 #endif /* __EMAIL_DBUS_ACTIVATION_H__ */
\r