wlanutilities/wlanqtutilities/wrapper/src/wlanqtutilsconntestwrapper_s60.cpp
changeset 38 2dc6da6fb431
parent 19 10810c91db26
equal deleted inserted replaced
29:dbe86d96ce5b 38:2dc6da6fb431
     1 /*
     1 /*
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    20 #include <ictscommon.h>
    20 #include <ictscommon.h>
    21 
    21 
    22 #include "wlanqtutilsconntestwrapper.h"
    22 #include "wlanqtutilsconntestwrapper.h"
    23 #include "wlanqtutilsconntestwrapper_s60_p.h"
    23 #include "wlanqtutilsconntestwrapper_s60_p.h"
    24 
    24 
    25 #ifdef WLANQTUTILS_NO_OST_TRACES_FLAG
       
    26 #include <opensystemtrace.h>
       
    27 #else
       
    28 #include "OstTraceDefinitions.h"
    25 #include "OstTraceDefinitions.h"
    29 #endif
       
    30 #ifdef OST_TRACE_COMPILER_IN_USE
    26 #ifdef OST_TRACE_COMPILER_IN_USE
    31 #include "wlanqtutilsconntestwrapper_s60Traces.h"
    27 #include "wlanqtutilsconntestwrapper_s60Traces.h"
    32 #endif
    28 #endif
    33 
    29 
    34 
    30 
    62     OstTrace1(
    58     OstTrace1(
    63         TRACE_NORMAL,
    59         TRACE_NORMAL,
    64         CONNTESTWRAPPERPRIVATE_CONNECTIVITYOBSERVER,
    60         CONNTESTWRAPPERPRIVATE_CONNECTIVITYOBSERVER,
    65         "ConnTestWrapperPrivate::ConnectivityObserver;aResult=%u", aResult );
    61         "ConnTestWrapperPrivate::ConnectivityObserver;aResult=%u", aResult );
    66     
    62     
    67     switch ( aResult ) 
    63     if ( aResult == EConnectionOk )
    68         {
    64         {
    69         case EConnectionOk :
    65         q_ptr->connectivityTestDone( ETrue );            
    70             q_ptr->connectivityTestDone( ETrue );
    66         }
    71             break;
    67     else
    72         case EHttpAuthenticationNeeded :
    68         {
    73         case EConnectionNotOk :
    69         q_ptr->connectivityTestDone( EFalse );            
    74         case ETimeout :
       
    75         default:
       
    76             q_ptr->connectivityTestDone( EFalse );
       
    77             break;
       
    78         }
    70         }
    79     
    71     
    80     delete iIct;
    72     delete iIct;
    81     iIct = NULL;
    73     iIct = NULL;
    82 
    74