src/include/common/spds/SyncStatus.h

00001 /*
00002  * Copyright (C) 2003-2007 Funambol
00003  *
00004  * This program is free software; you can redistribute it and/or modify
00005  * it under the terms of the GNU General Public License as published by
00006  * the Free Software Foundation; either version 2 of the License, or
00007  * (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00017  */
00018 
00019 // SyncML Status Codes definition
00020 #ifndef INCL_SYNC_STATUS
00021 #define INCL_SYNC_STATUS
00022 
00024 enum SyncStatus {
00025     STC_INVALID_CODE                                  = 0,
00026     // Informational 1xx
00027     STC_IN_PROGRESS                                   = 101,
00028     // Successful 2xx
00029     STC_OK                                            = 200,
00030     STC_ITEM_ADDED                                    = 201,
00031     STC_ACCEPTED_FOR_PROCESSING                       = 202,
00032     STC_NONAUTHORITATIVE_RESPONSE                     = 203,
00033     STC_NO_CONTENT                                    = 204,
00034     STC_RESET_CONTENT                                 = 205,
00035     STC_PARTIAL_CONTENT                               = 206,
00036     STC_CONFLICT_RESOLVED_WITH_MERGE                  = 207,
00037     STC_CONFLICT_RESOLVED_WITH_CLIENT_COMMAND_WINNING = 208,
00038     STC_CONFLICT_RESOLVED_WITH_DUPLICATE              = 209,
00039     STC_DELETE_WITHOUT_ARCHIVE                        = 210,
00040     STC_ITEM_NOT_DELETED                              = 211,
00041     STC_AUTHENTICATION_ACCEPTED                       = 212,
00042     STC_CHUNKED_ITEM_ACCEPTED                         = 213,
00043     STC_OPERATION_CANCELLED_OK                        = 214,
00044     STC_NOT_EXECUTED                                  = 215,
00045     STC_ATOMIC_ROLLBACK_OK                            = 216, 
00046     // Redirection 3xx
00047     STC_MULTIPLE_CHOICES                              = 300,
00048     STC_MOVED_PERMANENTLY                             = 301,
00049     STC_FOUND                                         = 302,
00050     STC_SEE_ANOTHER_URI                               = 303,
00051     STC_NOT_MODIFIED                                  = 304,
00052     STC_USE_PROXY                                     = 305,
00053     // Originator Exceptions 4xx
00054     STC_BAD_REQUEST                                   = 400,
00055     STC_INVALID_CREDENTIALS                           = 401,
00056     STC_PAYMENT_REQUIRED                              = 402,
00057     STC_FORBIDDEN                                     = 403,
00058     STC_NOT_FOUND                                     = 404,
00059     STC_COMMAND_NOT_ALLOWED                           = 405,
00060     STC_OPTIONAL_FEATURE_NOT_SUPPORTED                = 406,
00061     STC_MISSING_CREDENTIALS                           = 407,
00062     STC_REQUEST_TIMEOUT                               = 408,
00063     STC_UPDATE_CONFLICT                               = 409,
00064     STC_GONE                                          = 410,
00065     STC_SIZE_REQUIRED                                 = 411,
00066     STC_INCOMPLETE_COMMAND                            = 412,
00067     STC_REQUESTED_ENTITY_TOO_LARGE                    = 413,
00068     STC_URI_TOO_LONG                                  = 414,
00069     STC_UNSUPPORTED_MEDIA_TYPE                        = 415,
00070     STC_REQUESTED_SIZE_TOO_BIG                        = 416,
00071     STC_RETRY_LATER                                   = 417,
00072     STC_ALREADY_EXISTS                                = 418,
00073     STC_CONFLICT_RESOLVED_WITH_SERVER_DATA            = 419,
00074     STC_DEVICE_FULL                                   = 420,
00075     STC_UNKNOWN_SEARCH_GRAMMAR                        = 421,
00076     STC_BAD_CGI_SCRIPT                                = 422,
00077     STC_SOFT_DELETE_CONFLICT                          = 423,
00078     STC_OBJECT_SIZE_MISMATCH                          = 424,
00079     STC_PERMISSION_DENIED                             = 425,
00080     // Recipient Exceptions 5xx
00081     STC_COMMAND_FAILED                                = 500,
00082     STC_COMMAND_NOT_IMPLEMENTED                       = 501,
00083     STC_BAD_GATEWAY                                   = 502,
00084     STC_SERVICE_UNAVAILABLE                           = 503,
00085     STC_GATEWAY_TIMEOUT                               = 504,
00086     STC_VERSION_NOT_SUPPORTED                         = 505,
00087     STC_PROCESSING_ERROR                              = 506,
00088     STC_ATOMIC_FAILED                                 = 507,
00089     STC_REFRESH_REQUIRED                              = 508,
00090     STC_RECIPIENT_EXCEPTION_RESERVED1                 = 509,
00091     STC_DATASTORE_FAILURE                             = 510,
00092     STC_SERVER_FAILURE                                = 511,
00093     STC_SYNCHRONIZATION_FAILED                        = 512,
00094     STC_PROTOCOL_VERSION_NOT_SUPPORTED                = 513,
00095     STC_OPERATION_CANCELLED                           = 514,
00096     STC_ATOMIC_ROLLBACK_FAILED                        = 516,
00097     STC_ATOMIC_RESPONSE_TOO_LARGE_TO_FIT              = 517,
00102     STC_SESSION_EXPIRED                               = 10000,
00103     STC_SESSION_ABORTED                               = 20000
00104 };
00105 
00107 #endif
00108 

Generated on Fri Apr 27 12:29:19 2007 for Funambol C++ Client Library by  doxygen 1.5.2