update tizen source
[framework/messaging/msg-service.git] / plugin / mms_plugin / include / MmsPluginSetup.h
1 /*
2 *
3 * Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved.
4 *
5 * This file is part of msg-service.
6 *
7 * Contact: Jaeyun Jeong <jyjeong@samsung.com>
8 *          Sangkoo Kim <sangkoo.kim@samsung.com>
9 *          Seunghwan Lee <sh.cat.lee@samsung.com>
10 *          SoonMin Jung <sm0415.jung@samsung.com>
11 *          Jae-Young Lee <jy4710.lee@samsung.com>
12 *          KeeBum Kim <keebum.kim@samsung.com>
13 *
14 * PROPRIETARY/CONFIDENTIAL
15 *
16 * This software is the confidential and proprietary information of
17 * SAMSUNG ELECTRONICS ("Confidential Information"). You shall not
18 * disclose such Confidential Information and shall use it only in
19 * accordance with the terms of the license agreement you entered
20 * into with SAMSUNG ELECTRONICS.
21 *
22 * SAMSUNG make no representations or warranties about the suitability
23 * of the software, either express or implied, including but not limited
24 * to the implied warranties of merchantability, fitness for a particular
25 * purpose, or non-infringement. SAMSUNG shall not be liable for any
26 * damages suffered by licensee as a result of using, modifying or
27 * distributing this software or its derivatives.
28 *
29 */
30
31 #include "MmsPluginMessage.h"
32
33 #define MSG_STDSTR_SHORT                        0x7F
34
35 /*
36  * structures for setup
37  */
38
39 typedef enum {
40         MMS_RECEIVE_AUTO,
41         MMS_RECEIVE_MANUAL,
42         MMS_RECEIVE_RESTRICT,
43         MMS_RECEIVE_REJECT,
44         MMS_RECEIVE_CNT,
45 } MmsRecvType;
46
47 typedef enum {
48         MMS_RESTRICTED_MODE,
49         MMS_WARNING_MODE,
50         MMS_FREE_MODE
51 } MmsUiMsgCreationMode;
52
53 typedef enum {
54         MMS_OPCO_DEFAULT        = 0,
55         MMS_OPCO_FRANCE         = 1,
56         MMS_OPCO_GERMAN         = 2,
57         MMS_OPCO_GREECE         = 3,
58         MMS_OPCO_IRELANDS       = 4,
59         MMS_OPCO_ITALY          = 5,
60         MMS_OPCO_NETHERLANDS = 6,
61         MMS_OPCO_PORTUGAL       = 7,
62         MMS_OPCO_SPAIN          = 8,
63         MMS_OPCO_SWEDEN         = 9,
64         MMS_OPCO_SWISS          = 10,
65         MMS_OPCO_UK                     = 11,
66         MMS_OPCO_AUSTRIA        = 12,
67         MMS_OPCO_BELGIUM        = 13,
68         MMS_OPCO_HUNGARY        = 14,
69         MMS_OPCO_NUM
70 } MmsOpCo;
71
72 typedef struct {
73         bool bHideAddress;
74         bool bAskDeliveyReport;
75         bool bAskReadReply;
76         MmsPriority priority;
77         char szFrom[MSG_LOCALE_ADDR_LEN + 10];
78         MmsMsgClass msgClass;
79         MmsTimeStruct expiryTime;
80         MmsTimeStruct deliveryTime;
81         bool bLeaveCopy;
82         bool bAttachVcard;
83         bool bAttachSign;
84         bool bExpiryUseCustomTime;
85
86         bool bDeliveryUseCustomTime;
87
88         MmsTimeStruct expiryCustomTime;
89         MmsTimeStruct deliveryCustomTime;
90
91         char szSign[MSG_LOCALE_SIGN_LEN + 1];
92
93         //MMS_V1_1
94         MmsReplyCharge replyCharge;
95
96         int creationMode; // Creation Mode
97 } MmsSendSetup;
98
99 typedef struct {
100         bool bSendDeliveryReport;
101         bool bSendReadReply;
102         bool bAnonymousReject;
103         bool bRejectAdvertisement;
104         MmsRecvType recvHomeNetwork;
105         MmsRecvType recvRoamingNetwork;
106 } MmsRecvSetup;
107
108 typedef struct {
109         bool bUserSettingMsgMaxSize;
110         int msgMmsMaxSize;
111 } MmsMsgSizeSetup;
112
113
114 typedef struct {
115         MmsUiMsgCreationMode creationMode;
116 } MmsCreationModeSetup;
117
118
119 typedef struct {
120         bool bCustomTime;
121         int slideIntervalTime;
122         int customTime;
123 } MmsSlideSetup;
124
125 typedef struct {
126         int     postcardName;
127         int     postcardAdditionalInfo;
128         int     postcardStreet;
129         int     postcardZip;
130         int     postcardCity;
131         int     postcardStateNProvince;
132         int     postcardCountry;
133 } MmsPostcardSetup;
134
135 typedef struct {
136         MmsSendSetup sendSetup;
137         MmsRecvSetup recvSetup;
138         MmsMsgSizeSetup msgSizeSetup;
139         MmsPostcardSetup postcardSetup[5];                                                                      // ref) POSTCARD_EDIT_TYPE_EXTENDED4
140
141         MmsCreationModeSetup creationModeSetup;
142
143         int autoResizeSize;
144
145         /* UI not-visible fields ------------------------------------ */
146
147         MmsOpCo nOpCo;
148         int maxSendSize;
149         char szPostcardOffice[MSG_STDSTR_SHORT + 1];                            // Only Privosioning can change this field
150         char szPostcardOfficeExtend01[MSG_STDSTR_SHORT + 1];
151         char szPostcardOfficeExtend02[MSG_STDSTR_SHORT + 1];
152         char szPostcardOfficeExtend03[MSG_STDSTR_SHORT + 1];
153         char szPostcardOfficeExtend04[MSG_STDSTR_SHORT + 1];
154         bool bPostcardAvailable;                                                                        // Only Privosioning can change this field
155         char szMmlUrl[MSG_STDSTR_SHORT + 1];                                    //MML Home Url
156         char szMmlPhoneNumber[MSG_STDSTR_SHORT + 1];                    //MML Upload phonenumber
157
158         char szMmsTmplDownloadURL[MSG_STDSTR_SHORT + 1];        //  for MMS More Templates
159
160 } MmsSetup;
161
162 /* global Setting */
163 extern MmsSetup gMmsSetup;
164