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 // Declaration of the RPdpFsmInterface for SPUD TEL unit tests |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 |
|
23 #ifndef PDPFSMINTERFACETEST_H |
|
24 #define PDPFSMINTERFACETEST_H |
|
25 |
|
26 #include "CPdpFsmInterface.h" |
|
27 |
|
28 // forward declarations |
|
29 class CInputRequestListener; |
|
30 |
|
31 /** Implementation of CPdpFsmInterface used to test the Etel driver */ |
|
32 class CPdpFsmInterfaceTest : public CPdpFsmInterface |
|
33 { |
|
34 public: |
|
35 CPdpFsmInterfaceTest(CInputRequestListener& aListener); |
|
36 |
|
37 virtual TInt Input(TContextId aPdpId, const TInt aOperation, const TInt aParam); |
|
38 |
|
39 |
|
40 #ifdef SYMBIAN_NETWORKING_UMTSR5 |
|
41 virtual TInt Set(TContextId aPdpId, const RPacketQoS::TQoSR5Requested& aParam); |
|
42 virtual TInt Set(TContextId aPdpId, const RPacketQoS::TQoSR5Negotiated& aParam); |
|
43 virtual TInt Get(TContextId aPdpId, RPacketQoS::TQoSR5Requested& aParam) const; |
|
44 virtual TInt Get(TContextId aPdpId, RPacketQoS::TQoSR5Negotiated& aParam) const; |
|
45 |
|
46 #else |
|
47 // !SYMBIAN_NETWORKING_UMTSR5 |
|
48 |
|
49 virtual TInt Set(TContextId aPdpId, const RPacketQoS::TQoSR99_R4Requested& aParam); |
|
50 virtual TInt Set(TContextId aPdpId, const RPacketQoS::TQoSR99_R4Negotiated& aParam); |
|
51 virtual TInt Get(TContextId aPdpId, RPacketQoS::TQoSR99_R4Requested& aParam) const; |
|
52 virtual TInt Get(TContextId aPdpId, RPacketQoS::TQoSR99_R4Negotiated& aParam) const; |
|
53 |
|
54 #endif |
|
55 // SYMBIAN_NETWORKING_UMTSR5 |
|
56 |
|
57 virtual TInt Set(TContextId aPdpId, const TTFTInfo& aParam); |
|
58 virtual TInt Set(TContextId aPdpId, const TTFTOperationCode& aParam); |
|
59 virtual TInt Set(TContextId aPdpId, const RPacketContext::TDataChannelV2& aParam); |
|
60 virtual TInt Set(TContextId aPdpId, const RPacketContext::TContextConfigGPRS& aParam); |
|
61 virtual TInt Set(TContextId aPdpId, const RPacketContext::TContextStatus& aParam); |
|
62 |
|
63 |
|
64 virtual TInt Get(TContextId aPdpId, TTFTInfo& aParam) const; |
|
65 virtual TInt Get(TContextId aPdpId, TTFTOperationCode& aParam) const; |
|
66 virtual TInt Get(TContextId aPdpId, RPacketContext::TDataChannelV2& aParam) const; |
|
67 virtual TInt Get(TContextId aPdpId, RPacketContext::TContextConfigGPRS& aParam) const; |
|
68 virtual TInt Get(TContextId aPdpId, RPacketContext::TContextStatus& aParam) const; |
|
69 |
|
70 virtual TInt GetLastErrorCause(TContextId aPdpId, TInt& aLastErrorCause) const; |
|
71 |
|
72 virtual void Set(const RPacketService::TStatus aParam); // applies to all contexts |
|
73 virtual void Get(RPacketService::TStatus& aParam); // applies to all contexts |
|
74 |
|
75 const TName& TsyName(); |
|
76 |
|
77 virtual void SetContextTerminationErrorAndStop(TContextId aPdpId, TInt aErrorCode); |
|
78 |
|
79 private: |
|
80 /** Used as the interface between the thread running the active objects and the test execute thread. |
|
81 Contains the data passed to/from Input requests */ |
|
82 CInputRequestListener& iListener; |
|
83 /** Holds the next TFT operation code and data to be used for TFT operations */ |
|
84 TTFTOperationCode iTftOperationCode; |
|
85 TTFTInfo iTftInfo; |
|
86 |
|
87 }; |
|
88 |
|
89 #endif |
|
90 // PDPFSMINTERFACETEST_H |
|
91 |
|