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 // spud context element |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 |
|
23 #ifndef CSPUDCONTEXTELEM_H |
|
24 #define CSPUDCONTEXTELEM_H |
|
25 |
|
26 #include "ceteldrivercontext.h" |
|
27 #include "cpdpstatuschangenotifier.h" |
|
28 #include "cqoschangenotifier.h" |
|
29 #include "cpdpconfigchangenotifier.h" |
|
30 |
|
31 class CEtelDriverFactory; |
|
32 |
|
33 /** structure to keep context object and associated notifiers */ |
|
34 class CSpudContextElem : CBase |
|
35 { |
|
36 public: |
|
37 static CSpudContextElem* NewL(TContextId aId, CEtelDriverFactory& aFactory, CPdpFsmInterface& aPdpFsmInterface); |
|
38 virtual ~CSpudContextElem(); |
|
39 |
|
40 void Start(); |
|
41 void Cancel(); |
|
42 |
|
43 void GetLastErrorCause(TInt& aLastErrorCause); |
|
44 |
|
45 void PdpStatusChangeNotifierCancel(); |
|
46 void QoSChangeNotifierCancel(); |
|
47 void PdpConfigChangeNotifierCancel(); |
|
48 |
|
49 /** etel driver context */ |
|
50 CEtelDriverContext* iContext; |
|
51 /** pdp status change notifier */ |
|
52 CPdpStatusChangeNotifier* iPdpStatusChangeNotifier; |
|
53 /** QoS profile change notifier */ |
|
54 CQoSChangeNotifier* iQoSChangeNotifier; |
|
55 /** pdp config change notifier */ |
|
56 CPdpConfigChangeNotifier* iPdpConfigChangeNotifier; |
|
57 |
|
58 private: |
|
59 void ConstructL(TContextId aId, CEtelDriverFactory& aFactory, CPdpFsmInterface& aPdpFsmInterface); |
|
60 }; |
|
61 |
|
62 #endif // CSPUDCONTEXTELEM_H |
|