blob: 8a06658de1671f6bc9125d73caaf33bcffa16f63 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
/*
* Copyright 2012 Samsung Electronics Co., Ltd
*
* Licensed under the Flora License, Version 1.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.tizenopensource.org/license
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef _EMAIL_COMMON_TYPES_H_
#define _EMAIL_COMMON_TYPES_H_
#include <email-types.h>
#include "email-locale.h"
#define MAX_STR_LEN 1024
#define MAX_PATH_LEN 1024
#define MAX_URL_LEN 1024
#define MAX_RECPT_LEN (MAX_STR_LEN * 8 + 1)
/* define bundle key */
#define EMAIL_BUNDLE_KEY_ACCOUNT_ID "ACCOUNT_ID"
#define EMAIL_BUNDLE_KEY_MAILBOX "MAILBOX"
#define EMAIL_BUNDLE_KEY_SAVE_ALL "SAVE_ALL"
#define EMAIL_BUNDLE_KEY_CANCEL_ALL "CANCEL_ALL"
#define EMAIL_BUNDLE_KEY_RUN_TYPE "RUN_TYPE"
#define EMAIL_BUNDLE_KEY_MAIL_ID "MAIL_ID"
#define EMAIL_BUNDLE_KEY_TO "TO"
#define EMAIL_BUNDLE_KEY_CC "CC"
#define EMAIL_BUNDLE_KEY_BCC "BCC"
#define EMAIL_BUNDLE_KEY_SUBJECT "SUBJECT"
#define EMAIL_BUNDLE_KEY_BODY "BODY"
#define EMAIL_BUNDLE_KEY_ATTACHMENT "ATTACHMENT"
#define EMAIL_BUNDLE_KEY_VIDEO_PLAYER_LAUNCH_APP "launching_application"
typedef enum {
RUN_TYPE_UNKNOWN = -1,
RUN_COMPOSER_NEW, /*< Specific new type. this type is used to create new email */
RUN_COMPOSER_EDIT, /*< Specific edit type. this type is used to open draft email */
RUN_COMPOSER_REPLY, /*< Specific reply type. this type is used to reply email */
RUN_COMPOSER_REPLY_ALL, /*< Specific reply all type. this type is used to replay email to all */
RUN_COMPOSER_FORWARD, /*< Specific forward type. this type is used to forward email */
RUN_COMPOSER_EXTERNAL, /*< Specific external type. this type is used to create new email from external app except email app */
RUN_TYPE_MAX
} EmailRunType;
#endif /* _EMAIL_COMMON_TYPES_H_ */
/* EOF */
|