serviceproviders/sapi_logging/tsrc/testing/tlogprovidertest/src/terror.cpp
changeset 5 989d2f495d90
child 23 50974a8b132e
equal deleted inserted replaced
1:a36b1e19a461 5:989d2f495d90
       
     1 /*
       
     2 * Copyright (c) 2009 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 the License "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:  
       
    15 *
       
    16 */
       
    17 
       
    18 #include <LiwServiceHandler.h>
       
    19 #include <LiwCommon.h>
       
    20 #include <logcli.h>
       
    21 #include <logwrap.h>
       
    22 #include "tlogprovidertest.h"
       
    23 #include "serviceerrno.h"
       
    24 //#include "logginginterface.h"
       
    25 TInt sapierrors()
       
    26 {
       
    27 
       
    28  //if(SErrServiceNotSupported == ConvertToSapiError(KErrNotSupported))
       
    29 
       
    30 
       
    31  if(1000==SErrInvalidServiceArgument)
       
    32         if(1001== SErrUnknownArgumentName )
       
    33         if(1002==SErrBadArgumentType )
       
    34         if(1003 == SErrMissingArgument )
       
    35         if(1004 ==SErrServiceNotSupported )
       
    36         if(1005==SErrServiceInUse )
       
    37         if(1006==SErrServiceNotReady )
       
    38         if(1007==SErrNoMemory )
       
    39         if(1008==SErrHardwareNotAvailable)
       
    40         if(1009 ==SErrServerBusy)
       
    41         if(1010==SErrEntryExists )
       
    42         if(1011== SErrAccessDenied )
       
    43         if(1012==SErrNotFound )
       
    44         if(1013==SErrUnknownFormat )
       
    45         if(1014==SErrGeneralError )
       
    46         if(1015==SErrCancelSuccess)
       
    47         if(1016==SErrServiceTimedOut)
       
    48 
       
    49 return KErrNone;
       
    50 else
       
    51 return KErrGeneral;
       
    52 	
       
    53 }
       
    54 
       
    55