gba/gbaapi_qt/gbautility_qt.cpp
changeset 59 881d92421467
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gba/gbaapi_qt/gbautility_qt.cpp	Tue Sep 28 14:03:54 2010 +0300
@@ -0,0 +1,47 @@
+/*
+* 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);
+}
+