src/include/common/spds/SyncStatus.h

00001 /*
00002  * Funambol is a mobile platform developed by Funambol, Inc. 
00003  * Copyright (C) 2003 - 2007 Funambol, Inc.
00004  * 
00005  * This program is free software; you can redistribute it and/or modify it under
00006  * the terms of the GNU Affero General Public License version 3 as published by
00007  * the Free Software Foundation with the addition of the following permission 
00008  * added to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED
00009  * WORK IN WHICH THE COPYRIGHT IS OWNED BY FUNAMBOL, FUNAMBOL DISCLAIMS THE 
00010  * WARRANTY OF NON INFRINGEMENT  OF THIRD PARTY RIGHTS.
00011  * 
00012  * This program is distributed in the hope that it will be useful, but WITHOUT
00013  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00014  * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
00015  * details.
00016  * 
00017  * You should have received a copy of the GNU Affero General Public License 
00018  * along with this program; if not, see http://www.gnu.org/licenses or write to
00019  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
00020  * MA 02110-1301 USA.
00021  * 
00022  * You can contact Funambol, Inc. headquarters at 643 Bair Island Road, Suite 
00023  * 305, Redwood City, CA 94063, USA, or at email address info@funambol.com.
00024  * 
00025  * The interactive user interfaces in modified source and object code versions
00026  * of this program must display Appropriate Legal Notices, as required under
00027  * Section 5 of the GNU Affero General Public License version 3.
00028  * 
00029  * In accordance with Section 7(b) of the GNU Affero General Public License
00030  * version 3, these Appropriate Legal Notices must retain the display of the
00031  * "Powered by Funambol" logo. If the display of the logo is not reasonably 
00032  * feasible for technical reasons, the Appropriate Legal Notices must display
00033  * the words "Powered by Funambol".
00034  */
00035 
00036 // SyncML Status Codes definition
00037 #ifndef INCL_SYNC_STATUS
00038 #define INCL_SYNC_STATUS
00039 
00041 enum SyncStatus {
00042     STC_INVALID_CODE                                  = 0,
00043     // Informational 1xx
00044     STC_IN_PROGRESS                                   = 101,
00045     // Successful 2xx
00046     STC_OK                                            = 200,
00047     STC_ITEM_ADDED                                    = 201,
00048     STC_ACCEPTED_FOR_PROCESSING                       = 202,
00049     STC_NONAUTHORITATIVE_RESPONSE                     = 203,
00050     STC_NO_CONTENT                                    = 204,
00051     STC_RESET_CONTENT                                 = 205,
00052     STC_PARTIAL_CONTENT                               = 206,
00053     STC_CONFLICT_RESOLVED_WITH_MERGE                  = 207,
00054     STC_CONFLICT_RESOLVED_WITH_CLIENT_COMMAND_WINNING = 208,
00055     STC_CONFLICT_RESOLVED_WITH_DUPLICATE              = 209,
00056     STC_DELETE_WITHOUT_ARCHIVE                        = 210,
00057     STC_ITEM_NOT_DELETED                              = 211,
00058     STC_AUTHENTICATION_ACCEPTED                       = 212,
00059     STC_CHUNKED_ITEM_ACCEPTED                         = 213,
00060     STC_OPERATION_CANCELLED_OK                        = 214,
00061     STC_NOT_EXECUTED                                  = 215,
00062     STC_ATOMIC_ROLLBACK_OK                            = 216,
00063     // Redirection 3xx
00064     STC_MULTIPLE_CHOICES                              = 300,
00065     STC_MOVED_PERMANENTLY                             = 301,
00066     STC_FOUND                                         = 302,
00067     STC_SEE_ANOTHER_URI                               = 303,
00068     STC_NOT_MODIFIED                                  = 304,
00069     STC_USE_PROXY                                     = 305,
00070     // Originator Exceptions 4xx
00071     STC_BAD_REQUEST                                   = 400,
00072     STC_INVALID_CREDENTIALS                           = 401,
00073     STC_PAYMENT_REQUIRED                              = 402,
00074     STC_FORBIDDEN                                     = 403,
00075     STC_NOT_FOUND                                     = 404,
00076     STC_COMMAND_NOT_ALLOWED                           = 405,
00077     STC_OPTIONAL_FEATURE_NOT_SUPPORTED                = 406,
00078     STC_MISSING_CREDENTIALS                           = 407,
00079     STC_REQUEST_TIMEOUT                               = 408,
00080     STC_UPDATE_CONFLICT                               = 409,
00081     STC_GONE                                          = 410,
00082     STC_SIZE_REQUIRED                                 = 411,
00083     STC_INCOMPLETE_COMMAND                            = 412,
00084     STC_REQUESTED_ENTITY_TOO_LARGE                    = 413,
00085     STC_URI_TOO_LONG                                  = 414,
00086     STC_UNSUPPORTED_MEDIA_TYPE                        = 415,
00087     STC_REQUESTED_SIZE_TOO_BIG                        = 416,
00088     STC_RETRY_LATER                                   = 417,
00089     STC_ALREADY_EXISTS                                = 418,
00090     STC_CONFLICT_RESOLVED_WITH_SERVER_DATA            = 419,
00091     STC_DEVICE_FULL                                   = 420,
00092     STC_UNKNOWN_SEARCH_GRAMMAR                        = 421,
00093     STC_BAD_CGI_SCRIPT                                = 422,
00094     STC_SOFT_DELETE_CONFLICT                          = 423,
00095     STC_OBJECT_SIZE_MISMATCH                          = 424,
00096     STC_PERMISSION_DENIED                             = 425,
00097     // Recipient Exceptions 5xx
00098     STC_COMMAND_FAILED                                = 500,
00099     STC_COMMAND_NOT_IMPLEMENTED                       = 501,
00100     STC_BAD_GATEWAY                                   = 502,
00101     STC_SERVICE_UNAVAILABLE                           = 503,
00102     STC_GATEWAY_TIMEOUT                               = 504,
00103     STC_VERSION_NOT_SUPPORTED                         = 505,
00104     STC_PROCESSING_ERROR                              = 506,
00105     STC_ATOMIC_FAILED                                 = 507,
00106     STC_REFRESH_REQUIRED                              = 508,
00107     STC_RECIPIENT_EXCEPTION_RESERVED1                 = 509,
00108     STC_DATASTORE_FAILURE                             = 510,
00109     STC_SERVER_FAILURE                                = 511,
00110     STC_SYNCHRONIZATION_FAILED                        = 512,
00111     STC_PROTOCOL_VERSION_NOT_SUPPORTED                = 513,
00112     STC_OPERATION_CANCELLED                           = 514,
00113     STC_ATOMIC_ROLLBACK_FAILED                        = 516,
00114     STC_ATOMIC_RESPONSE_TOO_LARGE_TO_FIT              = 517,
00119     STC_SESSION_EXPIRED                               = 10000,
00120     STC_SESSION_ABORTED                               = 20000
00121 };
00122 
00124 #endif
00125 

Generated on Mon Feb 4 09:50:47 2008 for Funambol Outlook Plug-in Library by  doxygen 1.5.2