24
|
1 |
// Copyright (c) 2005-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 |
// MPdpFsmInterface.h
|
|
15 |
// The interface to the PDP Context Finite State Machine.
|
|
16 |
//
|
|
17 |
//
|
|
18 |
|
|
19 |
/**
|
|
20 |
@file
|
|
21 |
@internalComponent
|
|
22 |
*/
|
|
23 |
|
|
24 |
|
|
25 |
#ifndef MPDPFSMINTERFACE_H
|
|
26 |
#define MPDPFSMINTERFACE_H
|
|
27 |
|
|
28 |
|
|
29 |
#include <etelmm.h>
|
|
30 |
#include <etelqos.h>
|
|
31 |
#include <etelpckt.h>
|
|
32 |
|
|
33 |
#include <networking/umtsnifcontrolif.h>
|
|
34 |
|
|
35 |
/** Maximum number of PDP contexts supported by SPUD
|
|
36 |
This is derived from the number of bits available for NSAPIs
|
|
37 |
Each PDP context corresponds with a NSAPI (and each NSAPI at most maps to one primary or secondary PDP Context)
|
|
38 |
There are 4 bits allocated for NSAPIs with values 0 - 4 being reserved, leaving 11 values for PDP contexts
|
|
39 |
@see GSM24.008
|
|
40 |
*/
|
|
41 |
const TContextId KMaxPdpContexts = 11;
|
|
42 |
|
|
43 |
/** Internal pseudo-context ID meaning all contexts */
|
|
44 |
const TContextId KAllContexts = -1;
|
|
45 |
|
|
46 |
/** ID of the primary PDP context
|
|
47 |
Primary context is the first context created, and it can be
|
|
48 |
created only once during Spud lifetime.
|
|
49 |
There is a subltly here. There is always a default context.
|
|
50 |
This just happens to be the primary until it is deleted, at
|
|
51 |
which point one of the secondries will become the default.
|
|
52 |
This can happen in a network handover situation.
|
|
53 |
This is documented in the design spec. */
|
|
54 |
const TContextId KPrimaryContextId = 0;
|
|
55 |
|
|
56 |
/* Internal constant */
|
|
57 |
const TInt KMbmsContextCreated=13;
|
|
58 |
|
|
59 |
#endif
|
|
60 |
// MPDPFSMINTERFACE_H
|