gba/gbaapi_qt/gbautility_qt.cpp
author hgs
Tue, 28 Sep 2010 14:03:54 +0300
changeset 59 881d92421467
permissions -rw-r--r--
201037_03

/*
* Copyright (c) 2010 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: Utility to perform GBA bootstrapping operation.
*/

#include "gbautilitybody.h"

GbaUtility::GbaUtility(QObject *parent) : QObject(parent)
{
#ifdef Q_OS_SYMBIAN
    QT_TRAP_THROWING(gbaUtilityBody = CGbaUtilityBody::NewL(this));
#else
    gbaUtilityBody = CGbaUtilityBody::NewL(this);
#endif
}

GbaUtility::~GbaUtility()
{
    delete gbaUtilityBody;
}
		
GbaUtility::GbaErrorStatus GbaUtility::bootstrap(const GbaBootstrapInputData *gbainputdata, GbaBootstrapOutputData *gbaoutputdata)
{
    return gbaUtilityBody->bootstrap(gbainputdata, gbaoutputdata);
}

void GbaUtility::cancelBootstrap()
{
    gbaUtilityBody->cancelBootstrap();
}

GbaUtility::GbaErrorStatus GbaUtility::setBsfAddress(const QString &bsfaddress)
{
    return gbaUtilityBody->setBsfAddress(bsfaddress);
}