59
|
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: Utility to perform GBA bootstrapping operation.
|
|
15 |
*/
|
|
16 |
|
|
17 |
#include "gbautilitybody.h"
|
|
18 |
|
|
19 |
GbaUtility::GbaUtility(QObject *parent) : QObject(parent)
|
|
20 |
{
|
|
21 |
#ifdef Q_OS_SYMBIAN
|
|
22 |
QT_TRAP_THROWING(gbaUtilityBody = CGbaUtilityBody::NewL(this));
|
|
23 |
#else
|
|
24 |
gbaUtilityBody = CGbaUtilityBody::NewL(this);
|
|
25 |
#endif
|
|
26 |
}
|
|
27 |
|
|
28 |
GbaUtility::~GbaUtility()
|
|
29 |
{
|
|
30 |
delete gbaUtilityBody;
|
|
31 |
}
|
|
32 |
|
|
33 |
GbaUtility::GbaErrorStatus GbaUtility::bootstrap(const GbaBootstrapInputData *gbainputdata, GbaBootstrapOutputData *gbaoutputdata)
|
|
34 |
{
|
|
35 |
return gbaUtilityBody->bootstrap(gbainputdata, gbaoutputdata);
|
|
36 |
}
|
|
37 |
|
|
38 |
void GbaUtility::cancelBootstrap()
|
|
39 |
{
|
|
40 |
gbaUtilityBody->cancelBootstrap();
|
|
41 |
}
|
|
42 |
|
|
43 |
GbaUtility::GbaErrorStatus GbaUtility::setBsfAddress(const QString &bsfaddress)
|
|
44 |
{
|
|
45 |
return gbaUtilityBody->setBsfAddress(bsfaddress);
|
|
46 |
}
|
|
47 |
|