hotspotfw/hsbrowser/inc/hsbrowserictsobserver.h
branchRCL_3
changeset 24 63be7eb3fc78
parent 23 b852595f5cbe
child 25 f28ada11abbf
equal deleted inserted replaced
23:b852595f5cbe 24:63be7eb3fc78
     1 /*
       
     2 * Copyright (c) 2007 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 "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:   Implements callback interface for Internet Connectivity Test Service
       
    15 *                notifications.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef HSBROWSERICTSOBSERVER_H
       
    22 #define HSBROWSERICTSOBSERVER_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32base.h>
       
    26 #include <ictscommon.h>
       
    27 
       
    28 // FORWARD DECLARATION
       
    29 class CHsBrowserContainer;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 /**
       
    33 * This class implements callback interface for Internet Connectivity Test Service
       
    34 * notifications.
       
    35 */
       
    36 class CHsBrowserIctsObserver : public CBase, public MIctsObserver
       
    37     {
       
    38     public:  // Constructors and destructor
       
    39 
       
    40         /**
       
    41         * Two-phased constructor.
       
    42         *
       
    43         * @param aContainer Pointer to container of browser application
       
    44         */
       
    45         static CHsBrowserIctsObserver* NewL( CHsBrowserContainer* aContainer );
       
    46 
       
    47         /**
       
    48         * Destructor.
       
    49         */
       
    50         ~CHsBrowserIctsObserver();
       
    51 
       
    52     public: // from MIctsObserver
       
    53     
       
    54         /**
       
    55         * From MIctsObserver, ConnectivityObserver 
       
    56         */
       
    57         void ConnectivityObserver( TIctsTestResult aResult, const TDesC& aString );
       
    58         
       
    59     private: // new
       
    60     
       
    61         /**
       
    62         * Process connection ok event.
       
    63         */
       
    64         void ProcessConnectionOk();
       
    65                 
       
    66     private:
       
    67     
       
    68         /**
       
    69         * C++ default constructor.
       
    70         *
       
    71         * @param aContainer Pointer to container of browser application.
       
    72         */
       
    73         CHsBrowserIctsObserver( CHsBrowserContainer* aContainer );
       
    74         
       
    75 	    /**
       
    76         * By default Symbian 2nd phase constructor is private.
       
    77         */
       
    78         void ConstructL();
       
    79 
       
    80     private:
       
    81     
       
    82         /**
       
    83         * Container of hotspot browser application.
       
    84         * Not owned.
       
    85         */
       
    86         CHsBrowserContainer* iContainer;
       
    87         
       
    88         /**
       
    89         * Flag for authentication ok indication to Hotspot Server
       
    90         */
       
    91         TBool iAuthenticatedOkSent;
       
    92     };
       
    93 
       
    94 #endif // HSBROWSERICTSOBSERVER_H
       
    95             
       
    96 // End of File
       
    97