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 // Base class to the various states required in Spud FSM. Each real state is derived from |
|
15 // this base class. The bass class is never instanciated but it's base functionality is |
|
16 // used for default handling in the most part. |
|
17 // |
|
18 // |
|
19 |
|
20 /** |
|
21 @file |
|
22 @internalComponent |
|
23 */ |
|
24 |
|
25 #ifndef TPDPSTATE_H |
|
26 #define TPDPSTATE_H |
|
27 |
|
28 #include <networking/umtsnifcontrolif.h> |
|
29 #include "eteldrivernmspace.h" |
|
30 #include "reteldriverinput.h" |
|
31 #include "pdpfsmnmspace.h" |
|
32 |
|
33 |
|
34 class CPdpFsm; |
|
35 //class REtelDriverInput; |
|
36 class CPdpFsmFactory; |
|
37 |
|
38 // parent class |
|
39 class TPdpState |
|
40 { |
|
41 public: |
|
42 TPdpState(); |
|
43 |
|
44 // used as a default error handler |
|
45 virtual TInt Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aParam); |
|
46 |
|
47 const TDesC * LogOperation (CPdpFsm& aFsm, TInt aOperation); |
|
48 |
|
49 protected: |
|
50 // access helpers for use in the derived class |
|
51 void EtelDriverInput (CPdpFsm& aFsm, EtelDriver::TEtelInput aOperation); |
|
52 void EtelDriverCancel (CPdpFsm& aFsm); |
|
53 void SpudManNotify (CPdpFsm& aFsm, TInt aNotification, TInt aParam); |
|
54 |
|
55 public: |
|
56 #ifdef _DEBUG |
|
57 TBuf<100> iName; |
|
58 #endif |
|
59 |
|
60 protected: |
|
61 CPdpFsmFactory * iPdpFsmFactory; |
|
62 |
|
63 private: |
|
64 |
|
65 }; |
|
66 |
|
67 |
|
68 #endif // TPDPSTATE_H |
|