2.0_alpha release commit
[framework/messaging/email-service.git] / email-core / include / email-core-sound.h
1 /*
2 *  email-service
3 *
4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5 *
6 * Contact: Kyuho Jo <kyuho.jo@samsung.com>, Sunghyun Kwon <sh0701.kwon@samsung.com>
7
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 *
20 */
21
22
23 #include <vconf-keys.h>
24 #include <vconf.h>
25 #include <mm_player.h>
26 #include <mm_error.h>
27 #include <mm_session_private.h>
28 #include <devman_haptic.h>
29 #include <alarm.h>
30
31 typedef enum
32 {
33         EMAIL_SOUND_STATUS, 
34         EMAIL_VIBE_STATUS, 
35         EMAIL_ALERT_REP_TYPE, 
36         EMAIL_ALERT_VOLUME, 
37         EMAIL_ALERT_VIBE_STENGTH, 
38 } EMAIL_SETTING_t;
39
40 typedef enum
41 {
42         EMAIL_ALERT_TYPE_MELODY, 
43         EMAIL_ALERT_TYPE_VIB, 
44         EMAIL_ALERT_TYPE_MELODY_AND_VIB, 
45         EMAIL_ALERT_TYPE_MUTE, 
46 } EMAIL_ALERT_TYPE;
47
48 typedef enum
49 {
50         EMAIL_GCONF_VALUE_REPEAT_NONE = 0,
51         EMAIL_GCONF_VALUE_REPEAT_2MINS,
52         EMAIL_GCONF_VALUE_REPEAT_5MINS,
53         EMAIL_GCONF_VALUE_REPEAT_10MINS,
54 } EMAIL_ALERT_REPEAT_ALARM;
55
56 #ifdef Min
57 #undef Min
58 #endif
59
60 INTERNAL_FUNC int  emcore_start_thread_for_alerting_new_mails(int *err_code);
61 INTERNAL_FUNC void emcore_start_alert();