gba/gbaapi_qt/gbautilitybody.h
changeset 61 1cc4c46c2963
equal deleted inserted replaced
56:25a3fbb5e4d3 61:1cc4c46c2963
       
     1 /*
       
     2 * Copyright (c) 2010 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: GBA utility body to perform GBA bootstrapping operation.
       
    15 */
       
    16 
       
    17 #ifndef GBAUTILITYBODY_H
       
    18 #define GBAUTILITYBODY_H
       
    19 #include <e32base.h>
       
    20 #include <gbautility.h>
       
    21 #include <gbautility_qt.h>
       
    22 
       
    23 // CLASS DECLARATION  
       
    24 class CGbaUtilityBody : public CBase,
       
    25                         public MGbaObserver
       
    26 {
       
    27 public:
       
    28     
       
    29     static CGbaUtilityBody* NewL(GbaUtility *aGbautility);
       
    30     
       
    31     //Destructor
       
    32     virtual ~CGbaUtilityBody();
       
    33     
       
    34     /*Bootstapping function*/
       
    35     GbaUtility::GbaErrorStatus bootstrap(const GbaBootstrapInputData *gbainputdata, GbaBootstrapOutputData *gbaoutputdata);
       
    36     
       
    37     //Cancel any outstanding bootstapping process
       
    38     void cancelBootstrap();
       
    39     
       
    40     //set the bsf address in the local cache,which would be used while bootstrapping
       
    41     GbaUtility::GbaErrorStatus setBsfAddress(const QString &aBsfaddress);
       
    42     
       
    43     //MGbaObserver
       
    44     void BootstrapComplete(TInt aError);
       
    45 private:
       
    46     // Constructor
       
    47     CGbaUtilityBody(GbaUtility *aGbautility);
       
    48     
       
    49     void ConstructL();
       
    50     
       
    51 private:
       
    52     CGbaUtility *iGbaUtility;
       
    53     TGBABootstrapInputParams iInputGbaParameters;
       
    54     TGBABootstrapOutputParams iOutputGbaParameters;
       
    55     GbaBootstrapOutputData *iGbaOutPutData;
       
    56     GbaUtility *iQtGbautility;
       
    57 };
       
    58 
       
    59 #endif //GBAUTILITYBODY_H
       
    60 //EOF