syncmlfw/dm/syncagent/inc/nsmldmerror.h
changeset 0 b497e44ab2fc
equal deleted inserted replaced
-1:000000000000 0:b497e44ab2fc
       
     1 /*
       
     2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  error code conversion
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __NSMLDMERROR_H
       
    22 #define __NSMLDMERROR_H
       
    23 
       
    24 #include <e32base.h>
       
    25 #include "nsmlerror.h"
       
    26 
       
    27 
       
    28 class TNSmlDMError:public TNSmlError
       
    29 	{
       
    30 	public:  //Data types 
       
    31 	//
       
    32     //Error coding
       
    33 	enum TNSmlDMAgentErrorCode
       
    34 		{
       
    35 		ESmlServerSessionAbort = 3000
       
    36 		};
       
    37 	
       
    38 	// Errors and Info messages, which are delivered to sync log.
       
    39 	enum TNSmlDMAgentMessage    
       
    40 		{		
       
    41 		ESystemError = 1,                  // "System Error"
       
    42 		EServerSystemError,				   // "Error in remote conf server"
       
    43 		ESyncMLError,					   // "Unable to configure"
       
    44 		ESyncMLCommandNotSupported,         
       
    45 		ESyncMLVersionNotSupported,        // "Unsupported SyncML Software version in server"
       
    46 		EUnsupportedContentTypeOrFormat,   // "Unsupported Content type"
       
    47 		ESyncMLClientAuthenticationError,  // "Invalid User name or password"
       
    48 		ESyncMLServerAuthenticationError,  // "Authentication failed, check server ID and password"
       
    49 		EServerBusy,                       // "Remote conf server was busy" 
       
    50 		EServerNotResponding,			   // "Server is not responding"	
       
    51 		EInvalidURI,					   // "Invalid URI"	
       
    52 		ECommunicationError,               // "Error in communication"  
       
    53 		ESessionAborted,                   // "Session was aborted by remote conf server"  
       
    54         ENotPossibleInOfflineMode          // CHANGES: Offline mode
       
    55 		};
       
    56 	
       
    57 	public: // Constructor
       
    58 	TNSmlDMError();
       
    59 	private: // functions from base classes
       
    60 	// Sync Log Message code 
       
    61 	TInt SyncLogMessageCode(); //from TNSmlError
       
    62 	void ErrorCodeConversion(); //from TNSmlError
       
    63 	// Private variables
       
    64 	};
       
    65 
       
    66 #endif // __NSMLDMERROR_H
       
    67