hotspotfw/hsbrowser/src/hsbrowserspecialloadobserver.cpp
changeset 46 2fbd1d709fe7
parent 45 d9ec2b8c6bad
child 47 b3d8f88532b7
child 50 d4198dcb9983
equal deleted inserted replaced
45:d9ec2b8c6bad 46:2fbd1d709fe7
     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:   Handle special load requests like Non-HTTP(S) load requests,
       
    15 *                and Non-HTML content. Control over network connections
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 // INCLUDE FILES
       
    22 
       
    23 #include "hsbrowserspecialloadobserver.h"
       
    24 #include "am_debug.h"
       
    25 
       
    26 // ================= MEMBER FUNCTIONS =======================
       
    27 
       
    28 // ---------------------------------------------------------
       
    29 // CHsBrowserSpecialLoadObserver::NetworkConnectionNeededL
       
    30 // ---------------------------------------------------------
       
    31 //
       
    32 void CHsBrowserSpecialLoadObserver::NetworkConnectionNeededL(
       
    33     TInt* aConnectionPtr,
       
    34     TInt* aSockSvrHandle,
       
    35     TBool* /*aNewConn*/,
       
    36     TApBearerType* /*aBearerType*/) 
       
    37     {
       
    38     DEBUG( "CHsBrowserSpecialLoadObserver::NetworkConnectionNeededL()" );
       
    39     *aConnectionPtr = iConnectionPtr;
       
    40     *aSockSvrHandle = iSockSvrHandle;
       
    41     }
       
    42 
       
    43 // ---------------------------------------------------------
       
    44 // CHsBrowserSpecialLoadObserver::HandleRequestL
       
    45 // ---------------------------------------------------------
       
    46 //
       
    47 TBool CHsBrowserSpecialLoadObserver::HandleRequestL(
       
    48     RArray<TUint>* /*aTypeArray*/,
       
    49     CDesCArrayFlat* /*aDesArray*/) 
       
    50     {
       
    51     DEBUG( "CHsBrowserSpecialLoadObserver::HandleRequestL()" );
       
    52     return EFalse;
       
    53     }
       
    54 
       
    55 // ---------------------------------------------------------
       
    56 // CHsBrowserSpecialLoadObserver::HandleDownloadL
       
    57 // ---------------------------------------------------------
       
    58 //
       
    59 TBool CHsBrowserSpecialLoadObserver::HandleDownloadL(
       
    60     RArray<TUint>* /*aTypeArray*/,
       
    61     CDesCArrayFlat* /*aDesArray*/)
       
    62     {
       
    63     DEBUG( "CHsBrowserSpecialLoadObserver::HandleDownloadL()" );
       
    64     return EFalse;
       
    65     }
       
    66 
       
    67 // ---------------------------------------------------------
       
    68 // CHsBrowserSpecialLoadObserver::ConstructL
       
    69 // ---------------------------------------------------------
       
    70 //
       
    71 void CHsBrowserSpecialLoadObserver::ConstructL()
       
    72     {
       
    73     DEBUG( "CHsBrowserSpecialLoadObserver::ConstructL()" );
       
    74     }
       
    75 
       
    76 // ---------------------------------------------------------
       
    77 // CHsBrowserSpecialLoadObserver::~CHsBrowserSpecialLoadObserver
       
    78 // ---------------------------------------------------------
       
    79 //
       
    80 CHsBrowserSpecialLoadObserver::~CHsBrowserSpecialLoadObserver()
       
    81     {
       
    82     DEBUG( "CHsBrowserSpecialLoadObserver::~CHsBrowserSpecialLoadObserver()" );
       
    83     }
       
    84 
       
    85 
       
    86 // ---------------------------------------------------------
       
    87 // CHsBrowserSpecialLoadObserver::NewL
       
    88 // ---------------------------------------------------------
       
    89 //
       
    90 CHsBrowserSpecialLoadObserver* CHsBrowserSpecialLoadObserver::NewL()
       
    91     {
       
    92     DEBUG( "CHsBrowserSpecialLoadObserver::CHsBrowserSpecialLoadObserver::NewL()()" );
       
    93     CHsBrowserSpecialLoadObserver* self = new(ELeave)CHsBrowserSpecialLoadObserver;
       
    94     CleanupStack::PushL(self);
       
    95     self->ConstructL();
       
    96     CleanupStack::Pop( self );
       
    97     return self;
       
    98     }
       
    99 
       
   100 // ---------------------------------------------------------
       
   101 // CHsBrowserSpecialLoadObserver::SetConnectionPtr
       
   102 // ---------------------------------------------------------
       
   103 //
       
   104 void CHsBrowserSpecialLoadObserver::SetConnectionPtr( TInt aConnectionPtr )
       
   105 	{
       
   106 	iConnectionPtr = aConnectionPtr;
       
   107 	}
       
   108 
       
   109 // ---------------------------------------------------------
       
   110 // CHsBrowserSpecialLoadObserver::SetSockSvrHandle
       
   111 // ---------------------------------------------------------
       
   112 //        
       
   113 void CHsBrowserSpecialLoadObserver::SetSockSvrHandle( TInt aSockSvrHandle )
       
   114 	{
       
   115 	iSockSvrHandle = aSockSvrHandle;
       
   116 	}
       
   117 	
       
   118 // End of File