serviceproviders/sapi_logging/tsrc/testing/tlogprovidertest/src/terror.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 24 Nov 2009 08:56:33 +0200
changeset 23 50974a8b132e
parent 5 989d2f495d90
permissions -rw-r--r--
Revision: 200945 Kit: 200948

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "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:  
*
*/

#include <liwservicehandler.h>
#include <liwcommon.h>
#include <logcli.h>
#include <logwrap.h>
#include "tlogprovidertest.h"
#include "serviceerrno.h"
//#include "logginginterface.h"
TInt sapierrors()
{

 //if(SErrServiceNotSupported == ConvertToSapiError(KErrNotSupported))


 if(1000==SErrInvalidServiceArgument)
        if(1001== SErrUnknownArgumentName )
        if(1002==SErrBadArgumentType )
        if(1003 == SErrMissingArgument )
        if(1004 ==SErrServiceNotSupported )
        if(1005==SErrServiceInUse )
        if(1006==SErrServiceNotReady )
        if(1007==SErrNoMemory )
        if(1008==SErrHardwareNotAvailable)
        if(1009 ==SErrServerBusy)
        if(1010==SErrEntryExists )
        if(1011== SErrAccessDenied )
        if(1012==SErrNotFound )
        if(1013==SErrUnknownFormat )
        if(1014==SErrGeneralError )
        if(1015==SErrCancelSuccess)
        if(1016==SErrServiceTimedOut)

return KErrNone;
else
return KErrGeneral;
	
}