hsfw_plat/internet_connectivity_test_service_api/inc/ictscommon.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 13 Oct 2010 15:48:02 +0300
branchRCL_3
changeset 65 32fadeea4023
parent 0 56b72877c1cb
permissions -rw-r--r--
Revision: 201039 Kit: 201041

/*
* Copyright (c) 2006 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:  Contains common data structures used by Internet Connectivity 
*                Test Service.
*
*/


#ifndef ICTSCOMMON_H
#define ICTSCOMMON_H

// INCLUDES
#include <e32std.h>

// CONSTANTS

// Length of HTTP FW response
const TInt KHttpResponseLength = 1024;

// HTTP::HEAD max response time for timer. 7 seconds.
const TInt KHttpResponseTime = 7000000; 

// DATA TYPES
    
// Values of testing result
enum TIctsTestResult
    {
    // Test successful
    EConnectionOk,
    // Browser (or other) authentication was needed.
    EHttpAuthenticationNeeded,
    // Test was not successful
    EConnectionNotOk,
    // Timeout 
    ETimeout
    };

// CLASS DECLARATION
/** 
* Callback interface for Internet Connectivity Test Service notifications.
*
* This virtual methods should be inherited and implemented by the
* client.
*
* The client enables observer calls when creating an instance of Icts.
* @see CIctsClientInterface::NewL.
* @lib ictsclientinterface.dll
* @since S60 5.0
*/
class MIctsObserver
    {
    public:

        /**
        * Connectivity test result will become here
        * @param aResult Result of connectivity test
        * @param aString String containing location information when redirect
        */
        virtual void ConnectivityObserver( TIctsTestResult aResult, 
                                           const TDesC& aString ) = 0;
    
    };
    
#endif // ICTSCOMMON_H
            
// End of File