4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: JuHak Park <juhaki.park@samsung.com>,
7 * JuneHyuk Lee <junhyuk7.lee@samsung.com>,
8 * SunBong Ha <sunbong.ha@samsung.com>
10 * Licensed under the Apache License, Version 2.0 (the "License");
11 * you may not use this file except in compliance with the License.
12 * You may obtain a copy of the License at
14 * http://www.apache.org/licenses/LICENSE-2.0
16 * Unless required by applicable law or agreed to in writing, software
17 * distributed under the License is distributed on an "AS IS" BASIS,
18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 * See the License for the specific language governing permissions and
20 * limitations under the License.
29 * For any sort of issue you concern as to this software,
30 * you may use following point of contact.
31 * All resources contributed on this software
32 * are orinigally written by S-Core Inc., a member of Samsung Group.
34 * SeongWon Shim <seongwon.shim@samsung.com>
40 * @brief This file is the header file of enumeration and define used in SE
46 #define DEFINE_SYNC_PROGRESS_NONE "PROGRESS_NONE"
47 #define DEFINE_SYNC_INIT "INIT"
48 #define DEFINE_SYNC_CONNECTING "CONNECTING"
49 #define DEFINE_SYNC_AUTHENTICATED "AUTHENTICATED"
50 #define DEFINE_SYNC_DONE "DONE"
51 #define DEFINE_SYNC_ERROR "ERROR"
53 #define DEFINE_ERROR_NONE "ERROR_NONE"
54 #define DEFINE_ERROR_CONNECTION "CONNECTION"
55 #define DEFINE_ERROR_SYNCHDR "SYNCHDR"
56 #define DEFINE_ERROR_INTERNAL "INTERNAL"
57 #define DEFINE_ERROR_SUSPENDED "SUSPENDED"
58 #define DEFINE_ERROR_DB "DB"
59 #define DEFINE_ERROR_ABORT "ABORT"
60 #define DEFINE_ERROR_SERVER "SERVER"
61 #define DEFINE_ERROR_MEMORY_FULL "MEMORY_FULL"
62 #define DEFINE_ERROR_AUTHENTICATE "AUTHENTICATE"
63 #define DEFINE_ERROR_AUTOCONFIG_NOT_SUPPORT_BY_SERVER "AUTOCONFIG_NOT_SUPPORT_BY_SERVER"
65 #define DEFINE_PROGRESS_NONE "PROGRESS_NONE"
66 #define DEFINE_PROGRESS_SUCCESS "PROGRESS_SUCCESS"
67 #define DEFINE_FAILED_DB "FAILED_DB"
68 #define DEFINE_FAILED_DB_FORBIDDEN "FAILED_DB_FORBIDDEN"
69 #define DEFINE_FAILED_DB_ITEM "FAILED_DB_ITEM"
70 #define DEFINE_FAILED_DB_CONFIG "FAILED_DB_CONFIG"
71 #define DEFINE_FAILED_DB_DEVICEFULL "FAILED_DB_DEVICEFULL"
73 #define DEFINE_NOOP "NOOP"
74 #define DEFINE_ADD "ADD"
75 #define DEFINE_DELETE "DELETE"
76 #define DEFINE_MOVE "MOVE"
77 #define DEFINE_COPY "COPY"
78 #define DEFINE_REPLACE "REPLACE"
80 #define DEFINE_DBSYNC_SUCCESS "success"
81 #define DEFINE_DBSYNC_STOP "stop"
82 #define DEFINE_DBSYNC_FAIL "fail"
83 #define DEFINE_DBSYNC_NO "No"
88 PROGRESS_CONNECTING = 2,
89 PROGRESS_AUTHENTICATED = 3,
103 ERROR_MEMORY_FULL = 8,
104 ERROR_AUTHENTICATE = 9,
105 ERROR_AUTOCONFIG_NOT_SUPPORT_BY_SERVER = 10
109 SYNC_PROGRESS_NONE = 0,
110 SYNC_PROGRESS_SUCCESS,
112 SYNC_FAILED_DB_FORBIDDEN,
114 SYNC_FAILED_DB_CONFIG,
115 SYNC_FAILED_DB_DEVICEFULL
116 } SyncProgressStatus;
128 COMMAND_RESULT_INIT = 0,
129 COMMAND_RESULT_OK = 200, /*[R] OK exception*/
130 COMMAND_RESULT_ADDED = 201, /*[AR] Item added exception*/
131 COMMAND_RESULT_DELETE_PARTIAL = 206, /*[D] Partial content exception condition*/
132 COMMAND_RESULT_DELETE_WITHOUT_ARCHIVE = 210, /*[D] Delete without archive exception*/
133 COMMAND_RESULT_NOT_EXIST = 211, /*[D] Item not deleted exception*/
134 COMMAND_RESULT_UNAUTHRIZED = 401, /*[ARD] Unauthorized exception*/
135 COMMAND_RESULT_AUTHENTICATION_REQUIRED = 407, /*[ARD] Authentication required exception*/
136 COMMAND_RESULT_INCOMPLETE = 412, /*[D] Incomplete command exception*/
137 COMMAND_RESULT_UNSUPPORTED_TYPE = 415, /*[A] Unsupported media type or format exception*/
138 COMMAND_RESULT_ALREADY_EXIST = 418, /*[A] Already exists exception*/
139 COMMAND_RESULT_DEVICE_FULL = 420, /*[AR] Device full exception*/
140 COMMAND_RESULT_PARTIAL_REPLACE_NOT_ACCEPTED = 426, /*[R] Partial item not accepted*/
141 COMMAND_RESULT_NOT_EMPTY = 427, /*[D] Item not empty*/
142 COMMAND_RESULT_COMMAND_FAIL = 500 /*[ARD] Command failed exception*/
146 #endif /* SE_COMMON_H_ */