44
|
1 |
// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
// Creating secondary context state
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
/**
|
|
19 |
@file
|
|
20 |
@internalComponent
|
|
21 |
*/
|
|
22 |
|
|
23 |
#include <networking/umtsnifcontrolif.h>
|
|
24 |
#include "tpdpstates.h"
|
|
25 |
#include "spudfsmdebuglogger.h"
|
|
26 |
#include "pdpfsmnmspace.h"
|
|
27 |
#include "PDPFSM.h"
|
|
28 |
#include "cpdpfsm.h"
|
|
29 |
|
|
30 |
TInt TPdpStateCreatingSecondary::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode)
|
|
31 |
{
|
|
32 |
SPUDFSMVERBOSE_FNLOG("TPdpStateCreatingSecondary::Input()");
|
|
33 |
SPUDFSMVERBOSE_LOG2(_L("aOperation : %S(%d)"), LogOperation(aFsm, aOperation), aOperation);
|
|
34 |
|
|
35 |
switch (aOperation)
|
|
36 |
{
|
|
37 |
case PdpFsm::E2ryPdpContextCreated:
|
|
38 |
aFsm.ChangeStateToCreatedSecondary();
|
|
39 |
SpudManNotify(aFsm, KSecondaryContextCreated, KErrNone);
|
|
40 |
return KErrNone;
|
|
41 |
case PdpFsm::E2ryPdpContextCreatedFailed:
|
|
42 |
iErrorCode = aErrorCode;
|
|
43 |
EtelDriverInput(aFsm, EtelDriver::EContextDelete);
|
|
44 |
return KErrNone;
|
|
45 |
|
|
46 |
case PdpFsm::EContextDeletedFailed:
|
|
47 |
SPUDFSMVERBOSE_LOG(_L("**** DELETE FAILURE ****"));
|
|
48 |
// fall through
|
|
49 |
case PdpFsm::EContextDeleted:
|
|
50 |
aFsm.ChangeStateToInitialised();
|
|
51 |
SpudManNotify(aFsm, KSecondaryContextCreated, iErrorCode);
|
|
52 |
iErrorCode = KErrNone;
|
|
53 |
return KErrNone;
|
|
54 |
}
|
|
55 |
|
|
56 |
// default error handling
|
|
57 |
return TPdpState::Input(aFsm, aOperation, aErrorCode);
|
|
58 |
}
|
|
59 |
|