javauis/eswt_akn/eswtapifacade/src/swtbrowserapdatahandler.cpp
branchRCL_3
changeset 66 2455ef1f5bbc
parent 19 04becd199f91
equal deleted inserted replaced
65:ae942d28ec0e 66:2455ef1f5bbc
       
     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:  THIS FILE IS NOT INCLUDED INTO ECLIPSE CVS DELIVERY
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #include <ApDataHandler.h>
       
    21 
       
    22 #include "swtbrowserapdatahandler.h"
       
    23 
       
    24 
       
    25 
       
    26 CSwtBrowserApDataHandler::CSwtBrowserApDataHandler()
       
    27 {
       
    28 }
       
    29 
       
    30 
       
    31 void CSwtBrowserApDataHandler::ConstructL(CCommsDatabase& aDb)
       
    32 {
       
    33     iApDataHandler = CApDataHandler::NewLC(aDb);
       
    34     CleanupStack::Pop(iApDataHandler);
       
    35 }
       
    36 
       
    37 
       
    38 EXPORT_C CSwtBrowserApDataHandler* CSwtBrowserApDataHandler::NewL(CCommsDatabase& aDb)
       
    39 {
       
    40     CSwtBrowserApDataHandler* self
       
    41     = new(ELeave) CSwtBrowserApDataHandler();
       
    42     CleanupStack::PushL(self);
       
    43     self->ConstructL(aDb);
       
    44     CleanupStack::Pop(self);
       
    45     return self;
       
    46 }
       
    47 
       
    48 
       
    49 CSwtBrowserApDataHandler::~CSwtBrowserApDataHandler()
       
    50 {
       
    51     delete iApDataHandler;
       
    52     iApDataHandler = NULL;
       
    53 }
       
    54 
       
    55 
       
    56 EXPORT_C void CSwtBrowserApDataHandler::AccessPointDataL(TUint32 aUid,
       
    57         CApAccessPointItem& aApItem)
       
    58 {
       
    59     ASSERT(iApDataHandler);
       
    60     iApDataHandler->AccessPointDataL(aUid, aApItem);
       
    61 }