|
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 // Header for etel driver strategy class |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 |
|
23 #ifndef METELDRIVERSTRATEGY_H |
|
24 #define METELDRIVERSTRATEGY_H |
|
25 |
|
26 // forward declarations |
|
27 class CEtelDriverContext; |
|
28 |
|
29 /** base class for spud etel driver strategy */ |
|
30 class MEtelDriverStrategy |
|
31 { |
|
32 public: |
|
33 /** union of all elementary steps to be performed during execution of strategies */ |
|
34 enum TSequenceStep |
|
35 { |
|
36 EStartStep, |
|
37 EInitPhoneStep, |
|
38 |
|
39 EOpenNewQoSStep, |
|
40 EGetConfigStep, |
|
41 ESetConfigStep, |
|
42 EInitialiseContextStep, |
|
43 |
|
44 ESetProfileParamsStep, |
|
45 EGetProfileParamsStep, |
|
46 |
|
47 ECreateNewTFTStep, |
|
48 EAddFirstTftStep, |
|
49 EDeleteTftStep, |
|
50 ERemoveFirstTftStep, |
|
51 ERemoveTftStep, |
|
52 EAddTftStep, |
|
53 |
|
54 EActivateStep, |
|
55 EModifyActiveStep, |
|
56 EDeactivateStep, |
|
57 |
|
58 EDeleteContextStep, |
|
59 EChangeTftFinished, |
|
60 EModifyActiveContext, |
|
61 // add execution steps here |
|
62 |
|
63 EMbmsSetSession, |
|
64 EUpdateMbmsSessionList, |
|
65 EPrepareSessionList, |
|
66 |
|
67 EFinishStep |
|
68 }; |
|
69 |
|
70 public: |
|
71 /** Executes next asynchronous step in a strategy. |
|
72 |
|
73 @param aContext - pdp context |
|
74 @param aStatus - request status of this step |
|
75 */ |
|
76 virtual void Next (CEtelDriverContext& aContext, TRequestStatus* aStatus) = 0; |
|
77 |
|
78 /** |
|
79 Notifies SPUD FSM about execution results. |
|
80 |
|
81 @param aContext - pdp context |
|
82 @param aCompletionStatus - completion request status |
|
83 */ |
|
84 virtual void NotifyFsm (CEtelDriverContext& aContext, TRequestStatus& aCompletionStatus) = 0; |
|
85 |
|
86 /** Cancels last asynchronous request to eTel |
|
87 |
|
88 @param aContext - pdp context |
|
89 */ |
|
90 virtual void CancelAsyncRequest(CEtelDriverContext& aContext) = 0; |
|
91 }; |
|
92 |
|
93 #endif // METELDRIVERSTRATEGY_H |