syncmlfw/dm/syncagent/inc/nsmldmerror.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 16:04:06 +0300
branchRCL_3
changeset 61 b183ec05bd8c
parent 0 b497e44ab2fc
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  error code conversion
*
*/




#ifndef __NSMLDMERROR_H
#define __NSMLDMERROR_H

#include <e32base.h>
#include "nsmlerror.h"


class TNSmlDMError:public TNSmlError
	{
	public:  //Data types 
	//
    //Error coding
	enum TNSmlDMAgentErrorCode
		{
		ESmlServerSessionAbort = 3000
		};
	
	// Errors and Info messages, which are delivered to sync log.
	enum TNSmlDMAgentMessage    
		{		
		ESystemError = 1,                  // "System Error"
		EServerSystemError,				   // "Error in remote conf server"
		ESyncMLError,					   // "Unable to configure"
		ESyncMLCommandNotSupported,         
		ESyncMLVersionNotSupported,        // "Unsupported SyncML Software version in server"
		EUnsupportedContentTypeOrFormat,   // "Unsupported Content type"
		ESyncMLClientAuthenticationError,  // "Invalid User name or password"
		ESyncMLServerAuthenticationError,  // "Authentication failed, check server ID and password"
		EServerBusy,                       // "Remote conf server was busy" 
		EServerNotResponding,			   // "Server is not responding"	
		EInvalidURI,					   // "Invalid URI"	
		ECommunicationError,               // "Error in communication"  
		ESessionAborted,                   // "Session was aborted by remote conf server"  
        ENotPossibleInOfflineMode          // CHANGES: Offline mode
		};
	
	public: // Constructor
	TNSmlDMError();
	private: // functions from base classes
	// Sync Log Message code 
	TInt SyncLogMessageCode(); //from TNSmlError
	void ErrorCodeConversion(); //from TNSmlError
	// Private variables
	};

#endif // __NSMLDMERROR_H