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 EFinishStep |
|
64 }; |
|
65 |
|
66 public: |
|
67 /** Executes next asynchronous step in a strategy. |
|
68 |
|
69 @param aContext - pdp context |
|
70 @param aStatus - request status of this step |
|
71 */ |
|
72 virtual void Next (CEtelDriverContext& aContext, TRequestStatus* aStatus) = 0; |
|
73 |
|
74 /** |
|
75 Notifies SPUD FSM about execution results. |
|
76 |
|
77 @param aContext - pdp context |
|
78 @param aCompletionStatus - completion request status |
|
79 */ |
|
80 virtual void NotifyFsm (CEtelDriverContext& aContext, TRequestStatus& aCompletionStatus) = 0; |
|
81 |
|
82 /** Cancels last asynchronous request to eTel |
|
83 |
|
84 @param aContext - pdp context |
|
85 */ |
|
86 virtual void CancelAsyncRequest(CEtelDriverContext& aContext) = 0; |
|
87 }; |
|
88 |
|
89 #endif // METELDRIVERSTRATEGY_H |
|