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 |
// Header for all etel driver strategies classes.
|
|
15 |
// Each class corresponds to an entry in TEtelInput
|
|
16 |
//
|
|
17 |
//
|
|
18 |
|
|
19 |
/**
|
|
20 |
@file
|
|
21 |
@internalComponent
|
|
22 |
*/
|
|
23 |
|
|
24 |
#ifndef ETELDRIVERSTRATEGIES_H
|
|
25 |
#define ETELDRIVERSTRATEGIES_H
|
|
26 |
|
|
27 |
#include "meteldriverstrategy.h"
|
|
28 |
|
|
29 |
|
|
30 |
/**
|
|
31 |
Strategy to prepare etel for subsequent manipulations with pdp contexts.
|
|
32 |
*/
|
|
33 |
NONSHARABLE_CLASS(TOpenStrategy) : public MEtelDriverStrategy
|
|
34 |
{
|
|
35 |
public:
|
|
36 |
virtual void Next (CEtelDriverContext& aContext, TRequestStatus* aStatus);
|
|
37 |
virtual void NotifyFsm(CEtelDriverContext& aContext, TRequestStatus& aCompletionStatus );
|
|
38 |
virtual void CancelAsyncRequest(CEtelDriverContext& aContext);
|
|
39 |
|
|
40 |
};
|
|
41 |
|
|
42 |
/**
|
|
43 |
Strategy to delete pdp context.
|
|
44 |
*/
|
|
45 |
NONSHARABLE_CLASS(TContextDeleteStrategy) : public MEtelDriverStrategy
|
|
46 |
{
|
|
47 |
public:
|
|
48 |
virtual void Next (CEtelDriverContext& aContext, TRequestStatus* aStatus);
|
|
49 |
virtual void NotifyFsm(CEtelDriverContext& aContext, TRequestStatus& aCompletionStatus );
|
|
50 |
virtual void CancelAsyncRequest(CEtelDriverContext& aContext);
|
|
51 |
|
|
52 |
};
|
|
53 |
|
|
54 |
/**
|
|
55 |
Strategy to set QoS for pdp context.
|
|
56 |
*/
|
|
57 |
NONSHARABLE_CLASS(TSetQoSStrategy) : public MEtelDriverStrategy
|
|
58 |
{
|
|
59 |
public:
|
|
60 |
virtual void Next (CEtelDriverContext& aContext, TRequestStatus* aStatus);
|
|
61 |
virtual void NotifyFsm(CEtelDriverContext& aContext, TRequestStatus& aCompletionStatus );
|
|
62 |
virtual void CancelAsyncRequest(CEtelDriverContext& aContext);
|
|
63 |
};
|
|
64 |
|
|
65 |
/**
|
|
66 |
Strategy to set tft for pdp context.
|
|
67 |
*/
|
|
68 |
NONSHARABLE_CLASS(TSetTftStrategy) : public MEtelDriverStrategy
|
|
69 |
{
|
|
70 |
public:
|
|
71 |
virtual void Next (CEtelDriverContext& aContext, TRequestStatus* aStatus);
|
|
72 |
virtual void NotifyFsm(CEtelDriverContext& aContext, TRequestStatus& aCompletionStatus );
|
|
73 |
virtual void CancelAsyncRequest(CEtelDriverContext& aContext);
|
|
74 |
};
|
|
75 |
|
|
76 |
/**
|
|
77 |
Strategy to change tft for pdp context.
|
|
78 |
*/
|
|
79 |
NONSHARABLE_CLASS(TChangeTftStrategy) : public MEtelDriverStrategy
|
|
80 |
{
|
|
81 |
public:
|
|
82 |
virtual void Next (CEtelDriverContext& aContext, TRequestStatus* aStatus);
|
|
83 |
virtual void NotifyFsm(CEtelDriverContext& aContext, TRequestStatus& aCompletionStatus );
|
|
84 |
virtual void CancelAsyncRequest(CEtelDriverContext& aContext);
|
|
85 |
};
|
|
86 |
|
|
87 |
/**
|
|
88 |
Strategy to create primary pdp context.
|
|
89 |
*/
|
|
90 |
NONSHARABLE_CLASS(TCreate1ryPdpContextStrategy) : public MEtelDriverStrategy
|
|
91 |
{
|
|
92 |
public:
|
|
93 |
virtual void Next (CEtelDriverContext& aContext, TRequestStatus* aStatus);
|
|
94 |
virtual void NotifyFsm(CEtelDriverContext& aContext, TRequestStatus& aCompletionStatus );
|
|
95 |
virtual void CancelAsyncRequest(CEtelDriverContext& aContext);
|
|
96 |
};
|
|
97 |
|
|
98 |
/**
|
|
99 |
Strategy to create secondary pdp context.
|
|
100 |
*/
|
|
101 |
NONSHARABLE_CLASS(TCreate2ryPdpContextStrategy) : public MEtelDriverStrategy
|
|
102 |
{
|
|
103 |
public:
|
|
104 |
virtual void Next (CEtelDriverContext& aContext, TRequestStatus* aStatus);
|
|
105 |
virtual void NotifyFsm(CEtelDriverContext& aContext, TRequestStatus& aCompletionStatus );
|
|
106 |
virtual void CancelAsyncRequest(CEtelDriverContext& aContext);
|
|
107 |
};
|
|
108 |
|
|
109 |
/**
|
|
110 |
Strategy to activate pdp context, primary or secondary.
|
|
111 |
*/
|
|
112 |
NONSHARABLE_CLASS(TActivatePdpStrategy) : public MEtelDriverStrategy
|
|
113 |
{
|
|
114 |
public:
|
|
115 |
virtual void Next (CEtelDriverContext& aContext, TRequestStatus* aStatus);
|
|
116 |
virtual void NotifyFsm(CEtelDriverContext& aContext, TRequestStatus& aCompletionStatus );
|
|
117 |
virtual void CancelAsyncRequest(CEtelDriverContext& aContext);
|
|
118 |
};
|
|
119 |
|
|
120 |
/**
|
|
121 |
Strategy to retrieve negotiated qos from TSY for secondary pdp context
|
|
122 |
*/
|
|
123 |
NONSHARABLE_CLASS(TGetNegQoSStrategy) : public MEtelDriverStrategy
|
|
124 |
{
|
|
125 |
public:
|
|
126 |
virtual void Next (CEtelDriverContext& aContext, TRequestStatus* aStatus);
|
|
127 |
virtual void NotifyFsm(CEtelDriverContext& aContext, TRequestStatus& aCompletionStatus );
|
|
128 |
virtual void CancelAsyncRequest(CEtelDriverContext& aContext);
|
|
129 |
};
|
|
130 |
|
|
131 |
|
|
132 |
/**
|
|
133 |
Strategy to modify an active PDP context, primary or secondary.
|
|
134 |
*/
|
|
135 |
NONSHARABLE_CLASS(TModifyActiveStrategy) : public MEtelDriverStrategy
|
|
136 |
{
|
|
137 |
public:
|
|
138 |
virtual void Next (CEtelDriverContext& aContext, TRequestStatus* aStatus);
|
|
139 |
virtual void NotifyFsm(CEtelDriverContext& aContext, TRequestStatus& aCompletionStatus );
|
|
140 |
virtual void CancelAsyncRequest(CEtelDriverContext& aContext);
|
|
141 |
};
|
|
142 |
|
|
143 |
#endif // ETELDRIVERSTRATEGIES_H
|