SyncML error codes: added some more SyncEvolution error aliases

Added STATUS_UNAUTHORIZED and STATUS_TRANSPORT_FAILURE. The same
values were already in use via HTTP and the Synthesis library.
Defining them also in SyncML.h is useful for code only including
that header file.
This commit is contained in:
Patrick Ohly 2010-10-29 17:13:54 +02:00
parent 998e8a34eb
commit 50be51fc93
2 changed files with 10 additions and 0 deletions

View file

@ -151,6 +151,9 @@ std::string Status2String(SyncMLStatus status)
case STATUS_DATA_MERGED:
error = "data merged";
break;
case STATUS_UNAUTHORIZED:
error = "authorization failed";
break;
case STATUS_FORBIDDEN:
error = "access denied";
break;

View file

@ -108,6 +108,8 @@ enum SyncMLStatus {
/** external data has been merged */
STATUS_DATA_MERGED = 207,
/** The request requires user authentication. */
STATUS_UNAUTHORIZED = 401,
/** forbidden / access denied */
STATUS_FORBIDDEN = 403,
/** object not found / unassigned field */
@ -123,6 +125,11 @@ enum SyncMLStatus {
/** database / memory full error */
STATUS_FULL = 420,
/* sysync error codes also used by SyncEvolution */
/** transport failure, sysync::LOCERR_TRANSPFAIL */
STATUS_TRANSPORT_FAILURE = 20043,
/* error codes in the range reserved by Synthesis for the application follow */
/** ran into an unexpected slow sync, refused to execute it */